0 Replies Latest reply on Mar 2, 2010 12:53 AM by chintal.bade

    problem using swf loader

    chintal.bade Level 1

      When i try to run the mxml individually, It run correctly. As soon as i include it in another mxml using SWFLoader , the components stop working properly. It reflects the data sometime while sometime it doesnt. If i press browser refresh button , the components starts working

      again.

       

      here is the code snippet for the mxml where i load another swf file using swf loader.

       

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"

      xmlns:views="com.views.*" viewSourceURL="srcview/index.html" styleName="AppBack" height="100%" width="100%" initialize="init()" layout="vertical">

      <mx:Style source="assets/css/Main.css" />

       

           <mx:TabNavigator id="tn" height="100%" width="100%" top="-1" right="0" left="0" paddingTop="0" >

           <mx:Canvas label="Home" paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0">

               <mx:SWFLoader id="loader0" source="AddDeleteAccess.swf" height="100%" width="100%" x="0" y="-15"/>

           </mx:Canvas>

           </mx:TabNavigator>

      </mx:Application>

       

      The Home.swf contains a conbo box and a datagrid.

       

      The combo box stops working sometime and after the browser refresh is click it starts working.

       

      if required i can also paste the code of the file which is being loaded.