Link to home
Start Free TrialLog in
Avatar of Demon70
Demon70

asked on

Get Variables through flash name

Hello,

I need to get variables from Hmtl file.

I use the next method:
<PARAM NAME=movie VALUE="300x250.swf?url=test">

but cannot get it variable (url) in flash!!!

Maybe I can import it, "LoadVariables"?

Thanks...........Alex
Avatar of sicknote
sicknote
Flag of United Kingdom of Great Britain and Northern Ireland image

That syntax should work as you have it. in the main timeline, add a trace(url); and see what happens.

I've used that querystring type syntax for ages.

What version of flash are you exporting to?

Sicknote
That trace wont work sorry, as you would need the flash in a browser, where the trace command would do nothing. Add a dynamic text box on the main timeline, with the variable name set as url, then pass the url into the flash as you have done. I've just tried this and it works well.

Sicknote
Avatar of Demon70
Demon70

ASKER

I use 5 version.

When I insert trace(url); , I don't get any results,  window "Output" was blank. It's because I've ran script at the Macromedia Flash and can't to declare this var "url".

I've made html file and at once set my test variables info (just textfield) this value url: _root.info=url, and it's field was blank again. :/

In the html file I written file.swf?url=testname

Avatar of Demon70

ASKER

Ok,

I did it, but not successfully :/

But I note, what it work at the NN and don't work at the IE!!!
make sure you pass the "url=test" into the embed tag (for NN) and the param tag (for IE).

Sicknote
Avatar of Demon70

ASKER

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=300 HEIGHT=250>
 <PARAM NAME=movie VALUE="300x250.swf?url=http://www.yahoo.com"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#33FFFF>
 <EMBED src="300x250.swf?url=http://www.yahoo.com" quality=high bgcolor=#33FFFF  WIDTH=300 HEIGHT=250 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

In our office some computers with IE show right this test file, but some (my too) not. All we have Flash Player for IE 6 version.

ASKER CERTIFIED SOLUTION
Avatar of sicknote
sicknote
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Demon70

ASKER

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=300 HEIGHT=250>
 <PARAM NAME=movie VALUE="300x250.swf?url=http://www.yahoo.com"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#33FFFF>
 <EMBED src="300x250.swf?url=http://www.yahoo.com" quality=high bgcolor=#33FFFF  WIDTH=300 HEIGHT=250 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

In our office some computers with IE show right this test file, but some (my too) not. All we have Flash Player for IE 6 version.