Passing parameter from HTML
i know how pass parameter html variable in action script. can point me example shows how this?
bob
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);
}
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
Post a Comment