var myName = "chris";
// initial the object - must have a value
var flashvars = {userName: null};
flashvars.userName = myName;
// or like this
> var flashvars = {}; // object has no prop
flashvars.userName = myName; // create a prop userName assign it a value
//userName is Chris
console.info(flashvars);
----
var myName = 'sammo', sammo = 'Sam Sherlock';
var flashvars2 = {userName: eval(myName)};
//userName is Sam Sherlock
console.info(flashvars2);
- S
On 18 August 2010 15:41, chris <[email protected]> wrote:
> // pre-defined variable
> var myName = "chris";
>
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.