Facts:
- I have 2 classes: Entity and Ship. Entity extends MovieClip and Ship extends Entity.
- I have a MovieClip associated to the Ship.as class file.
The thing is that I'm able to show, rotate and move the Ship object. However, I cannot change the pointer to the place I want in its timeline; in short: I can NOT have a successful response from gotoAndStop(n). It just doesn't work.
Thanks in advance.
I've already tried:
- Casting the MovieClip inside and outside the class file.
- Importing flash.utils.*
- Changing the parameters from a number to a string (for the frame label).
The only way it's worked for me is deriving Ship directly from MovieClip and not from Entity; but that would be undesirable and last resort.
You can download the source files here: http://cid-7b6cf3fa8e7f0691.skydrive.live.com/self.aspx/ActionScript%20Exercises/Asteroids.zip