On Mon, Jan 20, 2003 at 12:42:00PM +1100, Craig Riley wrote:

> I'm using the new FlashVars parameter but I am having difficulty loading 
> the data into flash, for some reason I can find lots of data on passing 
> variables to flash using this new parameter but absolutely didley on how to 
> access it in flash!
> 
> All I want to do is pas a yes or no using flashvars and then access that 
> data in flash?

Firstly, do you have the FlashVars being set in both the <OBJECT> Param and
the <EMBED> areas?

ie: 
<object classid=xxxx id="your_swf" etc > 
<PARAM NAME=FlashVars Value="aa=1&bb=2&cc=HelloWorld">
        <embed src="your_swf" FlashVars="aa=1&bb=2&cc=HelloWorld" etc>

If that's the case, then you should be able to use the variables
directly in Flash

eg:  _root.my_object.text = cc ;
     _root.my_val = aa;

Caveats: you have to be careful with variable names. Start with letters,
etc etc. Also make sure there are no spaces in the data being passed to
the variable. All non alphanumerics need to be in hex (Hello%20World).

Note: I've been playing with Flash for maybe a week now, so I'm by no
means an expert, just someone who tripped up on this problem too.

Cheers

Paul Haddon
Technical Services Manager
Formstar Print Technologies


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to