SOLVED

RunMotion3D was set as the default application in Flex and it instantiated "inst" a Motion3D symbol from the SWC okay. But RunMotion3D itself wasn't instantiated.

When I changed the default application to another test file that instantiated a RunMotion3D, both RunMotion3D's inst and RunMotion3D's "this" gave proper (non null) references to the buttons and textFields.

John

John McCormack wrote:
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




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to