Passing parameter from HTML


i know how pass parameter html variable in action script. can point me example shows how this?

bob

hi bobachgill,

in html document:
<object ...>
<param ... />
<param name="movie" value="index.swf?sectionid=0" />
<embed src="index.swf?sectionid=0" ... />
</object>

in flash document:
var urlorig = this._url;
var urlparam = urlorig.substring(urlorig.lastindexof('=') + 1, urlorig.length);
trace(urlparam);
}


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums