I have made a custom component in flash and converted it to a flex component. The component loads and works in the mxml file. However what I really want is to use the SWC in an actionscript class file.
I am having a little trouble doing this.
When I import the SWC what I find is the SWC name followed by "_fla" (someComponent_fla). This seems to be the SWC since I can see the instances used in the component.
The question I have is? How do I get a instance of this component. The example code shown below does not work.
import SomeComponent_fla; .... var someComponent:SomeComponent_fla = new SomeComponent_fla(); ....
Please, where am i going wrong?