|
-
More accurate solution
in the upper script, what you are moving is the [main object]. To relocate "mymenu" you have to remove the following line in the resizeStage() method:
this.subject=this;
and put this line inside the createmenu() method:
subject=mymenu;
the variable "var subject:MovieClip" is declare at the begining and after the createmenu() method is dispatch you can pass the variable "mymenu" to the resizeStage() method:
TweenLite.to(subject, 1, {x:menudestinyX,y:menudestinyY, ease:Expo.easeOut});
If you want to relocate more elements, you have to create a new variable like "subject2" and everytime you create a new object through the constructor, relate the both objets:
mynewobject2 = subject2
and add a new tween in the resizeStage() method:
TweenLite.to(subject2, 1, {x:anydestinyX,y:anydestinyY, ease:Expo.easeOut});
Probably there is a better way thus, if someone know how to do this kind of rutine is really wellcome.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|