Jump to content

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"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.