1 Reply Latest reply on Jul 24, 2006 5:14 AM by jitendramr

    accessing  variables from one layer.

    neha_1808 Level 1
      Hi all,
      I am new to falsh so please help. I have defined some variable at one layer say click origin and destination and i want to access that varibale on click event of a button.
      how to access that variable on another layer.

      Thanks in advance.
        • 1. Re: accessing  variables from one layer.
          hi neha...this is jitendra again

          if the button and var are inside same movieclip or root (no matter if they are in different layers) than u can write this

          Style 1 (Preferred if you are wrking in Flash 9, 8, 7 or 6)
          on a layer

          Style 2 (Pref for Flash 5 and 4)
          Instaed of Layer, u can write on the button instance