Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 10 of 10

Thread: ComboMenuHeader

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    ComboMenuHeader

    amazing Flash templates

    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:
    Attached Files

  2. #2
    Junior Member Settled In Florindustries is on a distinguished road
    Join Date
    May 2008
    Posts
    3
    Rep Power
    0

    Re: ComboMenuHeader

    Great utility! Thanks for sharing it with us :)

  3. #3
    Junior Member Settled In mdubief is on a distinguished road
    Join Date
    Feb 2009
    Posts
    1
    Rep Power
    0

    Re: ComboMenuHeader

    Hey thanks guys...this utility looks sweet! Save many hours of

  4. #4
    Junior Member Settled In yogalink is on a distinguished road
    Join Date
    Aug 2008
    Posts
    11
    Rep Power
    0

    Re: ComboMenuHeader

    It's great, simple and wonderful! I am just looking for something like that for my site.

  5. #5
    Junior Member Settled In abrar is on a distinguished road
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Re: ComboMenuHeader

    Great Job ...

  6. #6
    Junior Member Settled In righter is on a distinguished road
    Join Date
    Nov 2008
    Posts
    17
    Rep Power
    0

    Re: ComboMenuHeader

    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!

  7. #7
    Junior Member Settled In ZmajBGD is on a distinguished road
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Re: ComboMenuHeader

    Nice job!
    Thanks for sharing!

  8. #8
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: ComboMenuHeader

    Quote Originally Posted by righter View Post
    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!
    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
    

  9. #9
    Junior Member Settled In alan247 is on a distinguished road
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

    Re: ComboMenuHeader

    Very nice Thank you :-)

  10. #10
    Junior Member Settled In canadian_ehmon is on a distinguished road
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Re: ComboMenuHeader

    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.

+ Reply to Thread

Similar Threads

  1. ComboMenuHeader PRO
    By Flep in forum FlepStudio utilities
    Replies: 25
    Last Post: 3 Days Ago, 00:18

Tags for this Thread

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

Search Engine Optimization by vBSEO