View Full Version : xml menu DONE :)
lbeetles
July 13th, 2004, 07:23 AM
here it is
hga77
July 13th, 2004, 07:41 AM
yeah you need to have it as _global. Cos you put your buttons outside the menu itself
lbeetles
July 13th, 2004, 07:57 AM
ive no sorted that. Now to make the increment would i need a for statement. would it be:-
for(i=0, i<=Number_Items; i++);
hga77
July 13th, 2004, 08:04 AM
no no you dont need a for loop! Leave it to me, i'll do it. I'll send in an hour, need to do other stuff now
lbeetles
July 13th, 2004, 08:05 AM
ok thank you very much, as you can see my actionscripting is not all that good. I will try and have a go thou without using a for loop.
lbeetles
July 13th, 2004, 08:15 AM
im nearly there, ive managed to get the trace working correctly and its incrementing a decrementing properly. Now ive just gota sort out the loadMovie bit. :)
here is the code im using now.
next_btn.onRelease = function(){
currentThumb._name ++
trace(currentThumb._name);
loadMovie(action, pictureHolder);
}
hga77
July 13th, 2004, 09:44 AM
done :)
lbeetles
July 13th, 2004, 09:47 AM
cheers, hga77 that is perfect i really appreciate all your time an deffort you have put into this.
hga77
July 13th, 2004, 09:50 AM
ibeetles, delete that last fla I posted. use this one. I had to sortout the desc part, its working now :)
zaurbaz
July 13th, 2004, 01:07 PM
Hello,
Please can you show me where i can put the adding code to load swf from the xml. Thanks a lot dude.
hga77
July 13th, 2004, 05:02 PM
Did you read the thread mate? I've answered that before.
Have a look at the code in the fla. I've added comments explaining what you need to do. Its at the top, in the executeAction function.
zaurbaz
July 25th, 2004, 03:02 PM
Hi HGA,
Sorry for the last post. l've learn all message and now i understand where i cam put the code to load swf files.
But i 've just a question. How can i do to erase a link on a main heading and put the link ona subheading. I take an example. I'va a main heading called "Trips". I don't want a link on this heading but on the subheading below "trips1", trips2". The subheadings functions but when i erase the link on the main heading, the menu doesn't play. Can you give some informations about this.
Thanks for your time and your patience. ;)
Mateo
nessie
July 26th, 2004, 11:16 AM
i tryed to put a fade script to the movie and a resize script but i´m no guru. I´m a new beeeee . So if the is enyone out the how knovs and have the time to help me with any of the abow things i wona do i realy appreciate it.
and i also wonder how to make the scrool horisontel?
/M
peace! :player:
lbeetles
July 26th, 2004, 11:23 AM
i have added a resize script to this but its at home. when i get home 2nite i will post the fla to you.
Also i will have a go for the scroll to go the other way.
nessie
July 26th, 2004, 11:26 AM
Thank you !!!! :beam: :beer: :beam: :beer:
hga77
July 26th, 2004, 04:13 PM
sorry zaurbaz I dont follow you!
lbeetles
July 26th, 2004, 08:54 PM
nessie here is the gallery with a resize script for you. I will have a look at the horizontal scroll for you in a bit but now im off to bed.
zaurbaz
July 27th, 2004, 04:30 AM
sorry zaurbaz I dont follow you!
:p
No problem HGA, i've find a solution. I just wanted to erase the link on the main heading. But when i erased the code (action="myclip.swf"), the code didn't function. But if you keep the code and replace "myclip.swf" by link1 for example, the menu functions perfectly.
Thanks a lot for your work. I will send you the url of my book when it will be online.
Hasta luego.
Mateo
nessie
July 27th, 2004, 06:37 AM
thank you so very much i love it. I have a question is it posible to get the info text and the meny and the next/perv buton to resize whith the image???? And fade in out. And if you have the time could you show me :hugegrin: and if not thank you for this wonderful flash script.
/M :love: :love:
moltencheese
July 27th, 2004, 06:17 PM
I've gone through this whole thread and played around with different files and rearranging and changing the script. But I cant seem to understand how to create new variables which will read from the xml file, other than action. Could I ask that someone explain to me where to add in new variables? Please, it would help clear and defrag my brain a tonne.
Thanks so much
lunatic
July 27th, 2004, 06:21 PM
Hey lbeetles any chance you could post an mx version? :hugegrin:
thanks!
:hr:
scotty
July 28th, 2004, 03:36 AM
lunatic, it's the code from the resize thread;)
scotty(-:
moltencheese
July 28th, 2004, 11:51 AM
I've managed to create my own secondary and tertiary variables, after a long headache. Now just one quick question that I hope some of you with as experience can help me with. When I click on a sub I want to have it tell an instance on the main stage to do play. The instance name is controlled by the variable's value, so far I can't get it to work. I'm trying with....
function executeAction(action, mclip)
{
trace(action);
trace(mclip);
_root.netStream.play (action);
_root["mclip"].gotoAndPlay(2); }
The trace shows that both variables hold the correct and legitimate values. The netstream does work, however the gotoAndPlay the instance on the main stage does not. Any suggestions... pls pls pls pls pls.. thanks:P
lunatic
July 28th, 2004, 11:55 AM
lunatic, it's the code from the resize thread;)
scotty(-:
:lol: thanks scotty :love:
scotty
July 28th, 2004, 01:19 PM
no problem :rabbit:
scotty(-:
inVZbl
July 29th, 2004, 11:24 PM
This is baffeling me abit... Ive gone through all the posts and etc, and only one sort of stands out for what i need to do. I want to create a glossary type nav so when u click on an item it shows the name and glossary term in seperate fields in the flash piece.
I can get the description to show up in a field using the "_parent.desc_txt.text = description;" but i cant get anything else to work. The way i got it to work is by renaming the action bit in the code to description and somehow it worked... (i really have no idea what im doing).
Can someone please have a look at what ive done and tell me where ive gone wrong. Its baffeling me. This is just a testing piece so the fields are just added to the existing me.
thanks
nessie
August 2nd, 2004, 06:01 AM
one more question how do i do if i want to make different catalog´s of my pics. Butoms that i can place in a catalog meny and i wonder is i also can get help whith the xml to. :beam: :beam: :beam: :beam:
and how do i get the first pics to loade when entering frame ?
jankratochvil
August 2nd, 2004, 06:53 PM
Hi hga77, i tried to use your menu, menu is cool but how can i use the action attribute?
E.G. I will make some link (www. kirupa.com) or go to another frame in movie.
I is possible?
I think it has had to be posted already, but i cant find it.
Thanks Jan
My final version for this menu - v3
This version follows the same pattern as v2. So please read the thread before you ask any questions. You never know, you might find your answer ;)
Added v3 features:
- upto 3 level menu (top level, sub level, subsub level)
- extra configuration xml file. You can now setup the look n feel of the menu from outside flash. From the ‘menuConfig’ xml file, you can:
-- set menu speed
-- set menu spacer
-- set color speed (speed of color transitions when rollOver/rollOut)
-- set item colors
-- set item delay (the time/speed at which the items pop-up on screen)
:hugegrin:
nessie
August 4th, 2004, 06:22 AM
Hi lbeetles!
one more question how do i do if i want to make different catalog´s of my pics. Butoms that i can place in a catalog meny and i wonder if i also can get help whith the xml to. And is ther any vay to make the thumb look diferent ven been visited??
and how do i get the first pics to loade when entering frame ?
/M :party: :beer: :beam:
lbeetles
August 5th, 2004, 08:43 AM
Your best bet is to ask hga77 as he created this excellent menu.
nessie
August 5th, 2004, 08:44 AM
Hi hga77!
one more question how do i do if i want to make different catalog´s of my pics. Butoms that i can place in a catalog meny and i wonder if i also can get help whith the xml to. And is ther any vay to make the thumb look diferent ven been visited??
and how do i get the first pics to loade when entering frame ?
/M :thumb:
nessie
August 5th, 2004, 08:45 AM
thanks ! lbeetles :angel:
hga77
August 5th, 2004, 11:00 AM
nessie which fla file are you using? from which post number on this thread?
nessie
August 5th, 2004, 11:54 AM
The one ibeetles posted on page 18 and thread 262. I would bee soo hapy if you could help me with this! :crazy:
hga77
August 5th, 2004, 12:11 PM
I will have a look and get back to you :)
nessie
August 6th, 2004, 12:04 PM
thanks!
lbeetles
August 7th, 2004, 09:37 PM
hga77, how would i refer to one of the buttons for onRollOver???. I am doing something with the gallery version, and when u mouse over the image i want the name to appear in a text box. I have tried all sorts but i just cant seem to do it.
mtinch
August 16th, 2004, 11:22 PM
Hey everyone,
I've learned quite a bit of Flash from this thread. However, I'm having a really troublesome newbie problem.
I cannot get the menu to find the .swf its pointed to in the menuContent.xml file when I post it to the web. When I test the movie in Flash it works perfectly. When I post the files to the web it seems to become lost.
I have the menu.swf in the root directory with the .swf I wish to load in a folder called living. My menuContent.xml file resides in the xmlstuff folder. The xml reads as follows:
<item name="Furniture">
<sub name="Collection">
<subsub name="Borrelli" action="living/mx1.swf" />
</sub>
</item>
Not to repeat myself too much, but it works when I test it in flash, but once I post it, it cannot find it. If I put the mx1.swf in the root directory it can find it and works perfectly. I just have to change the action="mx1.swf", I don't know if I'm missing a / somewhere or what.
I pulling all my hair out.
Thanks
hga77
August 17th, 2004, 11:49 AM
The folder 'living' should be in the same folder as where the menu.swf is in. ie. 'living' should also be inside the root folder. If it is already, then post a zip with you menu/folders so we can have a look :)
hga77
August 17th, 2004, 12:17 PM
mtinch, I just realised something else that could be causing the problem. The attributes within the xml file are case sensetive when being published on the web, it is not case sensitive locally on your pc. So for example if the folder is called 'Living' (with capital 'L') and you have 'living' in your menuContent xml, then this setup would work only locally, but not on the web!
So make sure its all the same so that it works on the web too ;)
mtinch
August 17th, 2004, 12:53 PM
That was it. I had a capital 'L' on the folder. Duh! I knew it was something simple I was just plain overlooking. Thanks.
I know you've heard it a lot, but I don't think it can be said enough: thank you so much for this menu and for all the help you've provided.
hga77
August 19th, 2004, 09:42 PM
no problem mtinch ;)
Fla. for Ibeetles:
lbeetles
August 20th, 2004, 05:25 AM
Cheers hga77.
Thank you very much, once again.
Was the only line of code you added this:
_parent.thumbTitle.text = "";
hga77
August 20th, 2004, 08:05 AM
Ibeetles, no that's not the only line :)
That would not be enough since we need to define all states defined as follows:
- rollOver (code is in the 'overItem' mc since this mc is added in the over state within the button):
this._parent._parent._parent._parent.thumbTitle.te xt = this._parent._parent.info;
- rollOut (code is on the button held in the 'item' mc)
on (rollOut)
{
this._parent._parent.thumbTitle.text = "";
}
- release (this code is what you have mentioned already Ibeetles and it is for the release state)
_parent.thumbTitle.text = "";
lbeetles
August 20th, 2004, 08:17 AM
Cheers hga77, thats exactly what i needed. :)
nessie
August 20th, 2004, 11:36 AM
Hi hga77!
I downloaded the latest file you made and i wander if it´s posible to make the thoumbs apper like the info text that you just done so you can place it were ever you like. I tryed with this but the next/prev dosent workeand the thoumbs is in condition to the buttom.
M
hga77
August 20th, 2004, 11:49 PM
nessie i downloaded your zip but I still dont understand what you're trying to achieve!
If you mean that the next/prev buttons dont work at the start of the fla (ie. before you select a thumb), this is becuase the current thumb is not specified and no thumb/image is currently selected. All you would need to do is have the first thumb (and hence image) would be selected onLoad of the fla. But I might be confused about what you need...Explain again and i'll help you :)
nessie
August 24th, 2004, 06:15 AM
Hi hga77 !
I´m writeing all my question who i want to accomplish with this photo album i´m making. Excuse my bad English :blush: i dont mean that the next/prev buttons dont work at the start of the fla before you select a thumb. I mean that when i have selected a thumb the thumb image is visible but when i press next/prev the thumb-image do not change. just like it do when pressing thumb.
1.I wonder if the thumb-imges can apper on mouse over the thumb-bottom and if it´s posible to place the thumb-imges anywer just like you have done whith the info text on you laterst posted fla .
2.I also whont to place the next/prev buttom so they follow the pics box movment and always ar placed on eash side of the box.
3.I want to make different catalog´s of my pics just like the dropdown meny on this thread or just separate buttons that you could place wher ever.
4.And how do i get the first pics to loade when entering frame ?
:hugegrin: I hope this explain what i want to do and i fully understand if tis to much to ask. But if you have time over i realy appreciate the offer you make to help me. :love:
salvador marley
August 28th, 2004, 10:43 AM
Fabulous piece of work hga77.
I would like to bring into the thread the idea of transitions in the external swf files that the xml menu loads in. at the moment it loads in my externals but i cant figure out how to make transitions work. I cant get a fade out animation - it just dissapears.
I will not go into any further details because in my zip i have included a more detailed info text file that explains things in more detail. In there also is a traditional fla/swf file so you can see how i want the transitions to work.
I hope you can find time to look into this problem hga77, if not perhaps someone like scotty might look into it?
Thanks for the thread,
Cheers guys.
sticmann
August 28th, 2004, 09:27 PM
Salvador,
If I understand you correctly, check out this tutorial:
http://www.kirupa.com/developer/mx2004/transitions.htm
-Joshua
salvador marley
August 29th, 2004, 09:56 AM
sticmann,
Yeah i can do that already - but it doesnt seem possible in the xml version because actionscript can't be placed on individual buttons which seems to be a major problem with it.
salvador marley
August 29th, 2004, 09:16 PM
if its not possible to do this, it would be nice just to know that and then i can forget it and use normal buttons
Thanks
russ
August 29th, 2004, 10:30 PM
hga77,
How would I code the menu so that the text color of the current menu item the user is on is different from the rest.
Thanx,
russ
fleuron
August 30th, 2004, 04:15 PM
Hi hga77,
Thanks for the amazing menu!
If I were to have a really long name for a button, is it possible to have the text wrap to a second or third line, and the button grown in height to accommodate it?
Thanks
sticmann
August 30th, 2004, 05:20 PM
Marley,
Find the place in the menu code that tells flash what to do when you push the button and rework it with the code from the transition tutorial. I don't have it in front of me right now, so I don't know exactly where it is in the code. It will take a little tweaking, but since it is the same action each time (all that changes is the currMovie value which you already have as the action in the xml), it shouldn't be too bad.
-Joshua
salvador marley
August 30th, 2004, 05:55 PM
Sticmann, there is so much code here and its very advanced. I looked through it all and can't see anything that looks like button code - on release, on press type of code that I am used to. Its just too complex for me and needs an expert to look at it really.
I have contacted quite a lot of people who are quite advanced programmers and no one can work it out - i dont think it can be done, but what do I know :)
Cheers, if you get a chance and can look at it, that would be great.
sticmann
August 30th, 2004, 09:08 PM
I know hga would be able to do this much quicker and better than I would. I'm sure it can be done and it is a function I will need on the next site I'm building, so if hga doesn't get to it, I will try.
-Joshua
salvador marley
August 30th, 2004, 09:16 PM
thanks sticmann, thats very kind of you.
Perhaps hga has retired from the thread - i bet he's sick of it by now :)
hga77
September 1st, 2004, 07:19 AM
im not retired just yet people ;)
Just very busy....i'll make sure all is solved within this week :)
salvador marley
September 1st, 2004, 08:11 AM
thats great hga77 :)
hga77
September 1st, 2004, 09:35 AM
xml menu_v2_fading_loading
- added code for preloading external files that are loaded in, along with a preloader.
- added fading effect.
hga77
September 1st, 2004, 10:42 AM
fleuron, That is possible but not simple to do! And it means changing he menu functionality. Sorry mate
fleuron
September 1st, 2004, 01:01 PM
Thanks for the help hga77. Do you think you can point me in the right direction? I only need to worry about long names under the submenu. I suppose I need to check for text wrap, then depending on how many lines of text there are, change the graphic height of the button? Sounds way simpler then it is, am I missing anything? Would I be able to put this in the code in frame 1 or would it have to go elsewhere? Or do I need to keep your basic concepts and dramatically change the code to make this happen?
hga77
September 1st, 2004, 01:12 PM
fleuron, i dont know what the maximium text length you need! Cant you just strech the menu horizontally and keep the text on a single line? If not then upload a sample xml file so that I can see how big you need the text to be.
hga77
September 1st, 2004, 01:17 PM
The problem here is that if you dynamically change the height of various buttons, then the menu animation/motion algorithum has to change. This is because at the moment all buttons have the same height and hence the code can calculate where the items destinations/targets are. Having different buttons with different heights adds a great deal of work...
salvador marley
September 1st, 2004, 01:22 PM
With regards to my fade in and fade out problem. fabulous !!!!!!
And an extra bonus of the loaded in swf files not dissapearing when when one of the main buttons that have submenus is pressed
Much respect.
Thank you.
hga77
September 1st, 2004, 01:36 PM
no problem ;)
And an extra bonus of the loaded in swf files not dissapearing when when one of the main buttons that have submenus is pressed
The reason why that happened was becuase you had an "action" attribute in the xml file for items that did not need an action passed for them.
For example, look at the following xml:
<menu>
<item name="Home" action="Home.swf">
</item>
<item name="Products & Services" action="link 1">
<sub name="Production" action="production.swf"/>
<sub name="Customer focused" action="Customer.swf"/>
<sub name="Services" action="services.swf"/>
</item>
<menu>
Now if you look at the first item with the name "home", we also have an action "Home.swf". This is valid since we actually need to load in a home page.
But if you look at the second item with the name "Products & Services", we also have an action "link 1". This is not valid, since the menu will attempt to load in a file that doesnt even have an extenstion (eg. .swf, .jpg, etc). Plus we dont need to load in anything for this item (unless you need to that is, by specifying a correct swf, jpg, etc). So thats why if you click on the second item, you get a blank responce. So, it should be like this:
]<menu>
<item name="Home" action="Home.swf">
</item>
<item name="Products & Services">
<sub name="Production" action="production.swf"/>
<sub name="Customer focused" action="Customer.swf"/>
<sub name="Services" action="services.swf"/>
</item>
<menu>
:)
salvador marley
September 1st, 2004, 02:36 PM
makes sense hga77 :beam:
Thank you
fleuron
September 1st, 2004, 03:13 PM
Ok, now I see how complicated this is. I wanted anyone to be able to change the buttons, so I don't know how long they would make it. I imagine 4 lines would be the max, and I could always just tell them no more then x lines. I am limited to how long it can be. Attached is the xml. I'm not giving up. If I can get it working I'll post the .fla file. I'll probably be able to come up with some more specific questions as I get into it.
Thanks for the help!
FlashPlaya
September 1st, 2004, 03:34 PM
Hey hga77,
This thing just keeps gettin better and better!!!;) Great work hga77. Ok I know that you made a button down version, and I have that. But I am trying to have that function with the v2 fading menu? I tried playing around with it and and I could not get the button to sick??
Once again big ups to hga77 for all his time and great information;)
hga77
September 1st, 2004, 04:23 PM
I hear ya FlashPlaya :ear: Thanks for bigging me up mate :blush: :thumb:
On post #221 I uploaded v3 of this menu. I want to incorporate the following in v3:
- down state
- fading (only if specified)
- whatever else you guys suggest (if i think it's good to add though)
and i'll post as soon as possible :)
FlashPlaya
September 1st, 2004, 05:13 PM
That would be great!! Can't wait!!;):thumb:
sticmann
September 3rd, 2004, 01:35 PM
I'm glad hga got that done for you, Salvador.
I have two more questions. Can the top level items be horizontal with the subitems still vertical? Also, can the subitems drop down on a rollover instead of a click?
I got the menuitems horizontal by changing the x position to width * d, but I'm not sure how to get the submenus to line up under the correct item.
Also, is it possible for the submenus to animate out instead of just disappearing?
Thanks,
Joshua
hga77
September 6th, 2004, 09:04 AM
To be honest, if I needed a horizontal menu, I would not modify this menu, I would either build a new menu or search for one already made (many horizontal menus are around) since the coding for this menu was done mainly as a vertical system. A horizontal menu is not as complex as a vertical menu, because main items don’t need to change position. So why modify this menu?
But if you insist then show us what you have done so far and I’ll have a look :)
Also, is it possible for the submenus to animate out instead of just disappearing?
It is possible but for this menu we have the sub-menus simply removed on menu close. To have the submenus animate-out would mean solving the problem of masking each sub-menu...etc...this is so hard to explain :hangover:
KaiserSouze
September 6th, 2004, 09:31 AM
Hi there,
First off, just wanted to say that it's a great job done on the menu :D
I just wanted to ask a quick question to everyone on the board (dont you hate when people say that, and it ends up being hours of work?). How do I reference the sub menus and sub sub menus in the v3 of the menu from other MCs? At the moment, I am trying to make each of the sub menus the link to a slideshow, with each of the subsub menu buttons linking to an individual section of the slideshow.
The reason I wanted to reference the sub menus and subsub menus is that when a slideshow ended, I wanted to then close the previous submenu and open the next one in readyness for the next slideshow.
Sorry if I've confused anyone :blush: . Think I confused myself half way through writting this with all the sub menus and subsub menus.
sticmann
September 6th, 2004, 12:49 PM
To be honest, if I needed a horizontal menu, I would not modify this menu, I would either build a new menu or search for one already made (many horizontal menus are around) since the coding for this menu was done mainly as a vertical system. A horizontal menu is not as complex as a vertical menu, because main items don’t need to change position. So why modify this menu?
But if you insist then show us what you have done so far and I’ll have a look :)
It is possible but for this menu we have the sub-menus simply removed on menu close. To have the submenus animate-out would mean solving the problem of masking each sub-menu...etc...this is so hard to explain
I think the easiest thing I've done to this menu was getting it horizontal. Thank you for the response. I think I've just gotten it the way I want it, actually. The only thing I'm missing is the out animation. Is it really difficult? You don't have to do anything if you don't have time. I actually like figuring this stuff out, but any hint would be greatly appreciated.
Thanks,
-Joshua
nessie
September 9th, 2004, 09:56 AM
I dowloaded this one "xml menu_v2_fading_loading.zip" and it´s wery nice. I wonder if some one knows how to put the resize script for the (jpg,swf:s, , ,) like th one on the resize thread.
/M
ditt0
September 9th, 2004, 11:36 AM
Hello hga77, really great menu:)
I tried to modify it to have all the items and subitems expand horizontally and all works fine, except for the text-it doesn't show up at all( I mean the names of the buttons).Could you please help me with that?
---------
Duh..I solved it:) thanks a lot anyway for the inspiration:)
lbeetles
September 10th, 2004, 08:07 PM
Hi, does nayone know how i could get the gallery version to load the first image to load when the menu loads???
sticmann
September 11th, 2004, 05:20 PM
beetles,
I don't have the code right in front of me, but try something like
containerMC.loadPic("pic1.jpg");
or check these threads where they had the same issue
http://www.kirupaforum.com/forums/search.php?searchid=118137
http://www.kirupaforum.com/forums/showthread.php?t=51430&highlight=load+image
I've been going through all these different photogalleries, so I've run across this question a couple times.
-Joshua
lbeetles
September 11th, 2004, 09:07 PM
cheers for the reply sticmann, but the xml file is being created by php which is pulling the information from a mySql db, so as it is dynamic i wanted it to load the file which would be the first node from the xml rather then me hard code it into flash. Any ideas on ho wi could do this.
sticmann
September 11th, 2004, 10:16 PM
beetles,
These threads start with this exact question. They are different photo galleries, but I think the idea should still work
http://www.kirupaforum.com/forums/showthread.php?t=57181
http://www.kirupaforum.com/forums/showthread.php?t=57082
-Joshua
Also, on the menu v3, would it be difficult to have a timeout feature that retracts the submenus after a second or two if the mouse is no longer over it?
nessie
September 14th, 2004, 07:48 AM
hga77 !
is it posible to put tha rezise script to this xml meny?
"xml menu_v2_fading_loading.zip"
/m
lbeetles
September 14th, 2004, 08:07 PM
nessie,
use the script from this post http://www.kirupaforum.com/forums/showpost.php?p=584822&postcount=262 and take the code from the timeline and put it on the timeline in the fading file and this should be what you are looking for.
nessie
September 15th, 2004, 07:13 AM
Hi lbeetles !
It seams that i have a tendency to f - it upp i cant arrange i the right way pleac help me ! :disco:
/m
lbeetles
September 15th, 2004, 10:57 AM
nessie,
Here you go the "xml menu_v2_fading_loading.zip" with the resize on it.
nessie
September 15th, 2004, 11:01 AM
- lbeetles you the best ! :love: :love: :love: :love: :love:
lbeetles
September 15th, 2004, 11:04 AM
your welcome, but credit goes to hga77 for the menu and Cello for the resize script and all the other people who contributed to the resize script. :D
Felipe Bastos
September 15th, 2004, 12:28 PM
First, congratulations for this excellent xml menu!!!
I've made some adjustments to fit in my project and now I'm trying to include more sub levels, like subsubsub and subsubsubsub!!!
I tried to set the as but it's kind of impossible cause I dont know so much about as.
Can someone give me a hand on this?
Thanks!
FlashPlaya
September 15th, 2004, 12:56 PM
Hey lbeetles,
Is there a way to adapted the down state menu to the new file?? There is a Ver of where you hit the button it will stay down..
I hope this makes sense
Thanks :thumb:
Pneumonic
September 21st, 2004, 08:19 PM
Hey HGA. I've got a few questions that I'm sure are poorly worded, but I'm finishing up my finals this week, so my mind is fried. Here goes...
How can I load (external) text into the textbox using the your menu system?
How can I add a random preloader on(release)? Would I add the code to each .swf? Or Create an swf that it loads first, then redirects to the new swf?
Are either of these possible? Thanks for all your hard work on this menu. I'll be using it again on my redesigned site, once it's redesigned.
hga77
October 4th, 2004, 11:26 PM
Fla with down state.
hga77
October 4th, 2004, 11:31 PM
bluefish, they are possible, if i follow you that is. About loading text into the menu, you could have a look at some tutorials here that might help you. And with regards to a preloader, you should NOT have the preloader on each swf! You should have the preloader script on the main fla/swf that will act as the container (ie. the swf that you will load in your stuff). I have given an example here of a menu that has a preloading script in it, on this thread.
Pneumonic
October 4th, 2004, 11:39 PM
I'll check it out hga...Thanks alot. I appreciate it.
FlashPlaya
October 4th, 2004, 11:39 PM
You are all over the place!! Just hooking a playa up!!!!! :love: :thumb: By the way I think that i am getting the links in xml file??;)
Thanks Haga77 you are the man!!!
motionguru
October 6th, 2004, 12:28 PM
Hello first I want to thank you for the cool menu :)
One small wuestion, Im not sure if you guys talked about this:h:
But I need to have all the text embeded bacause i have this menu pulled in a masked area so the text doesnt show otherwise.
My question is. was the movie clips resized? because when I embed the text it shows distorted like the whole clip was resized.
Is there anyway to fix this, or is there another way to have the this dynamic text show if its under a masked area without being embeded?
The masked are is for the whole menu.
I have tryed: (I have made another movie clip on top of everything called Sub)
setMask(maskSub);
stop();
And it masks the xml menu fine but the text doesnt show only if i embed it but when i do that its distorted, not crisp :(
help is greatly apreciated ..
thanks :)
motionguru
October 6th, 2004, 01:17 PM
Think I got it fixed. :)
I had another mask on top of the mask that masked the xml menu.
mask this mask that and that .... lol
yea , thanks :)
spectreman
October 7th, 2004, 08:34 PM
alright - i got a handle on this menu.....
but what i can't figure out, is this:
http://www.peterrutgers.nl/
how does this guy get the loaded .swf forward and reverse transitions working with this menu......
thanks for any help!
s.
motionguru
October 7th, 2004, 09:39 PM
alright - i got a handle on this menu.....
but what i can't figure out, is this:
http://www.peterrutgers.nl/
how does this guy get the loaded .swf forward and reverse transitions working with this menu......
thanks for any help!
s.
I would also like to know how he embeded those fonts without everything going wachky. It might be a sily question, I am only learning:sigh:
Matisse
October 11th, 2004, 08:02 PM
Not sure if this will help.
The font is embedded as dynamic text under item for each sub section (open the library and you will see it there)
As for the transitions if you have made a content MC on the stage and have uncommented the code you should be able to load in external .swf, .jpeg etc.
Does anyone have a working preloader version have looked at HGA's but the dynamic text box (loadText) doesn't seem to be reading the percentage
Hope this helps
Thanks
Matisse
hga77
October 11th, 2004, 08:49 PM
Matisse, my mistake :blush:
Have a look at the code I added below, you need to add two lines of code. Read the comments.
Let me know how that goes :)
function preload(thePath)
{
mc.loadMovie(thePath);
_parent.attachMovie("loader", "loader", 101);
_parent.loader._x = 390;//loader x position
_parent.loader._y = 270;//loader y position
this._parent.onEnterFrame = function()
{
l = Math.round(mc.getBytesLoaded());
t = Math.round(mc.getBytesTotal());
getPercent = l/t;
_parent.loader.loadText = Math.round(getPercent*100)+"%"; //make sure you add this line!
if (l>0 && l>=t)
{
_parent.loader.loadText = ""; //make sure you add this line!
_parent.loader.changeAlpha(0, true);
mc.changeAlpha(100);
delete this.onEnterFrame;
}
}
}
spectreman
October 12th, 2004, 01:26 AM
Not sure if this will help.
The font is embedded as dynamic text under item for each sub section (open the library and you will see it there)
As for the transitions if you have made a content MC on the stage and have uncommented the code you should be able to load in external .swf, .jpeg etc.
Does anyone have a working preloader version have looked at HGA's but the dynamic text box (loadText) doesn't seem to be reading the percentage
Hope this helps
Thanks
Matisse
yeah - i can load external .swf, .jpeg etc.....but, i can't figure out the extra code needed to make the "reverse transitions" work. in other words, what code do you add so that when you click on "about button" the content MC on the stage loads a .swf (fade in) but then when you click "contact button", the "home button" fades out, and then the "contact button fades in.
there is a separate tutorial for the reversse transition effect, but the code is added to the instances of the buttons on the stage - i don't know where to add the code for this menu to get the effect i want. can anyone help??
thanks a million,
s.
Matisse
October 12th, 2004, 11:05 AM
Not 100% sure what you want to do. From what I can understand if you want to fade in a .swf and fade it out as the next content loads I would do it at the .swf level and avoid code eg. have your content as a mc fade in (tween) over say 10 frames stop then fade out on release. I can put up an example if this is your problem.
Hope this helps
HGA sorry preloader working but still no percent text, checked code, still no luck.
Working on dynamically loading text to a loaded .swf which is no problem. Need content .swf to stay and just the text content to change.
If anyone can help
Thanks
Matisse
spectreman
October 12th, 2004, 11:44 AM
Not 100% sure what you want to do. From what I can understand if you want to fade in a .swf and fade it out as the next content loads I would do it at the .swf level and avoid code eg. have your content as a mc fade in (tween) over say 10 frames stop then fade out on release. I can put up an example if this is your problem.
Hope this helps
HGA sorry preloader working but still no percent text, checked code, still no luck.
Working on dynamically loading text to a loaded .swf which is no problem. Need content .swf to stay and just the text content to change.
If anyone can help
Thanks
Matisse
that's what i want to do, but i'm not sure how to "unload" the current loaded .swf i.e. play the outro animation when another button in pressed.....and what if i have 8 buttons?? i was sure there would have to be code in the main movie to coordinate these actions......
can you post an example, so i can see if you have my solution??
by the way, thanks so much for the help - i really appreciate it
s.
hga77
October 12th, 2004, 02:19 PM
The 'loadText' for the preloader works fine Matisse!
Have a look:
LINK (http://members.lycos.co.uk/menupreloader/)
Attached the edited fla also.
lbeetles
October 14th, 2004, 06:53 AM
hga77, how would i be able to use CDATA for the text box in the gallery. I have the xml file setup correctly and i have changed the fla file so it will load htmlText but the text still wont load but all the other elements from the xml load fine. Any Ideas???
KaiserSouze
October 14th, 2004, 07:04 AM
Hi there,
Just wanted to ask if it was possible to call the instances of the v.3 menu with the downstates from outside of the menu. To explain, I'm currently working on a site with a slide show, and what I wanted to do was to use the depressed menu button to indicate which picture the user is currently on. I know how to expand the menu items from outside the menu
on (release) {
menu.curItem = 2;
menu.buildSub(2);//this opens up the second menu item tree, if you hadn't guessed
}
but I am at a loss to get the menu items to appear in their downstate :h:
Any help would be greatly appreciated
hga77
October 14th, 2004, 02:17 PM
Kaiser, have a look at the attached fla.
I have added a test button on the stage. Read the code on this test button.
Hope this helps :)
Ibeetles, can you explain more please and I will try and help :)
lbeetles
October 15th, 2004, 05:17 AM
Hi hga77, what i would like to do is use the menu to load in more text into text boxes when you click on and item. I have this done already from our previous attemps and all this is working find. what i need to do thou is have html text to load into one of the text boxes by using the CDATA in xml. When i use the CDATA in the xml file the text doesn't load in the flash file but the other text does.
KaiserSouze
October 15th, 2004, 07:37 AM
Thanks HGA, your a star :beer:
Just incase anyone else wants the code for the sub's and the subsub's...
menu.subHolder[1].theSub.doSubRelease();
menu.curSub = 1;
menu.buildSubSub(1);
menu = this._parent.menu;
menu.subholder.subsubHolder[1].theSubSub.doSubSubRelease();
menu.curSubSub = 1;
Matisse
October 17th, 2004, 09:14 PM
HGA My apologies about the percent text. Your right it works perfectly fine.
Sorry Exam Stress! Keep up the great work.
Matisse
lbeetles
October 18th, 2004, 01:00 PM
Hi hga77, what i wouuld like to do is use the menu to load in more text into text boxes when you click on and item. I have this done already from our previous attemps and all this is working find. what i need to do thou is have html text to load into one of the text boxes by using the CDATA in xml. When i use the CDATA in the xml file the text doesn't load in the flash file but the other text does.
Hi hga77 i no u r probably busy, but any ideas with this???
vaieel
October 19th, 2004, 12:16 PM
Hi. This is a great tool. I'm wondering if anyone knows of a way to load an external text file or xml file into a dynamic text field with this XML menu. I'm looking for a way to have the XML menu (which can be edited by the client) load external files into another dynamic text field (the external files will also be edited by the client).
Silent
October 22nd, 2004, 04:20 PM
For some reason whenever i use this in flash player 7 it turns black on roll over instead of the color I want. Any way to fix this?
Edit: Lol the the roll over color wasn't case sensitive for FP7.
ZeroFreedom
October 26th, 2004, 12:44 PM
Ok...I tried everything I can think of here and I just can't get this menu working... I did what you said
loadMovie( action + '.swf', _root.content);
trace(action);
But all I get is error loading information.swf, even though its there...
Can someone help me with this?
hga77
October 26th, 2004, 09:10 PM
i'd just like to remind myself to call my cousin as soon as possible.
Thanks.
p.s i'm a nob for never answering my phone.
lbeetles
November 1st, 2004, 07:22 PM
Hi im using the gallery version with the next and previous buttons on it. How do you load the first image when you click on the next button and it gets to the end of all the images instead of it just stoppping. Does anyone have any idea how this would be done.
Here is the code for the next
_parent.next_btn.onRelease = function()
{
Thumb = parseInt(currentThumb._name)+1;
if(Thumb < Number_Items)executeAction(_parent.menu[Thumb].picPath, Thumb)
}
dante2010
November 2nd, 2004, 07:14 PM
Hi,
Is there a way to use this menu with embedded fonts?
waltzer
November 4th, 2004, 09:45 AM
is it possible to make work this xml menu with iframe pages? and how i can do this?
i use "Xml_Menu_v2_buttonDown"
louster
November 4th, 2004, 09:54 AM
Massive amounts of respect to hga77 and all you guys contributing to this, i am i awe..
my question:
Im aiming at having a button trigger the whole menu, visualising "click: menu on" and "click: menu off". Is that possible?
If somebody can point me in the right direction i would be very grateful.
Thanks!
waltzer
November 4th, 2004, 12:28 PM
i already found the answer :D
thank you hga77 for this super menu!
RESPECT!
salvador marley
November 5th, 2004, 03:15 PM
dante, if you look in the library and open one of the symbols, there is the text boxes in there and then you can put in your own font and embed it.
If you cant find it, write back.
lbeetles
November 10th, 2004, 08:52 AM
Has anyone managed to get it to load the first file (path from xml file), when the menu first loads???
If so please could you tell me how as ive been trying all sorts but without any joy.
saleek
November 16th, 2004, 08:31 AM
Firstly, thanks to all who have worked on this and made contributions.
I have been attempting to add a preloader to this navigation system. I am loading a version of it into another swf and want it to preload.
I have a version of the menu and one of the thumbs is a short video clip which play onRollover and stop on rollOut.
What happens when I view it over the internet is that, the videoclip thumb loads up a frame straight away, whilst the image thumbs take longer to show up.
I have tried placing loaders at different levels without success.
I would like to hear from anyone who has managed to preload each thumb.
regards,
KS
semtex
November 17th, 2004, 06:59 AM
Excellent script.
I've been reading through the whole topic. Couldn't find this one thing:
In the sub item, the dynamic text box is set to VERDANA 13pt, still it's displayed smaller than 13pt when I export the movie. How does that come?
glowworm
November 23rd, 2004, 03:11 AM
Hga77...
wow!!! what friggin' awesome thread! I've learned so much from reading this, however, not enough to solve a problem I'm having. I feel that I'm over looking something simple but I'm baffled as to what it is due to my lack of XML experience.
Problem: For some reason I can't get my buttons to open the urls I've indicated - completely clueless as to why - the variables keep coming back "undefined". Also, I'd like to use a style sheet to change the color of the text on each menu item but having very little success.
Attached are the files I'm working on - any and all help would be greatly appreciated!
kmac
December 2nd, 2004, 12:53 PM
Hi HGA,Wonderful menu!
I would like to be able to reference a particular button on the menu, that would cause the time line to go to a labelled frame.
So, if a user hit the "Home" button, it would move the timeline forward to a frame labelled "on". And if a user hit any of the other menu buttons the timeline would move to the frame labelled "off".
I placed the below code on the "theItem" clip:
on (press) {
if (_global._name == "HOME") {
_root.gotoAndPlay("on");
} else {
_root.gotoAndStop("off");
}
}
It works fine for the second half of the script, moving the timeline to "off", but I can't get the reference to "HOME" to work.
I'm guessing I'm targetting it improperly, (I've tried other combinations to no avail).
I would greatly appreciate your help (or anyone else) with this.
Apologies in advance if this has been covered in an earlier post.
Cheers
Zer0
December 2nd, 2004, 06:22 PM
Can we use this one with unicode?
byron 2
December 6th, 2004, 07:41 AM
:moustacheGreat stuff --- I have a really stupid question that has probably been answered already. how do you get "home" to load at the begining without pressing a button?
I dont want a blank screen thats all -
thanks in advance! your welcome to roll your eyes and sigh!!!
I really need this
norm1252003
December 7th, 2004, 09:41 AM
hga77, great work, however i am completely baffled as to why the target type was lost in the v3 download of the xml menu. I have been looking at both downloads, (target type pg.4 & v3 pg.7) I can not get urls to work in the v3 download. I have looked at the script and I see the uncomment lines, I have insert the if and else statement from the target type, but the links still are undefined. Has anybody come across this problem too? please give some help. Thanxs
cheers,
norm
peter parker
December 9th, 2004, 12:25 PM
First of all thanks to hga for making this fine menu, i'd been searching for 2 years to find such a great menu, so this was like striking gold :D
my questions is:
can version - xml menu_v2_fading_loading be made to work with - menuConfig.xml from v3?
any help is appreciated, i'm a bit of a dummy when it comes to scripting though, that's why the v2 is good for me because it loads external swf's already... i messed it up in v3.
thanks
pp
sticmann
December 11th, 2004, 10:17 PM
Hi im using the gallery version with the next and previous buttons on it. How do you load the first image when you click on the next button and it gets to the end of all the images instead of it just stoppping. Does anyone have any idea how this would be done.
Here is the code for the next
_parent.next_btn.onRelease = function()
{
Thumb = parseInt(currentThumb._name)+1;
if(Thumb < Number_Items)executeAction(_parent.menu[Thumb].picPath, Thumb)
} Beetles, you're really close I think. Try something like this:
_parent.next_btn.onRelease = function()
{
Thumb = parseInt(currentThumb._name)+1;
if (Thumb < Number_Items) {
executeAction(_parent.menu[Thumb].picPath, Thumb);
} else if (Thumb == Number_Items){
Thumb = 0;// or whatever the first Thumb._name is
executeAction(_parent.menu[Thumb].picPath, Thumb);
}
}
-Joshua
lbeetles
December 13th, 2004, 05:06 AM
Excellent Joshua, that works a treat.
byron 2
December 13th, 2004, 05:31 AM
Great stuff --- I have a really stupid question that has probably been answered already. how do you get "home" to load at the begining without pressing a button?
I dont want a blank screen thats all -
thanks in advance! your welcome to roll your eyes and sigh!!!
I really need this
sticmann
December 13th, 2004, 09:26 PM
Byron -
in your first frame, just load a movie into your content holder (empty) movie clip.
You can use the function built into the menu:
action = "home.swf";
_root.menu.executeAction(action);
(i think that's right; I don't have it in front of me at the moment)
or use
emptyClip.loadMovie("home.swf");
-Joshua
byron 2
December 14th, 2004, 08:08 AM
Thanks stikky! Whoos the daddy! Simple answer to a simple question. Thats what makes kirupa great
sticmann
December 14th, 2004, 09:21 PM
Thanks stikky! Whoos the daddy! Simple answer to a simple question. Thats what makes kirupa great
I've gotten so much help here, I'm glad when I can return the favor.
-Joshua
lbeetles
December 16th, 2004, 06:15 AM
Hi Joshua,
when i apply the code for the next button it works fine. Here is the code for the next button:
_parent.next_btn.onRelease =function()
{
Thumb = parseInt(currentThumb._name)+1;
if (Thumb < Number_Items) {
executeAction(_parent.menu[Thumb].picPath, Thumb);
} else if (Thumb == Number_Items){
Thumb = 0;// or whatever the first Thumb._name is
executeAction(_parent.menu[Thumb].picPath, Thumb);
}
}
but when i but it on the previous button it doesnt work. Here is the code for the previous button:
_parent.next_btn.onRelease =function()
{
Thumb = parseInt(currentThumb._name)-1;
if (Thumb < Number_Items) {
executeAction(_parent.menu[Thumb].picPath, Thumb);
} else if (Thumb == Number_Items){
Thumb = 0;// or whatever the first Thumb._name is
executeAction(_parent.menu[Thumb].picPath, Thumb);
}
}
Any suggestions???
sticmann
December 16th, 2004, 05:23 PM
try this:
_parent.previous_btn.onRelease =function()
{
Thumb = parseInt(currentThumb._name)-1;
if (Thumb < Number_Items) {
executeAction(_parent.menu[Thumb].picPath, Thumb);
} else if (Thumb < 0){//this will see if you've gone past the first thumb
Thumb = Number_Items;
executeAction(_parent.menu[Thumb].picPath, Thumb);
}
}
-Joshua
lbeetles
December 17th, 2004, 06:04 AM
Sorry but that still is not working. It gets to the first image and then when you click on it again and it is supposed to go to the last image but it doesn't load it.
sticmann
December 17th, 2004, 04:22 PM
oops. try this:
_parent.previous_btn.onRelease =function(){
Thumb = parseInt(currentThumb._name)-1;
if (Thumb >= 0) {
executeAction(_parent.menu[Thumb].picPath, Thumb);
} else if (Thumb < 0){
Thumb = Number_Items;
executeAction(_parent.menu[Thumb].picPath, Thumb);
}
}
-Joshua
scottybuckets
January 10th, 2005, 01:57 PM
im hoping someone can help me with this... im using the menu v3 with the load content mc function and preloader... works fine! :) BUT im trying to figure out a way to click on a menu item and then play a transition I made (not just have it fade in and ouot).
(example: i have a transition/mc that drops a curtain... i want the curtain to stay down, play the preloader, when its done, the cutain will raise up with the loaded clip underneath..)
i just need to find out how to get the transition to play when the menu items are clicked...
imported_theguaz
January 11th, 2005, 09:07 PM
I have some questiosn about the recursive...
scottybuckets
January 14th, 2005, 12:46 AM
is it possible for the buttons to trigger a transition (ex: the kirupa transition tutorial)? I'm just trying to create an smoother animation then the one included with this menu.. everytime you click on another button in the menu the loaded movie just disappears and then loads a new one.. any ideas?
Johnny Cache
January 22nd, 2005, 02:16 PM
xml menu_v2_fading_loading
- added code for preloading external files that are loaded in, along with a preloader.
- added fading effect.
Hi Hga77;
excellent work on the menu i wonder could you hav a quick look at my version to see why the preloader isnt working anymore??
Its prob something very stupid im missing!
I figure youre the best guy to ask..any help much appreciated..
Johnny
sticmann
January 22nd, 2005, 06:22 PM
scottybuckets,
In the executeAction function (near the top of the as on the menu), replace the loadMovie with your transition.gotoAndPlay("closing"); (from the tutorial you mentioned).
Then, the transition file will load your next movie when the curtain falls and open curtain when it is loaded (if you do have it set up like the tut).
You can do away with the code that deals with the preloader.
-Joshua
edd
January 27th, 2005, 01:41 PM
HELLO OUT THERE!
really nice menu... and thanks for the infos in this forum.
I was trying this menu, and my big problem is that I can't open html files.
I mean, I put the menu in a html page, and with it (the menu) I would like to open other html pages... but it doesnt work... I dont know why... It seems the XML file is ok, but I dont know if the "problem" is on the AS... so if somedy can just tell what to do...
Thanks a lot
edd
johndweir
February 2nd, 2005, 10:40 PM
Hi
Currently working on a project in which I plan on using this menu. My only problem is that I require it to build and work from the bottom up rather than the top down. I have attempted to modify it with my limited understanding of actionScript, but haven't succeeded.
Can anyone shed any light on this for me?
cheers
KaiserSouze
February 2nd, 2005, 11:52 PM
Hi
Currently working on a project in which I plan on using this menu. My only problem is that I require it to build and work from the bottom up rather than the top down. I have attempted to modify it with my limited understanding of actionScript, but haven't succeeded.
Can anyone shed any light on this for me?
cheers
You know, I was going to ask the same thing
scottybuckets
February 12th, 2005, 09:19 PM
I need a little help... I'm using the XML menu with thumbnails.... problem is I dont want to click the menu items and have them load a larger image in a target.. I just need them to open a URL in a new window... i changed the function to:
onClipEvent (load)
{
function executeAction(action)
{
getURL( action , "_blank");
}
MovieClip.prototype.activateThumbs = function() {
var d = 0;
for (i=0; i<Number_Items; i++) {
this[i].start = getTimer();
this[i].delay = itemDelay*d;
this[i].gotoAndPlay(3);
d++;
}
};
and added an action="url" to the XML file. I got the new page to open when menu is clicked BUT it just opens the larger image instead of the URL...
can anyone help? thanks
Ariel_Lévesque
February 26th, 2005, 08:31 PM
Hi everybody, special thanks to hga77 for this usefull piece of code...
I managed my way to customize the file to suit my needs, and everythings went fine. There is only one thing that bother me, since I cannot find out how to fix it; is it possible to keep submenus open when other submenus are called ? I would like the menu to be fully "unfoldable"...
Sirenetta1
March 1st, 2005, 09:01 PM
I'd like to do the same as Byron; have the home page load before hitting a menu button, but I can't figure out Sticmann's instructions.. I've tried placing the script on different frames, but it doesn't work. Could you please explain again where I'm supposed to drop in the code? :crying:
Byron -
in your first frame, just load a movie into your content holder (empty) movie clip.
You can use the function built into the menu:
action = "home.swf";
_root.menu.executeAction(action);
(i think that's right; I don't have it in front of me at the moment)
or use
emptyClip.loadMovie("home.swf");
-Joshua
z_nicz
March 2nd, 2005, 02:06 PM
HELLO OUT THERE!
really nice menu... and thanks for the infos in this forum.
I was trying this menu, and my big problem is that I can't open html files.
I mean, I put the menu in a html page, and with it (the menu) I would like to open other html pages... but it doesnt work... I dont know why... It seems the XML file is ok, but I dont know if the "problem" is on the AS... so if somedy can just tell what to do...
Thanks a lot
edd
Hi everyone, I totally agree, nice meny. I've tried to put it on a html page but without succes, mayby u Edd could help me out with the code :ko: I need the code to paste the meny on a html page, after that I can go on and help u with your problem, any help is appreciated =)
kmac
March 3rd, 2005, 11:59 PM
Hi,
In post # 354 (pg 24) KaiserSouze showed a way to call the menu from an outside button.
I need to do the same thing, but I'm having trouble with the code.
On a button is the below code:
on (release) {
menu = this._parent.menu;
menu[5].theItem.doItemRelease();
menu.curItem = 5;
menu.buildSub(5);
menu.subHolder[4].theSub.doSubRelease();
menu.curSub = 4;
menu.buildSubSub(4);
menu.subholder.subsubHolder[1].theSubSub.doSubSubRelease();
menu.curSubSub = 4;
}
When I test the button, the menu expands fine to the third level, but the first & second levels have disappeared?? Also, the swf that loads is the top level Item (menu 5), when what should be loading is the subsub swf.
What am I doing wrong here? I've tried a number of different ways of calling this and am pulling my hair out. Any help would be extremely appreciated.
Cheers
kmac
March 4th, 2005, 03:05 AM
Hi again,
Thought I would add an example to clarify things.
Thanks in advance,
Kmac
kmac
March 4th, 2005, 03:10 AM
Hi,
In post # 354 (pg 24) KaiserSouze showed a way to call the menu from an outside button.
I need to do the same thing, but I'm having trouble with the code.
On a button is the below code:
on (release) {
menu = this._parent.menu;
menu[5].theItem.doItemRelease();
menu.curItem = 5;
menu.buildSub(5);
menu.subHolder[4].theSub.doSubRelease();
menu.curSub = 4;
menu.buildSubSub(4);
menu.subholder.subsubHolder[1].theSubSub.doSubSubRelease();
menu.curSubSub = 4;
}
When I test the button, the menu expands fine to the third level, but the first & second levels have disappeared?? Also, the swf that loads is the top level Item (menu 5), when what should be loading is the subsub swf.
What am I doing wrong here? I've tried a number of different ways of calling this and am pulling my hair out. Any help would be extremely appreciated.
Cheers
Thought I would add an example (http://www.kirupa.com/forum/attachment.php?attachmentid=10033&stc=1) to clarify things.
Thanks in advance
Kmac
KaiserSouze
March 4th, 2005, 01:03 PM
Can't look at your code at work, cause this mac doesn't like that particular zip file you supplied, but I would assume the reason the menu is going haywire is because you're calling the sub and subsub menus before they even exist. If you look through the AS, you'll see that the sub menus are only created once you click on an item with sub child nodes attached. Call each menu item seperately once each section is created, and I think it should work properly.
I'll try and find the old code I did with setIntervals when I get home
kmac
March 4th, 2005, 02:33 PM
Can't look at your code at work, cause this mac doesn't like that particular zip file you supplied, but I would assume the reason the menu is going haywire is because you're calling the sub and subsub menus before they even exist. If you look through the AS, you'll see that the sub menus are only created once you click on an item with sub child nodes attached. Call each menu item seperately once each section is created, and I think it should work properly.
I'll try and find the old code I did with setIntervals when I get home
That would be wonderful! I'll try playing with the code as you said in the meantime.
Cheers,
Kmac
kmac
March 4th, 2005, 02:48 PM
That would be wonderful! I'll try playing with the code as you said in the meantime.
Cheers,
Kmac
KaiserSouze,
Here's an example with the xml included.
Cheers & thanks again
KaiserSouze
March 5th, 2005, 03:49 PM
OK so I couldn't find the one I originally did, so I made a quick hash. You'll see the AS I added to control the menu on the second frame of the movie. To alter the timing of when the buttons are pressed, just change the two setIntervals.
I also saw that you didn't want to have certain buttons carry out their "action", so I've altered the code on theItem and theSub so that if you need the menu to go past that level on the single button press, it will only change their colour and not activate their "action".
Hope it helps :afro:
kmac
March 5th, 2005, 05:17 PM
OK so I couldn't find the one I originally did, so I made a quick hash. You'll see the AS I added to control the menu on the second frame of the movie. To alter the timing of when the buttons are pressed, just change the two setIntervals.
I also saw that you didn't want to have certain buttons carry out their "action", so I've altered the code on theItem and theSub so that if you need the menu to go past that level on the single button press, it will only change their colour and not activate their "action".
Hope it helps :afro:
KaiserSouze - thank you heaps!! And the commenting - I can't believe you went to all the trouble.
Much appreciation, you've made my day!
Cheers,
Kmac
boskizzi
March 7th, 2005, 05:36 AM
Hello,
Some of you have xml_menu_v3 with target type?!?!
Tnks!!
flashwillkill
March 8th, 2005, 05:03 AM
Hi hga77 and everyone participating in this great threat,
... really amazing menu, I am impressed.
I am using the xml_menu_v2_buttonDown.zip from page 14 post #203.
I was able to change some effects and make the submenues open
next to the menu ... great achievement ;)
Now, I want to add a simple loadbar and loadText on the main stage,
to control the loading process of the contentHolder.
I know there is xml menu_v2_fading_loading.zip on page 21 post #305
for the loading issue, ... yet it seems the loader shows all the time (if
thats the right discription for it?) ... and I can't make it work ...
What I am trying is:
onClipEvent (load){
_parent.loadbar._visible = false;
_parent.loadText._visible = false;
function executeAction(action, subItem) {
loadMovie( action , _parent.contentHolder);
previousSub.gotoAndStop("10");
this.subHolder[subItem].gotoAndPlay("11");
previousSub = this.subHolder[subItem];
this._parent.onEnterFrame = function() {
t=_parent.contentHolder.getBytesTotal(), l=_parent.contentHolder.getBytesLoaded();
loadbar._visible = false;
loadText._visible = false;
per = Math.round((l/t)*100);
//added the t>4 (an empty mc has a
if (t == l && t>4) {
_parent.contentHolder.fader("fadeIn", 10, 100);
loadbar._visible = false;
loadText._visible = false;
loadText.text = "";
} else {
if (l>2) {
loadbar._visible = true;
loadbar._width = per*1.5;
loadText._visible = true;
loadText.text = per+" % loaded";
if(per == 100){
loadbar._visible = false;
loadText._visible = false;
}
}
}
};
MovieClip.prototype.fader = function(fadeType, incr, fadeTo) {
if (fadeType == "fadeIn") {
//this._alpha = 0;
this.onEnterFrame = function() {
this._alpha += incr;
if (this._alpha>=fadeTo) {
//added this line
this._alpha = fadeTo;
delete this.onEnterFrame;
}
};
}
if (fadeType == "fadeOut") {
//this._alpha = 0;
this.onEnterFrame = function() {
this._alpha -= incr;
if (this._alpha<=fadeTo) {
//added this line
this._alpha = fadeTo;
delete this.onEnterFrame;
}
};
}
};
... but I wouldn't write this, if its working. :puzzled:
Question: Is it possible to make this work, am I just using _parent wrong.
Wrong place to put this in the onLoad. Great confusion here!
I tried everything possible to me, any help from the expert menu kirupians is greatfully
appreciated. Thanks a million everyone (btw ... is it exam time again? ....)
lbeetles
March 16th, 2005, 09:09 PM
Hi All,
Is there anyway to make this great menu so that it has different colours for altenative buttons??? i.e. button 1,3,5,7,9 are red and 2,4,6,8,10 are blue.
Regards
Lee
mordecai
March 18th, 2005, 02:04 PM
Hopefully this post doesn't get lost.
This is (hopefully) the LAST thing I need before I can finish up the graphics side of my new site that I'm launching for the may 1 reboot.
I'm trying to merge this menu with http://www.kirupa.com/developer/mx2004/transitions.htm so that I can have transitions but still have the functionality of an xml menu.
I've gotten to the point where the xml menu loads the correct swf, but past that it just loads them...no transitions.
Here is the code I want to insert
if (_root.currMovie == undefined)
{
_root.currMovie = "section1";
_level0.content.loadMovie("section1.swf");
}
else if (_root.currMovie != "section1")
{
if (_level0.content._currentframe >= _level0.content.midframe) {
_root.currMovie = "section1";
_level0.content.play();
}
}
}
into this:
function executeAction(action)
{
loadMovie( action , _parent.content);
trace(action);
}
I've tried numerous methods of putting the two codes together and I
can't get my menu system to tell the current movie to tell the _root
what the currMovie is.
This is probably so easy I'll say a big homer "doh" when someone clues me in.
Sirenetta1
March 18th, 2005, 04:18 PM
Mordecai,
I also would love to know the answer to this question, as I wanted to use the XML menu, but still have transitions. Hopefully someone will answer your post, but if you figure it out, PLEASE post your .fla because I know a lot of people would want to use it.. like me!! :D
I'm trying to merge this menu with http://www.kirupa.com/developer/mx2004/transitions.htm so that I can have transitions but still have the functionality of an xml menu.
mordecai
March 21st, 2005, 01:51 PM
Still havn't found any way of doing this. If I'm screwed let me know
so I can design around it.
Sirenetta1
March 21st, 2005, 03:26 PM
I don't think you're screwed.. hopefully someone can offer some advice! I'm really interested.. Thanks for posting this question!
Still havn't found any way of doing this. If I'm screwed let me know
so I can design around it.
KaiserSouze
March 22nd, 2005, 07:11 PM
Is this along the lines of what you wanted?
Sirenetta1
March 22nd, 2005, 10:39 PM
Is this along the lines of what you wanted?
KaiserSouze,
Please help! I can't figure out how to use it! :crying: I only have items, no subs. My transition is named one.swf, etc. How could I code this to work?? Also, do I need to substitute something for the blahblahs?
Can you look at my file?? I'll attach it to this post. Also, this has been asked in other postings, but how can you make it so that the downstate of the XML menu is not black? I still can't figure this out. When you click on a button, it remains black, but I'd like to change it to a different color? :h:
KaiserSouze
March 23rd, 2005, 12:17 PM
All the problems were in the xml files. The menuConfig.xml didn't have the "downColor" defined, and I didn't explain what the actions should be defined as in the xmlContent.xml file. If you want to load section2.swf, the action is "section2" not "2.swf".
One quick hint to make sure you are loading the correct files is to read the errors in the output window. I can't tell you the amount of times I've spent hours re-writing whole chunks of code to load one file when all I had to do is a simple adjustment, all through not reading the errors in the output window :sigh:
Hope that helps :afro:
mordecai
March 23rd, 2005, 03:30 PM
Is this along the lines of what you wanted?
IT'S ALIVE! IT WORKED!
Thanks alot. I'll put a link to you regarding your help on this from the credits section of my site (my may1reboot version)
Thanks man. that saved me ALOT of time.
KaiserSouze
March 23rd, 2005, 03:56 PM
I deserve no credit at all, credit hga77 & Voetsjoeba, they are the ones who put in the hard work :thumb:
mordecai
March 23rd, 2005, 03:58 PM
I deserve no credit at all, credit hga77 & Voetsjoeba, they are the ones who put in the hard work :thumb:
Tottally. Yeah I was going to.
Sirenetta1
March 23rd, 2005, 10:44 PM
Hope that helps :afro:
I tried it out tonight and like Mordecai said, it works GREAT! Thanks so much for your help with this file; I think a lot of people will use it and LOVE IT! Thanks!! :beam:
JO3Y
March 24th, 2005, 12:10 AM
i noticed the buttons get confused if they are clicked during the extrnal swf intro animations. is there a way to disable the buttons during the intro animation?
i've had similar problems with buttons i used in combination with the transition tutorial.
i was looking over the "Transitions Between External SWFs" Tutorial
by Voetsjoeba :: 21 February 2004
Great tutorial by the way! if you haven't read it yet, do so.
http://www.kirupa.com/developer/mx2004/transitions.htm
i'm using buttons with downstates which work fine with the outro animations but get confused with the intro animations.
the buttons, are old fashioned and, run a timeline so i was thinking there should be some simple solution. some way to disable the buttons during the intro animations?
some way to check if the container movie is less than midframe. if so, move the button to its null frame.
in the first frame of the buttons timeline i was thinking something like...
if (_root.container._currentframe < _root.container.midframe) {gotoAndPlay(disabledframe);
}else if (_root.container._currentframe >= _root.container.midframe) {gotoAndPlay(begin button animation);
}
and this for the "disabledframe"...
if (_root.container._currentframe >= _root.container.midframe) {gotoAndPlay(begin button animation);
}else if (_root.container._currentframe < _root.container.midframe) {gotoAndPlay(disabledframe);
}
or something like that i dont know... do you? :puzzled:
tobijas20
March 25th, 2005, 07:12 PM
Wow, what a huge thread! I have just downloaded this menu and it's great, but I have 2 questions:
1. It's easy to edit XML config file to change button colors, but how to change text color?
2. How to correctly display characters like "latin small letter C with caron" for example?
I have put <?xml version="1.0" encoding="UTF-8"?> but it still converts into wrong characters.
tobijas20
March 26th, 2005, 04:52 AM
Uuups, my encoding in Notepad was set to ANSI ;)
So, only my 1st question remains:
How to change text color, or font?
hga77
March 26th, 2005, 06:30 AM
;)
tobijas20
March 26th, 2005, 08:19 AM
Thank you hga77!
I have checked all movies, buttons and AS and missed just these three movies with shortest names ;)
lbeetles
March 26th, 2005, 06:06 PM
Hi hga77, Is there anyway to make this menu so that it has different colours for altenative buttons??? i.e. button 1,3,5,7,9 are red and 2,4,6,8,10 are blue.
RomantorV
March 28th, 2005, 04:30 AM
I attached the file I test.
I've added the line:
vt.menuObj["item" + j].targetType = i.attributes.targetType;
and
vt.menuObj["item" + j]["sub" + m].targetType = k.attributes.targetType;
but it not run.
Could you please help me! Thanks
RomantorV
April 5th, 2005, 04:56 AM
Thanks you all! I've done my menu work OK! and I've used menu_loading v2.
And the next thing is I want to keep status of my menu when I go to another page, also it do not loading again the menu, mean it doesn't drop down each box for every load a page.
Could you help me out! Thanks! ^_^
PS: The first time I go here is the time I found my new studying path.
miras
April 10th, 2005, 05:18 PM
I'm using the fla from mainmovie2004 and KaiserSouze xmlstuff, but when I'm trying to load movie1.swf it doesn't load, and I get this in my output window:
_level0.menu.1.theItem
action=movie1
_root.currMovie=movie1
I changed xml file to : <item name="Section 1" action="movie1" />
(without the .swf extension)
Does anybody know what might be wrong here ?
thanks
mucreative
May 2nd, 2005, 09:37 AM
Hi All,
This is a cool menu! Wondering if anyone could tell me how to get each button linking to a different URL address/html page?
Ta!
hga77
May 3rd, 2005, 09:09 AM
mucreative, This has been answered in this thread before. Im just making sure that you have read the thread.
chimbaktu
May 20th, 2005, 01:40 AM
oy, a newbie needs your help with xml. i've never used XML with flahs before and i can't figure out why i'm getting a certain error.
_level0.menu.1.theItem
action=preface
_root.currMovie=preface
this type of error occurs for every button (i'm using XML_transitions) even though i have a preface.swf file in the correct directory. and my first external swf loads fine, but whenever i try to click another button to load a new swf, i get this error. any ideas?
btw, i read all 28 pages of posts and i still can't figure it out.
vljw8202
May 22nd, 2005, 01:09 AM
Can't believe there is such a nice guy who is willing to share his/her work. More important is his willingness to toubleshoot and enhance the great work. While I will keep on reading thru all pages, can someone tell me which is the latest version of v2_with_targettype? Perhaps I confused myself for downloading different versions. At one point in time, I was able to try the stated version to bring up a new url but now I'm stuck. Any help will be appreciated.
vljw8202
May 22nd, 2005, 01:25 AM
never mind, it's my problem... I did uncomment the code for actions.
vljw8202
May 22nd, 2005, 01:27 AM
Sorry, I meant I did not.
chimbaktu
May 26th, 2005, 02:50 AM
oh yeah, i forgot to say thanks to you. huge thanks for your time in creating then menu system, and all of the time you have spent helping people. you rock!
inVZbl
May 30th, 2005, 03:04 AM
Sorry but that still is not working. It gets to the first image and then when you click on it again and it is supposed to go to the last image but it doesn't load it.
Is there anyway to make the next and previous buttons work for the V2 of the xml menu? i have added my own scroller and etc already, but just cant figure out how to add a next previous button to the menu?
I need this sequential option as this for an e-learning type app, where students would want to navigation sequentially as well as randomly.
Thanks
antnb
May 30th, 2005, 07:34 PM
I have learnt so much from this forum over the past few weeks. Thanks to everybody. But there is one thing about loading external text that I cannot understand yet. I'll explain
My first attempt was based on the loading dynamic text tutorial where the text is prefaced by a 'content=' in its TXT file and comes into a dynamic text box with an instance name. OK it worked fine.
My next attempt was based on the tutorial Photo Gallery using XML and Flash. This time all the text was hard typed into an XML file and came into a dynamic text box with an instance name. OK. I understood that too.
Next I copied the XML in Flash 'XML Portfolio' photo gallery with text. Here the XML file refers to an URL that leads to the TXT file and comes into a dynamic text box with an instance name like version 1 here - except this time the 'contents=' displays too when published! It doesn't seem to need it. Why is this?
Finally I looked at a file called XML_Gallery V1 ibeetles in this XML menu Done thread(page 16 above). This time the XML file refers to an URL that leads to the TXT file and comes into a dynamic text box with NO instance name, but a Var: name instead- this time the 'contents=' is required!
What is the difference between these methods, why three need the preface in the text file, but one doesn't?
Also, I want to have some content on the screen when it loads first time rather than just the menu bar. I can load some text straight into the movie with the first 3 with an extra loadmovie(url to text file) command, but when I add a loadmovie(url to text file) to the XML_gallery file, it asks me to contain it in a clipevent. Why is this and what does it need?
inVZbl
May 31st, 2005, 03:34 AM
Is there anyway to make the next and previous buttons work for the V2 of the xml menu? i have added my own scroller and etc already, but just cant figure out how to add a next previous button to the menu?
I need this sequential option as this for an e-learning type app, where students would want to navigation sequentially as well as randomly.
Update...
I tried using some of the code i found in previous threads, but could only get the next and previous buttons working within the sub sections, but the actions still woundnt work.
The code i tried was
_parent.next_btn.onRelease = function()
{
current = parseInt(previousSub._name)+1;
executeAction(action, current)
trace(current);
}
How would i make it go the other items and expand as necessary, and make the links function properly...
sky_vault
June 5th, 2005, 05:35 PM
Disable current item button/ disable all buttons during transitions?
I saw someone else has asked this same ? and yet to get an answer and i would like to be able to do this as well.
secondly how would you change it so on item press actually makes the main timeline play and then hit a frame that loads the next swf ?
MetteBB
June 6th, 2005, 10:15 AM
Gosh ... very confusing with all these updates, lol So I'm just gonna ask here.
I have the v2 menu from the first post in this thread.
What I want the menu to do is to link to different scenes... How do I do this and where in the AS/XML should I change anything? I guess I need to type the scene name somewhere..but where. And do I need to change anything else to get it to jump scenes?
Hope that made sense..
/mette
VinuDSM
June 13th, 2005, 06:20 AM
Hi HGA
whn I tried Clicking on the link of the menu, I couldnt find eithr the html or asp file being opened. Could u plz help in this accord..ANyway nice work for the menus
camargo
June 14th, 2005, 05:42 PM
HGA, as it's been said many times before in this thread, great work...
Can anyone post any code that's related to making this menu work horizontally with sub sections that drop vertically? If I could get this menu to acheive that, like a traditional drop down, I'd be one happy clam.
eurosickwitit
June 22nd, 2005, 05:23 PM
oh man thats what i needed, but im gonna use the logic and implement it into my own design, i hate leechin and the idea that someone made it for me drives me nuts, but sometimes cant figure sutff out
Paul Saumure
June 27th, 2005, 11:12 AM
I am currently using the techniques from the tutorial to create my flash web site.
http://www.kirupa.com/developer/mx2004/transitions.htm
I would like to incorporate the XML menu into this site. My problem is the action script that goes to each button. I am unsure how to incorporate this into the XML menu.
Here is the action script that currently goes to the button inside the main movie:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "work";
container.loadMovie("work.swf");
} else if (_root.currMovie != "work") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "work";
container.play();
}
}
}
how would I incorporate this in the XML menu so my movie would roll back out between transitions?
Only Dust
June 29th, 2005, 09:54 AM
very good this menu, congratulations. I am with a small problem, in xml when I link the SubSub-Menu action="http://www.teste.com.br ", not happen nothing, it I look to a called folder menu, what I am making the mistake?
Sorry about me English.
BobDoleIsAPimp
July 14th, 2005, 03:00 PM
Pretty neat
icube
July 16th, 2005, 12:45 AM
can anione care to explain the logic of the menu animation part.. the xml part i understand... cos i want to use my own coding as i dun quite get the logic of how to collpasing and expanding of the submenu works....
bchalker
July 21st, 2005, 11:51 AM
Hey...incredible menu, first off. It's been a great learning experience. I'm having an issue now, though, as I am exporting using AS 2.0. I'm getting an error related to the Figleaf HEX convertor. The menu appears as just black boxes when seen in the browser. Do you know of an AS 2.0 fix? thanks...
thats all folks
July 21st, 2005, 11:57 AM
Anyone know why I get this when I try to see the XML menu??
pull_my_finger, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Thanks
Pull
dribblit
July 25th, 2005, 08:02 PM
I too am gettin the same msg...pretty frustrating...as pretty much everybody gettin to view de ting :D
you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Solidus
July 27th, 2005, 12:17 PM
I cant view the files either can anyone give us chaps a hand?
KaiserSouze
July 28th, 2005, 09:06 AM
Um, have you guys tried going to the first page of this thread, and just clicking next page till to the right pages in this thread instead of clicking the direct link to the pages? Works for me.
tobijas20
August 4th, 2005, 12:11 PM
O.K. here is my problem:
I have made main menu items with just one submenu item, but this submenu item should contain 2-3 rows.
I have put this code in sub item:
my_text.autoSize = true;
setMask(maskSub);
maskSub._height = my_text._height;
And it works fine. It resizes the mask over the entire text box in sub item.
But I can't push other main menu items enough down to avoid text overlapping!
This line of code (in root on "menu" mc) pushes other menu items down:
if (this[item]._y < j._y){j.target = j.basey + k._height + menuSpacer;}
When I manually resize the mask in sub mc, this line of code recognizes the right size and pushes main menu items correctly. But when I put "autoSize" it doesn't. I
guess it needs some delay first to resize and than to check the sub mc height. How to make that?
jozz
August 18th, 2005, 03:36 PM
The 'loadText' for the preloader works fine Matisse!
Have a look:
LINK (http://members.lycos.co.uk/menupreloader/)
Attached the edited fla also.
correct me if i'm wrong..
the clip that loaded seems to be loading for the 2nd time.....and everytime when the current button is pressed...
was it purposely made that way..?
cool menu...
3Dean
August 21st, 2005, 12:15 PM
;)
http://www.kirupa.com/forum/attachment.php?attachmentid=22096&stc=1
Hello Hga, may I first congratulate you on this awesome menu, but being a relative novice at flash, I was wondering if you (or anyone else for that matter) could help me with a problem that has me stuck. I've tried to edit the text format for the buttons, but while I can change the font, I can't seem to make the text appear in Bold. I am using Century Gothic and need it to appear in Bold so that it is easier to read. Is there something else I need to do in the xml or flash files or am I just missing something simple.
I don't think this has been asked yet and my apologies if it has, but I have read the entire thread and didn't come across an answer. If you could provide one I would appreciate it greatly. Thanks
:smirk:
dribblit
August 24th, 2005, 06:24 PM
hga, this menu is easily the greatest thing ever in life :D LOL! fo real i mean, reading this thread alone taught me so much stuff about flash...much respect!!
I read the entire thread and i am wondering if MY menu is possible :)
I need to have the menu with submenus and everything to be scrollable!! :-/ You sorta hinted at it being a little difficult...and believe me i doan even know where to begin to get that done. You think you can help out?
thanx alot man...big up hga and de ress o de crew in this thread. 1
barrueta8
August 25th, 2005, 04:28 PM
Hi
I have this amazing menu(V3) in one section of my flash movie and works perfect.
The problem comes when i add a second menu in a diferent section of the movie that even loads a diferent xml file(menuContent.xml the first menu and albumContent.xml the second).
So when i test the movie if the second menu xml file only has 2 item nodes the first menu are created parsing only the last to menu items even if it have 10, i delete the second menu and all goes normal again.
I have the menus inside diferent MC, _root.menu1.firstmenu and _root.menu2.secondmenu so i asume that the variables are defined locally but something its going wrong.
Hope someone can help with this, its making me crazy.
Regards, Barrueta.
hga77
August 26th, 2005, 12:54 PM
im not on my machine so i cant do much right now....but
3Dean, what u mentioned should work...i'll try it out later...1 question though..How are you editing the text? are you doing it with AS (ie. using AS text formats) or just by selecting the text box and changing properties?
Dribblit, The reason why its tougher to do the scroller for everything including the submenus, is because lets say that you had a scroller and the scroller button is at the initial top position. Now lets say that you moved the scroller down to half the height. Meaning that the menu has moved half the way up...still with me? now lets say that you went and clicked on a menu item that had sub items. This would increase the overall height of the menu. So now, this means that the scrolling button on the scroller should move up/down to reflect this. Get it? so we would need a small piece of script that would do some maths (simple maths :) ) so it can tell where to place the scroller button _y position on the scroller for each time that the overall menu height changes. And there are some other things to consider like the need to also move the menu position also in situations where the menu contracts or expands, then getting the current item going out of view, either above or below the set mask....make sence?
barrueta, i'd have to see the fla ur working on to tell how u did it...
kandya
August 26th, 2005, 06:10 PM
Hi, first I'd like to add my congrats and thanks for this brilliant menu and all the community support on the thread.
Of course I also have a dumb question to add ... It's basic flash I'm sure. In my menu I want the different links to do different things, e.g. some load new urls in new windows, some tween movies, load movies etc., can the xml "action" provide a block of code to execute which is as varied as the code on a normal button, and not dependant on loading a swf into the content _mc.
In this case what should I change in the fla, xml, or is it do-able at all? I had the idea of loading a swf for each menu item which contains all the code needed for the tweens etc., but I was hoping simply changing the XML action would work.
Thanks for any help anyone can give, probably simple and my actionscript head is rusty :)
dribblit
August 26th, 2005, 08:29 PM
Dribblit, The reason why its tougher to do the scroller for everything including the submenus, is because...
hga, thanx for the reply, I know you are very busy.
I follow your reasoning to a tee...Here is what I have come up with logically so far...not much but it's a start...
Recalculating the overall height of the menu could be done by having a constant which stores the "non-expanded" height of the menu. Meaning the height of the menu when it is first loaded and no submenus have been yet expanded. Then, recalculating the height would be a matter of adding the height of the opened submenu to the overall height, to give the new height of the entire menu. The height is reset to its original value if a different menu item is clicked and if that item has subitems, then the height is recalculated as we did before. I then figure that working out where the scrollbar would be on the scroller would be a percentage of the new height...or something :) [not too sure about that last part because i have look somewhere and see how a scroller really works in flash]
well that's my thinking...now that i thought about something..i'll go try it and let you know how it goes.
hga77
August 27th, 2005, 02:55 PM
kandya, you will need to use the same concept as that of the target_type version we have somewhere here on this thread. Have a look at that version and u should get some ideas.
dribblit, your thinking is defenitly on the right track. And the percentage you talked about is correct also :) that was the Maths I was talking about in the previouse post...have a look at the scroller I have done here somewhere and just look at the code for the scroller.
Ariel_Lévesque
August 31st, 2005, 02:42 AM
Recalculating the overall height of the menu could be done by having a constant which stores the "non-expanded" height of the menu. Meaning the height of the menu when it is first loaded and no submenus have been yet expanded. Then, recalculating the height would be a matter of adding the height of the opened submenu to the overall height, to give the new height of the entire menu. The height is reset to its original value if a different menu item is clicked and if that item has subitems, then the height is recalculated as we did before. I then figure that working out where the scrollbar would be on the scroller would be a percentage of the new height...or something
Right, dribblit, that's the way I managed to do it.
Have a look at it http://www.studio-io.tv/menuWithScroll.zip
I must say I'm definately not a good coder - not at all - so it's far from clean... but it works.
I'm still trying to find a way to prevent a submenu to colapse when clicking on another, so that all sections can be unfolded.
dribblit
August 31st, 2005, 11:40 AM
ariel, this is very much what i had in mind..i have been very busy trying to finish off the documentation for my project so i haven't been able to try to code that part yet...only thought it out. What you have there is a great help to me though!! :D thank you very much for sharing!! :thumb:
Ariel_Lévesque
August 31st, 2005, 02:51 PM
Since this amazing piece of code belong to Hga77, it's normal to share any update / upgrade... Anyway, I'm glad if it can helps !
You may have noticed that if the swf is kept running for a long time, it get slower and slower, until being almost unusable - I'm pretty sure it's because of the SB, wich seem to create an infinite calculation loop, or something...
If anyone can take a look at it, and see what goes wrong...
hga77, do you think it's possible to unfold all of the menu elements, at the same time ? 'cause it looks like a dead end to me...
Lesley
September 9th, 2005, 07:26 AM
When exporting menu v3 for flash player 7, the color fades stop working and are black, with a yellow highlight. I seached this thread, but didn't find anything on this problem. Any ideas?
sucker
September 13th, 2005, 12:32 PM
Good job !!!
let me see.
jake7390
September 14th, 2005, 04:45 PM
hga77, first off, I want to say, awesome work on this, and your attention to this project is nothing short of astounding!
My question, to anyone who might be able to help me out; Is there a way to pass a flashvar through a url so that a specific part of the menu is open on load/default? Thanks!
hga77
September 16th, 2005, 12:20 PM
jake, thanks ;)
You can pass a queryString into flash from the object tag where you embed the menu swf. But then you would need to tailor the actionscript so that it can tell if anything has been passed from outside of flash. And if so, then expand the menu accordingly. Lets say that you want the menu to expand the 2nd item and highlight the 3rd sub in there. This means you would need to pass a queryString like so, theMenu.swf?item=2&sub=3.
Hope this helps
look into it...you would need
jake7390
September 17th, 2005, 10:45 PM
Thanks, H - I'll tinker with it and see what happens. I'm serious, I've never seen someone support their flash like this over a period of almost two years. That must be what makes the Kirupa community stand out from the rest. Thanks again for taking the time to respond to me personally ;)
Edit: What do I need to do within the .fla actionscript to detect the variables? I have this, which doesn't work in the first frame:
if (success)
{
var item = _root.item;
var sub = _root.sub;
var vt = this.varTarget;
var root = this.firstChild;
Thanks!
siewho
September 21st, 2005, 02:26 AM
thanks
stalyun38
September 28th, 2005, 01:58 PM
Hey guys,
I have tried to get into this thread below (in the quote) a couple of times and I always get an error page telling me I don't have permission to access this page.
Any ideas why?
Can someone send me this file? I'm trying to build a menu that sounds just like this and it would help to have an example of one.
Thanks-
--------------------------------------------------------------------------
UPDATE(04/2004): you can find v2 for this menu on page 3 post #31
http://www.kirupa.com/forum/showpost.php?p=438010&postcount=31 (http://www.kirupa.com/forum/showpost.php?p=438010&postcount=31)
UPDATE(07/2004): you can find v3 for this menu on page 15 post #221
http://www.kirupa.com/forum/showpost.php?p=569520&postcount=221
--------------------------------------------------------------------------[/QUOTE]
stalyun38
September 28th, 2005, 02:13 PM
Need help. Can't access the thread referenced in hga77's first post. Says I don't have permission?
Thanks-
dribblit
October 4th, 2005, 10:42 AM
try navigating the those pages in the forum rather than clicking on those links. try reading the entire thread as well. it'll save you some time later on.
Need help. Can't access the thread referenced in hga77's first post. Says I don't have permission?
Thanks-
EstherM
October 6th, 2005, 08:11 AM
Hi everybody!
I am new here and I was verry verry happy to find a menu that I had in my mind for a long time but was never able to build because I am just a "simple graphic designer" who can Flash a little. It is so great that guys like hga77 and all the others put their time and effort in things like this!
The last three days I am working on the menu and trying to understand the code. I managed to change some things in the menu so now it looks like I want it to look. But... I cannot manage to get the URL's to open in a new frame, or just open! I read the whole thread (seriously!) and noticed that more people had this problem. And although it was answered already a few times, it still is not working! I tryed all the solutions given; adding code, comment/uncomment code etc. I only get "undefinded" when I publish my movie. There was a point that something happened, a got an URL back in the message box when I published only SWF. But then in a browser (Safari) I got this:
example (http://www.esthermols.net/clients/cph/example.jpg)
That happened when I deleted this part:
function executeAction(action, targetType) {
trace(targetType);
//you can delete this line!
if (targetType == "url") {
getURL(action, "_blank");
//uncomment above line to use getURL if targetType=="url"
} else if (targetType == "non_url") {
loadMovie(action , _parent.content);
//uncomment above line to use loadMovie if targetType=="non_url"
}
}
Well, hopefully someone can help me! By the way; I am working in
Xml Menu v3 from 11/07/2004
hga77
October 6th, 2005, 09:18 AM
why did you delete that part esther? you need that.
hga77
October 6th, 2005, 09:42 AM
why did you delete that part esther? you need that.
also the code you have there is not from v3
EstherM
October 6th, 2005, 10:36 AM
also the code you have there is not from v3
mmmm, that is really strange. I do not know. I spent so manny hours with different files, mayby I accidently f*cked-up the code a little...
And you know what, I deleted the code because I downloaded another file from one of the threads here (you adjusted it for someone) and there it was not there, that piece of code.
What shall I do? Just download a whole new version and try to put it in again? What is the newest version with sub an subsubs? Is that somewhere on page 15?
O, by the way, the first file that I got, and that I used and adjusted, I got through a Dutch Forum (your menu travelled the whole world!!), so mayby they adjusted it... I attach it, ok? Mayby you can take a look if you have a little time??
hga77
October 6th, 2005, 08:21 PM
yeah just stick with the one from page 15. And try not to mix code from variouse files if your not sure what your doing mate ;)
Where is this dutch forum..? interesting :)
EstherM
October 7th, 2005, 06:24 AM
I took version 3 and it is working!! Great. Thanks!
The only thing, there are no downstates there. In "my" old file there were, I liked that. Also because otherwise the navigation is getting confused for visitors with all the subs and subsubs ("where am I??").
So I tried putting the "downColor" everywhere where there is overColor and outColor (just copying that code and changing "over" to "down") but it isn't working. :crying: I also put it in the Config XML file. Can somebody please tell me what I am missing?
THANKS!
And I know I shouldn't mess up the code but on the other hand, you only learn something by trying it...
:hugegrin:
By the way: This Dutch forum is at macosx.nl (http://forum.macosx.nl/)
EstherM
October 7th, 2005, 09:22 AM
...So I tried putting the "downColor" everywhere where there is overColor and outColor (just copying that code and changing "over" to "down") but it isn't working. :crying: I also put it in the Config XML file. Can somebody please tell me what I am missing?
I got it to work!!!
:hugegrin:
hga77
October 7th, 2005, 09:57 AM
I knew you would ;)
suspire
October 8th, 2005, 05:11 PM
hga77.
I'm trying to achieve the fading & loading from that version of the v2 menu with the extra menuConfig.xml in the v3 menu. Attached my versions of each.
can this be done?
appreciate the help.
lampe
October 18th, 2005, 04:39 AM
Strange things going on here...
I have my main movie and I load my xml-navigation in it. It works perfect when i preview in flash. When i take a look at my html-page, the xml-menu will not load... How can this be?
Can anybody tell me how I can put é, è, ê in the xml? When I type a word like 'télécharger' in the xml, the flash gives 'tlcharger'...I've embedded the font and the specific characters, but it won't work.
Thanks!
Btw: grrrrreat navigation!
Brinky
October 27th, 2005, 10:48 AM
Hello,
First of all thanks for making this menu :)
Ive downloaded xml_gallery_v3_scroller_wText_rollOver.
Its works fine:)
But what i was trying to do:
instead of showing pictures, showing a big field of text with a scrollbar. I cant figure it out :/ ive deleted mc's ( for example the photo-one) en made the txt_desc mc bigger. Bit it can't load large texts?
I actually was trying to make a simple one;) just a this xml menu and a field for text with a scrollbar..
Can anyone help me?
Thnx in advance:)
Sorry for the way i type in english ;)
Guruhkel
November 2nd, 2005, 10:36 AM
Great Menu but does any one know how to change the color of the menu???
invisible7
November 6th, 2005, 06:29 PM
i love this menu (v.3) but i can't figure this out.
I'm trying to load multiple swf's on a key-press. Loading to one mc is not a problem, but when i try to define multiple containers from multiple sources it doesn't work.
XML
<menu>
<item name="item1" >
<sub name="item2" >
<subsub name="item3" action="item3.swf" texte="text.swf"/>
function on menu mc:
function executeAction(action, texte)
{
trace(action);
trace(texte);
loadMovie( action , _root.content);
loadMovie( texte , _root.texte);
}
am i missing something?
any help greatly appriciated!
lbeetles
November 7th, 2005, 11:54 AM
does anyone know how to get the mousewheel to scroll v3 menu up and down???
gr0m
November 16th, 2005, 07:22 PM
Why I can't get to the main files from the first post, Forum is telling me that i dont have some previleges...
Maybe someone will attach them here again directly?
jerryj
December 29th, 2005, 08:07 AM
same problem here
paulngan
January 5th, 2006, 02:13 AM
thank
audrius'05
January 5th, 2006, 12:22 PM
Happy New Year kirupa....Hope all you ppl had a great year and didnt stick to flash too much ;)
Anyways I just managed to finish the xml menu i've been working on...
I've attached it here incase any1 needs something like this. Use it as you like. Let me know if you make any additions to it :)
--------------------------------------------------------------------------
UPDATE(04/2004): you can find v2 for this menu on page 3 post #31
http://www.kirupa.com/forum/showpost.php?p=438010&postcount=31 (http://www.kirupa.com/forum/showpost.php?p=438010&postcount=31)
UPDATE(07/2004): you can find v3 for this menu on page 15 post #221
http://www.kirupa.com/forum/showpost.php?p=569520&postcount=221
--------------------------------------------------------------------------
do i need to have a special account to open your links? this is what i am getting:
-------------------------------------------------------------------
audrius'05, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.-------------------------------------------------------------------
jerryj
January 5th, 2006, 12:28 PM
more people have that. just go to the pages that are being mentioned, and you will find the zips.
Jerryj.
s.newave
January 8th, 2006, 02:00 AM
Hi,
I really love this menu and was trying to integrate it into my new site however i noticed that it is set to use Flash 6 player and AS 1.0. This is causing problems with some other stuff i have just created. I know this is a nooob question but can anyone tell me how to upgrade this menu to flash 8/AS2.0 w/out losing any of the functionality? I tried changing the publish settings to Flash 8 player but that seemed to mess up the menu animation colors and then when i try to set it to AS 2.0 the compiler complains about: "There is no property with the name 'rgbToHex'.
Math.rgbToHex = function(r,g,b){"
and two others similar to the one above. Im really new to flash so im not sure how trivial or not this is but i would appreciate any help in gettin this sorted out.
thx
gr0m
January 11th, 2006, 05:01 PM
more people have that. just go to the pages that are being mentioned, and you will find the zips.
Jerryj. For example who? where from to get it?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.