2 Replies Latest reply on Apr 18, 2006 9:30 AM by Newsgroup_User

    manipulating attached MCs

    Level 7
      Hi all,

      When I attach a movieClip when a button is clicked (using attachMovie), can
      I then give commands to that attached MC?

      This is the code I'm using (which doesn't work):

      button1.onRelease = function() {
      _root.attachMovie("ball", "ball1", _root.getNextHighestDepth(), {_x:100,

      ball1.onPress = function() {
      trace("it worked");

      The movie attaches okay, but then will not respond to the onPress command.

      Thanks in advance.