Results 1 to 4 of 4

Thread: Flash Components

  1. #1
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default Flash Components

    Hello,
    I recently saw a flash page that had the folowing:
    A mini pop-up window embeded in flash;
    A menu-bar that acted like a drop down menu;
    When you right-clicked a custom made menu came up;
    I tried each of these in flash 8 pro, using the window component,
    the "menu" component, and using some action script for the right click script.
    None of the stuff worked... so thats when I wrote this post.
    How can I do this?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #2
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    it might help if you posted wherever you saw these things. they might/might not be instances of flash components.

  3. #3
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    1) pop up windows are fun in Flash, when not used as a "real" pop up. Like in the example of the link you gave it is neat, fun part of the "game." Not an annoying "click Britney's boobs and win an Ipod" pop up. Here is the best way to make a pop up:

    step 1: make your pop up on the stage, how you want it to look, include the buttons, animations, whatever. Then convert the whole thing to a Movie Clip, export for action script the whole 9. In your MC, make frame 1 of ALL layers blank. This is important for later. put stop(); codes on each frame

    step2: delete it from your stage. (Don't worry it is in your library).

    step3: on your stage you should have a button or MC that is clickable to bring up the pop up window. On this button put this AS:

    Code:
    on (press) {
    	_root.popUp.gotoAndStop("2");
    }
    Where "popUp" is the name you gave your popUp MC and "2" is the first frame that is not blank.

    Now on your popUp MC add this:

    Code:
    on(press){
    	gotoAndStop("1");
    }
    This is why we left the frame 1 blank. Now it is "invisible"

    There are other options, tweaks, etc. but this is the basics.

    2) For the right click thing, that is simple. It is called a context menu. You just need to add the new context menu options to the first frame of your movie:

    Code:
    /*********/
    var my_cm:ContextMenu = new ContextMenu();
    my_cm.builtInItems.quality = true;
    my_cm.builtInItems.print = false;
    my_cm.builtInItems.save = false;
    my_cm.builtInItems.zoom = false;
    my_cm.builtInItems.play = false;
    my_cm.builtInItems.loop = false;
    my_cm.builtInItems.rewind = false;
    my_cm.builtInItems.forward_back = false;
    my_cm.builtInItems.print = false;
    this.menu = my_cm;
    /***********/
    False means it won't show on the menu that appears on right-click, true means it will. The "settings" and "about" can not be removed so that is why they aren't there. Simple as that.


    3) The menu bar is similar to the popup thing. It is all MCs. Make your menu look how you want. add frames to show the "drop down" potion, tween if you want, add AS to tell it which frame of the MC to go to on click, or on release, or on RollOut, or how ever you see fit.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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