Dynamic, Autoresizing, HORIZONTAL Xml Menu Problems.
Im looking for a bit of help on creating an extenal xml driven HORIZONTAL menu, where its possible to:
- add or remove xml entries, causing the horizontal menu to resize appropriately.
- entries shouldnt overlap each other in the bar.
Currently, I have created an xml driven horizonal menu, however i am having trouble spacing them out evenly and automaticaly across a 750px navbar.
Conceptually, while in a for loop I take the textfield.textwidths of each xml entry after grabbing the data from the external file, then summed them up for the character total. I then create a "space" variable based off of the total width of the navbar minues the character sum, then divided by the number of entries in the xml file. (object.length)
lastly, Im having problems with the line of code to actually PLACE the menu objects. item._x = ????
The reason I have to ask is because most XML tutorials/movies all run vertically, and therefore dont have to worry about autosizing/running in to each other.
A bit of a complex question...thanks ahead for your help!
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-03-2004, 04:22 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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!
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!
Dynamic Horizontal Menu
I have a horizontal Menu that needs to fit in an aspx page. I also is a dynamic menu so only the 1st level of items are initially shown. When the user does a mouse over, the next level is shown.
I don't know how to set the height so that only a strip is shown. If I set a height to a specific size, my mouse over won't show me the drop down menu. It does show if I increase the height. But I don't want this as the rest of the content gets pushed down.I want the dynamic menu to appear on top of the other content.
Also, if I set a width, the menu gets cut. What I want is the munu to stay full with horizontal scroll bar showing for the browser.
Horizontal Dynamic Menu..help
I need to create a dynamic horizontal menu with submenus. Because it will be multilanguage and in German the buttons can be pretty long, I can't figure a way to make it.
The question is can I count the letters for the tabs and then create the dynamic textfields so they can match accordingly the length of the tabs. I even need them to be multiline(limit 2 lines) to be able to fit more of those.
Ai yai...
..........better ideas appreciated too..
Thanks a ton
Autoresizing Textfields
Hi!
Is there some way to control the sizing of a textfield so that it only expands at the bottom? Or is there a way to set a maxwidth when using autoSize? Pls hlp!
Table Autoresizing ...
I am wondering does flash support a window autoresizing function? So you don't have to specify pixels/inches for your images?
-B Funk
Stage Autoresizing Question
I am creating a slide show, and I can't figured how the resize the stage
I am loading a XML file, where the width and the height of the stage are defined. How can I apply those params to the stage ?
Autoresizing Movieclip To The Size Of Loaded Image
Hello as per the previous thread i am making an image gallery form xml.I had all the work except the client wants that when image loads inside a movieclip the movie clip size should get changed according to the image size.
Can anybody have an idea about it
Thanks in advance
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
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
Horizontal Menu Large Menu
Hi
Found nice fla on this site HORIZONTAL MENU.
Coverted it into xml menu.
Now the problem is that my Menu is vey large, about 20 buttons. Right now in fla menu is shorter then double the size of stage so it fits perfectly from left to right. If the menu is four (approximate) times larger how would i increase or decrese the menu postion depand on mouse postion.
Hope I explain it right.
Thanks
Horizontal Menu Help
Hello, I have a question about a horizontal menu I'm trying to do. There's an example of it here. I would like to re-create it in flash using mostly actionscript. Right now it's done in JScript but as you can see it's not that great and I'd like to maintain the same look. The hover-out doesn't even work. Can any help me with this issue? I'm using MX. Thanks.
Horizontal Menu Help, Please.
In the early stages of making a horizontal menu. In the attached file I have arrow buttons to send the menu to another frame, but if you press the arrow when the menu is in the right position it repositions it. This is an awful explanation I know, but if you look at the file I hope you'll understand. I don't want the movie to go to the left if it's already there. Any advice, please?
Horizontal Menu
I downloaded a file to help me create a horizontal menu that slides from left to right. As of right now anywhere on the screen moves the menu left to right, but I want to change it so that when the cursor is within say 36 pixels (top and bottom) that the menu will move. Here's the actionscript for the file:
difference = _xmouse - arrow._x;
arrow._x = arrow._x + (difference/delay);
menu._x = - arrow._x;
Thanks.
Horizontal Menu
once again I'm stuck. I wanted to do this from scratch, but then I found a download. (I've included it) now my problem is how do I put links and graphics into these bars? I know they can be resized for any dimension, but I want to make active links.
Horizontal Menu
I created a Horizontal Menu that scrolls across the screen with the mouse using this code:
_root.onEnterFrame = function() {
scroll_mc._x = scroll_mc._x+(0.5*Stage.width-_root._xmouse)/20;
}
It works great but I don't know haow to make it stop. Can some one please help? Thank you.
Horizontal Menu Help
Hi, I am createing a horizontal menu and I am having trouble getting the width of a dynamic text box imediatly after it has been assigned text. I need this width information before i can create another item in the menu. so it needs to happen between frames.
All help is much appreciated.
Horizontal Menu Help
i have been creating horizontal menu that has sub menus. the problem is that if i scroll over to the next item on the main menu the submenu of the previous stays open. is there any tutorial or can anyone help me with my menu. i have attached my file so anyone who can help me i'll very much appreciate it. thanks in advance
Help With Horizontal Menu
I'm new to flash so please bare with me. I am working on creating a new horizontal menu similar to the one on Macromedia's website. My problem right now is when I mouseover Menu2 and Menu3, the submenu appears, which is fine, but I want the submenu to go away if I move my mouse off of the Menu bar or the submenu. Right now I have to mouseover the menu bar again in order to get the submenu to go away. I'm sure there is a way to fix this, but I don't know how. Any help would be greatly appreciated. I have attached my .fla file so that you can see what's going on.
Thank you!
Horizontal XML Menu
I think I've solved my desire for a horizontal XML menu with drop down submenus. Yay! I've adapted the code from one I downloaded somewhere on this forum.
I'll post the ZIP of the files and you can rip it apart and improve up on it. I'd like to see what people can do with this. I'm struggling myself with the color (colour for us brits) on mouseOver but I'm sure that will come in time.
Anyways please check it out.
Horizontal Menu Bar
Ok so I got this menu bar which is simply a horizontal bar, and I have it
folowing the mouse on the vertical axis, which all works fine.
However, I ned it to stop at a certain point at the top of the movie,
and a certain point at the bottom of the movie.
Also I need it to stop when the mouse is ontop of the movieclip.
Any Ideas?
Here is the code i am using.
Code:
onClipEvent (enterFrame) {
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/15;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}
Thanks in advance.
Horizontal XML Menu
I need a hand making a horizontal menu based on XML. I tried the Kirupa XML dropdown menu tutorial, but I had a lot of trouble figuring out how to make a few alterations. First of which, I have several large buttons, lined up in a row, and I'd like text links to appear below the large buttons when a user rolls over each of the them. Can anyone offer me any advice or other online tutorials I can refer to in order to create this? Thank you for any help!!
XML Menu Horizontal
Hi guys!
Well I just did the following tutorial on Kirupa:
http://www.kirupa.com/developer/acti...pdown_menu.htm
And off course.. it works! I made it horizontal.. and added some color to it.. There's some tweaking I want to do though.. so I guess I need some help..
Problem 1:
I tried to get the 'submenu' in a different color (via another mc or something) but I can't seem to get it done.. Anyone have some suggestions?
And problem 2:
I also want to get the submenu to be 'centered'.. so that if I add a submenu to the last button.. it won't go outside of the frame..
hope u guys get it and somebody has a solution or suggestion how to fix this! Thnx in advance!
Grtz Erwin
Ow.. here are my files.. http://www.erwinweber.nl/xmlmenu.rar
[AS3] Horizontal Menu
My take on horizontal menus. Did this thing long time ago in AS2 and just wanted to see how it will look in AS3.
Nonbitmap version
And here is the bitmap version:
Bitmap version
Open the included HTML file and reload it few times to see different backgrounds being loaded.
Cheers
Help With Horizontal Menu
I'm new to flash so please bare with me. I am working on creating a new horizontal menu similar to the one on Macromedia's website. My problem right now is when I mouseover Menu2 and Menu3, the submenu appears, which is fine, but I want the submenu to go away if I move my mouse off of the Menu bar or the submenu. Right now I have to mouseover the menu bar again in order to get the submenu to go away. I'm sure there is a way to fix this, but I don't know how. Any help would be greatly appreciated. I have attached my .fla file so that you can see what's going on.
Thank you!
Horizontal XML Menu
I think I've solved my desire for a horizontal XML menu with drop down submenus. Yay! I've adapted the code from one I downloaded somewhere on this forum.
I'll post the ZIP of the files and you can rip it apart and improve up on it. I'd like to see what people can do with this. I'm struggling myself with the color (colour for us brits) on mouseOver but I'm sure that will come in time.
Anyways please check it out.
Horizontal Menu
Could someone explain how to make horizontal menu like in http://www.turnersouth.com/ ("Select Original Show") And if you can, please also tell me where i could find a sample of such flash...
The Horizontal Menu
Last edited by Murtada-Ki : 2004-06-23 at 13:42.
Nevermind, i found out, thanks for anyone who wanted to help
Horizontal Menu
Hey does anyone know how to make the horizontal menu that is under FLA source files work? I want to incorporate this menu but I can't get the buttons to work. I want to be able to navigate from scene to scene or frames in a scene. Does anyone know how to make them work? Please let me know. Here is the file I pulled from Ultraschock FLA source files.
FLA source files> Navigation & Interface>Horizontal Menu. Have a nice day.
Horizontal Menu
anyone can direct for a fla file of scrolling horizontal menu when mouse move
[xml] [as] Horizontal XML Menu?
Hello all!
I am trying to make a horizontal menu with XML. Right now I am getting the number of nodes. 5. I am using attachMovie to attach clips of a movie in library but its not working. Any help / examples would be appreciated.
CONTAIN is a movie clip on stage inside which I want to attach the button clips. BUTTON is a movie clip in the library with a text box inside it. The text box instance name is buttonText.
ActionScript Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("XMLMenu_MX.xml");
myXML.onLoad = function () {
menu=this.firstChild;
myXML.onLoad = buildMenu;
trace (menu.childNodes.length);
}
buildMenu = function () {
var i = 0;
for (i = 0; i<=menu.childNodes.length; i++); {
myXML.onLoad = function () {
myButton = contain.attachMovie("button", "button"+i, i);
myButton.buttonText.text = menu[i].attributes.NAME;
}
}
}
Horizontal Menu Fix
I don't know if this has been posted before now. I have searched all over for a fix for the horizontal menu to keep the bar from going too far to the right or left. I played around with it and now it stops at the end of the menu bar without looking like it is going to go hide. In the first frame of the menu mc I added the two if statements.....
difference = _xmouse - arrow._x;
arrow._x = arrow._x + (difference/delay);
menu._x = - arrow._x;
if ( arrow._x < -290 ) arrow._x = -290;
if ( arrow._x > 290 ) arrow._x = 290;
I have 15 menu buttons so if you have more or less you will have to mess with the numbers to get it to work right for you.
Horizontal Menu Help
can anyone help me with this problem?:
hi i'm using this menu on a site:
http://www.ultrashock.com/flas/Detailed/19.html
..my problem is asigning actions for the menu ..like "get url"
..the nav things (that look line buttons) aren't buttons at all but mc's
i've tryed putting buttons in sted of mc's ..but i dosn't seem to work ..i can aply the "get url" action but it dosn't "get" anny urls
help? anyone?
Horizontal Menu-- Very Important
hey all
i need to make a menu that slides on the x axis every time I click a button. do you know how to do that or know any tutorial on this kind of menu.
This is very important for me
thanx
Horizontal Elastic Menu
hi,
I'm trying to create an elastic horizontal nav system with four or five buttons...does anyone know where i could download a similar script to have a look at?
Appreciate any help..
thanks
Chris
Horizontal Slide Menu - HELP
Hey guys, I was wondering if any of you could help me out by telling me how to make one of those horizontal slide menus. The type of menu I'm talking about can be found at http://www.geckoarts.com. Click on "Script Lab" and you will see the sliding menu.
I will have about 10 links and 4 to 5 will be shown on the screen. I would like the user to be able to move the mouse left or right to see the other links. Also, I want the menu to speed up as the user moves the mouse left or right and not move at all in the center position just as it does at http://www.geckoarts.com.
Thanks!
Horizontal Sliding Menu
Hey guys, I was wondering if any of you could help me out by telling me how to make one of those horizontal slide menus. The type of menu I'm talking about can be found at http://www.geckoarts.com. Click on "Script Lab" and you will see the sliding menu.
I will have about 10 links and 4 to 5 will be shown on the screen. I would like the user to be able to move the mouse left or right to see the other links. Also, I want the menu to speed up as the user moves the mouse left or right and not move at all in the center position just as it does at http://www.geckoarts.com.
Thanks!
Horizontal Slider Menu
i have seen horizontal slider navigation menus on flash sites and would like to create on. I downloaded the sample from the flashkit main page but I am having a lot of trouble understanding it.
Any one have any tips for a newbie to actionscripting?
Xml Based Horizontal Menu
I need to create a horizontal menu using an XML datasource that will contain the menu labels.
I would like to create a button (just some text that behaves like a hyperlink - turns from black to blue with underline onmouseover) for each menu item in the XML file.
Problem is, how do I script this so that I can duplicate this button once for each menu item in the XML datasource and insert the label attribute into the button?
And, here's the kicker, how do I determine where to place the duplicated button in relation to the previously created button. Because each button will take up more or less horizontal space depending on the length of the label.
The XML will look like this:
<menus>
<menu id="1" label="Home" />
<menu id="2" label="Menu Manager" />
<menu id="3" label="Logout" />
</menus>
And I want the result in the swf to be:
HOME | MENU MANAGER | LOGOUT
Horizontal Sliding Menu?
Hey fellas,
Anyone know of a direct link to a tutorial for the "slide effect"? As in.. the user clicks a link and the whole backdrop shifts to the corresponding backdrop for that particular link? A good example is at www.popmultimedia.com
I've searched the tutorials here and can't quite find what I'm looking for. If anyone can help it would be greatly appreciated, I have to incorporate this effect into a flash site by monday and currently I'm just sitting here stuck
Horizontal Menu Tutorial
I was trying to make the horizontal menu tutorial but i lack on the looping part. In the flash file of the tutorial there are some actions in the buttons but in the explanation part it doesnt says anything about this actions. Can anybody help me? This is the code from the buttons.
on (release) {
_root.swapclip.gotoAndPlay(18);
_root.container.gotoAndStop(2);
}
thanks. Andrea.
Horizontal Scrolling Menu?
Has anybody ran into a tutorial for a horizontal scrolling/sliding menu. The ones with pictures/buttons that move left or right according to the possition of the mouse. I've seen them here before but I can't find one now
thanks in advance
Horizontal Scrolling Menu?
Has anybody ran into a tutorial for a horizontal scrolling/sliding menu. The ones with pictures/buttons that move left or right according to the possition of the mouse. I've seen them here before but I can't find one now
thanks in advance.
an .fla that I can disect would be fine too. thanks
Good Horizontal Menu?
Does anyone know where to get a good horizontal menu like the one marcomedia actually uses? Cant find anything on this site. Thanks.
|