0

How can I get swf parameters using actionscript2? like

myflash.swf?p=1

or

<param name="flashvars" value="p=1" />

Thanks.

3 Answers 3

1

If I remember correctly:

<param name="FlashVars" value="example=test"> under the other param tags, and flashvars="example=test" as extra attribute in the embed tag.

The variable will then be globally accessible in the movie.

trace(example) -> output: test

Sign up to request clarification or add additional context in comments.

Comments

0
<embed src="myApplication.swf?name1=value1&name2=value2" />

var s:String = stage.loaderInfo.parameters["name2"];

1 Comment

This is for ActionScript 3, while the question was for AS2.
0

Hey I have the answer to this. Create an intermediate webpage with the parameters you need and get the xml or html. You could write a file with an url and return the url with loadVars. But it needs sinchronization. There should be easier like url parameters or javascript.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.