Question
Animation Problem
Hi
I am using Flash CS4 to create a custom animation which I want to apply to several different objects on the stage.
I have created my animation using the Motion Editor and copied it into a custom Class as ActionScript 3.0. What I am trying to do is slice a MovieClip that`s on the stage and apply this animation to the slices. For this, I have made the slices instances of the Class in which I have copied my animation`s script in. Here, I am simply calling AnimatorFactory.addTarget(this, 0) and this throws me an error when compiled, that says that property instance8 is not found and that there is no default value... If I run the addTarget() method on a MovieClip that`s on the stage from the beginning the animation works as expected (it seems to be able to find that "instance8" it`s been looking for...). It even works if I call the addTarget method for the MovieClip that contains all the slices, but it doesn`t work for the slices independently...
Any suggestion to how I may solve this issue is very welcomed :)
NOTE: I have discovered that, for some reason, if I don`t call the addChild method before I call the addTarget method I don`t get an error. However, I don`t see anything either...
Thanks,
Ardy
I am using Flash CS4 to create a custom animation which I want to apply to several different objects on the stage.
I have created my animation using the Motion Editor and copied it into a custom Class as ActionScript 3.0. What I am trying to do is slice a MovieClip that`s on the stage and apply this animation to the slices. For this, I have made the slices instances of the Class in which I have copied my animation`s script in. Here, I am simply calling AnimatorFactory.addTarget(this, 0) and this throws me an error when compiled, that says that property instance8 is not found and that there is no default value... If I run the addTarget() method on a MovieClip that`s on the stage from the beginning the animation works as expected (it seems to be able to find that "instance8" it`s been looking for...). It even works if I call the addTarget method for the MovieClip that contains all the slices, but it doesn`t work for the slices independently...
Any suggestion to how I may solve this issue is very welcomed :)
NOTE: I have discovered that, for some reason, if I don`t call the addChild method before I call the addTarget method I don`t get an error. However, I don`t see anything either...
Thanks,
Ardy