AS3 Simple Menu

Flash No Comments »

You will need tweenlite for this to work.

You can set the menu items via an array and disable the current button that is pressed.
if you want you can set the URLS in an array and have the selected button pull the URL from your array, right now it’s not being set to do that.

but it would go something like this.

var links:Array = new Array(“link1″,”link2″,”link3″);
then in setNav Function change the URLRequest to
navigateToURL (new URLRequest(links[thisOne]),”_blank”);

import flash.events.MouseEvent;
import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
import com.greensock.OverwriteManager;
import flash.display.MovieClip;

OverwriteManager.init();
TweenPlugin.activate([TintPlugin]);

var btns:Array = new Array(“home”,”away”,”long”,”about”,”links”,”bio”);
//var links:Array = new Array(“link1″,”link2″,”link3″);
var xPos:Number = 1;
var yPos:Number = 40;
var distance:Number = 1;
var delayBtn:Number = .1
Read the rest of this entry »

visit my other website here >> noeone
Entries RSS Comments RSS Log in