logo       

Re: $movie->nextFrame() and AS in ming-dev?: msg#00001

web.ming.general

Subject: Re: $movie->nextFrame() and AS in ming-dev?



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. this.startDrag('');};
";
$movie->add(new SWFAction($strAction));
$movie->nextFrame();

// frame 4
$strAction = "
 bev1. 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. this.startDrag('');};
 bev1. stopDrag();};
";
$movie->add(new SWFAction($strAction));
//$movie->nextFrame();

// save movie
$movie->save("/tmp/attachmovieB.swf");
_______________________________________________
ming-fun mailing list
ming-fun@xxxxxxxxxx
http://www.opaque.net/mailman/listinfo/ming-fun

  

_______________________________________________
ming-fun mailing list
ming-fun@xxxxxxxxxx
http://www.opaque.net/mailman/listinfo/ming-fun
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise