Flash Essential

ActionScript 3 Error "5000″

Aug 27th 2008
One Comment
respond
trackback

The Error?

5000: the class "TestFile" must be subclass "flash.display.MovieClip" since it is linked to a library symbol of that type.

What's Happening?

This error occurs when you have linked an object from your library using the linkage/Export for ActionScript method but failed to inherit the properties of the class you're targeting.

Solution?

You need to import your classes properly inside your actionscript file.

package {
import flash.display.MovieClip;
public class TestFile extends MovieClip {

Tip
Always make sure you import your classes when using external actionscript files.


This post is tagged , , ,



Sponsors

Explore Recent





Monthly Archives



Friends and Affiliates



One Comment

  1. bioRex

    hmm.. Im getting this errror using alternativa3D on Flash CS4 (but on CS3 works fine). Well, this helped me to understand a bit. Thanks

Incoming Links

Leave a Reply