Flash Q ?
- Started
- Last post
- 11 Responses
- planet01
I am gradually familiarizing myself with actionscript. I have been working on a piece that places a movie clip repetitively onto the stage, gradually speeding up as it goes.
I am not having a problem getting the random sizes and x/y locations of the movie clip on the stage. I am having a hard time figuring out how to control the rate of the movie clips being placed on the stage. In general I have no idea how to control the rate of a movie without story boarding it.
I am not sure what I am looking for or what is the best method to accomplish this.
Can anyone help me out here? If anyone can point me to a tutorial or at lest help me in what to search for.
THANKS!
- skt0
Are you talking about the speed of the motion, moving your mc onto the stage?
- planet010
Not the speed of the motion, the mc just get placed at random locations and sizes. What I am trying to control is the frequency at which the mc's are placed onto the stage. I am trying to get them to show up one at a time in an increasing rate.
- acescence0
rather than creating a loop that is keyframe based, you should set up a loop via actionscript that waits a certain number of seconds between each duplication, then subtract a bit a of time each time it loops.
- skt0
yep, what acescene said. Although setInterval can be a pain to accelerate. I think. Although I am not the greatest coder.
- planet010
yeah, that sounds good.
would this involve using SetInterval?
- planet010
I was looking into SetInterval, anyone know of an easier way if this is a pain?
- skt0
As far as I know you could use setInterval to call a function that places a movie, reduces the interval time variable, clears the interval and then calls another one.
ish.
- UndoUndo0
I would go for setInterval() to call yr placing script. as soon as the MC has been placed clear the previous interval, change the interval duration and then use setInterval again with the new duration.
you with me?
- UndoUndo0
^^ skt's got it!
- skt0
woohoo. undoundo said almost the same thing.
I rock at coding.
- planet010
cool, yeah this makes sense.
thanks for all the help.