A Flash Developer Resource Site

Results 1 to 20 of 47

Thread: Drop Down Menu Coding

Threaded View

  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Florida
    Posts
    60

    Drop Down Menu Coding

    Ok Im just a little confused on what to do. In my menu I have 2 drop downs. each one is a separate Movie Clip and inside that Movie Clip they have other buttons that are separate Movie Clip. I have a class set to the buttons for a rollover action but it isn't working. How do I set actions to Movie Clips that are in other Movie Clip? Like how would I add links to them?

    Here is a copy of my AS3 Class and a copy of the drop down.

    Actionscript Code:
    package {
      import flash.events.MouseEvent;
      import flash.display.MovieClip;

      public class DropClass extends MovieClip {
        public function DropClass() {
           addEventListener(MouseEvent.MOUSE_OVER, over);
           addEventListener(MouseEvent.MOUSE_OUT, out);
        }

        private function over(event:MouseEvent):void {
            gotoAndPlay(2);
        }
       
        private function out(event:MouseEvent):void {
            gotoAndPlay(7);
        }
      }
    }

    Thanks Chris
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center