[flexcoders] Controlling embedded swf
Hi there, i'm inserting a swf file in the mxml file using mx:Image source=@Embed('map.swf') / i have a method inside he map.swf file function setlocation(x,y){ latitude=x; longitude=y; } i want to invoke this function from the mxml file and pass parameters for this function... please someone help on this thanks... bye... Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Help on how to create a object out of an XML
hello there, i have created a webservice in asp.net that retrives data from a xml file and the output of the function is a xml document file... i wanted to create an object out of this xml document i retrive and i am not able to do so. any body please advice on how to proceed below is my code === ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* initialize=initializes() mx:WebService wsdl=http://localhost/WebService1/Service1.asmx?WSDL; id=webservice1 mx:operation name=getDocument mx:request format=object/mx:request /mx:operation /mx:WebService mx:XML id=xml1 {webservice1.getDocument.result} /mx:XML mx:Model id=model1 {xml1} /mx:Model mx:Script ![CDATA[ function initializes(){ webservice1.getDocument.send(); } ]] /mx:Script mx:TextInput width=400 height=100 text={model1.APN.DateTime}/ /mx:Application Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Converting string to xml in a model
Hello there, ive created a WebService in asp.net that contains a webmethod to read an xml file return as a string in Flex ive added the webservice. i wanted to convert the output string from the webservice to a xml when i used mx:WebService wsdl=http://localhost/WebService1/Service1.asmx?WSDL; id=webservice1 mx:operation name=getDocument mx:request/mx:request /mx:operation /mx:WebService mx:Model id=myData {webservice1.getDocument.result} /mx:Model mx:XML id=myXml {Convert2XML()} /mx:XML mx:Script ![CDATA[ function initialize_page(){ webservice1.getDocument.send(); my_xml=webservice1.getDocument.result; } function Convert2XML():XML{ var out_xml=new XML(); var out_xml.parseXml(webservice1.getDocument.result); return (out_xml) } ]] /mx:Script in flash the similar code returns me an XML object but in flex i'm not able to convert the string to the xml object please someone help me on this bye Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/