7 Replies Latest reply on Nov 15, 2010 7:02 AM by kglad

    Help easy Flash as3 question!! Thank you

    Patan77xD

      Hey I’m programing a flash page but has some problems with a function was wondering if you can write to send two stings at the same time? In my case, I would send backwardH and backwardLI have has tested all three options, but there is no error but either backwardH or backwardL movieclipet gets affected, not both at the same time though I would like both to be influenced at the same time.


      For example if I click button_1 then movieclip_1 and movieclip_2 would play

      And if I click button_2 then just movieclip_1 would play

      someone who knows how?
      thanks in advance!
      (sorry for bad English)

       

      //option1

       

      family.margeAS3.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3);

       

      function fl_MouseClickHandler_3(event:MouseEvent):void
      {
      direct = "backwardH", "backwardL" ;
      margePa.play();
      }

       

      //option2
      family.margeAS3.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3);

       

      function fl_MouseClickHandler_3(event:MouseEvent):void
      {
      direct = "backwardH" + "backwardL" ;
      margePa.play();
      }

       

       

      //option3
      family.margeAS3.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3);

       

      function fl_MouseClickHandler_3(event:MouseEvent):void
      {
      direct = "backwardH" ;
      direct = "backwardL" ;
      margePa.play();
      }

       

      Swf file 1,2mb : http://www.megaupload.com/?d=S12BFDBZ

      Fla file 3,5 mb (messy) : http://www.megaupload.com/?d=35LC6QTA