Results 1 to 4 of 4

Thread: No right click menu

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

    Question No right click menu

    Hi,
    I was wondering how some websites did it.
    When You right-click on a flash doc in a website, a menu comes up saying:
    Settings
    About Macromedia Flash Player

    Whenever I Publish a flash doc, All these Zoom In and Zoom Out tools... Plus many more. How Do I get my document to only display those two selections.

    P.S. I am also runing Flash 8 Pro (The latest)
    -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
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Make a new context menu. Depending on your set up you may have to call it twice, or more (one for each scene/movie/load() etc.)

    But basically just add this to the first frame of the first scene:

    Code:
    /*********/
    var my_cm:ContextMenu = new ContextMenu();
    my_cm.builtInItems.quality = false;
    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;
    /***********/
    Change the "false" to "true" for anything you want to show.
    {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

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

    Default

    It works :-)

    Thank You,
    -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

    Welcome. Note that in Flash you can NOT remove the "settings" or the "about" from the menu (which is why you see them in the examples in your first post )
    {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
  •