View Full Version : xml menu DONE :)
jerryj
January 11th, 2006, 05:09 PM
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
UPDATE(07/2004): you can find v3 for this menu on page 15 post #221
http://www.kirupa.com/forum/showpost...&postcount=221
For example me :beer: . Pages 3 and 15 are being mentioned above, there you can find the zips.
Jerryj.
s.newave
January 11th, 2006, 09:11 PM
So is anyone using these menus with Flash 8 / AS 2.0? Anyone????
apt d
January 12th, 2006, 02:42 AM
Those of you too lazy to copy and paste, here, these links shouldnt give those lovely priveledges limitations.
v2
Post #31
http://www.kirupa.com/forum/showthread.php?t=124931&page=3
v3
Post 225
http://www.kirupa.com/forum/showthread.php?t=124931&page=15
Brinky
January 18th, 2006, 03:52 PM
can i make the images i loaded clickable? so when i click on the large image a new window with html info will popup?
thnx in advance!
coleman329
January 22nd, 2006, 02:44 AM
I would like to look at what you have done, but I am being denied access when I click your link -- I am new to this site -- any advice?
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
--------------------------------------------------------------------------
apt d
January 22nd, 2006, 04:34 AM
look two posts up...those links should work
_D
vanwoods
January 26th, 2006, 07:20 AM
Hi there,
Thnx for the awesome menu HGA!!
I'm trying to put two versions together, i know this is not smart to do but i'm trying to make the versions which let's u load url's into a frame (targettype) together with the one that let's u easily manage the color and speed by an xml file (version 3). When i do this nothing works anymore so i'm probably pasting the wrong things into version 3.
Placing only this code won't help:
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", assuming we have an mc "content" on the stage.
}
}
I pasted some other code which contains targetype code, but this also wouldn't fix the problem.
Can somebody tell me what to do and help me out?!
thnx sofar
froesi
January 26th, 2006, 01:17 PM
What an awesome menu, for such a thing i waited a long time ;)
Is it possible to make some changes to the menu v3, that it could work like the example at http://www.smoothflash.com
I mean the thing, when i've like 10 or more sub categories, it should be possible to scroll through everything, so that the menu isn't to big?
It would really great if somebody can help me in that.
Thank you very much guys.
c ya
froesi
EstherM
January 29th, 2006, 05:43 PM
I already used the menu twice in websites I made and I love it. It is so easy to use an adjust! But now I need a horizontal version, is there mayby a horizontal version available somewhere...???
enygma
January 30th, 2006, 10:23 AM
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
--------------------------------------------------------------------------
I can't reach the links for the v2 or v3 version of the menu... and i really like to see it. Is there any restriction for that forum in particular? let me know... thanks
Edit. I solve it by reading the last pages.. sorry for ask :)
Btw.. Great Menu!!
matthewjumps
January 30th, 2006, 11:37 PM
Im sorry i cant bring myself to read all 35 pages of this topic...so ill ask...is there a help file or an explanation anywhere of this brilliant menu which is also near impossible to dissect if your new to XML?
enygma
January 31st, 2006, 02:10 PM
Ok... i don't know if HGA is still reading this thread... but i need some help here...
I want to add a sound that plays on (rollOver) on the items.. and also be able to change the color of the text on (rollOver).
Excellent job here, it's one of the best menues around.. and thanks for sharing and supporting. =)
enygma
February 2nd, 2006, 01:32 PM
Ok... the sound is now working.. now if anyone could help me with the color of the text... =)
hga77
February 2nd, 2006, 01:35 PM
enygma, just look around in the library...When u find a dynamic txt field, just change the color.
tjdub
February 2nd, 2006, 06:31 PM
hga77,
Cool menu!
How would I go about adding a third sub-level?
Thanks,
Tjdub
enygma
February 3rd, 2006, 11:44 AM
enygma, just look around in the library...When u find a dynamic txt field, just change the color.
Hi HGA77... u got me wrong... maybe because of my english... i'm from south america. =)
What i need is that when i rollover an item.. the text change it's color. Right now all that change is the background color.
Thanks again for your response... and for the great job done so far...
And i ask myself too... what about a third sub level??
hga77
February 3rd, 2006, 01:31 PM
i swear v3 has subs upto 3 levels :h:
If you mean upto 4 levels down, then you would need to understand how the levels have been build then duplicate the relevant functions for a 4th level. But take it from me, its not worth the headache.
enygma
February 3rd, 2006, 01:43 PM
i swear v3 has subs upto 3 levels :h:
If you mean upto 4 levels down, then you would need to understand how the levels have been build then duplicate the relevant functions for a 4th level. But take it from me, its not worth the headache.
Yes.. it has 3 levels... that's why i said third SUB level.. ;) but if it's not worth the headache... it's ok..
What about the text? it's possible to change the color on rollOver with some minor changes? give me a clue.. an idea.. and i see where it takes me =)
Thanks
tjdub
February 3rd, 2006, 04:22 PM
Well, you have the:
Item name, sub name, and subsub name. That is three tiers all together. but there are not three "sub-levels".
Ex: link 1 - link 2,1 - link 2,1,1
that is a main level and two sub-levels. correct?
I was refering to another tier below the subsub name.
I have been working on adding the "third" sub-level.
Tjdub
boohaha
February 4th, 2006, 07:14 AM
I am speechless!!! I just read the whole thread, it took me about 2 hrs.. :book: it's SO wonderful that a single person can help a great number of people...
I am a newbie but through this thread I'm getting into xml sooo smoooooth...
I need not say anything else or ask...
Your signature hga77.... should be just... true!!!:hugegrin:
J
February 6th, 2006, 01:03 AM
thats too gud hga77
u r genius :pleased:
skunk
February 8th, 2006, 05:54 AM
I spent the time and read all 35 pages, dawnloaded all versions :rambo:
Is there any way to make the menu horizontal - sorry but I wasn't able to figure it out ;( and this could save my live. Did I miss something?
skunk
February 9th, 2006, 11:31 AM
This problem just drives me crazy:crazy:
I've seen posts here begging for a horizontal menu and no answers:(
But there are always exeptions: http://www.kirupa.com/forum/showthread.php?t=93975&highlight=XML+horizontal
This belongs here :) LOL:)
chegworth
February 13th, 2006, 11:21 AM
Hi there,
I have started to link the menu to a MySQL database,
first step is trying to generate the XML,
having a bit of trouble,
can anyone see anything wrong with this?
<?php
$xml_output = "<?xml version=\"1.0\"?>\n";
$xml_output .= "<menu>\n";
$host = "****";
$user = "****";
$pass = "*****";
$database = "****";
$settings = mysql_connect($host, $user, $pass) or die("Could not connect to host.");
//$query_submenu = "SELECT * FROM menu WHERE sid =".$row_menu['id']."";
mysql_select_db($database, $settings);
$query_menu = "SELECT * FROM `menu` WHERE sid = 0";
$menu = mysql_query($query_menu, $settings) or die(mysql_error());
$row_menu = mysql_fetch_assoc($menu);
$totalRows_menu = mysql_num_rows($menu);
do {
// Escaping illegal characters
$row_menu['menuname'] = str_replace("&", "&", $row_menu['menuname']);
$row_menu['menuname'] = str_replace("<", "<", $row_menu['menuname']);
$row_menu['menuname'] = str_replace(">", ">", $row_menu['menuname']);
$row_menu['menuname'] = str_replace("\"", """, $row_menu['menuname']);
print $xml_output .= "\t<item name=". "\"". $row_menu['menuname'] . "\"". ">\n";
mysql_select_db($database, $settings);
$query_submenu = "SELECT * FROM menu WHERE sid =".$row_menu['id']."";
$submenu = mysql_query($query_submenu, $settings) or die(mysql_error());
$row_submenu = mysql_fetch_assoc($submenu);
$totalRows_submenu = mysql_num_rows($submenu);
do {
// Escaping illegal characters
$row_submenu['menuname'] = str_replace("&", "&", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace("<", "<", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace(">", ">", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace("\"", """, $row_submenu['menuname']);
print $xml_output .= "\t\t<sub name=" . "\"" . $row_submenu['menuname'] . "\"". ">\n";
echo "</menu>";
} while ($row_submenu = mysql_fetch_assoc($submenu));
} while ($row_menu = mysql_fetch_assoc($menu));
?>
chegworth
February 13th, 2006, 11:23 AM
This is the output:
<?xml version="1.0"?>
<menu>
<item name="veg">
<?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
</menu><?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
</menu><?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
<sub name="onion">
</menu><?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
<sub name="onion">
<item name="fruit">
<?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
<sub name="onion">
<item name="fruit">
<sub name="pear">
</menu><?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
<sub name="onion">
<item name="fruit">
<sub name="pear">
<sub name="peach">
</menu><?xml version="1.0"?>
<menu>
<item name="veg">
<sub name="carrot">
<sub name="potato">
<sub name="onion">
<item name="fruit">
<sub name="pear">
<sub name="peach">
<sub name="grape">
</menu>
chegworth
February 13th, 2006, 01:00 PM
For all of you who want their menu to be dynamic, here is my code for the php:
<?php
print "<?xml version=\"1.0\"?>\n";
print "<menu>\n";
$host = "*****";
$user = "*****";
$pass = "*****";
$database = "*****";
$settings = mysql_connect($host, $user, $pass) or die("Could not connect to host.");
//$query_submenu = "SELECT * FROM menu WHERE sid =".$row_menu['id']."";
mysql_select_db($database, $settings);
//select the db
$query_menu = "SELECT * FROM `menu` WHERE sid = 0";
$menu = mysql_query($query_menu, $settings) or die(mysql_error());
$row_menu = mysql_fetch_assoc($menu);
$totalRows_menu = mysql_num_rows($menu);
do {
// Escaping illegal characters
$row_menu['menuname'] = str_replace("&", "&", $row_menu['menuname']);
$row_menu['menuname'] = str_replace("<", "<", $row_menu['menuname']);
$row_menu['menuname'] = str_replace(">", ">", $row_menu['menuname']);
$row_menu['menuname'] = str_replace("\"", """, $row_menu['menuname']);
//print the item
print "\t<item name=". "\"". $row_menu['menuname'] . "\"". ">\n";
mysql_select_db($database, $settings);
//select the db
$query_submenu = "SELECT * FROM menu WHERE sid =".$row_menu['id']."";
$submenu = mysql_query($query_submenu, $settings) or die(mysql_error());
$row_submenu = mysql_fetch_assoc($submenu);
$totalRows_submenu = mysql_num_rows($submenu);
do {
// Escaping illegal characters
$row_submenu['menuname'] = str_replace("&", "&", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace("<", "<", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace(">", ">", $row_submenu['menuname']);
$row_submenu['menuname'] = str_replace("\"", """, $row_submenu['menuname']);
//print the sub item
print "\t\t<sub name=" . "\"" . $row_submenu['menuname'] . "\"". "/>\n";
} while ($row_submenu = mysql_fetch_assoc($submenu));
print "\t</item>\n";
} while ($row_menu = mysql_fetch_assoc($menu));
print "</menu>";
?>
this works for the 2 level menu, will post when I have done the 3 level with actions...
Brinky
March 15th, 2006, 04:03 AM
can i make the images i loaded clickable? so when i click on the large image a new window with html info will popup?
thnx in advance!
anyone can help me with this problem?
thnx!
hga77
March 15th, 2006, 06:16 AM
Brinky, just for future reference, Google is your friend ;)
Butu to have a popup from flash, just assign this js onRelease of the image:
getURL ("javascript:NewWindow=window.open('ShowPopup.php',' newWin','width=400,height=300,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus();
void(0);");
ShowPopup.php would be the window you would want to popup.
lbeetles
March 15th, 2006, 06:27 AM
how do you get the mousewheel to scroll v3 menu up and down???
Brinky
March 15th, 2006, 03:10 PM
Brinky, just for future reference, Google is your friend ;)
Butu to have a popup from flash, just assign this js onRelease of the image:
getURL ("javascript:NewWindow=window.open('ShowPopup.php',' newWin','width=400,height=300,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus();
void(0);");
ShowPopup.php would be the window you would want to popup.
hello hga77,
thnx for your reply!
but i want a popup when i click on the next item in the xmlfile:
item picPath="picture.jpg"
which is loaded in the mc 'pictureHolder'
the actionscript you gave me here is just for an image in flash? an not for images that are loaden into a mc by xml? am i right?
i also sended you an PM this day, or shall we discuss further in this topic so other people also can read this and learn from it?
sorry for my crappy english btw ;)
bootiteq
March 16th, 2006, 02:25 AM
hga77, thats awesome! I was writing the same tween sub nav myself but I dont see the point anymore. This one works really nicely and seems easy to style.
Love your work
bootiteq
March 18th, 2006, 11:49 AM
Ive been playin with "xml_menu_v2" and have 1 question...
how do you build the subnav at the same time that the title buttons tween down?
Currently,
subnav isnt made until the title button has tweened to its final destination.
is it possible with your code to make the subnav generate upon pressing the title?
arrrrgggg! words!!!! hopefully this link may help clarify
http://www.geocities.com/bootiteq/xml_menu_v2-1.swf
bootiteq
March 18th, 2006, 12:23 PM
only addition to your beautiful code i made was in "sub" mc
i also rather stupidly converted the textfield into a Mclip i called "subtext" and embeded fonts.
frame 1 "sub" (of xml_menu_v2)
setMask(mask);
this._alpha =0;
this.subtext._alpha =0;
var name;
stop();
frame 10 "sub" (of xml_menu_v2)
stop();
this.subtext.txt.text = name;
this.onEnterFrame = function() {
this.subtext._alpha<100 ? this._alpha +=7 : trace("aw giday");
this._alpha<100 ? this._alpha += 15 : delete this.onEnterFrame;
};
i also removed the var from the texfeild
bhogiyogi
April 4th, 2006, 09:05 AM
Hi all I have tried to turn this menu into a horizontal menu.
It seems to work alright. I was wondering is there anyway to make it go backwards.
34863
Thanks
bhogiyogi
April 4th, 2006, 01:40 PM
Hi all needing a horizontal menu,
I have made the menu work horizontally it work fine.
I was wondering if somebody could help me, I need to make the menu expand to the left and not the right.
If you have this working in the vertical please let me know.
thanks
34872
Samurai
April 4th, 2006, 02:25 PM
Hey All,
Just saw this thread....wicked wicked work. I believe that this is all credit to hga77. I work on stuff...need help, find something way more complex than what I was working on and realize that I am still a designer trying to code and that true programming like this of hga77 has put me to shame :)
I have a request though as small as it might seem to many, has stumped me. I love the xml_menu_v2_scrolled version (i forget which page it is on), how would one change the menu items so that they are a bit bigger vertically and horizontally, and have an image beside the text?
if this is too much i understand...
great stuff though, wicked cool.
Samurai
April 4th, 2006, 02:31 PM
page 3 is where I found the xml_menu_v2_scrolled file.
lbeetles
April 5th, 2006, 05:54 AM
u need to edit the item in the library to change the sizes. If you want an image by the side of it, look for the gallery version as it has a thumbnail by the side of the buttons.
Samurai
April 7th, 2006, 07:52 PM
man...hga77...that guy has outdone himself. We should all be thanking him for putting his time into this menu and all it's variations, especially those who he helped directly.
Great job man. I know, i've learned a ton just from going through this thread.
paulie_h
April 10th, 2006, 01:19 AM
amazing menu, many thanks!
tri_s
April 11th, 2006, 03:19 AM
Can anyone tell me how Can I cutomize the font color and ... change the font type !?!
I try to look at the buttons inside, but when I test movie, nothing happen?!
bootiteq
April 11th, 2006, 10:29 AM
try embeding them tri_s :beer:
paulie_h
April 11th, 2006, 12:17 PM
Hi Everyone...
I've spent the last day trying to modify this code, but this is the best I could come up with...
I need to have the sub menu to load to the right, without the main menu expanding... I have uploaded my progress... please help :)
tri_s
April 11th, 2006, 01:14 PM
try embeding them tri_s :beer:
sorry! I cannot where the font are stored in?! plz tell me where to look for.
I check the actionscript! cannot find the fonts name inside?!
paulie_h
April 12th, 2006, 10:30 AM
anyone??? please???
molsar
April 12th, 2006, 05:10 PM
hi. there.
this is realy cool menu! and great work!
I have couple quastions about "scroll version updated".
i have flash 8 pro and im loading this menu as external swf to empty movie clip, and it's wieving all menuitems from xml. I mean it's chould display about 8 menu items (scrollbar high) not the rest :/
im try'n to make mask but, txt from menu items gone!
sorry for my english, i hope it's quite understanding :P
mabe screenhots will help
bootiteq
April 13th, 2006, 10:35 AM
draw a picture paulie_h
paulie_h
April 18th, 2006, 01:50 AM
Hi,
this is what i'm roughly trying to design...
tri_s
April 18th, 2006, 03:43 AM
finally find the fonts embred! :) thanks for the menu!
About the Transition for the V3 Menu, I click the first button, it loads the movie, when the movie still playing, How can I disable the buttons function which the button enable again when the outro movie finish?!>!?!
I am very new to this flash action scripts! thanks in advance.
I also try to put the Photo Gallery Using XML and Flash in to one of the transition, find out that the XML menu's publish setting is using Flash Player 6 with ActionScript1.0 , and the Photo Gallery Using XML and Flash's publish setting is using Flash Player 7 with ActionScript2.0, which makes the menu would not load the transition of "Selection 1 .... " if I had click on the the gallery!?!?!
I try to change the XML menu's publish setting to FP7, AS2.0, then it display error! :(
any idea to make this TOTAL XML gallery working?!??!!?
paulie_h
April 19th, 2006, 01:23 AM
please help :)
Indecisive
April 19th, 2006, 07:03 PM
I tried to figure this problem out before posting but there were only half answers. How do you change the font? I read that someone did it by Embedding but I'm going crazy trying to figure out how to do this. Any help would be appreciated.
hga77
April 19th, 2006, 07:40 PM
Thanks for all the kind words ;)
Im happy to know that this thread continues to help people understand actionscript/xml better.
About fonts, please explain and I will help. Embeding the font is NOT the same as changing the font. Which are you after?
Indecisive
April 19th, 2006, 08:18 PM
Changing the font, my bad hehe. Also, thank you for the script, its opened another realm of Flash for me that I intend on pursuing (XML).
paulie_h
April 20th, 2006, 12:43 AM
hello hga,
this menu is fantastic, i have sat for days to try and make this menu horizontal like the image i have posted, may you be able to help? i can move the columns but the menu still expands below, and that is not necessary... it's confusing me :(
tri_s
April 20th, 2006, 03:26 AM
can anyone help me with the transition problem on the menu V3, the problem is that when I click on button 1 for example, it play the movie, then I press the button again, it would not load anything, which the button1 movie still playing.
anyone tell me how to disable the button function, when the movie still playing, after it stop, and it will re enable the button.
my publish setting is FlashPlayer 6 AS1.
Thanks for the nice menu Hga! I really love it! ;)
Sorry! I have more problem!
I tried to creat my transition swf in the sub sub menu , but after it finish the movie, I get back to main menu, to play around the menu buttons, then I tried to access the sub sub menu, the fonts disappear?!
it becomes crash! :(
can anyone help me how to refresh the "menu" on top Home in the flash?! or reload everthing again!?!
I tried to put this XML menu and XML gallery together, but it seems that after the xml gallery transition done, the xml menu's font display become problem! :(
skunk
April 21st, 2006, 09:44 AM
I'm trying to use this incredible menu but having problems when I want display accentuated letters or special characters. It simply doesn't show them. Is it a problem of the xml file, or have to modify the code in flash (of course I used character set that contain these special characters and embedded them).
Maybe this is just a silly question, but I spent the time and wasn't able to solve the problem. Maybe there's no solution at all.
If you have any idea please share it with us.
tri_s
April 21st, 2006, 11:55 PM
can anyone kindly help me on this issue?!
" just need to refresh the menu, ever time they click the buttons! "
any idea?!
paulie_h
April 23rd, 2006, 01:14 AM
please help me with my horizontal headache someone!!
paulie_h
April 26th, 2006, 12:13 AM
please help me with my horizontal headache someone!!
it's all cool, worked it out :)
otrecni
April 27th, 2006, 11:19 AM
Hi, what an incredible menu. I was wondering if anyone knows of a way to incorporate an expand all button into the xml tree?
RaMMa
April 28th, 2006, 02:40 AM
Hello i was watching the xml_gallery_v3_scroller_wText_mx.fla , and in the XML file i have the description tag "desc=".
Well my question is if i have a long text in my description... (on the xml file) it's any way to put a Scrollbar component in the text field of the fla?
Because i was trying but nothing happends!!
Se gallery its amazing!!!
Se you
DeeTex
May 11th, 2006, 07:15 AM
Is it possible to change the font of the text and to align te text to the right? How will I go abount doing this.
sepu
May 11th, 2006, 12:19 PM
hey hga !
Thanks a lot for this big piece of code .... greatly appreciated for all your help and time that you put on this.
stoshnet
May 24th, 2006, 06:52 PM
Hello, is there a version of this menu with Global Next/Previous buttons?
thank you.
stan
kprime
May 26th, 2006, 12:06 AM
THis is so cool
fabiopb
May 26th, 2006, 12:10 AM
i cannot access your links hga77 :( can u help??
CriTiCeRz
May 26th, 2006, 12:17 AM
Me neither.
Gillbz
May 29th, 2006, 06:17 AM
Neather can i :(
indian_blues
June 26th, 2006, 01:11 AM
--------------------------------------------------------------------------
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
UPDATE(07/2004): you can find v3 for this menu on page 15 post #221
http://www.kirupa.com/forum/showpost...&postcount=221
--------------------------------------------------------------------------
y i couldnt access this link :(
tjsmokey
June 27th, 2006, 12:48 PM
Thanks hga77 for enlighting me to XML :)
tjsmokey
June 28th, 2006, 12:29 PM
How do you change the font color and size. I tried to embed the font but where?
lewi-p
June 29th, 2006, 01:46 PM
For people that haven't found the FLA's on pages 3/4/5 lol
Pixelcache
July 2nd, 2006, 08:20 PM
originally posted by tjsmokey
How do you change the font color and size. I tried to embed the font but where?
There should be a dynamic text field in the last frame of the item movieclip. From there you can change the text color, font, etc.
I have a question. How can I have a dynamic text field that lists a description for a product and a hyperlink (button?) to view pictures of the product? This is for the xml menu v2 (fading loading menu)
tjsmokey
July 3rd, 2006, 10:54 AM
Thanks "Pixelcache" I found it.
You can use the "picinfo" instance to create another dynamic text. Then implement it into the XML .
Pixelcache
July 3rd, 2006, 01:49 PM
I don't remember seeing the picInfo instance in the xml menu v2, but I will have to check since I am not on my PC right now. I just couldn't get the dynamic text field to work with the fading and loading xml menu (V2). I also want to be able to try to get another dynamic text field to pass a hyperlink. I'll give it another try and let you know how it turns out.
Pixelcache
July 3rd, 2006, 08:10 PM
I still cannot get this to work; I'm just not getting it to pass into the dynamic textfield. I know there is something missing I just don't know what.
formatwizard
July 20th, 2006, 08:49 PM
i can't get in the thread strange :S
anardodesign
July 25th, 2006, 11:45 PM
I can't access it it's saying I don't have rights or something ;P
bighero
July 27th, 2006, 03:46 AM
Thanks you, I'll check it out :D
bighero
July 27th, 2006, 03:48 AM
how many post required for seeing this one?
skunk
July 27th, 2006, 04:46 AM
Hi all,
This menu is great, but I still struggle with something. Because swf and xml files are cached even if I modify the xml file on the server, the swf will found the old file on the clients machine. So I'm trying to figure out some trick generating randome file names for the xml file adding random numbers, to the file name. All I got an error message
ERROR PARSING XML
Error opening URL
I attached my fla files if anybody has a minute to look at it, I'm sure I made something wrong...
enygma
August 18th, 2006, 11:20 AM
Hello... i have a few problems with the XML menu.
It works great. But now i need to put it in my main fla (now i am loading it externally using loadmovie), and a strange thing happens.
I am publishing for flash player 7 and AS 2, because the project is already done and is done that way.
Now the problem: when i don't include some .as files that the project needs to work, the menu loads ok, but when i include the files, the compiler crashes, a popup appears saying that a script is causing the computer to crash or something (don't remember exactly) and if i want to turn off the script. Now.. i see that if i comment the following lines in the menu mc, it doesn't crash.. but obviously didn't load the menu at all.
MovieClip.prototype.activate = function(loopTo, delayTime)
{
var d = 0;
for (i=1;i<=loopTo;i++)
{
this[i].start = getTimer();
this[i].delay = delayTime * d;
this[i].gotoAndPlay(3);
d++;
}
} and
for (var d = 1; d<=Number_Items; d++)
{
this.attachMovie("item", d, d);
k = this[d];
k.outColor = configObj.item.outColor;
k.overColor = configObj.item.overColor;
k.downColor = configObj.item.downColor;
k._x = 20;
k._y = ((k._height + menuSpacer) * d )-19;
k.nombre.name = menuObj["item" + Present_item].name;
k.action = menuObj["item" + Present_item].action;
k.totalSubs = menuObj["item"+Present_item].Number_Subs;
k.sub = menuObj["item" + Present_item].sub;
k.basey = k._y;
if (!k.sub){k.icon._visible = false;}
Present_item--;
}
those two "for" is what i understand it's messing it up all.. but i don't understand why works good without the "includes" and crashes with it.
I guess that the "Number_Items" var is not getting the right value.. and making the for's to crash... but i'm guessing.
If someone (Hga would be great :)) come up with a solution... i will be sleep at nights finally...
Thanks in advanced
popartpopeye
August 22nd, 2006, 02:41 PM
holy cow!
that v3 is beautiful...
so how do I make the links work in the XMLfile... I am new to this!
I understand it has to be done with action=" "
but I do not know how?
HE LP !!
and also I am wondering about the 0x in:
OverColor="0x66CCFF" outColor="0x0099CC"
has it something to do with alpha?
and am I supposed to change this in the script to get the menu working?
onClipEvent (load)
{
function executeAction(action)
{
loadMovie( action , _parent.content);
trace(action);
}
but when I do this and publish and try to clik on my menu it just vanishes into the haze..
Lambasted
September 14th, 2006, 01:18 AM
Hi, I have just registered and logged in. I was hoping to view the updated 07-2004 xml menu code. But I couldn't see the "attached file", and when I follow the V3 link to the update, I get 'Lambasted, you do not have permission to access this page.' Do I have insufficient privieges?
I have a flash/xml slide show and want to create a CMS 'user' page with PHP & MySQL, so that the user can change the data values in a DB, with a php form, and these will be reflected in the xml file - which adjust some slide show parameters/images.
This looks like the article. but can't access it.
help please ! :-)
Any files can be emailed to me gouspurs@gmail.com - if you want.
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
--------------------------------------------------------------------------
flip75
September 14th, 2006, 04:06 AM
Yeah I have the same problem, how DOES one get sufficient privileges?
tri_s
September 22nd, 2006, 01:11 AM
is it possible to change the text color when I rollover to the text, and remove the background?!
any idea?! Please help!
Robyee
October 20th, 2006, 01:21 PM
Hi at all, and great work!
Im trying to modifie the "menu with downstate". What im trying to is, in "activateMenu" function, so at the beginning the first button go in "down state" (frame 11) ...maybe its possible but im a "dummie" :cyclops:
Robyee
October 21st, 2006, 07:36 AM
Try to explain in simple way...
There is a way to start the "Xml_menu _with_downstate" with the first item allready down ?
Hi at all, and great work!
Im trying to modifie the "menu with downstate". What im trying to is, in "activateMenu" function, so at the beginning the first button go in "down state" (frame 11) ...maybe its possible but im a "dummie" :cyclops:
Robyee
October 24th, 2006, 06:55 AM
selectItem(1)
Try to explain in simple way...
There is a way to start the "Xml_menu _with_downstate" with the first item allready down ?
norfy
November 11th, 2006, 10:45 PM
This is a fantastic menu and I've pretty much glossed over the whole thread. But what I'm trying to do is make the font bold when and item is clicked, so you can see which is selected. I've found the menu that changes the background colour on downstate but not the dynamic text field.
Anybody got an ideas how to do that.
Many thanks
statler
November 29th, 2006, 02:45 AM
I love this menu, it has worked so well for me
McGabi
December 1st, 2006, 10:00 AM
Hey, J have a problem, How add a likns to menu in XML sample: http://www.www.de ?:sure:
kanu
December 5th, 2006, 08:02 AM
hi,
i want fla file for this menu.
can i have that.
kanu
feedforward
December 6th, 2006, 04:32 PM
Thanks HGA 77 This menu is amazing :beer:. I've been able to modify some parts of it to fit a project I'm working on, however I'm really stumped on one part.
I need 4 columns of menu (for four different sections) and each has different number of items and sub-items (no sub-subitems). My question is:
How do i get the menus for the different sections to load into separate columns (according to its sections)? Do I need to create a separate XML file? I tried creating instances of mc but it seems to cause more harm than good (the movie stops working after a few seconds)
Can anyone help? Thanks in advance, been trying to work it out for a few days but I think it's way beyond my level of comprehension at the moment.
:red:
iknot
December 15th, 2006, 10:53 PM
Thank you!
ashleyppg
January 11th, 2007, 01:36 PM
I just read through the entire thread. It's pretty amazing. Once again thanks hga77 for creating this. I never saw my question answered although I saw it asked, I think twice. I would like to link the menu to a frame or label in my flash document. Is that at all possible? I am a graphic designer, and a flash actionscript novice. I'm not sure what to put in my xml or in AS to make it functional. Thanks in advance for anyone who can help.
Ashley
skinnybonez
February 3rd, 2007, 02:04 PM
B I G (_|_) THREAD!
thanks for everything!
skinnybonez
February 6th, 2007, 03:05 PM
i know this thread is kinda old...i'm hoping someone could help me out.
i downloaded the 'xml_menu_v3_downState' version from this thread. i then saved it as a flash 8 document and then tweaked it for this site i'm working on.
i added a couple things to the buttons...an 'animated arrow' and 'sound event'. i didn't know how to do this with actionscripting so i just made an mc and referenced them in the 'onMouseOver' code, etc. which works, but i know this isn't the best way to do it. i also took off the color stuff for this because i won't be needing it for this design.
could someone help me figure this stuff out please? :
1. menu placement - where do you set the y coordinate to place the menu? (i found the 'x' coordinate..but the 'y' was confusing)
2. arrow 'state' - how do i tell the AS to go to the 'off' state for the arrow mc after another button is selected?
3. setmask - the initial animation with the 'setmask' function isn't working after i updated this to flash 8. is there another method i should use to make it work?
4. 'name' text field - i'm wanting to animate the text also. so if i wanted to do that with keyframes and placed the 'name' text field into an mc and then animated it for the various mouse states...where do i find the AS to update the paths to that field?
any help at all is appreciated!!!
thanks...this thread rules...and big thanks to hga77
- skinnybonez
:look:
skinnybonez
February 8th, 2007, 05:00 PM
c'mon thread...c'mon...I KNOW YOU'RE NOT DEAD!
BREATH!!!!!!!
statler
March 2nd, 2007, 09:24 PM
Hi HGA (if you're still out there...) and every one else,
Im using Xml_Menu_v3 and am hoping to set the target for a link to _blank for two of my items (not all).
I've read through this entire thread and it's been somewhat helpful, but I can't believe no-one yet has needed to set a target="_blank" to a link, I was hoping it could be set in the XML, but I couldn't get anything I tried to work e.g.
<item name="geox shoes" action="http://www.geox.com","_blank">
or
<item name="geox shoes" action="http://www.geox.com" target="_blank">
or
<item name="geox shoes" action="http://www.geox.com, _blank">
In the AS, I tried this:
********************************
onClipEvent (load)
{
function executeAction(action)
{
getURL( action ,"_blank");
}
********************************
and it worked, but as expected, every link on the menu opened in a new browser window, but I only want two of them to do that, not all.
Can any body shed some light on this...?
Thanks
verdeimparat
March 7th, 2007, 09:02 AM
HGA : :thumb2::thumb2::thumb2::thumb2:
:pleased: friendly user award
ChromeDemon
March 9th, 2007, 05:27 AM
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
i am still trying to do this, but no luck yet ... anyone can help me doing this??? thanx in advance
chromed
CypSteel
March 24th, 2007, 01:28 PM
First off...Thanks a ton HGA for this menu. You are definately the man. I have studied it for the past 8 hours and still have no concept what you are doing with the varibles and all those children :krazy:
My problem was this: I downloaded version 3 off page 15. I liked the style effects and did some customized shading. I could never figure out how to get it to open a URL though which is the biggest point of a menu, isn't it? I read these 41 pages of replies THREE times. I have found several other people asking the same things. Most were refered to version 2 with the targetType forcing them to give up the styling in V3. I tried coping all refrences of targetType from V2 to V3...I couldn't ever piece it together right.
With me being a complete newbie to AS, this will seem like a cake walk to you gurus, but honestly I have been messing with the menu for the last 8 hours trying to merge v2 and v3.
Here is what I did. Change this code:
onClipEvent (load)
{
function executeAction(action)
{
}
function selectItem(itemType, item)
To this code:
onClipEvent (load)
{
function executeAction(action)
{
if (action == "nonurl")
{
}
else
{
getURL(action , "_parent");
}
}
function selectItem(itemType, item)
This enables all my menu to open URL and I can dictate in the XML file that the Submenu opening items have a action value of "nonurl" which prevents them from opening a new window to nothingness. Again, this might be elementary to some, but it might be helpful to others. Now I have v3 working with URL and can still use submenus.
You can see it in action here: http://www.kingairinc.com (only the first 2 are finished)
Cyp
cecio
April 1st, 2007, 12:47 PM
- why i haven't privilege to download this piece of xml art? everybody tell me that its really wonderfull!---
:sad:
arvind_film29
April 8th, 2007, 01:05 PM
- why i haven't privilege to download this piece of xml art? everybody tell me that its really wonderfull!---
:sad:
Goto Page 15 and download the zip file
I too have this same problem... :hugegrin:
arvind_film29
April 9th, 2007, 12:06 AM
I modified the code a bit and tried adding hyperlinks to the menus..
arvind_film29
April 9th, 2007, 01:33 AM
I need to add an image to the subItem.. so i converted the textbox to render html . But i think the textbox should have wordwrap enabled (ie textboxName.wordWrap=true).. but i dont know where to add this code. can anyone help me?
arvind_film29
April 9th, 2007, 11:43 PM
I did a bit of modification to the existing code to get horizontal menu
statler
April 9th, 2007, 11:48 PM
Great job, that looks really nice! you dont happen to have any idea how to set a target on the xml links do you...?
As in target="_blank" or "_parent"
NB: not the targetType that is refered to in earlier posts.
arvind_film29
April 10th, 2007, 12:36 AM
Great job, that looks really nice! you dont happen to have any idea how to set a target on the xml links do you...?
As in target="_blank" or "_parent"
NB: not the targetType that is refered to in earlier posts.
I am sorry i dont get you.. are you talking about the hyperlink on the menu?
statler
April 10th, 2007, 12:40 AM
sorry, yes that's correct. Any ideas?
arvind_film29
April 10th, 2007, 01:13 AM
sorry, yes that's correct. Any ideas?
Actually my aim was to add a link to the menu buttons.. On clicking the sub menu the user should be taken to someother page(url). So i mentioned the url in the action attribute of the xml (xmlContent). then manually added <a href +url + </a > tag to the menu text.
Did i answer you?:hugegrin:
statler
April 10th, 2007, 01:21 AM
Actually my aim was to add a link to the menu buttons.. On clicking the sub menu the user should be taken to someother page(url). So i mentioned the url in the action attribute of the xml (xmlContent). then manually added <a href +url + </a > tag to the menu text.
Did i answer you?:hugegrin:
Hmmm I dont think so. What I am hoping to do is set two of the links on my menu to open a new page in a new window.
I have applied the menu here http://www.jonesbros.co.nz/proof/ ...you will see the link for "Geox shoes", this link needs to open a new browser window, currently it opens in the same window, that is why I want to be able to set a "target" in the xml
Thanks for your patience on this.
fabiopb
April 10th, 2007, 01:39 AM
i cant access the xml menu :( it says i do not have permissions.... :(
statler
April 10th, 2007, 01:45 AM
i cant access the xml menu :( it says i do not have permissions.... :(
Goto Page 15 and download the zip file
fabiopb
April 10th, 2007, 02:19 AM
did that.... still nothing :| i wonder why....
arvind_film29
April 10th, 2007, 02:57 AM
did that.... still nothing :| i wonder why....
did you download the zip file?
hga77
April 11th, 2007, 10:52 AM
I might look into extending this menu to v4.
Let me know if you think its worth it and what you would like added. Im thinking:
AS2
should've done this ages ago
isURL
true or false.
Attribute within the xml.
Was targetType.
target
"_blank","_self","_parent","_top"
only applied to links that have isURL set to true.
Attribute within the xml.
flashVars
Passing values to the menu via queryStrings. EXAMPLE: menu.swf?item=2&sub=3
On entereing a page with the menu, the menu will auto open to the current item for that page.
For people that use flashObject or swfObject, I'm sure you know how to pass variables to flash when embedding the swf.
Its been some time since I contributed to this thread :)
twdesignz06
April 12th, 2007, 03:48 PM
Hi, I am working with the v2 menu and I am still having a hard time getting the menu to load the index or home page when the menu loads. I tried adding this AS to the first frame as another member suggested:
action = "home.swf";
_root.menu.executeAction(action);
but I can't get it to load anything. The movieclip that I want to load the swf into is called contentHolder. I even tried to add this to the 2nd frame where content holder is on the stage:
contentHolder.loadClip("home.swf")
Any ideas?
jojomcbobo
April 15th, 2007, 12:24 AM
I would love to see a V.4, keep going!
ana ramirez
April 15th, 2007, 03:18 AM
I found in this site a great tutorial.
The name of the tutorial is news_editor, it explains how to transform and edit a XML using Flash and PHP.
Is posible to transform the code in flash in order that all the entries were atributes instead of child.
What I want is that the XML will have the following structure:
<entry myevent="Flashstudy"
myplace="London"
mytime="Night"
/>
I tried to do this, but I couldn't.
Do you have time to help me?
Thanks for all
ana
PD: Sorry my english
Abus
April 15th, 2007, 08:50 AM
First of all this is a great job.
Since I dont have time to read all the posts under this topic. I just want to ask a simple question.
For example I have a menu structure like
X
X1
X2
X3
X4
Y
Y1
Y2
When I am navigating through the sub items under the X item. I need to open the X item everytime.
But if I can take a parameter from the URL and with the help of that parameter as long as I am navigating through X's subitems X will always be opened. So I will just click only 1 time instead of 2.
I hope you understand... Is it possible?
ChromeDemon
April 17th, 2007, 04:24 AM
I might look into extending this menu to v4.
Let me know if you think its worth it and what you would like added. Im thinking:
AS2
should've done this ages ago
isURL
true or false.
Attribute within the xml.
Was targetType.
target
"_blank","_self","_parent","_top"
only applied to links that have isURL set to true.
Attribute within the xml.
flashVars
Passing values to the menu via queryStrings. EXAMPLE: menu.swf?item=2&sub=3
On entereing a page with the menu, the menu will auto open to the current item for that page.
For people that use flashObject or swfObject, I'm sure you know how to pass variables to flash when embedding the swf.
Its been some time since I contributed to this thread :)
ALL OF THE ABOVE PLEASE :) Mucho interested in this!
cheers
ChromeD
jojomcbobo
April 20th, 2007, 11:59 AM
I also think it would be good to incorporate a lot of features into one package. Many people asked you to add certain features which you generously did, but there are like 5 versions that have different functionality, it would be great to include them all in one package (like down states, preloaders for each section, and have everything editable through xml). It would also be great if the buttons were more flexible in terms of length, so if the button text was too long it would just drop to a second line and make the button twice as high.
Thanks!
dalewb
May 1st, 2007, 03:29 PM
Here's my tiny contribution: For all of you new to this thread, I've compiled posts that seemed particularly helpful into a list. You can get it here (http://www.dwbgallery.com/stuff/Xml_Menu_Notes.zip). So you can stop asking how to change the font color of the links (among other FAQs ) :).
Was there ever an answer to post 175 (http://www.kirupa.com/forum/showpost.php?p=1233939&postcount=175) ? I don't recall finding it.
hetlicht
May 2nd, 2007, 03:58 AM
Hi All.
Really Nice menu HGA77. Super nice work.
I just searched the entire thread after bumping my head on this and noticed it was asked 3 times, but never answered.
Going to another Frame within the flash document.
I've tried replacing the loadMovie action with gotoAndPlay but no cigar.
Has anyone successfully gotten this to go to other frames in the document? If yes could you please shed a little light? It would be much appreciated.
Thanks.
hetlicht
May 2nd, 2007, 06:25 PM
Hopefully this will be helpful to someone else that didn't quite figure it out.
Your XML should look like this:
<menu>
<item name="About" action="30" targetType="non_url">
<sub name="Conceptual Flash" action="46" targetType="non_url"/>
<sub name="Usability" action="78" targetType="non_url"/>
</item>
<item name="Experiments" action="86" targetType="non_url">
<sub name="Navigation" action="http://www.hotmail.com/" targetType="url"/>
<sub name="Back Button in Flash" action="30" targetType="non_url"/>
<sub name="If and Else" action="30" targetType="non_url"/>
</item>
<item name="Merlins Magic" action="56" targetType="non_url">
</item>
<item name="Contact Us" action="45" targetType="non_url">
</item>
</menu>the code in flash that you change
else if (targetType == "non_url")
{
_parent.gotoAndPlay(action);if it's not clear let me know.
bhatjis
May 3rd, 2007, 04:54 AM
Thanks a lot
ScatBack
May 7th, 2007, 07:04 PM
I might look into extending this menu to v4.
Let me know if you think its worth it and what you would like added. Im thinking:
AS2
should've done this ages ago
isURL
true or false.
Attribute within the xml.
Was targetType.
target
"_blank","_self","_parent","_top"
only applied to links that have isURL set to true.
Attribute within the xml.
flashVars
Passing values to the menu via queryStrings. EXAMPLE: menu.swf?item=2&sub=3
On entereing a page with the menu, the menu will auto open to the current item for that page.
For people that use flashObject or swfObject, I'm sure you know how to pass variables to flash when embedding the swf.
Its been some time since I contributed to this thread :)
Hey HGA, what about a scrollable menu where the thumbnails scroll vertically when the mouse moves over or under a certain Y point.
umek
May 8th, 2007, 08:35 PM
Hi all,
at first I have to say thank you for this amazing source. Great job!!
The problem I have is to figure out a way to define a target for the links in the XMLMenu v3.0. I have an ifame and would like to open all links in the frame named "mainContent".
I tried to use ...
getURL( action , "mainContent");
instead of ...
loadMovie( action , _parent.content);
... but every url gets opened in a new window. I don't know why.
I would be appreciate if you could give me a brief explanation whether it possible or not.
... and maybe what I’m doing wrong! :puzzle:
Thanks umek.
fabiopb
May 11th, 2007, 10:44 AM
did you download the zip file?
sorry for the late reply. still nothing, the links to those posts wont even let me go into them...
ScatBack
May 16th, 2007, 01:26 PM
Would anyone know how to (quickly) write code to load .flv's instead of images in the player? I know I can embed .swf's and do it that way but I want freedom to load larger videos and not have to deal with audio syncing issues if they arise. If it isn't too much trouble for someone to help out I would appreciate it.
Thanks!
SB
ScatBack
May 19th, 2007, 06:11 PM
Would anyone know how to (quickly) write code to load .flv's instead of images in the player? I know I can embed .swf's and do it that way but I want freedom to load larger videos and not have to deal with audio syncing issues if they arise. If it isn't too much trouble for someone to help out I would appreciate it.
Thanks!
SB
AHHHHHH!!! Just want to bring this to light again. I am wanting to slam my face into the monitor. I know it has something to do with calling a netstream in a function or something like that but I cannot figure out how to set it up.
Please oh glorious Kirupa one's... empart on me some wisdom.
Scat
arvind_film29
May 21st, 2007, 01:40 AM
I have attached a scroller to this menu, thus it would scroll the expanded contents also.
The scroller would appear based on the size of the content. If the contents height is larger than the mask's height then a scroller would appear.
arvind_film29
May 21st, 2007, 01:44 AM
sorry for the late reply. still nothing, the links to those posts wont even let me go into them...
Try this link..
http://www.kirupa.com/forum/showthread.php?t=124931&page=15
Scroll down to the bottom of the page. A zip file has been attached there.:smirk2:
skitboxkilla
May 22nd, 2007, 08:05 AM
Yes please to all of the above! An AS2/CS3 version would be extremely useful - I have an AS2 project that is crying out for your wonderful system!!!
As an added 'bonus feature', is there a quick way to invert the whole menu? I know that changing this:
menuSpacer="1"
...to
menuSpacer="-45"
...sends the main section upward - but the secondary and tertiary trees still 'grow south'. Any suggestions? ;)
In a recent post of mine, I was looking for a similar option. A 'gotoFrame' option and loading multiple .swf's would be a treat. There's a budget too, if you can afford the time? IM me if you have a spare minute...
NarTom
May 25th, 2007, 05:35 PM
Cool man
I really like this
fabiopb
May 26th, 2007, 12:16 PM
Try this link..
http://www.kirupa.com/forum/showthread.php?t=124931&page=15
Scroll down to the bottom of the page. A zip file has been attached there.:smirk2:
thank you!! i got it finally!!! GREAT WORK!!! :thumb2: i love the simplicity of the design, yet it has those catchy transitions.... very very nice!!
skitboxkilla
May 26th, 2007, 12:48 PM
The '...page=15' version is great & works perfectly on Flash Player 6 in AS2.0 with a single tweak: removing the page of pixelwit code. Is there a way to turn the whole thing upside-down though, so it extends 'up' instead of 'down'?
My plan is to include it in an .exe, with a web version as an add-on. There are other ingredients to consider too, so it'd be good to try and get it all to play nicely in Flash Player 9... Can anyone think of reason why this couldn't be successful without any major changes?
Gonzoforce
June 1st, 2007, 04:58 AM
I am having a bit of a hard time with this one all I want it to do from that menu is to go to a named frame. I am obviously getting the syntax wrong in the xml.
<item name="link2" action= gotoAndStop ("test2")>
why will that not work? I have looked through all the threads but this is not covered as far as I can see.
sorry if it is
hetlicht
June 2nd, 2007, 04:44 PM
http://www.kirupa.com/forum/showpost.php?p=2118127&postcount=627
Gonzoforce
June 5th, 2007, 10:04 AM
XML now fine thanks I am just having a bit of a problem placing the
else if (targetType == "non_url")
{
_parent.gotoAndPlay(action);
I went in and put it at the end of the first 'if' statemet when the url would load and it just errors.
sorry to be a pain but could you explain where it goes.
Many thanks
G
Hopefully this will be helpful to someone else that didn't quite figure it out.
Your XML should look like this:
<menu>
<item name="About" action="30" targetType="non_url">
<sub name="Conceptual Flash" action="46" targetType="non_url"/>
<sub name="Usability" action="78" targetType="non_url"/>
</item>
<item name="Experiments" action="86" targetType="non_url">
<sub name="Navigation" action="http://www.hotmail.com/" targetType="url"/>
<sub name="Back Button in Flash" action="30" targetType="non_url"/>
<sub name="If and Else" action="30" targetType="non_url"/>
</item>
<item name="Merlins Magic" action="56" targetType="non_url">
</item>
<item name="Contact Us" action="45" targetType="non_url">
</item>
</menu>the code in flash that you change
else if (targetType == "non_url")
{
_parent.gotoAndPlay(action);if it's not clear let me know.
hetlicht
June 7th, 2007, 01:54 AM
Hey Gonzoforce,
Sorry for the late reply...I'm slammed over here...
Your code should look like this....(the lines that are bold and in red, are all thats changed to get this to work.)
onClipEvent (load)
{
function executeAction(action, targetType)
{
if (targetType == "url")
{
getURL( action , "_blank");
}
else if (targetType == "non_url")
{
_parent.gotoAndPlay(action);
}
}
function selectItem(item)
{
if (this[item].action != null && curItem != item)
{
executeAction(this[item].action, this[item].targetType);
}
if (this[item].sub == false || curItem == item)
{
curItem = null;
removeSub();
}
else
{
curItem = item;
buildSub(item);
}
}
function buildSub(item)
{
var i;
var s;
var j;
var d = 0;
this.attachMovie("subholder", "subholder", 100);
var k = this.subholder;
var total_subs = 0;
var correct_item = (Number_Items - item) + 1;
for (i in menuObj["item" + correct_item])
{
if (typeof(menuObj["item" + correct_item]) == "object" && i!="sub" && i!="action" && i!="targetType")
{
total_subs++;
}
}
var Present_sub = total_subs - 1;
for (i = 1;i < total_subs;i++)
{
k.attachMovie("sub", i, d);
s = k[i];
s.name = menuObj["item"+correct_item]["sub"+Present_sub].name;
s.action = menuObj["item"+correct_item]["sub"+Present_sub].action;
s.targetType = menuObj["item"+correct_item]["sub"+Present_sub].targetType;
s._x = 20;
s._y = (s._height + subSpacer) * d;
d++;
Present_sub--;
}
k._y = this[item].basey + this[item]._height + menuSpacer;
var u=1;
for (i in menuObj)
{
j = this[u];
if (this[item]._y < j._y)
{
j.target = j.basey + k._height + menuSpacer;
}
else
{
j.target = j.basey;
}
u++;
}
subs=total_subs;
onenterframe = menuAnimation;
}
function removeSub()
{
this.subholder.removeMovieClip();
depth = 1;
for (i in menuObj)
{
this[depth].target = this[depth].basey;
depth++;
}
onenterframe = menuAnimation;
}
function menuAnimation()
{
var i;
var j;
var k = true;
var depth = 1;
for (i in menuObj)
{
j = this[depth];
j._y = j._y + (j.target - j._y) / menuSpeed;
if (menuTolerance < Math.abs(j.target - j._y))
{
k = false;
}
else
{
j._y = j.target;
}
depth++;
}
if (k)
{
onenterframe = null;
if (curItem != null)
{
activateSub();
}
}
}
function activateSub()
{
var d = 0;
for (i=1;i<subs;i++)
{
subholder[i].start = getTimer();
subholder[i].delay = subDelay * d;
subholder[i].gotoAndPlay(2);
d++;
}
}
MovieClip.prototype.activateMenu = function()
{
var d = 0;
for (i=1;i<Number_Items+1;i++)
{
this[i].start = getTimer();
this[i].delay = itemDelay * d;
this[i].gotoAndPlay(3);
d++;
}
}
var menuSpacer = 1; //sets the vertical space between main items
var subSpacer = 1; //sets the vertical space between sub items
var menuSpeed = 5; //sets the menu animation speed
var menuTolerance = 1;
var subDelay = 170; //set the delay for the sub items entering the stage
var itemDelay = 100; //set the delay for the main items entering the stage
var curItem = null;
var menuObj = _parent.menuObj;
var onenterframe = null;
var Present_item = Number_Items;
var loop_condition = Number_Items + 1;
for (d = 1; d<loop_condition; d++)
{
this.attachMovie("item", d, d);
k = this[d];
k._x = 20;
k._y = (k._height + menuSpacer) * d;
k.name = menuObj["item" + Present_item].name;
k.action = menuObj["item" + Present_item].action;
k.targetType = menuObj["item" + Present_item].targetType;
k.sub = menuObj["item" + Present_item].sub;
k.basey = k._y;
if (k.sub == false)
{
k.icon._visible = false;
}
Present_item--;
}
activateMenu();
}
onClipEvent (enterFrame)
{
onenterframe();
} Again, these lines here:
else if (targetType == "non_url")
{
_parent.gotoAndPlay(action);
is whats changed to allow the menu to jump to frames in your flash movie that are specified in the XML file. I hope that helps, you said you had the XML file setup so this should work for you. If you're still having problems post here or email me and I'll do my best to get back to you quickly and hopefully help out.
Cheers,
Hetlicht
hetlicht
June 7th, 2007, 02:03 AM
Also Gonzo just to add more clarity.
My XML file looks like this:
<menu>
<item name="Home" action="11" targetType="non_url">
</item>
<item name="About" action="35" targetType="non_url">
</item>
<item name="Experiments" action="http://www.ichi.com" targetType="non_url">
<sub name="Navigation" action="http://www.hotmail.com/" targetType="url"/>
<sub name="Back Button in Flash" action="30" targetType="non_url"/>
<sub name="If and Else" action="30" targetType="non_url"/>
</item>
<item name="Merlins Magic" action="56" targetType="non_url">
</item>
<item name="Contact Us" action="45" targetType="non_url">
</item>
</menu>Notice in red, the actions for the "non_url" targetType have the number to the frame where you'd like your flash movie to go to. In my post above, thats the exact code you would use and the numbers go in the XML file. Hope that helps.
Cheers,
hetlicht
Gonzoforce
June 7th, 2007, 06:11 AM
That is brilliant thank you so much for your help it is all working fine now, just got to get rid of that 'output' box that tells me if it is URL or non-url but it is very smooth.
Cheers
G
KGerken
June 7th, 2007, 04:08 PM
Do I need "super user" status to view these? I would love to see them, but I get this message when I click on either one of the links you provided:
KGerken, 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.
Gonzoforce
June 8th, 2007, 04:02 AM
Hi KGerken you need to go through the whole thread the links take you to other areas in the thread. I had that same problem. Just go through it and all will be dandy!
Cheers
G
basura
June 13th, 2007, 11:27 AM
Thanks for this code, but i cant download it....
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
--------------------------------------------------------------------------
twdesignz06
June 13th, 2007, 03:45 PM
^Just click on the arrow pointing down to the right of the page numbers and enter the particular page to go to, and you'll be able to download (IE page 3 and 15).
arvind_film29
June 17th, 2007, 11:54 PM
Do I need "super user" status to view these? I would love to see them, but I get this message when I click on either one of the links you provided:
KGerken, 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.
Try this link..
http://www.kirupa.com/forum/showthre...124931&page=15 (http://www.kirupa.com/forum/showthread.php?t=124931&page=15)
Scroll down to the bottom of the page. A zip file has been attached there.:smirk2:
arvind_film29
June 17th, 2007, 11:55 PM
Thanks for this code, but i cant download it....
Try this link..
http://www.kirupa.com/forum/showthre...124931&page=15 (http://www.kirupa.com/forum/showthread.php?t=124931&page=15)
Scroll down to the bottom of the page. A zip file has been attached there.:smirk2:
yakken
June 24th, 2007, 07:47 AM
Is there an easy way to make the menu open to a specific place by passing command to flash from the webpage?
I am using the menu on a normal php-page but as I access a page from e.g. a submenu the whole thing naturally reloads along with the new page. I would like to let the menu know that it should unfold to a specific place by letting the php-page tell the flash-objekt which page it is on now (or perhaps it can figure it out by it self).
Any ideas how to do this?
MADenigma
September 6th, 2007, 10:38 AM
Hi all,
I would like to thank hga77 : Jazèk'Allahou 7'ayran ! and also all the Kirupa Forum users that participated to this thread.
I found all the informations given here very useful and I used this menu on a website I designed but not yet visible on the net.
Please, if it is possible, I would like someone to guide me on how to pass values to the menu via queryStrings or LSO (Local Shared object) in order to get menu open when navigating from page to page in the website.
That's all folks !
Thank you so much.
Salam
daheist
September 7th, 2007, 11:35 AM
Wow I have to say, what an awesome menu!
Everything works like a treat! But the only thing i want is to be able to set the dynamic field to anti-alias for readability so that i can use embedded fonts instead of the verdana.
But when i export the swf in flash 7 or 8 i get a warning... :-s
**Warning** The linkage identifier 'main_item' was already assigned to the symbol 'button', and cannot be assigned to the symbol 'button', since linkage identifiers must be unique.
**Warning** The linkage identifier 'sub_item' was already assigned to the symbol 'subButton', and cannot be assigned to the symbol 'subButton', since linkage identifiers must be unique.
Any suggestions?
amit_taneja2002
September 17th, 2007, 04:21 AM
Thanks guys.
My menu is functional. Though I have one problem, I am using this menu to acess on standalone machines and while acessing exe files it throws up dialogue to save open or run. Can somewhere I disbale this. Or there is some other way to resolve this problem. The files which I am calling are executables made with flash and have their own fscommand folder. How do i resolve this Pls hlp.
abdulmohsen
September 28th, 2007, 11:12 AM
Hello there ....
Am new here but when i try to access the link you posted ... it gives me that i don't have sufficient rights to access it ! am a new member btw!
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
--------------------------------------------------------------------------
abdulmohsen
September 28th, 2007, 04:51 PM
OK. I got it to work and i have looked at your code. Excellent masha'ALLAH. But one line that really bugged me and couldn't figure out what it means:
vt.menuObj["item" + j].action = typeof(i.attributes.action) == "undefined" ? null : i.attributes.action;
This first part is assigning the action attribute to the j-th item. But then assign it to what?? if you don't mind explaining the code after the assignment operator. I would be thankful.
Regards,
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
--------------------------------------------------------------------------
hga77
October 5th, 2007, 08:59 AM
Hi, That is the:
?: conditional operator
Open help within flash, and search for "?". They include examples there. Google will give you loads of examples too. You don't need to use it. A simple "if" statement would do the same job. Sometimes using the "? conditional operator" makes the code look cleaner. but its a personal choice really.
This doesn't only apply to actionscript, you can use this syntax in several programming languages.
This line can be written with a simple "if" instead:
if(typeof(i.attributes.action) == undefined) vt.menuObj["item" + j].action = null;
else vt.menuObj["item" + j].action = i.attributes.action;
bluefox
October 6th, 2007, 03:20 PM
very good
Dantesque
October 8th, 2007, 03:40 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
--------------------------------------------------------------------------
Hi folks.
New member here.
I am trying to access the link in the post above. I do not have permission is what the script says. Am I in the dog house?
sign D.
woof!
Dantesque
October 8th, 2007, 04:03 PM
thank you...
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
--------------------------------------------------------------------------
Try this link..
http://www.kirupa.com/forum/showthre...124931&page=15 (http://www.kirupa.com/forum/showthread.php?t=124931&page=15)
Scroll down to the bottom of the page. A zip file has been attached there.:smirk2:
Dantesque
October 15th, 2007, 01:38 PM
I dont think its that difficult. I believe that this site here alone has a few good tutorials that could get you going. Just read the tutorials done by senocular, he has many xml/flash related tutorials here. And as I have mentioned before in this thread, if you have some actionscript experience, you could experiment with the code and take it from there.
xml menu summary:
The fla has two frames on the main timeline. The AS (ActionScript) code on the first frame is responsible for recieving the xml file, creating menu objects (objects are the items or subItems) from the recieved xml nodes, and finally when it has iterated through all the nodes it simply plays to the next frame (second frame).
Now when it reaches the second frame, the play head stops there since I have the stop command, stop(). But thats not all, we also have the 'menu' movie clip on the second frame, so now the code on the 'menu' clip fires up! Now its getting interesting, because this code is responsible for the menu creation and behavior (see post No. 107 to locate this code). This code starts by using the already created menu objects (created in the first frame) to generate the menu on screen. It does this by attaching the clip 'item' (main item) for every existing main item object. After this, it executes the activateMenu function that deals with timing the tweens to get that nice intro effect. Now when you press a main item, the code will check if this item has sub items. If it does, then it will execute the buildSub function that works the same way as when generating the main items, but using and attaching the 'sub' (sub item) clip. Of course the number of subs required for a given main item is identified from the already made objects that we have mentioned.
I hope this summary helps understand the menu better...
hga,and everyone who has participated in this thread... thank you very much.
I have started reading through the whole thread from beginning to end. I think it is here at 128 that it all starts to make sense. I was lost at first. Impatience has it's price and patience has it's rewards.
I would suggest anyone interested in learning how it all works start at the beginning and read through the whole thread a few times. At first I played with the codes (actionscript and xml) and kept getting lost. Then I remembered hga saying the answers were most likely in here somewhere. For me, so far they have been.
thanx again
Dantesque
Qujo
October 26th, 2007, 06:41 AM
Is it possible to control the menu without clicking an item? I'm using the menu-version that moves the playhead on timeline and I'm also using SWFAddress. So if I browse to content with direct address (ie. www.domain.com/#/menuitem3/subitem2) I want the menu to open the menuitem3 submenu. Possible?
hga77
October 27th, 2007, 10:20 AM
This is an alternative solution to the previous discussions regarding passing values to flash using querySting, and having the menu use those values to auto open to that item/sub.
By using SWFAddress, you let SWFAddress handle the passing of values to flash. Those values always come after the hash ("#") on the url (This portion is sometimes known as uri), and are seperated by a forward slash ("/"). SWFAddress also stores a history object that can look after the forward/back browser button. Very powerful and works great.
Yes it is possible. I haven't looked at the menu for some time now, but I assume it would simply be passing the menuItem and subItem given by SWFAddress, something like:
menuItem = _SWFAddress.getValue().split("/")[1];
subItem = _SWFAddress.getValue().split("/")[2];
(assuming that _SWFAddress has been set somewhere)
Then pass those values to the function that would normally be called when onRelease of a sub item.
Needs some works but would work beautifully.
MADenigma
October 29th, 2007, 08:17 AM
Please can anyone help me to make the XML Menu open automatically when browsing from page to page by using Local Shared Objects ?
I tried several methods but without any efficient result, any help or some guidance is very useful.
Thank you all in advance.
Robyee
October 30th, 2007, 05:59 AM
Hi, im using the myxmlmenu3, but i have to publish it for Player 8 Actionscript 2 ..., and the problem is that the Downstate doesnt work properly, :huh: ... i have to mouse-over to reset the state of unselected buttons ... there is a way to resolve it...?
Robyee
October 31st, 2007, 04:21 AM
Someone can help me, i utilized fthe menu but it require Player 8 As 2, and the downstate doesnt work in As2 ...i dont know if depend on 'function selectItem' on menu istance or '_global.activeSub = null;' in 'theSub' instance ...its 48 hrs im trying ...:d:
Hi, im using the myxmlmenu3, but i have to publish it for Player 8 Actionscript 2 ..., and the problem is that the Downstate doesnt work properly, :huh: ... i have to mouse-over to reset the state of unselected buttons ... there is a way to resolve it...?
donald.graham
November 5th, 2007, 02:31 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
--------------------------------------------------------------------------
I cant seem to pull up these 2 posts. I was wondering if someone could give me the direct URL to the download? Thanks,
lee
wsp
November 5th, 2007, 05:17 PM
thats pretty cool! ;)
Qujo
November 6th, 2007, 06:41 AM
This is an alternative solution to the previous discussions regarding passing values to flash using querySting, and having the menu use those values to auto open to that item/sub.
By using SWFAddress, you let SWFAddress handle the passing of values to flash. Those values always come after the hash ("#") on the url (This portion is sometimes known as uri), and are seperated by a forward slash ("/"). SWFAddress also stores a history object that can look after the forward/back browser button. Very powerful and works great.
Yes it is possible. I haven't looked at the menu for some time now, but I assume it would simply be passing the menuItem and subItem given by SWFAddress, something like:
menuItem = _SWFAddress.getValue().split("/")[1];
subItem = _SWFAddress.getValue().split("/")[2];
(assuming that _SWFAddress has been set somewhere)
Then pass those values to the function that would normally be called when onRelease of a sub item.
Needs some works but would work beautifully.
Bugger, you make it sound so simple but I'm lost on this. Can you somehow clearify a bit, what would the Address string look like? I now have it like this:
http://www.site.com/#/page1/ (http://www.site.com/#/pageid=20/)
so how do I get the menu variables to that string?
aaronshekey
November 10th, 2007, 09:17 PM
How might I put this menu inside a containing movie clip? Each time I do so, the button text disappears. Each button is drawn, just the text isn't put in. It doesn't return Undefined, just nothing.
I've been using:
//the default container is this.
GenerateMenu(navigation_mc, "mainmenu_mc", x, y, depth, xmlData.firstChild);
Any ideas?
aaronshekey
November 12th, 2007, 11:53 AM
Ooops. Seems you've got to embed the text. Why is this?
mixeeplikstick
November 26th, 2007, 08:49 PM
hi i've read the topics regarding this post and i am very impressed indeed with hga77's work on the xml menu. i am just wondering if someone can direct me on creating the same xml menu design as hga77's work but when it collapse it would look like the one on this thread: http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm (http://www.kirupa.com/forum/../developer/actionscript/xml_dropdown_menu.htm) .
thanks in advance! im hoping to hear from you guys soon. :snug:
JamesKaldas
December 1st, 2007, 11:47 PM
dont have permission to view! awwwwwwwwww :sad:
0pt1
December 2nd, 2007, 05:41 PM
wow, what a great thread, Ive learned so much going through all the posts, thatnks to all the posters and of course, thanks to HGA 77 for providing such an elegant and (obviously) adaptable menu.
Im trying to come up with a variation of the horizontally formatted menu (posted back there in the 30's) but I want the submenus to expand upwards rather than down. what part of the code do I need to tweak? Ive managed to to move the initial submenu up to the other side of the Principle bar but then it loads down as normal. any thoughts?
bsl822
January 20th, 2008, 09:22 AM
nice xml menu. Being new here, looks cool
bvirus
January 21st, 2008, 11:29 AM
why i can't visit the specified URL from the 1st page? it says i don't have permission to view it..
do i need to edit some settings in my control panel?
hga77
January 28th, 2008, 10:10 AM
fixed. Please try again.
Like the footer ;)
bvirus
January 29th, 2008, 10:54 AM
my footer? hehe.. i print that on our org shirt... it's cool man!
macan77
February 16th, 2008, 10:50 PM
Hello,
hga77 thanks for nice menu! I have modified it and everything works great except that I cant display data from xml on the begining of movie (without button release). I menaged to load image when movie loads but how to display data from my first xml line "action="This is some text....", I need that text to be already opened when page is loaded, hoe to achive this?
Thanks in advance!!!
Davemellis
February 19th, 2008, 05:39 AM
Hi, firstly love the menu, makes editing the site an absolute doddle.
I like the menu so much i've tried to use it twice and encounted a problem.
I've set up the Horizontal version of the menu which works fine.
I also have a swf with the vertical menu in.
I load the vertical menu swf file from the horizontal menu and it works fine. the problem is that when i return to the horizontal menu the sub items have lost their values and become undefined in the output box.
I'm guessing that the two menus are too similar and something is clashing.
Have you got any idea what this could be?
or do i somehow need to refresh the xml for the horizontal menu?
Thanks
David
mixeeplikstick
February 26th, 2008, 10:49 PM
hi hga77, your work on the xml menu you've been developing really helped me a lot and i've learned how it works by actually studying it and to be honest i've recommended friends who are willing to learn making menu's using xml to read your post in this forum....
lately i've been trying to make an xml menu using the concept of what you've made.... the links, downstate, animation, and even accomplished integrating the xml menu into VB 6.0 by creating VBcalling function and using fscommands... im stuck in one thing though... and who is best to ask for tips, advices or help than the person who developed the xml menu himself that im using now... i'm trying to add a icons inside the xml menu that would change into a different when the downstate is fired up, a best example of what i want to achieve could be seen just like in the Flash library where the folder icon image is open when you view its contents, and the folder icon is close when you hide its contents... (example image below)
http://www.fileden.com/files/2007/7/25/1294588/a1.jpg http://www.fileden.com/files/2007/7/25/1294588/a2.jpg
(uncollapsed) (collapsed)
thanks in advance! cheers!:pleased:
"the image above with the folders is not yet attained, the folders were add by editing the xml drop-down menu screenshot in photoshop just to show what i want to attain in its final form"
mixeeplikstick
February 27th, 2008, 01:03 AM
if my explaination above is too sketchy to understand... here's a link that will navigate you to what i want to achieve on the xml menu im trying to make: http://flashden.net/files/6730/index.html
the menu i want to make is exactly similar to the one on the link provided above... the icon would change once the "on(release, releaseOutside)" function is fired-up or once the end-user should click one of the buttons.
my problem is since all of the buttons and sub-buttons are generated depending on how many nodes are present on the xml file, how is it possible to fire one button in the menu to change its icon without changing the other buttons icon in the entire menu?
help please ;(....
Thanks in advance!
mixeeplikstick
February 28th, 2008, 09:01 PM
hi hga77, your work on the xml menu you've been developing really helped me a lot and i've learned how it works by actually studying it and to be honest i've recommended friends who are willing to learn making menu's using xml to read your post in this forum....
lately i've been trying to make an xml menu using the concept of what you've made.... the links, downstate, animation, and even accomplished integrating the xml menu into VB 6.0 by creating VBcalling function and using fscommands... im stuck in one thing though... and who is best to ask for tips, advices or help than the person who developed the xml menu himself that im using now... i'm trying to add a icons inside the xml menu that would change into a different when the downstate is fired up, a best example of what i want to achieve could be seen just like in the Flash library where the folder icon image is open when you view its contents, and the folder icon is close when you hide its contents... (example image below)
http://www.fileden.com/files/2007/7/25/1294588/a1.jpg http://www.fileden.com/files/2007/7/25/1294588/a2.jpg
(uncollapsed) (collapsed)
thanks in advance! cheers!:pleased:
"the image above with the folders is not yet attained, the folders were add by editing the xml drop-down menu screenshot in photoshop just to show what i want to attain in its final form"
never mind guys... i have figured it out already regarding my problem refering to my #682 post in this thread... and yep it sucks when you ask for help and no one seems to bother to give you a hand... :sigh: *sigh*
but still i would like to share what i've accomplished... you can add icons on the xml menu by simply importing some icons that you wish to use on the top level, sub level, and subsub level menus, be sure you both have the downState icon and the upState icon. then contain the two imported icons into a movie clip, the first frame for the upState icon and the second frame for the downState icon. be sure to place the stop(); AS on each frame.
then give the movie clip that contains the icons you've imported an instance name, it depends on what you want to name it, i named mine sIcon. now go to and open the item movieclip on the top level item folder in you flash library, and add a new layer above the button layer and click on the 10th frame and press F7 on your keyboard. drag the movie clip that contains the icons on stage.
in the button layer open the theItem movie clip, then once opened, click the as layer and press F9 to open the action script window and replace the this.onRelease = function() to the following code: (the red colored line is where you place the instance name you gave the movie clip that contain your icons)
this.onRelease = function()
{
if (_global.activeItem == _parent._name)
{
iColor = new Object(_parent._parent[_global.activeItem].theItem);
iColor.fadeHex(_parent.outColor, colorSpeed);
iColor._parent.sIcon.gotoAndStop(2);
_global.activeItem = null;
_parent.sIcon.gotoAndStop(1);
changeColor(this, _parent.downColor);
_parent._parent.selectItem("course", _parent._name);
}
else
{
if (_global.activeItem != _parent._name)
{
iColor = new Object(_parent._parent[_global.activeItem].theItem);
iColor.fadeHex(_parent.outColor, colorSpeed);
iColor._parent.sIcon.gotoAndStop(1);
_global.activeItem = _parent._name;
_parent.sIcon.gotoAndStop(2);
changeColor(this, _parent.downColor);
_parent._parent.selectItem("course", _parent._name);
}
else
{
if(_parent.sub)
{
_global.activeItem = null;
changeColor(this, _parent.outColor);
_parent._parent.selectItem("course", _parent._name);
}
}
}
}once done replacing the code, try to compile the movie and see for yourself that the icons change once you click on a menu.:beer:
by the way, repeat the process for your sub and subsub levels of menus... you don't necessarily need to repeat the import part of the icons if your going to use the same one for all of the levels. :panda:
hga77
March 4th, 2008, 06:49 PM
Adding icons is a nice idea. Thanks for sharing your solution ;)
audiohominis
March 13th, 2008, 08:44 PM
You're just too good to be free~~~
Can't take my eyes off of ye~~~~
:krazy:
youwh
March 17th, 2008, 06:30 PM
Damn Cool!
But now I have problem adding another sub menu :p
looks like many places need to be change...:puzzled:
Multi-Task
April 3rd, 2008, 11:27 PM
WoW from 2004 to 2008 now I post. LOL. HGA sent you a pm. hga
Nice work I must say on the menu. I have read all posts and played with this thing over the last year or so. Just recently I have been revisiting it and trying to apply it to something. I am using xml_menu_v3.zip from page 15 post #225.
What I am doing is on user click all does is changes some dynamic text fields on stage.
I have succesfully added some extra node attributes to read in extra data associated with each menu selection. I have done this succesfully for levels 1 and 2 all reading in multiple attributes from xml and displays them in txt fields. However on the subsub it will only read in the action attribute and totally ignores the others even though they are present. Where else are you setting these in this version?
On frame 1 I have added the necessary attributes for:
vt.menuObj.["item" + j] - lines 28ish - 33
vt.menuObj.["item" + j]["sub" + m] - lines 40ish - 45
vt.menuObj.["item" + j]["sub" + m]["subsub" + a] - lines 52ish - 57
where vt.menuObj.["item" + j]["sub" + m].name = i.attribute ect...
also on frame 2 on menu actions:
added them passing in the execute action, for item and sub. and added them in the creation of each item, sub and subsub. Only getting action back for level 3.
This thread is old and ive been playing with this version for last week or so any help is appreciated. Thanks. MT
hga77
April 4th, 2008, 06:48 AM
Multi,
Go to the library and double-click the movie clip "subsub".
On the last frame of the "shape" layer you'll find a button "subsubButton". On this button you'll find:
on (release)
{
_parent._parent._parent.executeAction(action);
}
Multi-Task
April 4th, 2008, 07:09 PM
Nice! Much thanks I cant wait to get home and play with it. For now I sit in my corporate cube with no window in view counting peas for the powers that be. Question and I am not to sure cause I am not in my home laboratory with my toys, but do I need to add I think another elseif checking if it is itemType subsub (in this case)? I think its on the actual menumc under the executeAction. I could be wrong on AS location. I'll be home in another couple hrs so I'll check it then and hit ya back. Thanks again.
Multi-Task
April 4th, 2008, 09:46 PM
nvrmind. figured it out. doooooope menu. fooooooooo shay. beer time.
lacviet2005
April 25th, 2008, 04:18 PM
Hi all,
Thanks very much for a wonderful menu. I'm a newbie to AS as well as here. I've read through 47 pages of this thread, tried to learn more about this menu.
Yes i know this thread is hella long already, but i do have a favor to ask.
Here's what I have (btw, i'm using v3). I set the first item on the menu to load an external *.swf file. Is there a way to load it automatically when open?
I'd greatly appreciate any help from our gurus here.
Thanks much,
LV
0pt1
April 27th, 2008, 03:22 PM
hey there, I know this thread is sorta deserted these days, but I had a question in case any knwledgable people still check in every now and then. I love this menu and would like to use in a site I am doing. everything works fine when the menu movieclip is posted on the main timeline but when I embed the menu into a movie clip (3 levels deep) all I get are blackened bars where the main menu items should be, on top of that there is no functionality to the menu at all........I know I am missing something obvious but being a newcomer to actionscript dont really know where to start.......any takers?
kate
May 2nd, 2008, 07:49 AM
Hi,
I hope that somebody can help me with this, although I realise this thread is getting on a bit now.
I have the V3 menu and would like each menu item to make a particular movieclip gotoAndStop at a particluar frame.
I can get the gotoAndStop work OK if I specify in the AS which movieclip to use, but when it takes it from the XML it doesn't work.
Please help, its driving me potty !!
Thanks,
Kate
kate
May 2nd, 2008, 09:53 AM
sorted now, missing a pesky [] .
funkybudda
May 21st, 2008, 09:50 PM
just curious, any expert can help modify the v3 menu with multiple open sub menu sections? Currently it opens one and collapse another.
Thanks in advance...
MediaMon
June 9th, 2008, 04:09 PM
For some reason it wont let me open a new page... i'm using the target path...(?)
I'm using menu V3...
first frame code:
/**************\
Xml Menu v3
By hga77
11/07/2004
\**************/
stop();
var contentFile = "xmlstuff/menuContent.xml";
var configFile = "xmlstuff/menuConfig.xml";
contentXML = new XML();
configXML = new XML();
contentXML.varTarget = this;
configXML.ignoreWhite = contentXML.ignoreWhite = true;
contentXML.onLoad = function (success)
{
if (success)
{
var vt = this.varTarget;
var root = this.firstChild;
vt.menuObj = new Object();
var i, j, k, m, h, a;
(i = root.lastChild, j = 1);
while (i != null)
{
vt.menuObj["item" + j] = new Object();
vt.menuObj["item" + j].name = i.attributes.name;
vt.menuObj["item" + j].action = typeof(i.attributes.action) == "undefined" ? null : i.attributes.action;
vt.menuObj["item" + j].sub = false;
if (i.hasChildNodes())
{
vt.menuObj["item" + j].sub = true;
(k = i.lastChild, m = 1);
while (k != null)
{
vt.menuObj["item" + j]["sub" + m] = new Object();
vt.menuObj["item" + j]["sub" + m].name = k.attributes.name;
vt.menuObj["item" + j]["sub" + m].action = typeof(k.attributes.action) == "undefined" ? null : k.attributes.action;
vt.menuObj["item" + j]["sub" + m].subsub = false;
if (k.hasChildNodes())
{
vt.menuObj["item" + j]["sub" + m].subsub = true;
(h = k.lastChild, a = 1);
while (h != null)
{
vt.menuObj["item" + j]["sub" + m]["subsub" + a] = new Object();
vt.menuObj["item" + j]["sub" + m]["subsub" + a].name = h.attributes.name;
vt.menuObj["item" + j]["sub" + m]["subsub" + a].action = h.attributes.action;
(h = h.previousSibling);
a++;
}
vt.menuObj["item" + j]["sub" + m].Number_SubSubs = a - 1;
}
(k = k.previousSibling);
m++;
}
vt.menuObj["item" + j].Number_Subs = m - 1;
}
(i = i.previousSibling);
j++;
}
_global.Number_Items = j - 1;
vt.play();
}
else
{
trace("ERROR PARSING XML");
}
};
function loadContent()
{
contentXML.load(contentFile);
}
configXML.onLoad = function (success)
{
if (success)
{
var root = this.firstChild;
configObj = new Object();
configObj.menuSpeed = root.attributes.menuSpeed;
configObj.menuSpacer = root.attributes.menuSpacer;
configObj.colorSpeed = root.attributes.colorSpeed;
allLevels = root.childNodes;
for(var i=0; i<allLevels.length; i++)
{
configObj[allLevels[i].nodeName] = new Object;
configObj[allLevels[i].nodeName].overColor = allLevels[i].attributes.overColor;
configObj[allLevels[i].nodeName].outColor = allLevels[i].attributes.outColor;
configObj[allLevels[i].nodeName].downColor = allLevels[i].attributes.downColor;
configObj[allLevels[i].nodeName].delay = allLevels[i].attributes.delay;
}
loadContent();
}
else
{
trace("ERROR PARSING XML");
}
}
configXML.load(configFile);
__________
2nd frame:
onClipEvent (load)
{
function executeAction(action, targetType)
{
trace(targetType);//you can delete this line!
if (targetType == "url")
{
getURL( url, "_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"
}
}
function selectItem(itemType, item)
{
if(itemType == "item")
{
curSub = null;
if (this[item].action != null && curItem != item)
{
executeAction(this[item].action);
}
if (this[item].sub == false || curItem == item)
{
curItem = null;
removeSub();
}
else
{
curItem = item;
buildSub(item);
}
}
else if(itemType == "sub")
{
if (subholder[item].action != null && curSub != item)
{
executeAction(subholder[item].action);
}
if (subholder[item].subsub == false || curSub == item)
{
curSub = null;
removeSubSub();
}
else
{
curSub = item;
buildSubSub(item);
}
}
}
function buildSub(item)
{
var i;
var s;
var j;
var d = 0;
totalSubs = this[item].totalSubs;
this.attachMovie("subholder", "subholder", 100);
var k = this.subholder;
var Present_item = (Number_Items - item) + 1;
var Present_sub = totalSubs;
for (i = 1; i<=totalSubs; i++)
{
k.attachMovie("sub", i, d);
s = k[i];
s.outColor = configObj.sub.outColor;
s.overColor = configObj.sub.overColor;
s.downColor = configObj.sub.downColor;
s._x = 20;
s._y = (s._height + menuSpacer) * d;
s.name = menuObj["item"+Present_item]["sub"+Present_sub].name;
s.action = menuObj["item"+Present_item]["sub"+Present_sub].action;
s.totalSubSubs = menuObj["item"+Present_item]["sub"+Present_sub].Number_SubSubs;
s.subsub = menuObj["item"+Present_item]["sub"+Present_sub].subsub;
s.basey = s._y;
if (!s.subsub){s.iconSub._visible = false;}
d++;
Present_sub--;
}
k._y = this[item].basey + this[item]._height + menuSpacer;
var currentItem = 1;
for (i in menuObj)
{
j = this[currentItem];
if (this[item]._y < j._y){j.target = j.basey + k._height + menuSpacer;}
else{j.target = j.basey;}
currentItem++;
}
subholderHeight = subholder._height;
onenterframe = itemAnimation;
}
function itemAnimation()
{
var i;
var j;
var k = true;
var currentItem = 1;
for (i in menuObj)
{
j = this[currentItem];
j._y = j._y + (j.target - j._y) / menuSpeed;
if (menuTolerance < Math.abs(j.target - j._y)){k = false;}
else{j._y = j.target;}
currentItem++;
}
if (k)
{
onenterframe = null;
if (curItem != null)
{
subholder.activate(totalSubs, subDelay);
}
}
}
function buildSubSub(item)
{
var i;
var s;
var j;
var d = 0;
totalSubSubs = subholder[item].totalSubSubs;
subholder.attachMovie("subsubHolder", "subsubHolder", 100);
var k = subholder.subsubHolder;
var Present_item = (Number_Items - curItem) + 1;
var Present_sub = (totalSubs - item) + 1;
var Present_subsub = totalSubSubs;
for (i=1; i<=totalSubSubs; i++)
{
k.attachMovie("subsub", i, d);
s = k[i];
s.outColor = configObj.subsub.outColor;
s.overColor = configObj.subsub.overColor;
s.downColor = configObj.subsub.downColor;
s.name = menuObj["item"+Present_item]["sub"+Present_sub]["subsub"+Present_subsub].name;
s.action = menuObj["item"+Present_item]["sub"+Present_sub]["subsub"+Present_subsub].action;
s._x = 20;
s._y = (s._height + menuSpacer) * d;
d++;
Present_subsub--;
}
k._y = subholder[item].basey + Math.floor(subholder[item]._height) + menuSpacer;
for (i = 1; i<=totalSubs; i++)
{
j = subholder[i];
if (subholder[item]._y < j._y){j.target = j.basey + k._height + menuSpacer}
else{j.target = j.basey;}
}
var currentItem = 1;
addPortion = subholder.subsubHolder._height+subholderHeight + menuSpacer;
for (i in menuObj)
{
j = this[currentItem];
if (this[curItem]._y < j._y){j.target = j.basey + addPortion + menuSpacer;}
else{j.target = j.basey;}
currentItem++;
}
onenterframe = subAnimation;
}
function subAnimation()
{
var i;
var j;
var k = true;
for (i = 1; i<=totalSubs; i++)
{
j = subholder[i];
j._y = j._y + (j.target - j._y) / menuSpeed;
if (menuTolerance < Math.abs(j.target - j._y)){k = false;}
else{j._y = j.target;}
}
var currentItem = 1;
for (i in menuObj)
{
j = this[currentItem];
j._y = j._y + (j.target - j._y) / menuSpeed;
if (menuTolerance < Math.abs(j.target - j._y)){k = false;}
else{j._y = j.target;}
currentItem++;
}
if (k)
{
onenterframe = null;
if (curSub != null)
{
subholder.subsubHolder.activate(totalSubSubs, subsubDelay);
}
}
}
function removeSub()
{
this.subholder.removeMovieClip();
var currentItem = 1;
for (i in menuObj)
{
this[currentItem].target = this[currentItem].basey;
currentItem++;
}
onenterframe = itemAnimation;
}
function removeSubSub()
{
var i;
subPortion = subholderHeight + menuSpacer;
this.subholder.subsubHolder.removeMovieClip();
for (i=1;i<=totalSubs;i++){subholder[i].target = subholder[i].basey;}
for (i=1; i<=Number_Items; i++)
{
if(this[curItem]._y < this[i]._y){this[i].target = this[i].basey + subPortion;}
}
onenterframe = subAnimation;
}
MovieClip.prototype.activate = function(loopTo, delayTime)
{
var d = 0;
for (i=1;i<=loopTo;i++)
{
this[i].start = getTimer();
this[i].delay = delayTime * d;
this[i].gotoAndPlay(3);
d++;
}
}
var menuObj = _parent.menuObj;
var configObj = _parent.configObj;
var menuTolerance = 1;
var menuSpacer = parseInt(configObj.menuSpacer);
var menuSpeed = parseInt(configObj.menuSpeed);
var subsubDelay = parseInt(configObj.subsub.delay);
var subDelay = parseInt(configObj.sub.delay);
var itemDelay = parseInt(configObj.item.delay);
var curItem = null;
var curSub = null;
var onenterframe = null;
var Present_item = Number_Items;
_global.colorSpeed = parseInt(configObj.colorSpeed)*100;
_global.activeItem;
_global.activeSub;
_global.activeSubSub;
for (var d = 1; d<=Number_Items; d++)
{
this.attachMovie("item", d, d);
k = this[d];
k.outColor = configObj.item.outColor;
k.overColor = configObj.item.overColor;
k.downColor = configObj.item.downColor;
k._x = 20;
k._y = (k._height + menuSpacer) * d;
k.name = menuObj["item" + Present_item].name;
k.action = menuObj["item" + Present_item].action;
k.totalSubs = menuObj["item"+Present_item].Number_Subs;
k.sub = menuObj["item" + Present_item].sub;
k.basey = k._y;
if (!k.sub){k.icon._visible = false;}
Present_item--;
}
this.activate(Number_Items, itemDelay);
}
onClipEvent (enterFrame){onenterframe();}
Help!!!!
SWEET FILE!!!!! Great work
MediaMon
June 12th, 2008, 04:04 AM
so i read the whol etread again and again... V2 WORKS with getUrl..but V3 does not... help!!! please
tri_s
June 18th, 2008, 11:55 PM
anyone tried to have both _self and _blank for the option
like adding another urlType???!
since we only have the _blank option
trace(targetType);//you can delete this line!
if (targetType == "url")
{
getURL( url, "_blank");
anyone got idea how to make it work?
============================================
function executeAction(action,targetType,urlType)
{
trace(action);
trace(targetType);
if (targetType == url)
{
trace(urlType);
{
if (urlType = "b")
{
getURL( action , "_blank");
}
else if(urlType = "s")
{
getURL( action , "_self");
}
}
}
else if(targetType == "non_url")
{
loadMovie( action , _parent.content)
}
}
seem to having problem! :(
HELP!!!
kaplisrinku
June 29th, 2008, 10:48 AM
hi
thanks that is very good comment on this
svcreation (http://www.svcreation.in)
--vagabond007[/quote]
nateshiyer
July 9th, 2008, 07:54 AM
Is it possible for you guys to have a look at www.onemanagement.com (http://www.onemanagement.com) website. I seek to make a similar menu system:: sliding up... I have not got anything so far...
I am dumber that most in flash
pixsouldier
July 10th, 2008, 04:40 PM
I might look into extending this menu to v4.
Let me know if you think its worth it and what you would like added. Im thinking:
AS2
should've done this ages ago
isURL
true or false.
Attribute within the xml.
Was targetType.
target
"_blank","_self","_parent","_top"
only applied to links that have isURL set to true.
Attribute within the xml.
flashVars
Passing values to the menu via queryStrings. EXAMPLE: menu.swf?item=2&sub=3
On entereing a page with the menu, the menu will auto open to the current item for that page.
For people that use flashObject or swfObject, I'm sure you know how to pass variables to flash when embedding the swf.
Its been some time since I contributed to this thread :)
I must say this thread has been kicking for quite a long time because the information within is sooooo helpful. Love the menu of course. Would love to see a v4. I'm using this menu for a content module and would like to know how to initialize the first menu item when the menu loads. In other words I want the action for the first menu item to load without having to manually loadMovie like
_level0.content.loadMovie("overview.swf");
Any ideas?
nickbunyun
July 18th, 2008, 08:37 AM
i cannot add links
i put
action="http://www.google.com"
and it doesnt work, i also tried
action="gotoURL" variables="http://www.google.com">
and
action="getURL" variables="http://www.google.com">
i tried all versions.
ive seen ppl putting code in the actionscript somewhere, but i dunno where to put it.
heeelpp
padlock12
July 19th, 2008, 11:44 PM
Nice one, thank you for the menu tuts
pantas
July 24th, 2008, 09:05 AM
really nice!
keep up the good work :D
pixsouldier
July 28th, 2008, 03:18 PM
So... I figured out how to automatically show the first menu item in the menu when it loads. I added the following code snippet to the onClipEvent for the menu movieclip just after the line that reads
this.activate(Number_Items,itemDelay);
_level0.menu.selectItem("item",1);
_global.activeItem = 1;
This selects the first item and makes it active but I still haven't figured out how to change the color to the downcolor. Any ideas? BTW... working from version 3.
pixsouldier
August 12th, 2008, 05:48 PM
Could anyone take a look at my problem above and suggest a solution? I'm stumped.
pixsouldier
August 13th, 2008, 10:56 AM
Here is what I've done so far:
if (_global.activeItem=1) {
this.selectItem("item",1);
}
This fires the action for the first item from the XML and makes it active (unclickable), but I'm still trying to figure out how to change the first menu item's background color on load. I think I saw something earlier in the thread about doRelease but I don't see it. This seems fairly straight forward... can anyone help?
randomagain
August 13th, 2008, 12:17 PM
this is a 48 page thread...
why not start your own thread with reference to this menu
davidbrent
August 20th, 2008, 12:32 PM
I love this menu, anyone found a way to have a 3rd option besides URL and nonurl.
For instance, I tried to create another action called page which when clicked would open a link in an iframe I have beside my menu. I couldn't set the target of a URL action to target that iframe, because most the links on my menu just launch a PDF which I want to be done in _blank. And I of course still need nonurl to not load any pages, and just continue on with the function of the menu.
Any help would be greatly appreciated. Thanks :D
onClipEvent (load)
{
function executeAction(action)
{
if (action == "nonurl")
{
}
else if (action == "page")
{
getURL(action , "iframecontent");
}
else
{
getURL(action , "_blank");
}
}
davidbrent
August 20th, 2008, 12:37 PM
I'm sorry I forgot to tell you all why that doesn't work! I'm an idiot :D
Because for my action "page" I have no way of sending the url for that page through XML, since i've used that variable to declare "page."
riot
October 7th, 2008, 06:23 PM
The menu is perfect. Cheers, hga77!
2 questions:
1 - I just wanted to know what can be done to have a color change of the text when the mouse is over and/or out; and
2 - Work with "onmouseOver" to open/close the itens/subs/subsubs.
Thanks in advance and sorry about my english ;)
riot
October 7th, 2008, 09:08 PM
Well... I'm not a patient guy LOL
I think that this can help. Sorry about my english.
Change text color of a button on mouse over
On the library we have 3 folders. Inside each folder we have a movieclip used for the buttons ('item' on the folder 'top level item'; 'sub' on the folder 'sub level item'; 'subsub' on the folder 'subsub level item'). What I did: added an action on the button inside each movieclip. Note: the textfield inside the movieclip need to have an instace name.
on (rollOver) {
cor = new Color(texto);
cor.setRGB(0xFFA200);
}
on (rollOut) {
cor = new Color(texto);
cor.setRGB(0x6C768F);
}
* texto = the instance name of the textfield
Open/close the itens/subs/subsubs on mouse over
Follow the way above to edit the rollOver action of the buttons and use the same action of the release (just delete the release action after). I don't know if it is the best way but worked for me.
[]'s
Eduardo
cslady
October 13th, 2008, 01:07 AM
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
LINK (http://www.kirupa.com/forum/showthread.php?p=1141485#post1141485)
UPDATE(07/2004): you can find v3 for this menu on page 15 post #221
LINK (http://www.kirupa.com/forum/showthread.php?p=1271124#post1271124)
--------------------------------------------------------------------------
Hi, why does the 3 level menu (2nd flash file) show nothing when i publish it. Can you give me some advice please?
riot
October 13th, 2008, 10:31 AM
Hi, why does the 3 level menu (2nd flash file) show nothing when i publish it. Can you give me some advice please?
Can you give some details?
- What version of Flash are you using?
- Some changes on the export parameters (version of AS,...)?
- The exported SWF it's on the same folder of the FLA (ask you 'cause the XML path it's specific)?
cslady
October 14th, 2008, 02:02 AM
Can you give some details?
- What version of Flash are you using?
- Some changes on the export parameters (version of AS,...)?
- The exported SWF it's on the same folder of the FLA (ask you 'cause the XML path it's specific)?
Hi,
Its setting is:
Player: 6 Actionscript: 1.0 Profile: Flash CS3 Settings (This is what displayed at the property)
I didn't change anything to the orignial zip file. I just unzipped it and opened it in Flash CS3 Professional.
Should I change the setting?
Thanks
vanmemet
October 30th, 2008, 12:52 PM
your code
"
loadMovie( action + '.swf', _parent.content);//just add this line
"
is this code can be written like below?
"
loadMovie( action + '.swf?var1=example', _parent.content);//just add this line
"
and if this is possible how can i pass this parameter to swf file that loaded?
korpka
April 15th, 2009, 01:13 PM
Hey guys. I can't figure out where to put the code in the FLA so when you click a button, it will load a jpg/swf? I basically need the menu in zip on page 15. I dont need sub menus. Just regular menu but when you click each button I want to load an SWF into an empty MC. Can someone help figure this out. thx
korpka
April 15th, 2009, 04:06 PM
ok I figured it out. Now I need to place this into a site inside an MC. How should I do this so the menu will work?
miau18
May 6th, 2009, 02:49 AM
can i ask any sample to make sub, subsub and subsubsub... which mean 3 level of the menu?
eliashickman
June 1st, 2009, 03:01 AM
Pretty cool to see this thread still alive after five years. :)
fenfen_liem
June 28th, 2009, 07:40 PM
Forgive me if this is not the right thread to ask this... but I am already using hga77's menu script then change the layout a lil'bit... cause my boss requirement make me :stare:!!
I have to organize 138 FAQs of 69 products.The problem is I only have access to microsite so I cannot use server code nor database. :jail: That's why I have to use XML to list the data :stare:!
So I come up with this :
1. User chose the product in combobox.
2. hga77's menu come up (horizontal) with categories of the FAQs (different product may have different categories).
3. After user choose category, th SUB menu show up. The title list of FAQs.
4. Each title can be direct user to open movie clip or open new URL.
My only problem is in combobox! I cannot make it sinc with hga77's menu >_<!!! I already make the menu horizontal etc... but the most crucial thing, I cannot make it done...!
I am a web designer so not used with action script + xml (have to learn more a lot!!!)
Please anybody help me ^^;
fenfen_liem
June 29th, 2009, 09:34 PM
Anybody can help me T-T ???
dovewing2000
September 23rd, 2009, 03:36 PM
Hey HGA,
I've read through the entire thread and i'm very happy i've been able to try and follow what's happening... I'm a newbie in AS3 and I'm wondering if you or any others will be converting this to a AS3 version? I'm still going through the code (mostly the v2 with downstate and v3 ) and trying to learn things along the way - i'm able to get thru the xml part and i'm still picking apart the rest. but I thought to drop a line to say thank you for your hard work and it helped inspire me to learn as3.
jumphopper
December 20th, 2010, 02:52 PM
hi there,
is there a way to load a movieclip in the submenus of this xml flash menu?
- jumphopper
qdjch
April 18th, 2011, 10:36 PM
hi there,
is there a way to load a movieclip in the submenus of this xml flash menu?
- jumphopper
I do a course with actionscript 3.I want to have a tree menu with as3
do you have?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.