FlashVars problem

  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

Hi

FlashVars doesnt seem to want to work
I have a series of movieclips on one frame (same layer) with actionscript similar to:
Code: [ Select ]
 
onClipEvent (load) {
   if(xpos == undefined){
     var xpos = 255;
    } else {
        var xpos = xpos;
    }
}
onClipEvent (enterFrame) {        
#include "lmc_tween.as"
red._x = xpos;
///http://laco.wz.cz/tween/?page=download
this.onRollOver = function() {
        _root.red.tween("_x",this._x,0.7,"easeOutElastic");
 
     }
    this.onRollOut = function() {
        _root.red.tween("_x",xpos,0.7,"easeOutElastic");
 
    }
}
 
  1.  
  2. onClipEvent (load) {
  3.    if(xpos == undefined){
  4.      var xpos = 255;
  5.     } else {
  6.         var xpos = xpos;
  7.     }
  8. }
  9. onClipEvent (enterFrame) {        
  10. #include "lmc_tween.as"
  11. red._x = xpos;
  12. ///http://laco.wz.cz/tween/?page=download
  13. this.onRollOver = function() {
  14.         _root.red.tween("_x",this._x,0.7,"easeOutElastic");
  15.  
  16.      }
  17.     this.onRollOut = function() {
  18.         _root.red.tween("_x",xpos,0.7,"easeOutElastic");
  19.  
  20.     }
  21. }
  22.  

In my HTML i have the following:
Code: [ Select ]
 
<? $xpos = 365; ?>
<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="665" height="40" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="t1.swf?xpos=<?= $xpos; ?>&amp;var=<?= rand(1111,9999); ?>" />
<param name="quality" value="high" />
<param name="FlashVars" value="xpos=<?= $xpos; ?>" />
<param name="bgcolor" value="#ffffff" /><embed FlashVars="xpos=<?= $xpos; ?>" src="t1.swf?xpos=<?= $xpos; ?>&var=<?= rand(1111,9999); ?>" quality="high" bgcolor="#ffffff" width="665" height="40" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
 
  1.  
  2. <? $xpos = 365; ?>
  3. <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="665" height="40" align="middle">
  4. <param name="allowScriptAccess" value="sameDomain" />
  5. <param name="movie" value="t1.swf?xpos=<?= $xpos; ?>&amp;var=<?= rand(1111,9999); ?>" />
  6. <param name="quality" value="high" />
  7. <param name="FlashVars" value="xpos=<?= $xpos; ?>" />
  8. <param name="bgcolor" value="#ffffff" /><embed FlashVars="xpos=<?= $xpos; ?>" src="t1.swf?xpos=<?= $xpos; ?>&var=<?= rand(1111,9999); ?>" quality="high" bgcolor="#ffffff" width="665" height="40" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  9. </object>
  10.  

"xpos" doesnt change to 365, for example.
Any ideas?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.