[Tweener] onComplete problem

charlie Montagut charlie.montagut at gmail.com
Tue Sep 16 03:06:46 PDT 2008


hi everyone,

First Escuse me for my english, i am french...!

I have a little probleme about the onComplete param of tweener

here is my code:



*// this function move(evt:Event) is called on Stage...(Event.RESIZE,move)*

*public* *function* move(pEvt:Event=*null*):*void
*

{

removeChild(myFond);

Tweener.addTween(myPopUp, {y:(stage.stageHeight/2 -
*this*.height/2),x:(stage.stageWidth/2
- *this*.width/2), time:1, delay:0, transition:*"easeOutQuint"*,
onComplete:nextMove});

 }

*public* *function* nextMove():*void
*

{

* // this function **captureScreen()*  *is supposed to print the screen into
a bitmap var.*

captureScreen();

addChild(myFond);

swapChildren(myFond,myPopUp);

}
My problem is that the capture of the stage ( made by Capture Screen() ) is
made before the stage is resized,  although it's called when the tweener is
finished whom is called when the stage is yet resized. Is there a probleme
with te onComplete Tweener method?



Thanxx for your help,
And glad to join this mailing list

Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080916/0c6e57a7/attachment.htm>


More information about the Tweener mailing list