PDA

Click to See Complete Forum and Search --> : Flash OCX setVariable trouble


Sally_OReilly
Jan 9th, 2001, 05:01 PM
i can getVariable no problem. the problem comes when i try to change a variable that's in the swf already.

the doc here http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html says the syntax is SetVariable(variableName, value)

i have a flash object titled fla_01

so how come when i do fla_01.SetVariable("bubba", "test) VB tells me that it expects an = ??

so i tried fla_01.SetVariable("bubba") = "test"

and it says that the arguments are not optional. i'm tired, and i have no idea.

any help would be great.

-SallyO

Sally_OReilly
Jan 17th, 2001, 10:14 AM
found it........

you don't use the prenthesis at all and it works fine.