I want to pass some image names and numbers as string to my flash, so in html file I have :
src="imgvid-00.swf?imageData=image00/00.gif,3,image00/01.gif,6,image00/02.gif,10"
in flash swf I have a class like this:
package src{
import flash.display.*;
import flash....
public class imgvid extends MovieClip {
public var dataBANK:Array = new Array();
public function imgvid():void {
//put all var in Array dataBANK
}
}
}
How I do this?
I try :
public var paramObj = this.loaderInfo.parameters;
but that does not work …
You need to pass paramters in as flashvars. query parameters are not passed into flash in the way you have in your example. Read up about flashvars here:
http://kb2.adobe.com/cps/164/tn_16417.html
using swf object to do all this makes it easier than doing it manually as above
http://code.google.com/p/swfobject/