Skip navigation
Currently Being Moderated

using custom component in actionscript

Sep 20, 2013 1:24 PM



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?


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points