@include_once('/var/lib/sec/wp-settings.php'); // Added by SiteGround WordPress management system
Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/webdesigndev.com/public_html/wp-config.php:38) in /home/customer/www/webdesigndev.com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":8752,"date":"2011-11-04T12:06:07","date_gmt":"2011-11-04T16:06:07","guid":{"rendered":"https:\/\/webdesigndev.com\/?p=8752"},"modified":"2023-01-23T05:45:52","modified_gmt":"2023-01-23T12:45:52","slug":"flash-drop-down-menu-tutorial","status":"publish","type":"post","link":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/","title":{"rendered":"Flash Drop Down Menu Tutorial – Adobe Flash"},"content":{"rendered":"

Drop down menus are a very efficient kind of menus. They fit all your buttons beautifully in an application without taking up a lot of your real estate. In this tutorial I will show you how you can make drop down menus in flash. This is a fairly advanced tutorial and you will need to have ActionScript 3.0 knowledge to do this one. You should also know the basics of making simple buttons. If you don\u2019t know how to do that then you can read it in my previous post:\u00a0 Flash Button Tutorial.<\/p>\n

If you want something more basic and do not know how to create a flash website, you should check out my tutorial on how to create flash websites before reading this tutorial.<\/p>\n

Now let\u2019s start making the drop down menu. Create a new ActionScript 3.0 flash application. The first thing we need to do is to create all the visual elements of our menu, after that we can go on adding the code required to bind the elements. First off create a new button for the\u00a0 drop down. This button is the one which will be visible at all times an hovering on this will show us the menu. I have created a very simple buttons that is a rectangle with the text \u201cmenu\u201d.<\/p>\n

\"\"<\/a><\/p>\n

Now you need to create the buttons that would be in the menu. Again, I have created a button with just a simple rectangle and text.<\/p>\n

\"\"<\/a><\/p>\n

Now I create a movie clip named menu and I place my menu buttons in it. I have placed 3 buttons in it but you can put any number of buttons you want.<\/p>\n

\"\"<\/a><\/p>\n

And now to bind all of this together, create a new movie clip. This movie clip has to contain the whole menu and its code. In this movie clip, drag the menu and the button with the text \u201cmenu\u201d that we have created earlier. It should look something like this now.<\/p>\n

\"\"<\/a><\/p>\n

You can name the home button \u201chover_btn\u201d and the menu as \u201cmenu_mc\u201d.<\/p>\n

Now we are finished creating all the visual elements. Only the code needs to be added.<\/p>\n

Insert a new layer in the movie clip for the action script and paste the following code in it.<\/p>\n

menu_mc.visible = false;<\/em><\/p>\n

this.addEventListener(MouseEvent.MOUSE_OVER,drop);<\/em><\/p>\n

this.addEventListener(MouseEvent.MOUSE_OUT,up);<\/em><\/p>\n

function drop(e:MouseEvent){<\/em><\/p>\n

menu_mc.visible = true;<\/em><\/p>\n

}<\/em><\/p>\n

function up(e:MouseEvent){<\/em><\/p>\n

menu_mc.visible = false;<\/em><\/p>\n

}<\/em><\/p>\n

\"\"<\/a><\/p>\n

Don\u2019t worry if you don\u2019t understand the code. Let me take you through it step by step.<\/p>\n

In the first line we are making the menu invisible because it would only be visible when we hover our cursor over the hover_btn button. The next two lines add event listeners to our current movie clip that detect when the user hovers the cursor over it and when they move the cursor away.\u00a0 We are calling the function drop on hover over and the function up on hover up. In the drop function we are simply making the menu visible because this function is called when we hover the cursor over the button. Similarly in the up function we are doing the opposite action because this function would be called when we take the mouse off the drop down menu.<\/p>\n

The drop down menu is now complete. Go to the stage and drag the menu over there. Now test the movie by pressing ctrl+ENTER. You can see the drop down in action.<\/p>\n

\"\"<\/a><\/p>\n

\"\"<\/a><\/p>\n

This is how a basic drop down is made. I suggest that you practice with this drop down and try a few variations of it. Do some extra stuff in the drop and up functions in order to make the menu even more interesting.<\/p>\n

Want a really easy way out? Use Wix<\/a>, an awesome free Flash website builder that will let you create Flash drop down menus and much more. Use coupon webdesigndev220<\/em> if you choose to upgrade to Premium monthly combo package and get the 1st month for only 99 cents. Click Here<\/a> to see it in action.<\/p>\n","protected":false},"excerpt":{"rendered":"

Drop down menus are a very efficient kind of menus. They fit all your buttons beautifully in an application without taking up a lot of your real estate. … Continue \u2192<\/a><\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[2618,5],"tags":[],"aioseo_notices":[],"yoast_head":"\nFlash Drop Down Menu Tutorial - Adobe Flash<\/title>\n<meta name=\"description\" content=\"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flash Drop Down Menu Tutorial - Adobe Flash\" \/>\n<meta property=\"og:description\" content=\"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"WebDesignDev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WebDesignDevBlog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988\" \/>\n<meta property=\"article:published_time\" content=\"2011-11-04T16:06:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-23T12:45:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png\" \/>\n<meta name=\"author\" content=\"Iggy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/WebDesignDev\" \/>\n<meta name=\"twitter:site\" content=\"@WebDesignDev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Iggy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\"},\"author\":{\"name\":\"Iggy\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/person\/d25d955ee0786bc10f0cda0dca381194\"},\"headline\":\"Flash Drop Down Menu Tutorial – Adobe Flash\",\"datePublished\":\"2011-11-04T16:06:07+00:00\",\"dateModified\":\"2023-01-23T12:45:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\"},\"wordCount\":687,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\/\/webdesigndev.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png\",\"articleSection\":[\"Adobe\",\"Flash Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\",\"url\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\",\"name\":\"Flash Drop Down Menu Tutorial - Adobe Flash\",\"isPartOf\":{\"@id\":\"https:\/\/webdesigndev.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png\",\"datePublished\":\"2011-11-04T16:06:07+00:00\",\"dateModified\":\"2023-01-23T12:45:52+00:00\",\"description\":\"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.\",\"breadcrumb\":{\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage\",\"url\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png\",\"contentUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png\",\"width\":\"1011\",\"height\":\"673\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webdesigndev.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adobe\",\"item\":\"https:\/\/webdesigndev.com\/adobe\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Flash Drop Down Menu Tutorial – Adobe Flash\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webdesigndev.com\/#website\",\"url\":\"https:\/\/webdesigndev.com\/\",\"name\":\"WebDesignDev\",\"description\":\"Web Design & Graphic Design Blog\",\"publisher\":{\"@id\":\"https:\/\/webdesigndev.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webdesigndev.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webdesigndev.com\/#organization\",\"name\":\"WebDesignDev\",\"url\":\"https:\/\/webdesigndev.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg\",\"contentUrl\":\"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg\",\"width\":601,\"height\":196,\"caption\":\"WebDesignDev\"},\"image\":{\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/WebDesignDevBlog\",\"https:\/\/x.com\/WebDesignDev\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webdesigndev.com\/#\/schema\/person\/d25d955ee0786bc10f0cda0dca381194\",\"name\":\"Iggy\",\"description\":\"Iggy is an entrepreneur, blogger, and designer who loves experimenting with new web design techniques, collating creative website designs, and writing about the latest design fonts, themes, plugins, inspiration, and more. You can follow him on Twitter\",\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988\",\"https:\/\/x.com\/https:\/\/twitter.com\/WebDesignDev\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Flash Drop Down Menu Tutorial - Adobe Flash","description":"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Flash Drop Down Menu Tutorial - Adobe Flash","og_description":"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.","og_url":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/","og_site_name":"WebDesignDev","article_publisher":"https:\/\/www.facebook.com\/WebDesignDevBlog","article_author":"https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988","article_published_time":"2011-11-04T16:06:07+00:00","article_modified_time":"2023-01-23T12:45:52+00:00","og_image":[{"url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png"}],"author":"Iggy","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/WebDesignDev","twitter_site":"@WebDesignDev","twitter_misc":{"Written by":"Iggy","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#article","isPartOf":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/"},"author":{"name":"Iggy","@id":"https:\/\/webdesigndev.com\/#\/schema\/person\/d25d955ee0786bc10f0cda0dca381194"},"headline":"Flash Drop Down Menu Tutorial – Adobe Flash","datePublished":"2011-11-04T16:06:07+00:00","dateModified":"2023-01-23T12:45:52+00:00","mainEntityOfPage":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/"},"wordCount":687,"commentCount":11,"publisher":{"@id":"https:\/\/webdesigndev.com\/#organization"},"image":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png","articleSection":["Adobe","Flash Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/","url":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/","name":"Flash Drop Down Menu Tutorial - Adobe Flash","isPartOf":{"@id":"https:\/\/webdesigndev.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png","datePublished":"2011-11-04T16:06:07+00:00","dateModified":"2023-01-23T12:45:52+00:00","description":"Flash Drop Down Menu Tutorial - Adobe Flash on WebDesignDev.com. Read about Flash Drop Down Menu Tutorial - Adobe Flash.","breadcrumb":{"@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#primaryimage","url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png","contentUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2011\/11\/1.png","width":"1011","height":"673"},{"@type":"BreadcrumbList","@id":"https:\/\/webdesigndev.com\/flash-drop-down-menu-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdesigndev.com\/"},{"@type":"ListItem","position":2,"name":"Adobe","item":"https:\/\/webdesigndev.com\/adobe\/"},{"@type":"ListItem","position":3,"name":"Flash Drop Down Menu Tutorial – Adobe Flash"}]},{"@type":"WebSite","@id":"https:\/\/webdesigndev.com\/#website","url":"https:\/\/webdesigndev.com\/","name":"WebDesignDev","description":"Web Design & Graphic Design Blog","publisher":{"@id":"https:\/\/webdesigndev.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdesigndev.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdesigndev.com\/#organization","name":"WebDesignDev","url":"https:\/\/webdesigndev.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/","url":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg","contentUrl":"https:\/\/webdesigndev.com\/wp-content\/uploads\/2023\/05\/2023-WebDesignDev-Logo.svg","width":601,"height":196,"caption":"WebDesignDev"},"image":{"@id":"https:\/\/webdesigndev.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/WebDesignDevBlog","https:\/\/x.com\/WebDesignDev"]},{"@type":"Person","@id":"https:\/\/webdesigndev.com\/#\/schema\/person\/d25d955ee0786bc10f0cda0dca381194","name":"Iggy","description":"Iggy is an entrepreneur, blogger, and designer who loves experimenting with new web design techniques, collating creative website designs, and writing about the latest design fonts, themes, plugins, inspiration, and more. You can follow him on Twitter","sameAs":["https:\/\/www.facebook.com\/pages\/WebDesignDev\/109134615846988","https:\/\/x.com\/https:\/\/twitter.com\/WebDesignDev"]}]}},"_links":{"self":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts\/8752"}],"collection":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/comments?post=8752"}],"version-history":[{"count":1,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts\/8752\/revisions"}],"predecessor-version":[{"id":80068,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/posts\/8752\/revisions\/80068"}],"wp:attachment":[{"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/media?parent=8752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/categories?post=8752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdesigndev.com\/wp-json\/wp\/v2\/tags?post=8752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}