dub_beat
05-13-2008, 10:20 AM
Hi,
I'm having a weird problem trying to read embedded variables.
The parameters in my html page look like this
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="testRquest" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="testRquest.swf" /><param name="quality" value="high" /><param name="trackids" value="1,2,3,4,5,6,7,8,9,10"/><param name="bgcolor" value="#ffffff" /> <embed src="testRquest.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testRquest" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
I want to be able to read the parameter value of "trackids"
The code that I'm using to try and do this is as follows but when I run it the text field that should hold the parameter displays nothing?
var paramObj = LoaderInfo(this.root.loaderInfo).parameters;
test.text=paramObj.trackids;
As far I know this is how you read embedded variables. Can anyone see why I cant get at my variables?
I'm having a weird problem trying to read embedded variables.
The parameters in my html page look like this
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="testRquest" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="testRquest.swf" /><param name="quality" value="high" /><param name="trackids" value="1,2,3,4,5,6,7,8,9,10"/><param name="bgcolor" value="#ffffff" /> <embed src="testRquest.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testRquest" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
I want to be able to read the parameter value of "trackids"
The code that I'm using to try and do this is as follows but when I run it the text field that should hold the parameter displays nothing?
var paramObj = LoaderInfo(this.root.loaderInfo).parameters;
test.text=paramObj.trackids;
As far I know this is how you read embedded variables. Can anyone see why I cant get at my variables?