Hi All, I am unable to send the text from flex to flash(swf file). This is my Main Application --------------------------- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.managers.PopUpManager;
[Bindable] public var strName:String; public var strText:String; private function fnClick():void { PopUpManager.createPopUp(this,frmWindow,true); strName = txtEnter.text; strText = txtMatter.text; } ]]> </mx:Script> <mx:Button x="419" y="363" label="Submit" click="fnClick()"/> <mx:TextInput x="372" y="244" id="txtEnter"/> <mx:Label x="286" y="247" text="Enter Title" width="70"/> <mx:Label x="286" y="292" text="Enter Matter"/> <mx:TextArea x="372" y="291" id="txtMatter"/> </mx:Application> when i click on submit button Title Window will open with the Tile lable and which includes the SWF file. This is my Title Window ------------------------ <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="696" height="452" creationComplete="fnInit()" close="PopUpManager.removePopUp(this)" showCloseButton="true" title="My Window"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.core.Application; import mx.managers.PopUpManager; [Bindable] public var myFlashChild:MovieClip; private function fnInit():void { var flashText:String; PopUpManager.centerPopUp(this); lblText.text=Application.application.strName; myFlashChild=myswfFile.content as MovieClip; flashText=Application.application.strText; myFlashChild.setTextFromFlex(flashText); } ]]> </mx:Script> <mx:SWFLoader x="10" y="52" width="656" height="350" id="myswfFile" source="assets/Untitled-1.swf"/> <mx:Label x="244" y="18" width="216" fontWeight="bold" id="lblText"/> </mx:TitleWindow> Here i am calling the setTextFromFlex() function in .fla file like this function setTextFromFlex(myString:String):Void { txtName.text=myString; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---