[thelist] Dynamic Flash

Diane Soini dianesoini at earthlink.net
Mon May 17 21:03:56 CDT 2004


On Monday, May 17, 2004, at 02:08 PM, thelist-request at lists.evolt.org 
wrote:
>
> Here's the question:
>
> Is it possible to put the affiliate number in the code used to place 
> it on the affiliate's page, and have that number used in the flash 
> itself? Like feeding parameters to a script?
>

Short answer is yes.

You can append a query string to the param tag like so:
<param name="movie" value="flashmovie.swf?param1=value1&param2=value2">
and the embed tag similarly as well.

In your flash file itself, these become:
_root.param1
_root.param2

And if you have textfields on the root timeline with those as var names 
(not instance names), they will be filled with value1 and value2 
automatically. To fill the textfields if they have instance names 
instead, you use:
myinstancename_txt.text = _root.param1

Diane

> Cheers,
> Drew.
***
Don't be afraid to try something new. An amateur built the ark. 
Professionals built the Titanic. -unknown



More information about the thelist mailing list