Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Sub Menu



Hi I Have I'm creating a website and in the website I have a menu with about, denim, contact us, store locator and etch button has a submenu, so when a person go over a button "they are a movie clips" a sub menu pop up. I have etch movie that when a person roll over a small squared scroll in and when they roll out the squared scroll out. My question is how I can make when the people move the mouse to the submenu the squared doesn't scroll out.



FlashKit > Flash Help > Flash MX
Posted on: 04-21-2005, 06:56 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------

So the subject is a hint as to how hard it is to search on this simple idea.

Will be very greatful for some help today!


PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:

SectionA

SectionB

SectionC

What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.

Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)

THUS....


MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.

Can I do this with a GET/POST or something?

Thanks!
-AB
Birdsong is online now Edit/Delete Message

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!

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

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!

Highlighting Menu Option On Flash Menu In HTML Page
Hi Folks,

I have created a Flash menu to work with an HTML based site (the menu is the object in all the pages), but I would like the menu option to stay highlighted when clicked. I've created a series of buttons that highlight when they are scrolled over, but when they are clicked, the button returns to its normal state, as it should. I did come up with a not-so-nice solution, by loading a new movie whenever the user clicks on the option, and the new movie has the menu selection highlighted. Is there a way for the user to click on the menu option and have it stay highlighted until a new menu selection is clicked without having to create mutliple movies?

Docking Flash Menu/Menu That Stays On The Bottom Of The Screen
i have a site designed but im attempting to get the navigation to stay docked on the bottom of the screen.
i've spent hours searching the web trying to come up with the solution but haven't succeeded
what im trying to do can be seen on the following site: http://www.mcbd.co.uk/

i want the nav to stay on the bottom of the screen when the page is resized.

if anyone can point me in the right direction it would be greatly appreciated.

thanks

Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,

I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:

http://www.calatrava.com (click on the "slide show" link)

Would appreciate any pointers. Thanks!

Is There Anyway To Disable The Flash Player Dropdown Menu (not The Context Menu)
Greetings,
I am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.

If you don't think there's even a way to do this, could you just tell me that so I can inform my client?

Thank you either way

[Using MX 2004 if it matters]

Help With Pop Up Menu (Sub Menu Buttons) Linking To Frame On Main Timeline
Hi,
I really need help with my flash project. I've created a pop up menu by having 4 buttons on the main timeline which I made into a movie clip which has an instance name of menu_mc. Inside that movie clip I have my sub menu created and the menu works great. My only problem is that I can't seem to link the submenu buttons to the frames created on the main timeline. I've tried all the action script I can think of. One example I am using is

menu_mc.contact_btn.onfiltered= function() {
gotoAndStop("Scene 1", "contact");
}

This is where I am trying to link the Contact Button (which is a submenu button of the About button) to the contact frame which is located on the main timeline. Please help me if you can. Thanks.

Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,

I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:

http://www.calatrava.com (click on the "slide show" link)

Would appreciate any pointers. Thanks!

Tightest Menu Structure - Switch/case? BEST MENU
I'm looking to start building a new menu. I want to script it as tight as possible. There will be 7 buttons. When one is pressed, I want it to stay "pressed" until another is pressed.

What is the tightest way to structure this? I want to keep all script off of the buttons themselves. I was wondering if using a switch/case type structure would be best.

I searched a bit for what i was looking for, but could not find it. Does anyone have a example/thread they could throw my way?

thx.

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?

Flash Menu Transparent Over A Static Html Menu, Can It Be Done?
To ensure I have noticeable menu items (if user does not have flash installed)acting as a menu that, in principle, is part of the background.

I have made a nice little flash menu and would like it to mimic the menu text underneath it. So, transparent flash over a static html menu, can it be done?

Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,

My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it ?

this script goes to my transparent button

ActionScript Code:
on(rollOver)
{
     _root.menuMC.fade = "in";
}

on(rollOut)
{
     _root.menuMC.fade = "out";
}

this script goes to my menuMc with buttons inside

ActionScript Code:
onClipEvent(load)
{
     this._alpha = 0;
     fade = 0;
}

