Re: $movie->nextFrame() and AS in ming-dev?
Axel Huizinga <[email protected]> Mon, 01 Dec 2003 07:57:31 +0100
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Laurent Cocea schrieb:
Hello,
Does anyone know/can explain why, if I split the actionscript code in
gazb's attachmovie online example at
http://www16.brinkster.com/gazb/ming/defaultframeset.asp?id=attachmovie ,
over more than one frame as shown below in Sample A, the movieclip is no
longer draggable? On the other hand, if I merge AS in frames #3 and #4
as shown in Sample B, the movieclip _is_ draggable. Any helpful
sugegstions will be greatly appreciated.
Thanks.
-Laurent
------------------------------------
Sample A: movieclip is not draggable
------------------------------------
(...)
$movie->writeExports();
//$movie->nextFrame();
// frame 2
$strAction = "
_root.attachMovie('bev','bev1',11);
bev1.useHandCursor=0;bev1._x=100;bev1._y=100;
";
$movie->add(new SWFAction($strAction));
$movie->nextFrame();
// frame 3
$strAction = "
bev1.onPress=function(){ this.startDrag('');};
";
$movie->add(new SWFAction($strAction));
$movie->nextFrame();
// frame 4
$strAction = "
bev1.onRelease= bev1.onReleaseOutside=function(){ stopDrag();};
";
$movie->add(new SWFAction($strAction));
stop(); added here and reactivated the next line and it works :-)
Cordially,
Axel
$movie->nextFrame();
// save movie
$movie->save("/tmp/attachmovieA.swf");
--------------------------------
Sample B: movieclip is draggable
--------------------------------
(...)
$movie->writeExports();
//$movie->nextFrame();
// frame 2
$strAction = "
_root.attachMovie('bev','bev1',11);
bev1.useHandCursor=0;bev1._x=100;bev1._y=100;
";
$movie->add(new SWFAction($strAction));
$movie->nextFrame();
// frames 3 + 4 in Sample A, merged
$strAction = "
bev1.onPress=function(){ this.startDrag('');};
bev1.onRelease= bev1.onReleaseOutside=function(){ stopDrag();};
";
$movie->add(new SWFAction($strAction));
//$movie->nextFrame();
// save movie
$movie->save("/tmp/attachmovieB.swf");
_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun
_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun