Hi,

 I am newbee to flex. I need to use a flash .swf file into flex
application. Below is the HTML code. it is working fine.

<script type="text/javascript" src="js/swfobject.js"></script>
<script language="javascript"  type="text/javascript">
var so = new SWFObject( "1296/folio.swf", "mymovie");
so.useExpressInstall("expressinstall.swf");
so.addParam("quality", "high");
so.addParam("salign", "t");
so.addVariable("datapath", "1296/data.xml" );
so.write("flashcontent");
</script>

<table width="600" border="0" align="center" bgcolor="ffffff">
<tr>
<td id="flashcontent">
</td>
</tr>
</table>

I want to use in my Flex application. My code is like this. But it is
not working.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="test()">
<mx:Script>
        <![CDATA[
                private function test():void{

                loader1.source="/cf/1296/folio.swf?datapath=/cf/1296/
data.xml";
                }
        ]]>
</mx:Script>
        <mx:SWFLoader id="loader1"  />
</mx:Application>

Please help me

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to