onClipEvent(enterFrame)
{
     if(fade == "out")
     {
          if(this._alpha > 0)
          {
               this._alpha -= 5;
          }
          else
          {
               fade = 0;
          }
     }
     else if(fade == "in")
     {
          if(this._alpha < 100)
          {
               this._alpha += 5;
          }
          else
          {
               fade = 0;
          }
     }
}

Appreciate what helps i get.

Help Finding A Vertical Colapsable Dropdown Menu With Sub-menu's Within
Hey there.
Can anyone point me in the right direction. Im looking for some open source
files with sort of a vertically based colapseable menu. Something with say for example
5-6 main buttons and then your able to open them- to view sub menu buttons within them...

Thanks very much!

How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

Menu Navigation Help Desperate Moving Menu Buttons
Hi On my flash site i have a list of buttons, when i rollover one of the buutons i want sub menu buttons to appear below it and push the other buttons down to make space, and on moue out the buttons to move back up to original place, how can i go abut doing this? hope someone can help really desperate

Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,

My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it :confused: ?

this script goes to my transparent button

ActionScript Code:
on(rollOver){_root.menuMC.fade = "in";} on(rollOut){_root.menuMC.fade = "out";}


this script goes to my menuMc with buttons inside

ActionScript Code:
onClipEvent(load){this._alpha = 0;fade = 0;} onClipEvent(enterFrame){if(fade == "out"){if(this._alpha > 0){this._alpha -= 5;}else{fade = 0;}}else if(fade == "in"){if(this._alpha < 100){this._alpha += 5;}else{fade = 0;}}}


Appreciate your help. Thanks

Flash Expanding Menu Instead Of Javascript Drop Down Menu?
I am trying to make a flash file that will take the place of a javascript drop down menu. I need to have a slim horizontal menu bar surrounded top and bottom by the rest of the HTML webpage.



The function of the flash menu would be such that when one of the buttons are moused over > the menu would expand over the HTML images below it with more menu buttons.



This is really easy to do with javascript but I want the creative freedom flash offers. Does anyone know how I can create a flash file that can expand larger than it’s original size on the webpage



I have seen some really neat flash banner ads that definitely are on top of other html. Maybe I could do something like that.



Please let me know any ideas or resources I could use to do this.



Thanks.

Senocular's XML Drop-Down Menu - How To Use Different Clips For Menu And Item?
I have been playing with the Senocular's tute on xml, and was wondering how i would implement one look for the menu items and one for the submenu's.

I tried doing if statements (if name attribute = name, the use a different clip) but that didnt seem to work.

Any ideas?

Combine XML Menu Tutorial With Verticle Sliding Menu
Hey Guys,
IM trying to combine the dynamic XML menu tutorial found here on Kirupa with a tut ive found else where.

Now I under stand how the sliding tutorial works, but its based on some fixed dimensions.

Obviously the dimensions of the XML menu can change as items are added ...if any one could take a look a source (below) and tell me where to start referencing the variouse dimensions involved?

The news.xml and news.fla files contain a rough working model of the XML menu in case they are fo any use?

LINK: www.nineironmusic.co.uk/scrollmenu.zip

Scroll menu AS:


ActionScript Code:
mouseX = _ymouse;menuX = menu._y;if (mouseX > 280) {    diff = (mouseX-280)/15;}if (mouseX < 220) {    diff = (220-mouseX)/15;}if (mouseX <= 250 && menuX <= 56) {    setProperty("menu", _y, menuX+diff);}if (mouseX >= 250 && menuX >= -204) {    setProperty("menu", _y, menuX-diff);}if (menu._y >= 56) {    menu._y = 56;} else if (menu._y <= -204) {    menu._y = -204;   }gotoAndPlay(2);


Thanks... once again!
Zaid

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?

How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

Menu Navigation Help Desperate Moving Menu Buttons
Hi On my flash site i have a list of buttons, when i rollover one of the buutons i want sub menu buttons to appear below it and push the other buttons down to make space, and on moue out the buttons to move back up to original place, how can i go abut doing this? hope someone can help really desperate

How Do You Pull Up The Type Pop-up Menu, And The Frame Pop-up Menu?
I'm halfway though a tuturial, and it asked me to pull up the Type pop-up menu, and the Frame pop-up menu, and i have no idea.

