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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Values from HTML to Flash

Status
Not open for further replies.

Legolas7

Programmer
Mar 17, 2002
9
DE
Hello,

I want to import values from HTML in Flash like this:
<PARAM NAME=movie VALUE=&quot;house.swf?frontdoor=red&backdoor=blue&quot;>

this line shall change the values of variables in the Flash file
frontdoor=red
backdoor=blue
But when i do such way nothing happens. (I read from this method on Anyone can help me?

PS: I dont wanna use Javascript...
 
method is fine maybe you are just trying to access the variables before they are loaded

try this

frame 2
if(frontdoor==undefined){
gotoAndPlay(1);}

//stick a text box on the stage with variable name frontdoor and red ought to appear.
 
Thanks,

fine idea but when i write this code in Flash the internet explorer locks up! It is obviously an endless loop. So im doing it for now with javascript, although i don't like to use it.
 
movie value, remember, must be only one word

didnt spot that error before


it loops because the variable never loads.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top