1 Reply Latest reply on Dec 19, 2010 4:49 AM by Ned Murphy

    Button code doesn't work.

    learner_7n Level 1


      I have a Rectangle Box called (Panel1_mc). And inside it there is a button called (BoardMessage1_btn). When I click on this button, the Rectange Panel should move upwards. Right now the rectangle box is at the bottom of the page. The following code throws an 1010 error:


      Panel1_mc.BoardMessage1_btn.addEventListener(Mouse Event.CLICK, clickSection);
      function clickSection(evtObj:MouseEvent){
      var Panel1Tween:TweenMax = new TweenMax(Panel1_mc, 6, {y:450, delay:1, ease:Strong.easeOut});


      What is wrong with this code? Please help. Using Flash CS4 AS3.