simpler if you just want it to slide in then set a positive x velocity and a small negative acceleration watching in a IF loop until it arrives at the desired x position
srart script like this.
ele=element ("moon")//useed moon clipart to test
startx=0
starty=0
endx=160
ele.x=startx
ele.y=118
ele.velocity.x=400
ele.acceleration.x=-40
in that case i have to ask you one more last thing
will it be ok to use that loop on a frame of an animation ,so one
it have been reached that frame the animation (wich is in a layer)
will execute the script ?
PS - you better show me an example because dont realy understand much about this kind of stuff
Last edited by cyber reaper; 04-30-2004 at 03:01 PM.
I don't entirely understand but I don't think it'll work that way.
What you can do is in the animation frame set a variable in the root movie that is a "trigger" to start the animation. In other words in you IF statement check also if the "trigger" is true. And in your animation on the needed frame set the value of this "trigger" to be true.
just tell me as simple as possible .... how can i move an animation,
you said it sould be in a layer
but how do i write that scrip ?
im not sure i realy need velocity cause all i want it to do is :
a) just move until ill destroy it using .destroy command
b) move to another element's x position
thats all ! im sure there is an easy way of making this go
please try to make my life as simple as possible i dont know what roots are and i think i wont unserstand....just keep it to basic
hope its not to much truble