After using swfobject I thought I’d never have to pass variables to a swf thru the query string again…. oops.
Wrong…. and I had to look it up. I’m using a lightbox for a flv player and right now it looks like the easy way to make it happen is like this:
here is the lightbox call (the only relevant part of this is the ?recordID=2)
<a rel=“prettyPhoto[philosophy]” title=“Vid1” href=”/flash/XXXXXX.swf?recordID=2” rel=“prettyPhoto[philosophy]” title=“Description”></a>
here is the actionscript that gets it then assigns the piece I want:
var queryString = this.loaderInfo.parameters;
var whichVideo = queryString.recordID;
Actionscript 3 variables from a query string
Jun, 28 -- Categories: Actionscript