Assuming your code is on frame 1 of the timeline and your movieclip is on the stage with an instance name of top_mc it will work. Dont forget you need to import the Tweener class before it will work.
No, I started writing the code for my movieclip in the main timeline and it worked good.
By when I started to write some code in the document class (fileReference…) the main timeline code can’t trigger the Movieclips anymore. so I want to learn how to define them in the Doc. Class. And I haven’t found a good tutorial so far…
When you include a document class, it acts as the timeline. If your using a document class you should remove all code and movie clips from your main timeline.