Question:

Am I using FlashVars correctly?

by  |  earlier

0 LIKES UnLike

Hi, I'm using flashvars for the first time and what i've done isn't working. There is a link on my animation which is supposed to change it's text and location every 5 seconds but instead it always says "undefined" Can anyone point me in the right direction? Here's what I have so far:

HTML:

<object

type="application/x-shockwave-flash" data="http://www.staticfire.co.uk/sftv.s...

width="276" height="182">

<param name="movie" value="http://www.staticfire.co.uk/sftv.... />

<param name="quality" value="high" />

<param name="bgcolor" value="#000000" />

<param name="FlashVars" value="game1=title1" />

<param name="FlashVars" value="game2=title2" />

<param name="FlashVars" value="game3=title3" />

<param name="FlashVars" value="gameid1=id1" />

<param name="FlashVars" value="gameid2=id2" />

<param name="FlashVars" value="gameid3=id3" />

</object>

Actionscript:

var glformat:TextFormat = new TextFormat();

var storeNumber:Number = 1;

var url:String = "http://www.staticfire.co.uk/index.php?p...

var seekInterval = setInterval(update, 5000);

function update(){

storeNumber ;

game = global["game" storeNumber];

gameurl = url global["gameid" storeNumber];

}

glformat.align = "center";

glformat.color = 0xFF0000;

glformat.url = gameurl;

this.createTextField("gamelink",1,27,1...

gamelink.multiline = true;

gamelink.wordWrap = true;

gamelink.border = false;

gamelink.html = true;

gamelink.text = game;

gamelink.setTextFormat(glformat);

 Tags:

   Report

1 ANSWERS


  1. Can&#039;t see the full code you stated up there, but I&#039;m quite certain you missed this line

    &lt;param name=&quot;allowscripting&quot; value=&quot;always&quot;&gt;

    For more info about flash param, please see this link

    http://kb.adobe.com/selfservice/viewCont...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions