Flex and AS3
hello!
Im new into this and I´m very confused about the way I can use AS3 and Flex as I don´t understand very well the way I can use vars and functions I have in AS3 in the flex objects
Is there a tutorial that can explain it to me?
Now im loading an xml file in flex in an as3 class:
ActionScript Code:
package Carga import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; { public class Carga { public function Carga() { var myXML:XML = new XML(); var XML_URL:String = "datos/objeto.xml"; var myXMLURL:URLRequest = new URLRequest(XML_URL); var myLoader:URLLoader = new URLLoader(myXMLURL); myLoader.addEventListener("complete", xmlLoaded); function xmlLoaded(event:Event):void { myXML = XML(myLoader.data); trace("Data loaded."); } } } }
So, I want to use the data that I loaded in my myXML object in Flex, how do i do that? I´m so confused I got a headache!!!!
Thanks
Original post by su43berkut17