Dynamic Menu Question - More Than 9 Items In Sub Menu
Greetings,

I'm trying to use a dynamic menu from an actionscripts.org tutorial.

However it will only allow a maximum of 9 sub menu items. I would like to use up to 20. I believe it involves this line of script:

this[name+n].choice = (i*10) + n;

How would I change the actionscript in this file to allow that?

Thanks in advance.

Here is the relevant script:

//initialize main menu
for (i=1; i<=_root.total; ++i) {
//duplicate movie clip
menuMC.duplicateMovieClip("menuMC"+i, i);
//set new position
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
this["menuMC"+i].choice = i;
//create a variable to record the levels of the created MCs
levelTrack = i;
}
//initialize submenu by creating and positioning movie clips
for (i=1; i<=_root.total; ++i) {
//check to see if the item has a submenu
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
levelTrack += 1;
subMenuMC.duplicateMovieClip(name+n, levelTrack);
this[name+n]._visible = false;
this[name+n].choice = (i*10) + n;
}
//position first submenu item under parent
this[name+1]._y = this["menuMC"+i]._y+this["menuMC"+i]._height;
//position rest of submenu items
for (n=2; n<=_root["subText"+i]; ++n) {
this[name+n]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
}
}
}

//hide all the submenu items and return the main menu items to their start position
function resetMenu() {
for (i=1; i<=_root.total; ++i) {
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
this[name+n]._visible = false;
}
}
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
// called by clicking the main menu buttons, this shows the submenu and moves the main menu buttons to give them space
function submenuShow() {
resetMenu();
if (_root["subText"+choice]>=1) {
name = "stext"+choice;
for (n=1; n<=_root["subText"+choice]; ++n) {
this[name+n]._visible = true;
}
this["menuMC"+(choice+1)]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
for (i=choice+2; i<=_root.total; ++i) {
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
}

Linking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:

http://www.graphicdesign-nh.com/fc2/fcflashsite.html


The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!

LInking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:

http://www.graphicdesign-nh.com/fc2/fcflashsite.html


The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!

Context Menu -standard Menu Add Copy?
Hi,

Im working on a flash project and was wondering if its possible to change the standard context menu to include the "copy" function of the edit context menu. Basically, I would like my static text to be able to be copied with the right click menu choice "copy" that would come up for editable text. Is this possible?

Thanks,
Yvette

[F9] Roll-out Menu With Sub-menu: Clickthrough Issues
Simple question - I'm sure this is common, but I couldn't find what I needed:

I have a roll-out menu with several submenus. All are placed on the main timeline however (the submenus aren't inside the main menu MC). The obvious problem is: when the user rolls over one of the sub-menus, the ROLL_OUT action is triggered and the main menu rolls back in.

How can I set a sprite or mc to recognize moue actions, but also allow them to "sink" through to another level?

Drop Menu With Toggle Menu Items
I am having an issue with the toggle state of a couple of buttons in a menu.
I have provided a simplified version of a menu system I am trying to build as a zipfile attachment.

the first menu is empty. For this demonstration it has no purpose but to move the main time line from from frame 1, to frame 2.

The second menu (on frame 3) turns off and on two movie clips that are loaded externally. I have no problem initially loading them, and no problem turning them off and on with the toggle switch's loadMovie and unloadMovie commands.

The problem comes when I've unloaded a movie using the toggle button in the second menu, then click on the first menu. When I've clicked on the 2nd menu again, the toggle switch isn't in the same state that it was last left in. I have no idea how to make it remember which state it was in.

Is there someway I could ask,
"If movie is not loaded, got to off state.
If movie is loaded, go to on state." ?

Here is a zip file with the FLA files and the external SWF's.

Here is the menu in action:
Click here

Please help if you can.

Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

XML/Flash Menu - Making Menu Horizontal
Hi guys, I am trying to make the xml menu horizontal. I have manged to get it horizontal, the first submenu is right below however the following submenus go to the right. Can someone help me with this?

Thanks

Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

Make The Slide Menu Look Like The Bounce Menu From FL...
Hi all

I was wondering if someone can exlpain me how to transform the size of the slide menu (the one from the tutorials of Kirupa) to fit the size of the button, my english is quite basic, so you can see it here ! what I mean.

Thanks you very much in advance !

PS : sorry FlashLoaded , I alredy own the bounce menu btw (when It was from BJ..)

How To Create A Menu Bar Like The Main Menu In Www.macromedia.com?
That menu is so cool. I want to make something like that, also with fade effect. does anyone know?

XML Drop Menu: Close Menu On Roll Out
Hi,

As I was working through this tutorial I noticed that once the submenu is open you have to click the button to close the submenu.

Any ideas on how to have the submenu close once you roll out of the hit area.

This may be counter-intuitive to the idea of the tutorial but I don't think I'll have any menus beyond the drop down.

Thnaks

Ponyack

XML Drop Down Menu That Populates A List Menu
I was wondering if anyone could help me out. I've taken a few tutorials and from different sites and customized them, but I'm still new to AS 3 and a bit scared of XML, arrays and loops. if anyone can tell me what im doing wrong, that would be excellent. I've attached the xml file as well.

thanks in advance.
-b

ps. if someone has a better way of doing this, i'm open to suggestions. thanks.


//Imports needed for animation
import fl.transitions.Tween;
import fl.transitions.easing.*;
import caurina.transitions.*;
import fl.data.DataProvider;

//Array used for the tween so they won't get garbage collected
var tweensArray:Array = new Array();
//Used later when we animate the buttons
var buttonTween:Tween;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = scrollbox.sb.track.height - scrollbox.sb.thumb.height;


var leagueXML:XML = new XML();
var loader:URLLoader = new URLLoader();
var request:URLRequest= new URLRequest("league.xml");

loader.addEventListener(Event.COMPLETE,loaderOnCom plete);
loader.load (request);

function loaderOnComplete(event:Event):void{
leagueXML = new XML(event.target.data);

// Define an array
var league:Array = new Array({label:"Select a Conference",data:""});

// Loop through each video in XML
for each (var conf:XML in leagueXML.conf){
league.push({label:conf.name.toString(),data:conf. team.toString()});
}

// Add array to Combo Box
confCB.dataProvider = new DataProvider(league);
}


confCB.addEventListener(Event.CHANGE, changeHandler);

// Tell Flash what to do when an item in the ComboBox is clicked

function changeHandler(event:Event):void {
if(ComboBox(event.target).selectedItem.data != "")
{
//trace(ComboBox(event.target).selectedItem.data);
createMenu();
//trace(leagueXML.league.conf.team.toString());


function createMenu ():void {
//This will be used to represent a menu item
var menuItem:MenuItem;
//Counter
var i:uint = 0;

//Loop through the links found in the XML file
for each (var team:XML in leagueXML.league.conf) {

menuItem = new MenuItem();

//Insert the menu text (link.@name reads the link's "name" attribute)
menuItem.menuLabel.text = team.name;

//If the text is longer than the textfield, autosize so that the text is
//treated as left-justified text
menuItem.menuLabel.autoSize = TextFieldAutoSize.LEFT;

//Insert the menu button to stage
menuItem.x = 0;
menuItem.y = 0 + i*31;

//Make the button look like a button (hand cursor)
menuItem.buttonMode = true;
menuItem.mouseChildren = false;

//Add event handlers (used for animating the buttons)
menuItem.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
menuItem.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
menuItem.addEventListener (MouseEvent.CLICK, mouseClick);

//menu_container.holder_mc.addChild (menuItem);
scrollbox.content.holder_mc.addChild (menuItem);
//Increment the menu button counter, so we know how many buttons there are
i++;
}
if (i < 12) {
scrollbox.sb.visible=false;
scrollbox.x = 8.5;
}
}

Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

XML/Flash Menu - Making Menu Horizontal
Hi guys, I am trying to make the xml menu horizontal. I have manged to get it horizontal, the first submenu is right below however the following submenus go to the right. Can someone help me with this?

Thanks

Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

Drop Menu / Combo Box Menu In Flash MX
Im trying to develop a really simple (i.e. 4 or so links) via a Flash MX Combo Box component...

Im lost as to how the action script looks to actually make it 'work'... I understand how to use the component to create the drop menu (i.e. - the labels and the data (URL) lists)...

Does anyone have an example they can show me or is there a Tutorial somewhere that I've missed in my Googling?  (I tried Flashkit.com but no luck.

Thanks for your help!



Menu Link To Same Scene As Menu
I'm trying to make a scene with a menu. That I can do but what I'd like to do is that the links open beneath or on the side of the menu instead of totally chaging scenes. I don't klnopw if I'm being real clear. Check out http://www.recordsrecords.com for example. This is the idea. But I don't know how to do it.
Thanks already

Opening A Menu Closes The Menu Before
Hi there. I would like to create a navigation bar. When I'd click on a menu, it would open. Then, if I'd click on an other menu, the menu before would close before the new opens. I've seen this before but instead of just copy/paste, I would like to understand how this works. Can somebody explain me?

To make it clear, here's the idea:
(The whole thing is in flash) You've got your main page, which is a picture in the center and you've got your buttons under the picture. When you click on one of the buttons, the picture fades out, for example and then comes the next picture, according to the button you've chose. Then, you click on an other button and something happens again with the picture, to have a transition between the different menus. I'd really appreciate some help, guys!
Thanks a lot!

Problem With Menu - Menu In ActionScript
First of all hello..

I live in Wien and i am total beginer in Flash and Action script, but i would like to learn it. I have bought few books and all day long i try stuff in flash But.. I have one problem, so i need help.. I have downloaded one examlpe, but i do not know how to link the butons to real pages.. here is a part of code:

set("_root.menu1.link1.theTitle","link1");
set("_root.menu1.link2.theTitle","link2");
set("_root.menu1.link3.theTitle","link3");
set("_root.menu2.link1.theTitle","link4");

And so on..

My question ih, how to set that when i press for exmpl. LINK1, a page link1.htm opens. ?

Thanx in advance and sorry for my English

Problem With Sliding Menu (menu.xml)
I have tweeked one of the free sliding menu's (menu xml) downloaded from a website.

We have made it to go vertical instead of horizontal, also we make it stop once the top or bottom of the menu reaches the top/bottom of the page. Therefore we have removed it from looping all over again. The problem that occurs is that once it does stop the last menu button jumps up a bit; and everytime we go up and back down it jumps again and this keeps on happening.

Also the top part does the same (going up), this only happens to the first and last buttons.

I have attached my file so you can see what I have done wrong and hopefully help me on this.

Thanks in advance.

Local Connection/menu -sub Menu 2
well, it seems I'm not the only one with that localConnection problem 'cause there is already the same question there.
I want to trigger a submenu-movie from another main-menu-movie. in the receive movie the first frame is clear with only the actionscript and stop action, the 5th frame contains the submenu.

ok here my code:

"send.swf": (button-action)

on (release) {
transmit=new LocalConnection();
transmit.send("code","doit",button1);

//code=name of the connection
//doit= the function
//button1 =instance-name of the button

}


"receive.swf" (first frame /action layer)

stop();

receive= new LocalConnection();
receive.doit=gotoAndStop(5);{
_root.doit;
}

receive.connect("code");


My problem:
even if played alone the "receive"- movie doesn't stop at the first frame although the stop() action.
of course it stops there when I delete the rest of the code
(for both the movies there is not "output-report".)

I spend several hours trying different things; reread Jesse's tut and Macromedia's information abt localConnection but I can't find the bug in my script.


Thanks a lot for help:

Menu Button Inside Menu, Can You Do It?
I am trying to create a dropdown menu when you rollover a menu more menus appear underneath. I have my top menu with this code. The menu is a mc symbol. The "on" and "off" activate the other menu fade in.
on(rollOver){
gotoAndPlay("on");
}
on(rollOut){
gotoAndPlay("off");
}
Now here is where I'm having problems. I cannot get the menus inside the movieclip (which are also mc's)to work. I want them on rollover to change color and on click go to a url. I 've tried giving them an instance name, a function, _root., nothing. Can this be done?

Copyright © 2005-08 www.BigResource.com, All rights reserved