Copy link to clipboard
Copied
Hi,
i'm passing parameters from html to swf. that is working to direct swf file.
But not working to an external swf file.
Is this way write ?
testparamters.fla code:
var Player:String = "videoplayer.swf";
var pLoader:Loader = new Loader();
var pRequest:URLRequest = new URLRequest(Player);
pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
pLoader.load(pRequest);
function onCompleteHandler(e:Event):void
{
addChild(pLoader);
}
Html page:
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="testparamters" align="middle">
<param name="movie" value="testparamters.swf?appname=folder&stream=123456" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</object>
</div>
</body>
Copy link to clipboard
Copied
you can only pass flashvars to the embedded swf. the embedded (main) swf can then pass those parameters (or make them accessible) to any loaded swf.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now