RSS
Home General Trying to get variables into flash from the browser!
formats

Trying to get variables into flash from the browser!

Published on November 2, 2009 by in General

Ever wondered how to get variables from an html page to a flash element?

Well, it’s quite easy using the following actionscript 2 example:

I use javascript to embed my flash elements:

<embed src=”somefilename.swf?varname=varvalue&vartwo=var2value” width=”550″ height=”400″></embed>

Now in Flash I can just call:

_root.varname and it will give us `varvalue`
_root.vartwo will give us `var2value`

Wasn’t that easy?

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
© Copyright © 2016 · Web Development London UK · All rights reserved
By using the site and/or making use of any of our services you agree to our Terms and Conditions