6 Replies Latest reply on Jul 18, 2012 3:39 PM by kglad

    How do you access a child element in Actionscript 2?

    piggysmile

      I have the following Flash structure.

       

      Main Timeline

      ---test_menu (Movie Clip)

      ------test_menu_sub (Movie Clip)

      ---------submenu_item (Button)

       

      On Main Timeline (2nd frame), I added this code:

       

       

      test_menu.test_menu_sub.submenu_item.onPress = function () {

            trace("clicked");

      }

       

       

      However, this doesn't work. Please see the following files for reference. Any help will be appreciated.