2 Replies Latest reply on Mar 1, 2010 8:06 AM by Deaf Mike

    Actions not occurring - can's figure out

    Deaf Mike Level 1

      http://prosol1.com/mw_images/pscflash.zip

       

      Hi - here is a FLA file that's quite large (6 MB).  There are 4 bubbles on the stage - top row is portfolio and home; bottom row is solutions and contact.

       

      When you click on either portfolio or home bubbles, the arm grabs the bubbles like they should.  But when you click on either solutions or contact, the arm will not grab them.

       

      Can someone help me figure out why?

        • 1. Re: Actions not occurring - can's figure out
          waterdad568 Level 3

          Its unlikely anyone will dl your file, especially that size, however if a couple buttons work and the others don't, than it is most likely an eventListener/function/syntax error, or possibly an instance name case error. Compare the actionscript event handlers and associated functions of the ones that work with the ones that don't, most likely a simple syntax error. Check case on all your instance names. If you get compiler errors when publishing, that should also help lead you to the problem. You can also select Permit Debugging in your Flash publish settings or you could also try Monster Debugger:

           

          http://demonsterdebugger.com/

          • 2. Re: Actions not occurring - can's figure out
            Deaf Mike Level 1

            OK, I misspoke.  There are no errors.  when you click on solutions and contact, the output tab displays the

            word solutions and contact, but no movie clip actually plays like it should.  only when you click on the home or portfolio buttons will the words display in the output tab, and the movie clips actually play too.

             

            the code seems to be correct as well for all 4 clips.  i'm pasting it here

             

            stop();

             

            function initializeAnim():void
            {
                home_anim_mc.gotoAndStop("anim_end");
                portfolio_anim_mc.gotoAndStop("anim.start");
                solutions_anim_mc.gotoAndStop("anim.end");
                contact_anim_mc.gotoAndStop("anim.end");
                home_float_mc.visible=false;
                homepage.visible=true;
                portfoliopage.visible=false;
                home.visible=false;
                feedbackform.visible=false;
                //playcursor.visible=false;
            }

             

            initializeAnim();

             


            portfolio.addEventListener(MouseEvent.MOUSE_DOWN,pickUp);
            home.addEventListener(MouseEvent.MOUSE_DOWN,pickUp);
            solutions.addEventListener(MouseEvent.MOUSE_DOWN,pickUp);
            contact.addEventListener(MouseEvent.MOUSE_DOWN,pickUp);
            feedback.addEventListener(MouseEvent.MOUSE_DOWN,feedbackEvent);
            //player.addEventListener(MouseEvent.MOUSE_DOWN,playerEvent);

             


            function feedbackEvent(event:MouseEvent):void
            {
                feedbackform.visible=true;
            }

             

            /*
            function playerEvent(event:MouseEvent):void
            {
                playcursor.visible=true;
            }
            */

             

            function pickUp(event:MouseEvent):void
            {
                var targetbtnName:String;
                var targetMCName:String;
               
                targetbtnName = event.target.name;
                this[targetbtnName + "_anim" + "_mc"].gotoAndPlay("anim_start");
                this[targetbtnName + "_float" + "_mc"].visible=true;
                this[event.target.name].visible=false;
                trace(targetbtnName);
            }