1 Reply Latest reply on Nov 1, 2006 1:10 PM by kglad

    Accessing variable in actions script from within event handler

    flashgruven
      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
        • 1. Re: Accessing variable in actions script from within event handler
          kglad Adobe Community Professional & MVP
          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.