Set flashvars of a SWF in Flex before loadComplete

Posted by sami on Stack Overflow See other posts from Stack Overflow or by sami
Published on 2009-11-15T18:15:09Z Indexed on 2010/05/08 8:08 UTC
Read the original article Hit count: 352

Filed under:
|
|

I have a Flash applet which I want to embed in a Flex file this loads a panorama file inside a SWF player (Immervision's PurePlayer)- I am using the following code:

<mx:SWFLoader id="mapLoader" 
    width="740" 
    height="588" 
    source="../bin-debug/PurePlayer.swf?flashvars='panorama=../bin-debug/untitled.ivp'" />

The applet loads fine but it is does not execute the file...

The PurePlayer documentation uses the following var: panorama=myPano.ivp"

If I load the same SWF via a browser window it works fine with the following URL: http://localhost/pureplayer/PurePlayer.swf?panorama=untitled.ivp

© Stack Overflow or respective owner

Related posts about flash

Related posts about flex