Hi,
I have this simple illustration of me on an on-line portfolio im working on. I would like my eyes to blink randomly every few seconds. I have made a movie, but the blinks are regular and the movie big. Does anybody know of any action script which might help?
Thanks
Whenever I’ve made a blinking eye, I’ve not bothered using ActinoScript. I’ve made a amll movie clip and staggered dome blinks at irregular intervals, then set it to loop.
I guess what you could do is have a loop where you generate a random number between say, 1 and 10. Then check the number - if it’s 1, you run the blink animation clip. If it’s not, you generate a new number. Just set that to run for the duration…
yeah that sounds cool…
cheers
[AS]onClipEvent(enterFrame){
if(random(10)==1){
gotoAndPlay(“blink”);
}else{
stop();
}
}[/AS]
is this, what you’r lookn’ 4??
…ha ha… Im and idiot too…
That code looks funky… but where the hell do I put it?! Frame 2, and then label frame 1 blink? My movie is two frames long okay, and it keeps going round in a loop super quick. I look like im fluttering my eye lids or something…not good.
Could you give me more specific details… it would be much appreciated…
Thanks
*Originally posted by Mr.Craig *
**…ha ha… Im and idiot too…
That code looks funky… but where the hell do I put it?! Frame 2, and then label frame 1 blink? My movie is two frames long okay, and it keeps going round in a loop super quick. I look like im fluttering my eye lids or something…not good.
Could you give me more specific details… it would be much appreciated…
Thanks **
That code looks funky… but where the heck do I put it?
Heck please!
Thanks
-MIKE
here U go…
Cool that gave me a good idea thanks
Heck!! - sorry to offend you Mike (if I did)
…but what the hell does heck mean anyway? And whats wrong with hell? It wasn’t bleeding or “F” ing!!
- “If there’s a hell below, we’re all gonna go…” - Curtis Mayfield
But yeah…
Fluid_One I am very greatful… thankyou!
Now, that I can see the file in full, every thing is falling into place… your a magician!
Thanks
Perhaps when the portfolio is up and running you can take a peek tell me what you think.
Cheers…
Mr. mr. craig,
i believe you hitted the ‘start a new thread’ instead of the ‘post a new reply’ button when posting this reply. That happens a lot
you probably want to delete the previous post to erase this thread, and post the content of the same in the respective thread in order to Mike see your apologize and fluid see your thanks.
Cheers :bounce:
[EDIT] thanks rev! =)
I merged the 2 big G…
Rev