Trouble With Menu Item
OK. Below is the link to a .fla file of what I am working on. Once you get it, test the movie. The issue is with the group of links on the left side of the page. The bottom 3 links work just fine, but the top link (BIOGRAPHY) does not show up as a link, even thought I have the setting exactly the same as the other three links. Can anyone tell me why this is happening?
Thanks, in advance.
http://webpages.charter.net/dj_nrg/intro.zip
FlashKit > Flash Help > Flash MX
Posted on: 08-05-2003, 11:28 PM
View Complete Forum Thread with Replies
Sponsored Links:
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Dynamic Menu AS2.0/XML - Seperating Main Menu Title MC From Dropdown Item's MC
Hi everyone, this is my first post in this forum, I appreciate all the help
I've got a dynamic menu using AS2.0 that's being populated by an XML file, it's quite complete and is working fine, the only thing I'm having trouble with is assigning a new MC to the Titles so the visual design (Text and background) can be different from the rest of the dropdown menu.
What would have to be done to capture the menuNodes and isolate them form the rest. Below is the XML that I’m using, the highlighted (red, bold, italic) text below is what I’d like to capture and seperate from the rest of the submenus for the menu title in my flash project.
XML
----------------------------------------------
<?xml version="1.0"?>
<menu name="Atletas">
<menu name="Clubes">
<submenu name=""></submenu>
<submenu name="Botafogo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
</menu>
<menu name="Atletas">
<submenu name="Gilberto"></submenu>
<submenu name="Jose"></submenu>
<submenu name="Joao"></submenu>
</menu>
<menu name="Posicoes">
<submenu name="Atacante">
<entry name="Gilberto"/>
</submenu>
<submenu name="Meio">
<entry name="Jose"/>
</submenu>
<submenu name="Zagueiro">
<entry name="Joao"/>
</submenu>
</menu>
</menu>
----------------------------------------------------------
attached is the screencapture of my flash design to understand what I'm talking about a little better.
Thanks for all the help
View Replies !
View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
ActionScript Code:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
ActionScript Code:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
How To Highlight An Active Menu Item In A Flash Menu
Hi,
I have a flash menu and I want each menu item to be highlighted according to which page it is on (e.g. Highlight the 'about us' link when the user is in the about us section) to save having to create more than one swf. At the moment I have all the highlights made invisible like this:
highlightOne._visible = false;
But have no idea how to make the swf know what page it is on or how to make a highlight visible accordingly.
Can anyone help me out?
View Replies !
View Related
XML Menu Tute: Reference Item Within Menu Items
With reference to: http://www.kirupa.com/developer/acti...pdown_menu.htm
Im using a version of this menu, but each menu item has another movie clip inside it.
I cant for the life of me work out how to give this sub clip its own function?
I've tried setting the onRelease to be triggered by the 'background' movie clip of the menu item but this stop the menu working, and when I reference any other sub clips like so: curr_item.someClip.onRelease ...there's also no response.
Where am i going wrong?
View Replies !
View Related
Trying To Add Another Item To A Menu
I have a menu that I did not create that I am trying to add another menu item to. I have the fla file and thought it would be a simple task but I've had nothing but headaches so far.
The menu is set up so that when you hover on a link, it increases in size, then decreases when you take mouse off it.
In Scene 1, it shows a list of each menu item (home menu, benefits menu, contact menu, etc.). It also has the same menu items listed in the Symbol Definitions.
Thinking it would be simple to modify, I tried copying and pasting a menu link and altering it to make another. What happens is when I try changing the link name, it changes the original I copied from as well.
I tried to insert another menu item to the scene but I'm lost on how to do this and can't figure out a fix. Any takers?
If this is too brief, my apologies, I know about 2% of flash...
View Replies !
View Related
Dim Menu Item
This is something that is probably really basic but for the love of gawd I can't remember how to do it.
Example:
3 menu buttons, you press the first button and it executes a function and disables itself leaving the second and third button enabled. You then press the third button and the first button gets enabled while the third button is disabled. Same thing goes for the second button.
I'm pretty sure I've done it before, but I can't remember how.
View Replies !
View Related
Track As Menu Item
I keep having problems with Graphics wich I've changed to 'buttons' and then 'tracked as menu item'
sometimes it works, sometimes it does not, and dissapears
How does this option work?
View Replies !
View Related
Turn Menu Item Off And On
Hi
I have a mc as a drop down menu which calls up other mc to play. I want to make the particular menu item disabled or at least a greyed out when its correponding mc is playing. Then go back to being enabled when its correpsonding mc is not playing. Any suggestions?
Thanks
View Replies !
View Related
Menu Item...thingie...
Well, I don't know what it's called, it's somewhat like a tooltip, except it follows the mouse on a menu. Say for instance, I have three menu items (layed out horizontally), when I hover the mouse over one of them, a little arrow will scroll just beneath the item, and follows the mouse to the next one.
How do I create one of these?
View Replies !
View Related
Track As Menu Item
Can someone breakdown the "track as menu item" option for me? I've read the actionscript dictionary listing for it, and maybe i'm just silly, but i cant see any real reason to use it. Can you not make menus if you dont use this option?
thanks,
-myk
View Replies !
View Related
Menu Item And Movies
I am a Flash MX newbie and am trying to create a menu item in a select area of the stage that when selcted plays a movie with a sub menu related to that menu item. I understand the basics of action script and animation but am not sure how to get it to function the way I want. I can also see that when you mouse over the actions you get a brief description of the action. My problem is that I can not get it to only see the initial symbol as the hit point rather it sees the whole movie symbol as the button. Do I need to convert the menu item as a symbol and create the movie in a diffrent scene? Basically, There's a menu above the photos and a sub menu appears with a ghosted white box when you mouse over them main menu. When the user clicks on the sub menu the photos in the back fade out and the information/content for that page appears. What would you reccommend.
kat
View Replies !
View Related
Tweening A Menu Item
I have made a menu item (which is a picture) where I click on the button and up pops another picture. I have this all working good. But I would like the menu item(the large picture) to fade in. I click on my shown on menu item and the picture and put a motion tween on and fix the alpha to fade in and once I do all this I move over the button and the picture doesn't pop up anymore,
I hope someone can understand my ramblings. I am VERY new to this.
Thanks,
Kit
View Replies !
View Related
Adding Another Menu Item...
Hi,
I'm trying to add a new menu item to the attached file but because I don't use flash often I can't recall how to do it. I'm simply trying to copy/paste an existing menu link and rename/relink it but I'm running into problems. I'm guessing this should be quite simple to do but I'm stumped! Any help would be appreciated!
Cheers!
View Replies !
View Related
Adding A Second Sub Item XML Menu
Hi all, I'm working on a new menu but I seem to have gotten way over my head. I want to add a sub menu from another submenu, so basically a sub-sub, or second sub if you will...
I've made the ammendments to my XML file but the tricky part is adding the actionscript which I'm afraid is way over my head at the moment. I'd like some help please with the actionsctipt. Some genius please lend a hand here...
Please download the ZIP (menusub.fla (MX) and menusub.xml) here.
View Replies !
View Related
Adding A Second Sub Item XML Menu
Hi all, I'm working on a new menu but I seem to have gotten way over my head. I want to add a sub menu from another submenu, so basically a sub-sub, or second sub if you will...
I've made the ammendments to my XML file but the tricky part is adding the actionscript which I'm afraid is way over my head at the moment. I'd like some help please with the actionsctipt. Some genius please lend a hand here...
Please download the ZIP (menusub.fla (MX) and menusub.xml) here.
View Replies !
View Related
How Do I Place A Movie Into Another As A Menu Item?
So, I did a tutorial which allows me to create a drop down submenu but when placing it (by importing)it crates a layer in the timeline and when I play the menu it goes hop wild all over the place, looping itself repeatedly. How can I get this import movie to behave in a pre-existing movie? Many thanks, budgee
View Replies !
View Related
Bet You Can't Add Extra Menu Item On This Site
Hi all,
I'm trying to add an extra menu item to the 'About Us' part of this website
http://millimetre.com.au/
The guy who created this is gone and I can't make sense of the scripting to add a new item. I can edit the info currently there, but can't add new. Help?
Here's the scripting for the 'About Us' page (only on one frame - the last one):
stop();
comflag = false;
resflag = false;
conflag = false;
onEnterFrame = function () {
if (_root.ready == true && comflag == true) {
loadMovie("section1.swf", "container");
}
if (_root.ready == true && resflag == true) {
loadMovie("section2.swf", "container");
}
if (_root.ready == true && conflag == true) {
loadMovie("section3.swf", "container");
}
};
companyMC.onRollOver = function() {
if (comflag == false) {
this.gotoAndStop(2);
}
};
companyMC.onRollOut = function() {
if (comflag == false) {
this.gotoAndStop(1);
}
};
companyMC.onPress = function() {
comflag = true;
resflag = false;
conflag = false;
this.gotoAndStop(2);
resourceMC.gotoAndStop(1);
consultMC.gotoAndStop(1);
container.gotoAndPlay(11);
comCovMC.gotoAndStop(2);
resCovMC.gotoAndStop(1);
conCovMC.gotoAndStop(1);
};
resourceMC.onRollOver = function() {
if (resflag == false) {
this.gotoAndStop(2);
}
};
resourceMC.onRollOut = function() {
if (resflag == false) {
this.gotoAndStop(1);
}
};
resourceMC.onPress = function() {
comflag = false;
resflag = true;
conflag = false;
this.gotoAndStop(2);
companyMC.gotoAndStop(1);
consultMC.gotoAndStop(1);
container.gotoAndPlay(11);
comCovMC.gotoAndStop(1);
resCovMC.gotoAndStop(2);
conCovMC.gotoAndStop(1);
};
consultMC.onRollOver = function() {
if (conflag == false) {
this.gotoAndStop(2);
}
};
consultMC.onRollOut = function() {
if (conflag == false) {
this.gotoAndStop(1);
}
};
consultMC.onPress = function() {
comflag = false;
resflag = false;
conflag = true;
this.gotoAndStop(2);
companyMC.gotoAndStop(1);
resourceMC.gotoAndStop(1);
container.gotoAndPlay(11);
comCovMC.gotoAndStop(1);
resCovMC.gotoAndStop(1);
conCovMC.gotoAndStop(2);
};
View Replies !
View Related
Delay As Each Menu Item Is Drawn ?
Hi,
i would like to know how to add in a delay of half a second or so, as each menu item is drawn on screen, rather than all appearing simultaniously as they do with the code below...
Code:
var theArray = new Array("menu1", "menu2", "menu3", "menu4", "menu5");
for (var i = 0; i<=menuCount; i++) {
menuItemMC.duplicateMovieClip("menuItem"+i, i);
var targ = eval("menuItem"+i);
if (i == 0) {
// position the first menu item
targ._y = 0;
} else {
// position the other menuItem...
// reference to the previous menuItem
var previousTarg = eval("menuItem"+(i-1));
// position new menuItem, depending on previous
targ._y = previousTarg._y+previousTarg._height-1;
}
targ._x = 0;
targ.colorTo(0x000000, 0);
targ.nmbr = i+1;
targ.title = (theArray[i]);
}
View Replies !
View Related
Menu Item Shuffle Position Possibility
I've got 4 menu items. Let's call em A B C + D.
A
B
C
D
When A is clicked, I want it to slide to D's position and B C + D move one spot up.
B
C
D
A
The fourth (D's orig.) position being the spot where each menu item goes when activated. It's important space/design-wise to leave no gaps - each item sliding nicely to fill spot vacated. It gets real complicated after a few clicks, especially trying to do this with just frames and buttons. Seems like this could be done with AS.
Any ideas?
Am I being clear enough?
Thanks much. APM
View Replies !
View Related
Menu Item Resets From Selected State?
Hi,
posted 24 hours ago, updating in hopes of getting some help.
Flash version is MX
when an item is selected on my menu it slides into position on the far right (first position). When selected it goes to a highlighted state.
It should stay in this state on the far right until a new item is selected and starts to slide right.
For some reason the item is reseting out of the highlighted selected state as it slides to the right.
Not always and not always in the same spot.
It is a bit hard to explain, so I have attached the .fla file. I have commented it as much possible. It is stripped down to just contain the menu
Please take a look. Just click menu items to th eleft a few times and you will see the bug happen, items will jump back to frame one.
Mark
P.S. I have been doing a little reading, should I be using "Button.trackAsMenu" in some way to do this?
View Replies !
View Related
[F8] Dropdown Menu - Automatic Opening Of An Item
Hello,
Is there a way to make a dropdown menu open a certain item by default?
ex:
EDITION
item 1
item 2
TOURISM
item 1
item 2
item 3
etc...
The menu is dynamic (arrays and duplicate mcs).
I would like the item "Edition" to open automatically and show the first sub-item when entering the Portfolio section.
Here is a part of the code where, I think (?), I could find something to grab on to for that...
Code:
cont = 0;
for (i=0; i<n.length; i++) {
nom = "objet"+i;
duplicateMovieClip(_root.clip, nom, i+50);
champ [i] = i*25+80;
debut [i] = i*25+80;
_root[nom].touche = i;
_root[nom]._y = i*25+80;
_root[nom].title = titre[i];
for (a=cont; a<cont+n[i]; a++) {
nom1 = "nouvelObjet"+a;
duplicateMovieClip(_root.clip1, nom1, a);
objet2 [a] = i*25+80;
_root[nom1].field = a;
_root[nom1].ldmovie = ldmovies [a];
_root[nom1]._y = champ [i];
_root[nom1].title = fields [a];
}
cont = a;
}
Thank you for your help!
View Replies !
View Related
Show Flash Menu Item As Active...
Greetings...
For a new web site i am creating, i need to build an horizontal navigation menu. The only thing i don't know is how to get the current browser position in my web structure so that i can display the proper button as active.
In other words, i need to set the flash button as i would do with an <img> using CSS... #menuLI:active{...
Thanks !
View Replies !
View Related
How To Change Text In A Box When Hovering Over A Menu Item?
Sorry if this isn't very clear, basically I have a menu and I would like a caption describing the menu item, it needs to change for every menu item that I hover over.
I could do this manually and include 6 descriptions saved as text and just make each appear depending on which menu item I choose, or I could make the same element appear for every button I hover over and let the actionscript generate the text dynamically. I'm guessing the latter is the preferred method these days.
Can anybody help?
Thankyou.
View Replies !
View Related
Menu In Confined Space, One Large Item
Yeah I know, that title doesn't really make any sense, and that's my problem. I'm trying to recreate (sorta) what the text menu on the www.dieselmarketing.com site does. I'm talking about the four-item list that's on the rollout panel (items are "advertising", "design", etc.).
I've been doing searches but I can't seem to come up with any good way to shortly describe what i'm looking for. What it is, basically, the menu has a confined height (it doesn't change) and each item in the list has the same height, except the active(highlighted) item -which has twice the height of the others. One might think to just double the height of an item on rollover, and that I can do. What's interesting about the diesel site's menu is that it seems to reposition the registration point (more likely the _y value, but still) so that the first item never goes over the top and the last item never goes past the bottom, and it keeps the same amount of space between all items in the list regardless of its size.
Sorry for such a long description, but I've been trying to figure this out all day to limited success (not much really). So if you could help me out with a source file or point me to a tutorial, I'll sing your praises forever. Thanks.
View Replies !
View Related
Horizontal XML Menu - Vary Item Width Help
Howdy everybody.
I was workin away on this file and wanted to display the main menu items horizontally using the XML menu. I got it to work but wanted to take it a step further and display the main menu items according to a variable width based on the character length from the xml file. I managed to get an idea (I think) of how this might be done but I think i need a little help finishing it up. Here is the AS for the menu:
ActionScript Code:
// generates a list of menu items (effectively one menu)// given the inputted parameters. This makes the main menu// as well as any of the submenus GenerateMenu = function(container, name, x, y, depth, node_xml) {// variable declarations var curr_node;var curr_item;var curr_menu = container.createEmptyMovieClip(name, depth);// for all items or XML nodes (items and menus)// within this node_xml passed for this menufor (var i=0; i<node_xml.childNodes.length; i++) {// movieclip for each menu itemcurr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i); if (name == "mainmenu_mc") {//curr_item.name._width = i+(curr_item.name.text.length+50);curr_item._x = x + i*(curr_item._width+1);curr_item._y = y;} else {curr_item._x = x; }curr_item.trackAsMenu = true; // item properties assigned from XMLcurr_node = node_xml.childNodes[i];curr_item.action = curr_node.attributes.action;curr_item.variables = curr_node.attributes.variables;curr_item.name.text = curr_node.attributes.name; // item submenu behavior for rollover eventif (node_xml.childNodes[i].nodeName == "menu"){// open a submenucurr_item.node_xml = curr_node;curr_item.onRollOver = curr_item.onDragOver = function(){var x = this._x ;var y = this._y + this._height+2;GenerateMenu(curr_menu, "submenu_mc", x, y, 1110, this.node_xml); };}else{ // nodeName == "item"//curr_item.arrow._visible = false;// close existing submenucurr_item.onRollOver = curr_item.onDragOver = function(){curr_menu.submenu_mc.removeMovieClip(); };} curr_item.onRollOut = curr_item.onDragOut = function(){ }; // any item, menu opening or not can have actionscurr_item.onRelease = function(){Actions[this.action](this.variables); CloseSubmenus(); };} // end for loop};// create the main menu, this will be constantly visibleCreateMainMenu = function(x, y, depth, menu_xml){// generate a menu listGenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild); // close only submenus if visible durring a mouseup// this main menu (mainmenu_mc) will remainmainmenu_mc.onMouseUp = function(){if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){CloseSubmenus();}};}; // closes all submenus by removing the submenu_mc// in the main menu (if it exists)CloseSubmenus = function(){mainmenu_mc.submenu_mc.removeMovieClip();};// This actions object handles methods for actions// defined by the XML called when a menu item is pressedActions = Object();Actions.loadExternal = function(externalswf){container.loadMovie(externalswf);};Actions.gotoURL = function(urlVar){getURL(urlVar, "_blank");};Actions.message = function(msg){message_txt.text = msg;};Actions.newMenu = function(menuxml){menu_xml.load(menuxml); };// load XML, when done, run CreateMainMenu to interpret itmenu_xml = new XML();menu_xml.ignoreWhite = true;menu_xml.onLoad = function(ok){// create main menu after successful loading of XMLif (ok){CreateMainMenu(88, 353, 0, this);unloadMovie("container");}else{message_txt.text = "error: XML not successfully loaded";}};// load first XML menumenu_xml.load("menu1.xml");
The notable part here maybe this commented piece which is my "idea" as to how to get this to work (see commented line)
ActionScript Code:
if (name == "mainmenu_mc") {//curr_item.name._width = i+(curr_item.name.text.length+50);curr_item._x = x + i*(curr_item._width+1);curr_item._y = y;} else {curr_item._x = x; }
If anyone needs anymore explanation as to what I am trying to achieve just let me know.
Thanks for taking up this challenge.
View Replies !
View Related
Dynamic Menu Selection Of Active Item
Hello,
Please help me.
I'm working on a dynamic menu. This works, rollovers and rollouts work but if I click on an item, the item doesn't stay selected. How can I tell Flash that when I click on an item, that the clicked item stays selected until I click on another item?
I've attached the file.
Thank you.
Luna
View Replies !
View Related
Reshuffling Menu Help (clicked Item Slides To Top...)
Hi folks
Inspired by some of the examples at http://laco.wz.cz/tween/, I'm trying to code a reshuffling menu...
Whichever item you click slides to the top, and the previously selected item to the bottom, with the rest of the items in the list moving up one to fill in the gaps.
Sounds easy? Maybe you can help turn my code into oop? Would be very grateful for some help with this... (maybe it's been done already by someone but I didn't find anything on my searches)
I've coded a quick example of what would happen when you clicked nav item 2, but obviously need to turn this into a re-usable function i guess.
Should I be making better use of an array to keep track of what position each item is at?
Code:
// intialise
selectedButton = "nav1";
transitionLength = 0.3;
transitionType = "easeOutQuad";
xposition = 548;
// click functions
k = 0;
nav2.onRelease = function() {
// fade out top button
fadeOut = eval(selectedButton);
fadeOut.alphaTo(0, transitionLength, "easeOutQuad", 0, moveClickedToBottom);
// slide clicked button to top
this.slideTo(xposition, 268);
// move other buttons up
nav3.slideTo(xposition, 281);
nav4.slideTo(xposition, 296);
nav5.slideTo(xposition,311);
nav6.slideTo(xposition, 326);
// move click button to bottom;
function moveClickedToBottom() {
nav1.slideTo(xposition, 341, transitionLength, transitionType, transitionLength);
nav1.alphaTo(100, transitionLength, transitionType, transitionLength);
ssp.loadAlbum("yachts");
}
delete this.onRelease;
};
Cheers 3stripe
View Replies !
View Related
Add LINK To Item In XML Driven FLASH Menu
I have a QuickNav Menu on my site.
and it uses a XML Driven Flash Menu. XML looks like this:
<menu>
<section>
<name>PRINTERS</name>
<childs>
<section>
<name>EPSON</name>
<childs>
<section>
<name>STYLUS PRO 3800</name>
</section>
</childs>
</section>
</childs>
</section>
</menu>
I am trying to get the bold item to link to a section on my site. I read a bit about how this all works and I am suppose to edit the action script and xml to do this. I just don't know where to edit it.
I attached the actionscript in a .txt file.
Attached Files
View Replies !
View Related
Need Actionscript Help (Menu, Easing, Tweening, Active Item, Etc)
I need some help with this one. It works upon first click and then it goes haywire. Here's what's supposed to happen.
RollOver = Scale to 150% and change Alpha to 100%
RollOut = Scale back to 100% and change Alpha to 60%
Release = Scale back to 100% and change Alpha to 100% and reset all other buttons' alpha to 60%
Additionaly, I need to figure out an easy way to apply actions to these buttons individually while still using a succint script such as the one i'm working on here. Any ideas to make this script more to the point and dynamic so that I would only have to enter the name of each button once and the name of it's link or action once would be great! I'd like to make this an easily reusable script.
This is a Flash 8 File
http://bradlyjon.com/MENU.fla
Code:
// BUTTONS //////////////////////////////////////////////////
home_btn.onRollOver = over;
home_btn.onRollOut = out;
home_btn.onRelease = clicked;
about_btn.onRollOver = over;
about_btn.onRollOut = out;
about_btn.onRelease = clicked;
projects_btn.onRollOver = over;
projects_btn.onRollOut = out;
projects_btn.onRelease = clicked;
contact_btn.onRollOver = over;
contact_btn.onRollOut = out;
contact_btn.onRelease = clicked;
// FUNCTIONS //////////////////////////////////////////////////
import mx.transitions.Tween;
import mx.transitions.easing.*;
function over() {
if(this != _root.activeMenu) {
new Tween(this, "_alpha", Regular.easeIn, 60, 100, 5, false);
new Tween(this, "_yscale", Strong.easeOut, 100, 150, 1, true);
new Tween(this, "_xscale", Strong.easeOut, 100, 150, 1, true);
}}
function out() {
if(this != _root.activeMenu) {
new Tween(this, "_alpha", Regular.easeIn, this._alpha, 60, 5, false);
new Tween(this, "_yscale", Bounce.easeOut, this._yscale, 100, 1, true);
new Tween(this, "_xscale", Bounce.easeOut, this._xscale, 100, 1, true);
}}
function clicked() {
if(this != _root.activeMenu) {
new Tween(this, "_alpha", Regular.easeIn, this._alpha, 100, 10, false);
new Tween(this, "_yscale", Regular.easeOut, this._yscale, 100, 10, false);
new Tween(this, "_xscale", Regular.easeOut, this._xscale, 100, 10, false);
new Tween(_root.activeMenu, "_alpha", Regular.easeIn, this._alpha, 60, 1, true);
_root.activeMenu = this;
}}
View Replies !
View Related
How Do I Click A Menu Item And Open Up A Semi Transparent Layer?
Hi,
I learned Flash 4 a couple of years ago and did a few fairly nice but not too complicated flash sites. Since then I never picked it up. Now I want to do another web site.
I couldn't find any tutorials where when user clicks a menu item, a semi-transparent layer opens up and displays some text, images, etc.
Could someone give me some pointers -- a starting point -- on this?
I assume a button opens up a movie symbol but I'm not sure. Your help is much appreciated. Thanks.
View Replies !
View Related
How Do I Change The Menu Item Names? [flash File Attached]
I bought this template and I can't seem to figure out how to change the item names on the menu - they all say "Home" when I open it in flash 8 - you'll see what i mean when you open the file
Also where it says the date when you open it in flash it says "'hukl tyui ryui ty" so i m trying to figure out how to do those two things.
Thnx in advance for the help
(I know the file is big but please be patient and help the nooby) -lol
Download Here
View Replies !
View Related
Issue With Large Graphical Navigation Menu Item Arrangement...
Hey guys, feels good to be back to Flashkit. I've been messing with Flash for a little bit over the years, but now I have a real project and CS3 in front of me, and I can't for the love of (your choice of deity) get it:
I have a large aerial image of multiple locations. There are about two-dozen sites (physical sites) that need to be linked to from the aerial image. Now, I have it set up so that here are thumbnails for each site, and these are going to about 150% on mouse-over. However, there is an issue with arranging the items.
When moused over, some of these buttons are popping UNDER other items, even items that are in the same layer. The best way I could go around this is to paste them outside-in to the center of the image. Still, there are issues with this, as it's difficult for me to arrange 24 items that are 150x100px or 100x150px into a field that is basically 1024x600.
Is there a way to dynamically change the item order to 'top' on mouseover? Or something like that? Does each site have to have its own movieclip with embedded button?
I am not too far into the project to make large changes, but I don't know which changes to be making.
Aaaalso, I am using AS2.0 in the file, if someone would be so nice as to hold my hand to convert to 3.0, that'd be awesome, but I have no qualms using 2.0 and leaving it as-is.
thanks in advance,
-Tim
View Replies !
View Related
Menu Item / Button Not Working. Multiple Layers / Movies
Hey Everyone, I'm New to this forum, but ive talked to a few people here, and they told me I should join so here is my question:
I have Created a Website by Combining Multiple Templates and what not, and adding my own scripts to it, and well here is the domain the site is currently launched under: http://www.royalgorvideo.com and the problem is that When someone clicks on portfolio then they select a category, then video or photographs, there is no way to go back to the portfolio page with the different categories such as weddings, commercials, concerts, etc. because all those other movies are loaded on top of the main page, and there is page checking on the button, and when i remove it, it looks liek it loads the portfolio main page for a split second then goes away, if you guys have any idea i would appreciate it, about 12 people tried to figure this out, and no one had an idea, they all tried the same stuff i tried, so hopefully i can target more people on here, if you need the source i can upload it or u can decompile it, you can also instant message me on AIM at ProDJAllenV3.
here is the AS on the button:
on (release)
{
if (_root.link != num && _root.animation == 1)
{
unloadMovieNum(3);
unloadMovieNum(4);
this.gotoAndPlay("s3");
_root.animation = 0;
_root.link_prev = _root.link;
_parent["item" + _root.link].gotoAndPlay("s4");
_root.link = num;
_level0.pages.page.play();
} // end if
}
num is like the page number it needs to load, and thats defined in a symbol before this one...
There may be other errors in this for example mail script i'm using the _visable an its not working on a "thank you your message has been sent" text field, or the pop-up for privacy notice, if u guys can find out why those arnt working either that would be great...
Id appreciate anyone's help here...
-Allen
Thanks in advance
View Replies !
View Related
Flash Menu That Highlights The Selected Item When Changing Page?
Hi all,
I'm trying to create a menu in flash that will highlight the current
selected menu item when selecting a specific page.
Example menu:
- home
- products
- product 1
- product 2
- product 3
- contacts
- email
- form
Imagine you have a link in a page that opens the contact > email page.
Is there a way to get the flash menu to highlight the "contacts > email"
item when displaying this page?
Something similar to this http://tinyurl.com/5c9993
Is there an application that can do this easily?
Thanks in advance for any idea.
Tony
View Replies !
View Related
Add Item After Selected Item In Tree Component?
I've got a tree component which works great, but I'm trying to add an item at a particular location (immediately after the item they select) into the tree.
The problem is that I'm trying to add an item within a branch. I'm using myTree.getDisplayIndex(myNode) to get the position within the tree, but it gives the location relative to the entire list, but I need to get the position relative to the parent (which is what myNode.parentNode.addTreeNodeAt is trying to write to)...
Anyone know how I can get the position of the item the user selects relative to it's branch???
Thanks!!
View Replies !
View Related
How Do I Stop Carousel On Item When Item Is Clicked On?
Yeah ...some of us are still trying to tweak the carousel... I need to know how to stop the carousel when an item in the carousel is clicked on. Of course I'd also like to have that item come to the front and center as well. This carousel is done without XML.
Any help would be greatly appreciated.
here's my current code:
var numOfLogos:Number = 6;
var radiusX:Number = 300;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
for(var i=0;i
{
var t = this.attachMovie("item"+(i+1),"item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfLogos);
t.onEnterFrame = mover;
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/1500;
}
//INFO PANELS//
phInfoPanel_mc._visible = false;
//NOW FOR THE CLICK ACTIONS//
item0.onRelease = function () {
phInfoPanel_mc._visible = true;
phInfoPanel_mc.swapDepths(Math.round(this._xscale) + 1000);
}
View Replies !
View Related
Make Item Grab Another Item
I am working on a game right and i want oneitem that when it touches the other stays with it like glue here is my code:
instance name:
i have a guy _root.player.hand
A ball _root.ball
so I put on the ball this code....
onClipEvent(enterframe){
if(this.hitTest(_root.player.hand)){
this._x = _root.player.hand._x;
this._y = _root.player.hand._y;
}
When the hand touches the bal he ball goes where the hand was originaly and that is it it never moves again.
can some one help ???
}
View Replies !
View Related
Menu Trouble...
I'm having trouble with a menu. i created a new symbol (a button) and made a small rectangle. I then added a keyframe to the Over part of the button and put a few rectqangles stacked on each other. Next, I added it to scene to my scene. It worked great until i put the button under it. When u roll over the top menu and then over to the top rectangle it works great. Then when u move down it switched to the next menu. If you give me your email i can send the .fla to u. Then you can make it work and i can figure it out. any help would be most appreciated.
View Replies !
View Related
Having Trouble With A Menu...
Hey,
i'm trying to make a popup menu the Davy-Paycheck way (see previous posts..). I can get the popup action to work, but my trouble is that the buttons in the popup dont respond to rollOVers. They are supposed to hightlight on rollover.. The buttons are embedded in a moviceClip.
FLA is attached..
what am i doing wrong?
just rollOVer the red button, and the 4-button submenu should appear...
thanks,
-myk
View Replies !
View Related
Trouble With Menu
Wonder if anyone can help me with my menu. Ive just started to uplaod a new website. www.signandlight.com The menu works fine when you test the movie however when loaded into level three of a movie embedded in HTML it does function properly?
The menu's appear when you roll over the buttons and disapear when you click anywhere on the screen. Each menu is a MC with an onclip event attached to it with action script to make any clip disappear when clicked anywhere on screen. The problem is that if you click outside the mc on certain parts of the screen they don't disappear. Insted the whole screen goes blue as if it is selected. However it works fine in the swf alone? Ive uplaoded the menu.fla for anyone who can help?
Many thanks in advance
View Replies !
View Related
Menu Trouble
This is gonna be hard to explain....
I got a menu with 5 buttons.Lets call them button 1,2,3,4 and 5. These button has its own layer. When pressint button 5 first it starts playing is it should. The problem is when pressing button 1-4 after I have pressed 5 they play under the button 5 layer. I understand why this happen but is there a way to reset the position of the button 5?
View Replies !
View Related
Nav Menu Trouble
Hello everyone,
I'm relatively new to Flash and I've tried to make a go at it myself. I'm in the process of generating a menu system and I've hit a snag. During the mouseover state, each button sets the variable menu_txt to something different. What I would like to do is to have the menu text slide in, then out. My current (non-working) scheme is to have each button populate the dynamic text box(named menu_text), which is in a movie clip (named menu_txt_mc). I've posted both the nav_bar.v3.fla and nav_bar.v3.swf at www.zabaronick.com/design/flash
thanks for any help,
bill
View Replies !
View Related
|