This content has been marked as final. Show 4 replies
Not sure exactly what is and is not working for you. Maybe some simplified code would help.
If you create an ActionScript class, you should be able to use it in your application, as long as you have imported the class, and as long as there are no class naming conflicts.
I guess that is my problem, how do I import the class, what does that script look like.
inside the <mx:Script> block
In addition to importing the class, you need to instantiate it.
Yu can either use the "new" keyword:
private var _myClass:MyClass = new MyClass;
<ns:MyClass id="myClass" />
Either way, you can access public members via the id reference: