Skip to main content

Posts

Showing posts with the label Builder

Get Rid of scrollbars on Scroller

If you are working on flex mobile project. You would be facing the feature of scrollbars appearing whenever you scroll through the list or widget with-in the scroller component. If these has become a problem for you and you need to get rid of the feature follow the steps mentioned here: Right a new script extending from the scroller  Observe vertical and horizontal scrollbars tags which are auto generated  modify them and insert the property alpha=0  Include this skin in your scroller and you are done 

Convert XML to ArrayCollection

If you have an XML and want to use it in the spark's list component, than you need to first convert it into ArrayCollection and that's what we are doing in this example: Lets assume you have following XML: varstrXML:XML = <blog>         < item>               <title>Blog by Subodh Gupta                < author>Subodh Guptaauthor >        < /item> </blog> ; var xml:XML = new XML(strXML); var xmlDoc:XMLDocument = new XMLDocument(xml); var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true); var resultObj:Object = decoder.decodeXML(xmlDoc); var ac:ArrayCollection ; if(resultObj. blog .hasOwnProperty(" item ")) {       if(resultObj. blog . item is ArrayCollection)       {       ac = resultObj.root.element; } } that's it you are done. ...