I am trying to figure out how to load variables into flash via the URL. For example in ASP you can add text to the URL and display it in a specified location... I would like to send text to flash player by entering something like www.lamiaborn.co.uk/flash.swf?text=lamia+born+is+here.. Any ideas?
can be done.
you can get the url as a property, then strip the url until the "?" appears using indexOf, and split the remaining substring into vars. i'm home right now, but i'll post you the code in an hour or so..
myURL = this._url;
myPos = myURL.lastIndexOf("?");
vars = myURL.substring(myPos+1, myURL.length);
// this returns the querystring elements - you can now split these using split
this is not the most reliable method, and i wouldn't recommend using it for more than passing an id or something else very short. Complete texts might give problems in some cases.
So, rather then passing the complete texts, pass a code to your swf so it knows which text to load, and then load it from inside your movie with a loadVars
succes
tost