Jump to content

Passing variables to Flash CS4


Garethp

Recommended Posts

Ok, so I've looked at many tutorials, but none of them work for some reason. They all say to just append ?varname=varvalue to the end of the .swf, and it would work, but it does not. I've attached the .fla when I go to my browser and type Text.swf?movie=Test it doesn't work properly. If you could please help, that would be awesome. My actionscript is as follows

 

var movie;

//movie = "Hey";

InputThing.text = movie;

 

I put the //movie = "Hey"; in to make sure taht InputThing.text = movie was working, and when I uncommented the code, it did work. Help is majorly appreciated

 

- Gareth

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/179800-passing-variables-to-flash-cs4/
Share on other sites

you need to use flashvars to pass the movie variables...

 

http://kb2.adobe.com/cps/164/tn_16417.html

 

in AS2 the variables are accessible in the root scope. in AS3 you need to use the "root.loaderInfo.parameters.myVariableName"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.