mi pregunta es si se podria hacer algo parecido en AC 2 o si ya hay algun post abierto parecido a este, porque me parece muy basico...
aqui viene un ejemplo y tambien el archivo
http://ffiles.com/flash/menus/multi_tab_drop_menu_1850.html
pero mi pregunta es... (mas que nada por curiosidad, porque ya esto me mata!
si quieres que estos 'botones' o lo que sean porque en el archivo no aparecen, parece que va todo con codigo... te dirijan por ejemplo al fotograma dos... como lo harias? porque vaya, con eso de que esta en AC3 pues me hace menos caso todavia
pongo el codigo:
[quote="// Tab-Drop Multi Menu
// author: [email protected]
// http://dangerbeuys.de
// Do whatever you want to do!
// important! For working links, remove Comment in Line 112!
// import TweenLite (http://blog.greensock.com/tweenliteas3/)
import gs.TweenLite;
import fl.motion.easing.*;
var tabContainer:Sprite = new Sprite();
var tabArray:Array = new Array();
// Enter your Menu-Button Text here. Button Order is left to right.
var txtArray:Array = ["home", "news", "download", "contact", "info", "links"];
// Enter your URLs here. Important: must be in the same order than text above!
var urlArray:Array = ["link01", "link02", "link03", "link04", "link05", "link06"];
// Description Text goes in here!
var descArray:Array = ["Welcome to the jungle!", "What's new?", "some free stuff for you", "Hello, anybody there?", "What you need to know!", "You know what it means."];
// Number of buttons (must correspond to Number of Text & URLs)
var tabcount:int = 6;
// How much space between buttons
var tabspacing:int = 10;
// Tabs-Background
var baseColor:uint = 0x000000;
// Color for Mouse-Over
var overColor:uint = 0x00CCFF;
// Color for active button
var activeColor:uint = 0xFF3300;
// Positioning of description text
var desctxt:Desctxt = new Desctxt();
desctxt.x = stage.stageWidth - (desctxt.width + tabspacing);
desctxt.y = 75;
desctxt.alpha = 0;
addChild (desctxt);
// make some tabs
function initTab ():void
{
for (var i = 0; i < tabcount; i++)
{
var tab:Tab = new Tab();
TweenLite.to (tab.body, 0, {tint: baseColor});
tabArray.push (tab);
tabArray[i].linkId = i;
// Tabs x - Position
tab.x = tabspacing * .5 + (stage.stageWidth - tabcount * (tab.width + tabspacing)) * .5 + Math.floor( i / 1 ) * (tab.width + tabspacing);
// Tabs initial y - Position
tab.y = 30;
tab.txt.text = txtArray[i];
tab.addEventListener (MouseEvent.MOUSE_OUT, tabOut);
tab.addEventListener (MouseEvent.MOUSE_OVER, tabOver);
tab.buttonMode = true;
tab.mouseChildren = false;
tabContainer.addChild (tab);
}
addChild (tabContainer);
}
function tabOver (event:MouseEvent):void
{
var target:Object = event.currentTarget;
target.addEventListener (MouseEvent.MOUSE_UP, tabUp);
if (target.activa != 1)
{
TweenLite.to (target.body, .2, {tint: overColor});
TweenLite.to (target, .8, {y: 70, ease: Elastic.easeOut});
}
desctxt.desc.text = descArray[target.linkId];
TweenLite.to (desctxt, .8, {alpha:1});
}
function tabOut (event:MouseEvent):void
{
var target:Object = event.currentTarget;
target.removeEventListener (MouseEvent.MOUSE_UP, tabUp);
TweenLite.to (target.body, 1.5, {tint: baseColor});
TweenLite.to (target, 1, {y: 30, ease: Back.easeInOut});
TweenLite.to (desctxt, 1, {alpha:0});
}
function tabUp (event:MouseEvent):void
{
var target:Object = event.currentTarget;
for (var i in tabArray)
{
if (tabArray[i] != target)
{
tabArray[i].activa = 0;
tabArray[i].addEventListener (MouseEvent.MOUSE_OVER, tabOver);
tabArray[i].addEventListener (MouseEvent.MOUSE_OUT, tabOut);
TweenLite.to (tabArray[i].body, 1.5, {tint: baseColor});
TweenLite.to (tabArray[i], 1, {y: 30, ease: Back.easeInOut});
}
else
{
tabArray[i].activa = 1;
tabArray[i].removeEventListener (MouseEvent.MOUSE_OUT, tabOut);
TweenLite.to (tabArray[i].body, .3, {tint: activeColor});
//trace (urlArray[tabArray[i].linkId]);// good for checking URLs in Flash
// Uncomment the following line to activate linking to URL!
//navigateToURL (new URLRequest(urlArray[tabArray[i].linkId]),"_self");
}
}
}
// Go, Baby!
initTab (); "]
aqui viene lo de las direcciones:
// Enter your Menu-Button Text here. Button Order is left to right.
var txtArray:Array = ["home", "news", "download", "contact", "info", "links"];
// Enter your URLs here. Important: must be in the same order than text above!
var urlArray:Array = ["link01", "link02", "link03", "link04", "link05", "link06"];
// Description Text goes in here!
var descArray:Array = ["Welcome to the jungle!", "What's new?", "some free stuff for you", "Hello, anybody there?", "What you need to know!", "You know what it means."];
y como se haria? porque no funciona con lo de decir escena 1 , o poner el numero del fotograma... (
bueno a ver si entre todos podemos sacar algo de esto...
muchas gracias!!
