Hi all,
i’ve got this problem that i can’t figured out. i’ve tried google and adobe website, but no luck. i guess the people here could help me
this is about addchild and export in first frame. i wanna call an object from my library. in its linkage option i:
1. name it “rectangle”
2. give a class name “Rect”
3. have a base class “flash.display.MovieClip”
4. check “export for Actionscript”
5. unchecked "import in first frame"
no problem this far.
but when i tried to call it in main timeline with this script:
var a:Rect = new Rect();
addChild(a);
i got this error:
**1046: Type was not found or was not a compile-time constant: Rect.
1180: Call to a possibly undefined method Rect.
**
why is that?
isn’t flash automatically generate the class for me?
(a definition of this class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.)
can anyone help with my problem…
Thx a lot.