I have exported a symbol as a SWC from Flash.
It's called Motion3D in my library and has a Motion3D.as to go with it.
It has graphics, buttons and textboxes.
In Flex I have:
// ActionScript file
package {
import flash.display.MovieClip;
public class RunMotion3D extends Motion3D {
public var inst:Motion3D;
public function RunMotion3D() {
inst=new Motion3D();
super();
}
}
}
Motion3D.as is not in the Flex project.
In Flex, I break and check the variables and inst shows the textboxes
properly instantiated, but "this" shows references to the buttons and
boxes but they are null.
If I remove inst, it still doesn't instantiate the symbol's assets.
How can I get direct access to the SWC assets so that I can write code
such as this.something.text="Yes"?
I would really appreciate your thoughts on this.
John
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders