Forum Moderators: open

Message Too Old, No Replies

random pause in movie clip

how?

         

HelenDev

11:58 am on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a movie clip of a twinkling star. I would like to put a random/pause delay in it, so that the stars get out of sync with each other, how can I do this?

The movie clip is one which infinitely loops.

Richard_N

7:53 pm on Nov 16, 2005 (gmt 0)



quick thought, (assuming the blink is in a looping clip) create a random number generator, asign it to a variable, then create a function to pause (or even speed up) the clip by the amount of the variable

HelenDev

8:56 am on Nov 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the tip Richard. I'm a bit of an actionscript n00b however (well I only use flash once a year to create a christmas card!) so can you tell me how to do a normal pause in actionscript? Do I use the stop(); function, or something else? FYI I am using Flash 5.

Richard_N

11:38 am on Nov 17, 2005 (gmt 0)



not sure if some of the functionality your going to need is actually available in flash 5 which only creates actionscript1

Basically your going to need the setInterval() function and I dont think I can remember enough AS1 to even make a stab at the syntax.

HelenDev

3:40 pm on Nov 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cheers Richard.

It looks a bit of a 'mare to be honest. Also it doesn't seem like there is a handy actionscript1 reference anywhere. I've abandoned what I was attempting to do, and re-created it a clunky way, and put in a request for my software to be upgraded next year!

Cheers for the help anyways :)