var myObj:Object = new Object();
myObj.someID=new Array();
Like javascript...
If you are using e4x notation to get the property name dynamically, you will have to enclose it in square brackets ie
myObj[c.@someID]=new Array();
implementing toString method in the AS classes will help in tracing.
to remove extra tabs select all and use Shift+Tab key combo in the eclipse based flex editor
Use source property of the Script tag to specify external script.
In AS3.0 we can override functions. For this they should have the same access specifier (public/private), have same number & type of parameters in the same order and should be explicitly preceded by the keyword override.
<mx:metadata> tag can be used to declare metadata
Questions:
- How do you override functions in AS3.0?
- Which tag will you use to declare metadata?
- How will you specify an external file for the Script tag?
- How will you add a property to an object at runtime?
No comments:
Post a Comment