1 Reply Latest reply on Jun 22, 2006 8:54 AM by kglad

    referencing a button on frame 2

    Cdndesign
      Hi, here's the problem I have been struggling with.

      In a frame on the main stage I have some actionscript that starts off
      _root.submenu.btn1.onRelease = function() {
      infoField._visible = true;
      startLoading("picture.jpg");
      };
      the rest of the script on this frame is the function.
      I discovered that the script I have is fine as long as btn1 in the mc submenu is on frame 1.
      I *really* need the button to be on frame 2.
      How can I target this button?
      I have tried things like _root.submenu("frame 2").btn1.onRelease = function() {
      and _root.submenu("label name").btn1.onRelease = function() {

      I don't know how to get the script to acknowledge the button.
      The only work around I have found is to have the button exist on frame 1 of submenu and just use actionscript to make the button visible or not visible.....I would like to avoid this if I can as it increases a lot of actionscriopting....
      Thanks