Adding Animation to a Dynamically Created MovieClip
Imagine i do not want to use Timeline and i do not want to create a movieClip instance in Library to be exported to Action Script
Instead, I want to use the first frame on stage to create movieclips and add animation to them via functions. like this:
var DynamicClip:MovieClip=new MovieClip
buildMovieClip( some variables)
function buildMovieClip(some variables)
{ DynamicClip.graphics(blah blah)
addChild(DynamicClip)
DynamicClip.addEventListener(Event.ENTER_FRAME, animatePixels)
}
function animatePixels()
{ some codes to make those pixels move}
Now this all works fine except the fact that the animation is not part of the MovieClip. so if I decide to ratote the whole thing or scale it or whatever, the animation is not affected. How can I actually "indent","attach","include" the animations i coded into the movie clip symbol and then hopefully give it a name so i can duplicate it. everything with no dependancy on library and manually created symbols.
Thanks in Advance...