PDA

View Full Version : Action scripted animation


crueloverlord
06-17-2002, 11:00 PM
i know it is possible to animate in flash using sole, or mostly, action scripts, I am on a deadline situation where i need to animate several symbols across the x axis at varying speeds as a movie clip. i know this is possible but i havent found anything other than random motion action scripts PLEASE somebod help me out here...im getting very frustrated.

Billy T
06-18-2002, 01:20 AM
http://www.tableau.com.au/tutorials/animate_actionscript/index.html

crueloverlord
06-18-2002, 06:12 AM
thank you kindly. I haven't had a chance to test it out to see if its what i need, but thanx alot for the support. I'm gonna need it in the next few weeks

crueloverlord
06-18-2002, 03:54 PM
it works....exactly what i needed, thanks man. I am honored to have the help of the mighty billy T.

and now for my new question, does anyone knopw how i could loop this animation?

I have a movie with this animation running as a background clip. the movie recycles itself every 3 seconds or so, and i need the background clip to recycle as well. anyone have any ideas?

Billy T
06-18-2002, 10:14 PM
how exactly did you animate your background? Attached is one way to loop an actionscripted animation

crueloverlord
06-19-2002, 02:00 AM
basicly i had 5 or 6 bars of varying width, and i needed them to move slowly across the stage, the opacity was set at 30 the rate of movement was varied at between .1 and .6 the script on each bar looked similar to this

onClipEvent (load){
this._x=0;
this._alpha=30;
}
onClipEvent (enterFrame){
this._x+=.3;
}

i think thatw as it, i VERY new to actionscripting, and flash 5 in general, ive used flash 4 for basic tweens and such, but i just got a job programming flash for a buisness, and im kinda crash course in scripting righ now. Im sure im gonna have plenty of questions, actually, do you know how i would script a fade out of alpha after a 10 second pause folling a script similar to this?

onClipEvent (load){
this._x=-50;
this._alpha=0;
}
onClipEvent (load){
if (this._x<50){
this._x+=10;
}
if (this._alpha<100){
this._alpha+=10;
}
}
i may have screwed a bit of that up , my mind is fried from work. if anyone can help with this, i need a 10 second pause, and a way to tell it to fade the alpha back out. i really just need an explanation, a file is not necessary.
thanx

Billy T
06-19-2002, 10:32 AM
check out the tutorial on delaying events in flash

cheers

crueloverlord
06-20-2002, 07:26 PM
i checked that out but i couldnt understand it