| | |
mene bar with flash
Please support our Graphics and Multimedia advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Mar 2008
Posts: 43
Reputation:
Solved Threads: 0
h all
i have written this code from a website to make a menu bar with flash:
can any 1 help me how to add each button a link to url?
this is the url from where i coppid the code
http://flashexplained.com/menus-inte...rop-down-menu/
10x!
i have written this code from a website to make a menu bar with flash:
Graphics and Multimedia Syntax (Toggle Plain Text)
var links:Array = ["www.ynet.co.il","www.walla.co.il","www.google.co.il","www.facebook.com","www.walla.com"]; var menuButtons:Array = ["Home", "Works", "About", "Contact"]; var subMenu1:Array = ["News", "Updates"]; var subMenu2:Array = ["Web", "Print", "Interactive", "Audio", "Video"]; var subMenu3:Array = ["About me", "Services", "Resume"]; var subMenu4:Array = ["Email me", "City map"]; var chosenMenu:Array = new Array(); var subMenuOpened:Boolean = false; var whichSubMenu:Number = new Number(); var currentPosition:Number = new Number(); for (i=0; i<menuButtons.length; i++) { this.attachMovie("menu button", "menuButton"+i, this.getNextHighestDepth()); this["menuButton"+i]._x = 30+(115*i); this["menuButton"+i]._y = 6; this["menuButton"+i].label_txt.text = menuButtons[i]; this["menuButton"+i].onRollOver = function():Void { whichSubMenu = Number(this._name.substr(-1, 1)); currentPosition = this._x; if (!subMenuOpened) { subMenuOpened = true; openSubMenu(whichSubMenu, currentPosition); } else { closeSubMenu(); openSubMenu(whichSubMenu, currentPosition); } }; } function openSubMenu(whichSubMenu, currentPosition):Void { chosenMenu = eval("subMenu"+(whichSubMenu+1)); for (j=0; j<chosenMenu.length; j++) { this.createEmptyMovieClip("subMenuHolder_mc", this.getNextHighestDepth()); subMenuHolder_mc.attachMovie("menu button", "subMenuButton"+j, this.getNextHighestDepth()); subMenuHolder_mc["subMenuButton"+j]._x = currentPosition; subMenuHolder_mc["subMenuButton"+j]._y = 29+(j*23); subMenuHolder_mc["subMenuButton"+j].label_txt.text = chosenMenu[j]; subMenuHolder_mc["subMenuButton"+j].onRelease = subMenuHolder_mc["subMenuButton"+j].onReleaseOutside=function ():Void { closeSubMenu(); }; } } function closeSubMenu():Void { removeMovieClip(subMenuHolder_mc); }
this is the url from where i coppid the code
http://flashexplained.com/menus-inte...rop-down-menu/
10x!
easy fix, dont use flash
there is nothing in that flash menu that can't be done smaller faster simpler in css
there is nothing in that flash menu that can't be done smaller faster simpler in css
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Similar Threads
- how to make a flash menu bar without using a flash software? (Graphics and Multimedia)
- Please Review (Website Reviews)
- How to hide navigation bar (HTML and CSS)
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Embed google maps into phpbb3
- Next Thread: Music
| Thread Tools | Search this Thread |
3d 10 actionscript3 adobe adobeacrobat adobereader air ajax amazon amf apple button cart childprotection cloud dashboard dell design dojofoundation dreamweaver ebay eclipse ecommerce elasticcomputecloud embed endorsement extra family flash flash-develop flashlite flex free harddrive iamthwee ibm illustrator imflash intel interactivemap javafx javascript laptop legal map micron microsoft mobile monitoringsoftware moonlight multimedia myspace nand news novell panorama pdf pedophiles photoshop photosynth php safety sandisk security shopping silverlight solidstatedrive sproutcore ssd streaming swf table ukmap unload unwanted video vulnerability web white.space xml zend zephyr zeroday






