Skip to main content
March 26, 2009
Question

Animation Problem

  • March 26, 2009
  • 1 reply
  • 270 views
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
This topic has been closed for replies.

1 reply

Participating Frequently
March 29, 2009
I sincerely not understand what you intended by:
"I have made the slices instances of the Class in which I have copied my animation`s script in"
the slices extends the Class, or are created by the class or they instantiate your Class or what?

this its simple confusing, sorry.