GetVarialbe(); SetVariable(); not working as expected?


hello, i'm trying understand how getvariable() , setvariable() work.

i've written following actionscript code in actions frame of top layer in .fla:

testvar = "test1";
getvar = getvariable("testvar");
setvariable("testvar", "test2");
getvar2 = getvariable("testvar");

when walk through code in debugger, don't see expected behavior:
getvar - remains undefined
testvar - not assigned "test2" thought calling setvariable()
getvar2 - remains undefined.

i'm guessing has variable scoping or that, i'm not sure what.

any help?

thanks in advance.

there no such methods available.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO