skip to main |
skip to sidebar
- addItem() method of the ArrayCollection does the same thing as push() method of Array
- Making an XMLListCollection in MXML pointing to HTTPService data <mx:XMLListCollection id="myList" source="{serviceId.lastResult.family}"/>
- XMLListCollection is very much like ArrayCollection except that it is used for XML data. It is a best practice to bind to an XMLListCollection instead of the native XML object. Useful to use it for Tree control.
- In AS3.0 we can specify functions with parameters and give a default value to them. Such params if lying at the end are optional while calling the function
- AS3.0 has native XML support in the form of ECMAScript for XML(E4X). E4X specs define a set of functionalities and classes for working with XML data. These are collectively called E4X.
- XML class in AS3.0 is NOT the same as XML class in AS2.0. That class has been renamed as XMLDocument.
- RichTextEditor allows user to markup the text entered into the control.
- You can use as operator to cast an object. Collection lists generally return an object type (remids me of Java in pre Java5 days) and needs to be cast. Eg. You have a ArrayCollection col1 which holds objects of type myObject. You have function which need object of this type, function func1(data:myObject): void{}. The call to this function using an item retrieved from the collection may look like this: func1(col1.getItemAt(0) as myObject). If you dont fo do that, it gives an implicit coercion error.
Questions:
- What is the difference between XML class in AS2.0 and AS3.0?
- When would you use a RichTextEditor?
- Why would you use the as operator?
- What is E4X?
No comments:
Post a Comment