Can i use filename.swf?122 instead of filename.swf?file=122 and somehow program actionscript to “listen” for external variables and if it detects one is automatically the value of “file”?
And is it also possible to use something like filename.swf?122&33&44
And again use AS to “listen” for 3 variables values?
You can do it with some javascript, but you’d be limited to one variable if you don’t want to specify the variable name in the url. In the html file your movie sits in you need to replace the flash object definition tags with this:
the javascript captures the parameter and passes it on to the flash object. If you decided you don’t mind passing in the variable names too then you can pass as many variables as you heart desires with almost the same code:
hey I didn’t swear?! well d*mn wasn’t a swear word when I was a lad, maybe I’m gettin old…
okay the tutorial I was thinking of doesn’t exist anymore but not to worry I’ve attached an example for you to look at. Hope this helps. Unfortunatly this version won’t work if you open the page without passing in a parameter in the url