5 Replies Latest reply: Aug 12, 2012 9:41 AM by mrIchybob RSS

    Creating a button within a movie clip for ipad

    mrIchybob Community Member

      I'm trying to create a button within a movie clip for an ipad app. (a next button for a slideshow, the slideshow page is a movie clip.
      This is the code I tried. Button=nextbutton, movie clip= artworkmovie. I just want the button to advance the movie clip one frame.



      nextbutton.addEventListener(MouseEvent.CLICK, nextClickHandler);



                          function nextClickHandler(event:MouseEvent):void





      This works fine from the stage, but if I have the button "next" within the movie "artworkmovie" I get the error "Line19 1120 Access of undefined property nextbutton". (Line19 is "nextbutton.addEventListener(MouseEvent.CLICK, nextClickHandler);") How can I create a path to the button? I tried artworkmovie.nextbutton and that didn't work.


      Sorry for such a basic question and thanks for your help.