Great utility! Thanks for sharing it with us :)
Hey !
FlepStudio has created a new free utility for Flash CS3 and CS4.
It's a combo of header and menu.
XML driven you can easy change colors of menu and add/remove menu items.
All the other graphic customizations you can work with the MovieClip in FLA's library.
Combo Menu Header
free Flash CS3 CS4 utility
Packages
main.fla
org.FlepStudio.Main.as
XML/setup.xml
package caurina ( Tweener by Zeh Fernando )
Installation
open org/FlepStudio/Main.as and if needed change the url that point to XML file
check the "imagesFolder" attribute of XML file, the url must point your images folder
republish the SWF by FLA
Important
If you need help, ask in this topic
Source files:
Last edited by Flep; 24-03-09 at 17:36.
Great utility! Thanks for sharing it with us :)
Hey thanks guys...this utility looks sweet! Save many hours of![]()
It's great, simple and wonderful! I am just looking for something like that for my site.![]()
Great Job ...
Looks fantastic! Couple of questions though...
1) How do I edit the button links? (have more, change the names, make smaller)
2) How (if possible), can I make the rotating images be clickable to go to different urls?
Thanks very much!
Nice job!
Thanks for sharing!
1) Using XML file.
2) Use the following Main.as
Code:package org.FlepStudio { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; import flash.xml.*; import flash.utils.*; import flash.ui.*; import caurina.transitions.Tweener; public class Main extends MovieClip { /****** CHANGE ABSOLUTE URL OR PATH THAT POINTS TO set_up.xml file ******/ private const XML_URL:String="xml/setup.xml"; /***** SET THE SPEED OF TRANSITION ( in seconds ) ******/ private var SPEED:Number=3; private var gallery_holder_mc:MovieClip; private var images_holder_mc:MovieClip; private var menu_holder_mc:MovieClip; private var links_array:Array=new Array("http://link1","http://link2","http://link3","http://link4","http://link5", "http://link6","http://link7","http://link8"); private var images_array:Array=new Array(); private var menu_array:Array=new Array(); private var trash_array:Array=new Array(); private var items_array:Array=new Array(); private var wheel_mc:Wheel; private var mask_mc:Mask; private var images_folder:String; private var bg_color:uint; private var roll_color:uint; private var id:int=0; public function Main() { addEventListener(Event.ADDED_TO_STAGE,init); } private function init(evt:Event):void { removeEventListener(Event.ADDED_TO_STAGE,init); hideMenu(); createHolders(); showLoader(); loadXML(); } private function createHolders():void { gallery_holder_mc=new MovieClip(); addChild(gallery_holder_mc); menu_holder_mc=new MovieClip(); addChild(menu_holder_mc); images_holder_mc=new MovieClip(); gallery_holder_mc.addChild(images_holder_mc); mask_mc=new Mask(); images_holder_mc.mask=mask_mc; gallery_holder_mc.addChild(mask_mc); } private function showLoader():void { wheel_mc=new Wheel(); wheel_mc.width=wheel_mc.height=30; wheel_mc.x=stage.stageWidth-wheel_mc.width-5; wheel_mc.y=wheel_mc.height/2-5; wheel_mc.alpha=.5; addChild(wheel_mc); } private function hideLoader():void { wheel_mc.stop(); removeChild(wheel_mc); } private function loadXML():void { var loader:URLLoader=new URLLoader(); loader.addEventListener(Event.COMPLETE,completeXMLHandler); var request:URLRequest=new URLRequest(XML_URL); try { loader.load(request); } catch(error:Error) { trace('Impossible to load request document.'); } } private function completeXMLHandler(event:Event):void { var loader:URLLoader=URLLoader(event.target); var result:XML=new XML(loader.data); var myXML:XMLDocument=new XMLDocument(); myXML.ignoreWhite=true; myXML.parseXML(result.toXMLString()); var node:XMLNode=myXML.firstChild; images_folder=node.attributes["imagesFolder"]; bg_color=uint("0x"+node.attributes["backgroundColor"]); roll_color=uint("0x"+node.attributes["rolloverColor"]); var combo:int=node.childNodes.length; for(var i:int=0;iimages_array.length-1) id=0; goTimer(); checkTrash(); } private function onImageDown(evt:MouseEvent):void { var request:URLRequest=new URLRequest(links_array[evt.currentTarget.id]); trace(request.url); } private function goTimer():void { var timer:Timer=new Timer(SPEED*1000,1); timer.addEventListener(TimerEvent.TIMER,callLoadImage); timer.start(); } private function callLoadImage(evt:TimerEvent):void { evt.target.removeEventListener(TimerEvent.TIMER,callLoadImage); loadImage(); } private function checkTrash():void { if(trash_array.length>4) { for(var i:int=0;i<3;i++) { images_holder_mc.removeChild(trash_array[i]); } trash_array.splice(0,4); } } private function createMenu():void { var ratio:Number=stage.stageWidth/menu_array.length; for(var i:int=0;i
Very nice Thank you :-)
quick question, how do I get the links in the header to open in the same window? I have tried adding target="_self" to all the links, but it still opens menu selections in new pages.
Bookmarks