2 Replies Latest reply on Jan 16, 2008 9:54 AM by radixlab

    Sintax of contenthPath

      Hi all,
      i make a preload called preload.swf to load an external swf called splash.swf, all works ok, and this is the code:
      import mx.controls.Loader;
      import mx.controls.ProgressBar;
      my_pb.source = "my_ldr";
      var loadListener:Object = new Object();
      loadListener.progress = function(eventObj){
      my_pb.setProgress(my_ldr.bytesLoaded, my_ldr.bytesTotal);
      my_ldr.scaleContent = false;
      my_ldr.contentPath = "splash.swf";

      Now, i would need to pass, a parameter to swf that i would load, (EX splash.swf?cvc=38484)
      so in my php page i put this code:
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="791" height="780" id="videochat" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="preload.swf<? echo($variabilecookie); ?>" id="splash"/><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="preload.swf<? echo($variabilecookie); ?>" quality="high" bgcolor="#ffffff" width="791" height="780" name="splash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />

      In the preload file to load splash.swf I try to use this sintax :

      my_ldr.contentPath = "splash.swf" + "?cvc=" + cvc; where cvc is passed by php(echo <? echo($variabilecookie); ?>

      But it doesn't work. Someone can help me?
      Thank you very much