Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

passing parameters of an external swf

Engaged ,
Oct 23, 2012 Oct 23, 2012

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>


TOPICS
ActionScript
683
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2012 Oct 23, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines