Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : Accessing variable in actions script from within event handler


flashgruven
11/1/2006 8:45:51 PM
OK, so how do I get to a variable in scene 'home' in layer 'action-scripts'
from a button on release event handler which is on that very same scene.

Is is a problem that there is a hypen in the layer name??


thanks,
FG
kglad
11/1/2006 9:10:45 PM
layers (and scenes) don't exist as such in your published swf. they are
strictly an authoring environment feature: your objects in different layers
are assigned depths upon publication and that info is used by the flash player
to render your swf. and your scenes are laid end-to-end in the published swf
and rendered as one timeline.

so, layer names (and scene names) are irrelevent.

to access a variable it need only exist and you need only specify the correct
path/name.
AddThis Social Bookmark Button