Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get at param variables 1

Status
Not open for further replies.

Roaders

Programmer
Aug 5, 2001
38
GB
Hi

Am a newbie to this. I am passing a varaible server name in my webpage to my flash movie like this:

<param name=&quot;serverName&quot; value=&quot;#cgi.SERVER_NAME#&quot;>

so how do I get to it in my Flash movie?

One other question, how do I refresh my webpage so that it re-loads my movie instead of having to delete all offline content all of the time?

THanks

Giles Giles Roadnight
messenger: giles_roadnight@hotmail.com
ICQ: 81621370
 
I don't know how you receive a variable sent like that, but i can tell you how i set variables in the HTML file and how they are used in Flash.

here is the movie parameter and you add a url like this:

<PARAM NAME=movie VALUE=&quot;film.swf?gameURL=http://www.someserver.com/servlet/gameServlet&errorURL=http://www.someserver.com/errPage.html&quot;>

in the code i added two variables : gameURL and errorURL.
it's not necessary to call them like that (i mean to add URL) but it helps me remember what they are for.
Careful: the string between quotations &quot;&quot; is without space.

Ok, now in Flash you declare in the first frame of the movie the above defined variables like this:

var gameURL;
var errorURL;

and that's all. now you use them like that. For example :

getURL(errorURL,&quot;_blank&quot;);

hope it helps.

Diana.
diana@cyberslotz.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top