hi i am passing a variable into an swf using the addVariable seen below
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("ticker.swf", "background", "293", "107", "8", "#000000");
so.addParam("menu", "false");
so.addParam("wmode", "transparent");
so.addVariable("percentage", "50");
so.write("flashcontent");
// ]]>
</script>
my action script is
import fl.transitions.*;
import fl.transitions.easing.*;
var Trotation:uint;
var percentage;
if(percentage != "" && percentage != null){
Trotation = percentage;
}
tracer.text = String(percentage);
var myTweenRotation:Tween = new Tween(ticker, "rotation", Strong.easeOut, 0, Trotation, 3, true);
var myTweenRotation2:Tween = new Tween(tickMask, "rotation", Strong.easeOut, 0, Trotation, 3.2, true);
i continually get undefined when i view the html page, any help would be great thanks