Menubar
How i active buttons "Home" and "Contacts"??
Code:
import mx.controls.Menu;
import mx.controls.MenuBar;
import mx.controls.TextArea;
var my_mb:MenuBar;
var selected_ta:TextArea;
var file_menu:Menu;
var recent_menu:Object;
var edit_menu:Menu;
var view_menu:Menu;
var help_menu:Menu;
file_menu = my_mb.addMenu({label:"Home", instanceName:"HomeInstance"});
file_menu = my_mb.addMenu("Localiza??o");
file_menu.addMenuItem({label:"Mapa", instanceName:"b12Instance"});
file_menu.addMenuItem({label:"Envolvente", instanceName:"b2Instance", icon:"Envolvente"});
file_menu = my_mb.addMenu("Empreendimento");
// "new" is the linkage id of the movie clip to be used as the icon for the "New" menu item.
recent_menu = file_menu.addMenuItem({label:"Urbe Pico do Salom?o", instanceName:"Urbe Pico do Salom?oInstance"});
recent_menu.addMenuItem({label:"Caracteriza??o", instanceName:"b3Instance"});
recent_menu.addMenuItem({label:"Arranjos Exteriores", instanceName:"b4Instance"});
edit_menu = recent_menu.addMenuItem({label: "Acabamentos", instanceName:"AcabamentosInstance"});
edit_menu.addMenuItem({label:"Acabamento exterior", instanceName:"b5Instance"});
edit_menu.addMenuItem({label: "Acabamento interiores", instanceName:"b6Instance"});
// recent menu is a submenu
recent_menu = file_menu.addMenuItem({label:"Pico do Salom?o 1", instanceName:"Pico do Salom?o 1Instance"});
recent_menu.addMenuItem({label: "T1", instanceName:"b7Instance"});
recent_menu.addMenuItem({label: "T2", instanceName:"b8Instance"});
recent_menu = file_menu.addMenuItem({label:"Pico do Salom?o 2", instanceName:"Pico do Salom?o 2Instance"});
recent_menu.addMenuItem({label: "T1", instanceName:"b9Instance"});
recent_menu.addMenuItem({label: "T2", instanceName:"b10Instance"});
recent_menu.addMenuItem({label: "T3", instanceName:"b11Instance"});
file_menu = my_mb.addMenu("Contactos");
listenerObject = new Object();
listenerObject.change = function(eventObject)
{
switch(eventObject.menuItem.attributes.instanceName)
{
case("HomeInstance"):
holder.contentPath = "swf_home.swf"
loadMovie("swf_home.swf", holder);
break;
case("b2Instance"):
holder.contentPath = "swf_env.swf"
loadMovie("swf_env.swf", holder);
break;
case("b3Instance"):
holder.contentPath = "swf_caract.swf"
loadMovie("swf_caract.swf", holder);
break;
case("b4Instance"):
holder.contentPath = "swf_arrex.swf"
loadMovie("swf_arrex.swf", holder);
break;
case("b5Instance"):
holder.contentPath = "swf_acabex.swf"
loadMovie("swf_acabex.swf", holder);
break;
case("b6Instance"):
holder.contentPath = "swf_acabin.swf"
loadMovie("swf_acabin.swf", holder);
break;
case("b7Instance"):
holder.contentPath = "swf_L1T1_02.swf"
loadMovie("swf_L1T1_02.swf", holder);
break;
case("b8Instance"):
holder.contentPath = "swf_L1T1_02.swf"
loadMovie("swf_L1T1_02.swf", holder);
break;
case("b9Instance"):
holder.contentPath = "swf_L1T1_02.swf"
loadMovie("swf_L1T1_02.swf", holder);
break;
case("b10Instance"):
holder.contentPath = "swf_L1T1_02.swf"
loadMovie("swf_L1T1_02.swf", holder);
break;
case("b11Instance"):
holder.contentPath = "swf_L1T1_02.swf"
loadMovie("swf_L1T1_02.swf", holder);
break;
case("Contactos"):
holder.contentPath = "swf_cont.swf"
loadMovie("swf_cont.swf", holder);
break;
case("b12Instance"):
holder.contentPath = "swf_mapa.swf"
loadMovie("swf_mapa.swf", holder);
break;
default:
break;
}
}
my_mb.addEventListener("change", listenerObject);
Thanks!!!! :oops: :wink:
Actionscript 2.0
Posted on: Wed Aug 16, 2006 4:57 pm
View Complete Forum Thread with Replies
Sponsored Links:
MenuBar - How To Get The MenuBar Item?
I played first time with this component.
I can use it for a web menu.
How can I get the Edit item?
Assume that the text Edit could be like buton with name About us.
I can get the menu items but the menubar not.
Thanks
Code:
// MenuBar definition
var my_mb : mx.controls.MenuBar;
my_mb.setSize (940, 25)
my_mb.move (5, 15)
trace ('my_mb: ' + my_mb.getDepth ())
//
var myDP_xml : XML = new XML ();
myDP_xml.ignoreWhite = true;
myDP_xml.onLoad = function (success : Boolean)
{
if (success)
{
my_mb.dataProvider = myDP_xml.firstChild;
trace (myDP_xml.toString ());
} else
{
trace ("error loading XML file");
}
};
myDP_xml.load("http://www.flash-mx.com/mm/xml/menubar.xml");
// set depth for MenuBar
bg.setDepthBelow(my_mb);
// Add a change-listener to Menu to detect which menu item is selected.
var menuListener:Object = new Object();
menuListener.change = function(evt_obj:Object) {
var item_obj:Object = evt_obj.menuItem;
trace("Item selected: "+item_obj.attributes.label);
};
my_mb.addEventListener("change", menuListener);
View Replies !
View Related
Menubar With XML
I have a menubar using XML. It works, but only links on the sub menus work.
here is my xml
Code:
<Menu>
<link label="Amuse Music" url="http://www.burnlounge.com/Amusemusic"></link>
<link label="Calendar" url="http://www.myspace.com/djtalonya"></link>
<Group label="Reviews">
<link label="Mariah Carey - We Belong Together" url="http://www.explodingplastic.com/reviews/craigcwebelongtogether.html"></link>
<link label="Release the Pressure" url="http://www.explodingplastic.com/reviews/releasethepressure.html "></link>
<link label="The Little Big Band feat. Simon Green - If You Don't Know Me By Now" url="http://www.explodingplastic.com/reviews/littlebigbandknowmebynow.html"></link>
</Group>
</Menu>
only the links in bold work
and here is the AS
Code:
var xml:XML = new XML();
xml.ignoreWhite= true;
xml.onLoad= function(success:Boolean){
if (success) {
MusicMenu.dataProvider = this.firstChild;
var menuL:Object = new Object();
menuL.change = function(evtObj:Object) {
var url = evtObj.menuItem.attributes.url;
getURL(url, "_blank");
}
MusicMenu.addEventListener("change",menuL);
}
}
xml.load("MusicMenu.xml");
Why don't the underlined links work?
View Replies !
View Related
MenuBar?
I've read the menuBar component can't be used in CS3 unless you have AS2 setup in the publish settings. Which means no menuBar for AS3.
Has anyone attempted to create their own menuBar component in AS3? I have a requirement for a menuBar but thought I would ask before I create my own.... I might even be interested in purchasing a component if it saves me a lot of time.
Regards,
Brent
View Replies !
View Related
MenuBar Bug?
Hi,
I'm having a major problem with focus on textfields - they refuse to relinquish focus when another item or the background is clicked on. I eventually tracked it down to having the MenuBar component in my library.
Can anyone shed any light on this?
Method to reproduce the problem:
1. Create a new flash document
2. Draw a text box on screen and set it to 'Input Text'
3. Add the MenuBar component to the library
Now run the document. You can click on the text box, but if you try to click off it, you can't! HELP!!!
Thanks,
Chris.
View Replies !
View Related
MenuBar And XML
How can I use the XMLConnector and the menuBar components together? I've been trying, and just can't get it to work. Is it even possible? I figure the XML is nice and easy. any ideas?
Code:
<root>
<website name = "one">
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
</website>
<website name = "two">
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
</website>
</root>
Thanks
View Replies !
View Related
MenuBar And XML
How can I use the XMLConnector and the menuBar components together? I've been trying, and just can't get it to work. Is it even possible? I figure the XML is nice and easy. any ideas?
Code:
<root>
<website name = "one">
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
</website>
<website name = "two">
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
<url>Select One</url>
</website>
</root>
Thanks
View Replies !
View Related
Menubar
Hi,
I would like to know how to make the menubar like in www.hillier.com, I want to know the Script as to how the slider adjusts to each button width. I am currently using flash mx 2004 prof.
anusha
View Replies !
View Related
MenuBar
Hello Everybody!!! :)
I need help!
How i open swf in the same file of menubar, if i don't have buttons, i do that, but nothing!
this code is in layer actions!!
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mcl.loadClip("swf1.swf",holder);
Caracteriza??o.onRelease = function() {
mcl.loadClip("swf1.swf",holder);
}
ArranjosExteriores.onRelease = function() {
mcl.loadClip("swf2.swf",holder);
}
This code is in the flash actionscript in frame1!
Code:
import mx.controls.Menu;
import mx.controls.MenuBar;
import mx.controls.TextArea;
var my_mb:MenuBar;
var selected_ta:TextArea;
var file_menu:Menu;
var recent_menu:Object;
var edit_menu:Menu;
var view_menu:Menu;
var help_menu:Menu;
file_menu = my_mb.addMenu("Home");
file_menu = my_mb.addMenu("Localiza??o");
file_menu.addMenuItem({label:"Envolvente", instanceName:"EnvolventeInstance", icon:"Envolvente"});
file_menu = my_mb.addMenu("Empreendimento");
// "new" is the linkage id of the movie clip to be used as the icon for the "New" menu item.
recent_menu = file_menu.addMenuItem({label:"Pico Salom?o", instanceName:"Pico Salom?oInstance"});
recent_menu.addMenuItem({label: "Caracteriza??o", instanceName:"Caracteriza??oInstance"});
recent_menu.addMenuItem({label: "Arranjos Exteriores", instanceName:"Arranjos ExterioresInstance"});
edit_menu = recent_menu.addMenuItem({label: "Acabamentos", instanceName:"AcabamentosInstance"});
edit_menu.addMenuItem({label: "Acabamento exterior", instanceName:"Acabamento exteriorInstance"});
edit_menu.addMenuItem({label: "Acabamento interiores", instanceName:"Acabamento interioresInstance"});
// recent menu is a submenu
recent_menu = file_menu.addMenuItem({label:"Lote 1", instanceName:"Lote 1Instance"});
recent_menu.addMenuItem({label: "T1", instanceName:"Lote1T1Instance"});
recent_menu.addMenuItem({label: "T2", instanceName:"Lote1T2Instance"});
recent_menu = file_menu.addMenuItem({label:"Lote 2", instanceName:"Lote 2Instance"});
recent_menu.addMenuItem({label: "T1", instanceName:"T1Instance"});
recent_menu.addMenuItem({label: "T2", instanceName:"T2Instance"});
recent_menu.addMenuItem({label: "T3", instanceName:"T3Instance"});
file_menu = my_mb.addMenu("Contactos");
The flash open the swf1, because that "mcl.loadClip("swf1.swf",holder);"
ok, but i want he open the swf2 when i click in the ArranjosExteriores, and he don't do nothing! It's possibel whith this code or i have to do somthing else! Please i need Help!!! :cry: :?
THANKS!
View Replies !
View Related
HELP PLEASE MenuBar
Hello, :lol:
I have a menubar tree!
Code:
import mx.controls.Menu;
import mx.controls.MenuBar;
var my_mb:MenuBar;
var my_menu:Menu = my_mb.addMenu("File");
my_menu.addMenuItem({label:"New", instanceName:"newInstance"});
my_menu.addMenuItem({label:"Open", instanceName:"openInstance"});
my_menu.addMenuItem({label:"Close", instanceName:"closeInstance"});
//Create listener object.
var mbListener:Object = new Object();
mbListener.change = function(evt_obj:Object) {
var menuItem_obj:Object = evt_obj.menuItem;
switch (menuItem_obj.attributes.instanceName) {
case "newInstance":
trace("New menu item");
break;
case "openInstance":
trace("Open menu item");
break;
case "closeInstance":
trace("Close menu item");
break;
}
trace(menuItem_obj);
};
//Add listener.
my_menu.addEventListener("change", mbListener);
In menubar tree i have buttons!
Now i want to know the code to link buttons to the same scene!
I want to open one "ficheiro.swf" and not one "http://blabla.com"! So far only I found examples of this type "getURL(http://blabla.com)"! Somebody can help me, I to understand!
Please! :roll: :cry: :? Can i put images here???? :oops:
View Replies !
View Related
MenuBar In Flash
I'm trying to build a menu Bar in Flash 5 then put it in a Dreamweaver 4 page so that on buttonn being pressed you go to new URL page.
I created button symbol with no text on.
I put copy on seperate layer and then added text to each button.
When I had my 12 named buttons on indiv layers I opened the Actions Panel and - highlighting each button on its layer in turn I used Basic Actions then added this:
on(release){
getURL("thelinkpage.html")
}
I then put the .swf into the Dreamweaver site and tried to Preview it in the browser. The page keeps on trying to open - I can see the page content and the menu for a split second then it disappears and the same thing happens over and over.
What has gone wrong? Before I added the Actions I created a .swf and put it in Dreamweaver to see if it looked OK and this worked. The buttons changed colour when I rolled over them so it must be the actions that I am doing wrong. Should the actions be on a different layer?
Any advice would be appreciated.
View Replies !
View Related
Moving Menubar...
Hey there!
This is probably an easy one for most of you people out there, but I just couldn't solve this one myself. I got stuck down the wrong line of ideas...
I have this vertical menubar, that I want to move to different preset x-positions on the stage, according to what menu-item has been clicked. On click (the buttons are inside the bar, vertically), the bar is supposed to move smoothly across the stage; rapidly at first, deccelerating towards the target X.
I hope you know what I mean, but my English isn't super, so it's difficult to explain...
Hope you can help...
View Replies !
View Related
SWF Menubar Cached
Dear All,
I have designed a menu bar with Flash, and it resides in an ASP page. My problem is the on the local server, I can see the changes I have done to the menubar, however, when I upload it on the server, the changes are not visible.
I tried to insert a ?cachebuster="+getTimer() after every link, and also tried to amend the asp file with this code:-
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
meta http-equiv="PRAGMA" value="NO-CACHE"
meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"
link href="inc/frontstyle.css" rel="stylesheet" type="text/css"
'here we set some vars so that the page will refresh and will not be cached
Response.expires= 0
Response.Expires=-1
Response.Expiresabsolute = Now() - 1
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
However, I still cannot see any changes to the menubar. Can anybody help me please.
Thanks for your help
View Replies !
View Related
MenuBar Tutorials? Help? Please?
Does anyone know how to make a menu bar that comes out horizontally on rollover? or any tutorials that show how?
for example,
you need to enter the main interface to see the menu.... the one on the top righthand corner...
http://http://www.daviesinteractive.com/index2.html
thanks
flashstick
View Replies !
View Related
Componet Menubar
I want to make a menubar, but I want to use the one that flash mx gives you. Now when you click the text or button, how do you make it go to a url and if I wanted to make a drop down list how would I do it?
I have a an example Here
Home, About, Your Views, Anadarko News, How about that - just to be one click and it goes to a page
I want to make Links a drop down list but when I click an option it open a _blank url to another page
How would I do this or is there a tutorial. If you could help or point me somewhere that would be helpful ~ thank you
View Replies !
View Related
MenuBar Trouble
I have been working with the menuBar UI Component in Flash MX2004 and i have two issues
#1. I have been customizing my menuBar and I can change the color of everything except the bar itself, it stays the default grey. This is the code I have been using for the other changes:
myMenuBar.setStyle("backgroundColor","0x6699FF");
myMenuBar.setStyle("color","0x0000CC");
myMenuBar.setStyle("themeColor","0x0000CC");
#2. I have also been trying to get a submenu on the pulldown menu of the menuBar.
I have searched google up and down and read tutorials all morning. Any action examples or advice would be very much appreciated.
Thank You
View Replies !
View Related
Menubar Component
Hello,
My goal - Have the menubar component within FlashMX 2004 Pro, get populated by an external file (preferably XML) that will display the menu choices. In addtion to this, most or all content that will be loaded in from this will be local to the machine the UI is operating on. I need the ability to send a .swf file with an updated menuXML file down to update the uers system.
Is the MenuBar component the best way to go? I have seen others created, but they do not look as nice. In this process I want to learn more about AS2, versus buying a menu program.
I have been using this menu component http://www22.brinkster.com/hamzaf/Hi...c/docpage.html
I can create the menubar and populate it from inside with AS2, but do not understand how to populate it from an XML file and how to update that XML file with caommands to loadMovie from outside the .swf
Anyone point me in the right direction?
Thanks
View Replies !
View Related
Menubar V2 Component
Hello,
I would like to use the menubar component and AS2 to build a user interface. The menubar would load in .swfs at a specific location in the UI. The user would load in a movie by selectign the choice from the menubar component.
Could someone lead me (link or show me the code) to what code I could use to load a movie to a specific place in the UI from the FlashMX Menubar component?
Thanks
View Replies !
View Related
MenuBar Component Help
I am currently exploring the use of the menuBar component in Flash MX 2004 Professional.
1) How would I use custom images (jpegs) as the background for the individual buttons contained in the menus? Example: the same exact images except for color - blue for the "up" state, silver for the "over" state, and white for the "down" state....Where in the code would I do this, and what code would be needed?
2) How would I use a custom or specific font for the text to be used with the menu items? How would I implement the use, where in the code, and what code to use?
3) Where in the code would I place the specific behavior for each individuaal button, such as using the "getURL" command to link each button to the desired web page?
Please help, I am going crazy trying to figure this out. any and all help is greatly appreciated!
Thank you in advance!
View Replies !
View Related
Menubar Problem
Hello Board,
Could anybody please tell me why this menu doesn't work?
The menu looks ok, but the traces don't work.
http://www.markme.com/dehaan/archives/007188.cfm
It is extremely important to me to get this to work quickly.
Could somebody please, please kindly look into this?
View Replies !
View Related
Menubar Component
I have three questions on the menu bar component.
(1) Can the main menubar buttons be used as navigation or is it only the submenus that do this?
(2) Can the menubar be used to navigate to screens in a form application?
(3) Can the menubar be used to navigate to different parts of the time line (the same as if buttons were used)?
So far I have three tutes on using the menubar and not one of them uses navigation in the normal sense ie: going to a particular place in the time line or going to a screen in a forms application. Can the menubar do this?
Thanks in advance
Dai
View Replies !
View Related
Menubar Hyperlinks
I've created a menubar via xml and wanted to know how can I send the user to a url when they click on the menu. I know i can have a listener and use case statements for hardcoding but i'm wanting to really make this dynamic because the menu can change from time to time. Is there a way to do this?
thanks in advance.
View Replies !
View Related
Sub Menus In MenuBar
Hello, I'm a pretty new Flash user, and I found some information on how to use the MenuBar component in Flash MX 2004 for use in a website. My question however, is whether or not you can make submenus in the MenuBar component. I have a menu that pops down already, but instead of putting like 10 links in one menu, I wanted to break it down into categories with submenus under each category. So roughly, it would look something like:
|--------------------------
|Links | Help | ......
|--------------------------
|-------------|
|Category 1 > | > |---------|
|Category 2 ...|....|Blah.......|
|Category 3 ...|....|Blah2......|
|-------------|....|Blah3......|
.........................|---------|
I tried addMenu as an argument to the addMenuItem in ActionScript, but it didn't work, and I have no idea what else to try. I would really prefer to keep the MenuBar setup, as it is quite nice and very professional looking, and I'm better at scripting than designing
View Replies !
View Related
Component Bug (menuBar)
having a weird problem with the menuBar, another guy seems to have the exact same problem as me here:
http://livedocs.adobe.com/flash/mx20...0002657.htm l
check first reply.
when i click a menuBar then click back on the stage, move to another button on the stage, press that button, release the button. The onRollOut function of the button is run?
this is a big problem for me, too hard to explain why, but anyone have a fix to this. Maybe a function i can run in the component after a mouse is pressed to say, return focus back to flash. Or something like that?
any help, much appreciated
View Replies !
View Related
MenuBar DataProvider
Hi,
i have a MenuBar component which i loaded content into with XML.
lets say this is the menu:
Code:
<menu label='SMP'>
<menuItem label='open' instanceName='op' enabled='false' />
<menuItem label='close' instanceName='cl' enabled='false' />
</menu>
i loaded this string into an XML:
Code:
var xmlMenu:XML = new XML(// the string which contains the above menu)
and then i assigned the XML to the MenuBar:
Code:
myMenu.dataProvider = xmlMenu;
now, the problem is, suppose i want to change the 'enabled' attributed of the 'open' menuItem to true. after i make the change, the XML looks like this:
Code:
<menu label='SMP'>
<menuItem label='open' instanceName='op' enabled='true' />
<menuItem label='close' instanceName='cl' enabled='false' />
</menu>
but the menu doesnt change yet. only after i write:
Code:
myMenu.dataProvider = myMenu.dataProvider
the 'open' menuItem is enabled.
while this may seem ok, when the MenuBar is more complex, loading the whole menu's dataProvider is rather slow and you can actually see it blinks as it loads the xml structure again.
do you know of another way to change the menuItems and show the change without loading the dataProvider again?
thanks,
Ronen.
View Replies !
View Related
MenuBar Code Help
Hi at all.
With Flash CS3 I'm working with a simple MenuBar for my site.
I have 5 buttons (Home_btn, About_btn, etc.) whos wolud open others 5 drop-down menu (subHome_mc, subAbout_mc, etc.) with a Tween effect.
I wrote the follow code and for me (to read it) it's perfect but... I receive this output error:
TypeError: Error #1009: Impossibile accedere a una proprietą o a un metodo di un riferimento oggetto null.
at fl.transitions::TransitionManager$/start()
at barraMenu_fla::MainTimeline/apriTendina()
This is the code:
Code:
/* Imoprt the packages of Flash */
import fl.transitions.*;
import fl.transitions.easing.*;
/* Hide the drop-down menu ("subMenu") */
subHome_mc.visible = false;
subAbout_mc.visible = false;
subWhat_mc.visible = false;
subWhere_mc.visible = false;
subContacts_mc.visible = false;
/* Set the "apriTendina" function */
function apriTendina(e:MouseEvent):void
{
var allSub:Array = new Array (subHome_mc, subAbout_mc, subWhat_mc, subWhere_mc, subContacts_mc);
var subMenu:MovieClip;
switch(subMenu)
{
case "Home_btn" : subMenu = allSub[0];
break;
case "About_btn" : subMenu = allSub[1];
break;
case "What_btn" : subMenu = allSub[2];
break;
case "Where_btn" : subMenu = allSub[3];
break;
case "Contacts_btn" : subMenu = allSub[4];
break;
}
TransitionManager.start(subMenu, {type:Squeeze, direction:Transition.IN, duration:2, easing:Elastic.easeOut, dimension:1});
trace (subMenu)
}
/* With "MOUSE_OVER" event, join action to main buttons of MenuBar */
Home_btn.addEventListener(MouseEvent.MOUSE_OVER, apriTendina);
About_btn.addEventListener(MouseEvent.MOUSE_OVER, apriTendina);
What_btn.addEventListener(MouseEvent.MOUSE_OVER, apriTendina);
Where_btn.addEventListener(MouseEvent.MOUSE_OVER, apriTendina);
Contacts_btn.addEventListener(MouseEvent.MOUSE_OVER, apriTendina);
Please, you could tell me where I wrong?
I'm going mad.
Thanks for your help.
View Replies !
View Related
Menubar Rollover
hi everyone,
I've changed the left, middle and right background skins for the menubar component by importing the asset folders from the halotheme.fla into my library, and then editing them there which has worked a treat, but I'm now wondering how to change the rollover state of the menubar items to match, as I still get the silver rollover effect - no good if you consider the text in the menubar items is intended to be white.
any help will as always be greatly appreciated.
View Replies !
View Related
MenuBar Component
Hello,
Is it possible to convert the MenuBar Component to a vertical style? I trying to incorporate a menu into my flash movie using the component but I ran out of space for menu items using the default horizontal style.
Hopefully someone can help out on this.
Thanks.
View Replies !
View Related
MenuBar Component
How do I add an instance name to a Menu?
newsMenu = myMenuBar.addMenu("News");
multiMediaMenu = myMenuBar.addMenu("Multimedia");
multiMediaMenu.addMenuItem({label:"Music", instanceName:"mnuMusic"});
multiMediaMenu.addMenuItem({label:"Video", instanceName:"mnuVideo"});
so in the above code I want to an instance name to be attached to "News". As above you can do it with menu items but can you do it with the actual menu?
View Replies !
View Related
MenuBar Component Again
Anyone know how to add event handlers to a Menu on the MenuBar component.
I know how to do it on MenuItems but I also want to be able to do it on the root Menu..
for example
File - root menu
Edit - menuItem
Cut - menuItem
Copy - menuItem
I want to assign an event handler to "File" but I can't see a way of doing it. On menuItem's you assign them an instance name so that's easy but you can't do that to the root Menu.... any ideas?
View Replies !
View Related
Menubar Customisation
I was trying to play around with the menubar component and managed to change the theme color only.
Is there any way to change the base color of the menubar on the whole?
And also it seems like there's only 3 colors to choose from for the them color? Any way to set it to other colors? TIA.
View Replies !
View Related
MenuBar Component?
I'm making a game in MX04 which comes with a map editor. This map editor includes a menuBar at the top (you know, the usual things - File, Edit, Help etc). I've put in all the code for actually creating the different menus and menu options, but I don't actually know how to tell flash what to do when the user selects one of these options, and I can't find it in the Component Dictionary. Can anyone help?
Thanks in advance (hopefully),
corp.
or maybe corpdon.
i've forgotten which i'm called on here.
oh, it says it at the top.
it's corpdon.
View Replies !
View Related
MenuBar Component
I am working on a flash website that requires the use of the flash preset MenuBar component, but have run into a little trouble assigning links to the separate labels that I have created. When the movie is tested, the many labels are separate; but how do you make each of them a different link? Any Help appreciated.
View Replies !
View Related
Menubar Component
hi everyone
i know how to work with this componente, create menus and menuitems , but i'd like to know how can we see in what index are we gonna add a menuitem?
I 'll explain
I'm building a menubar that i want to be able to update on the fly , without having to modify any xml file , but i can't seem to figure out aou to find the index of the menu i want .
for instance if i have a menu with this options
File ->New->text file
pdf file
how do i know wich is the index of option "pdf file" ?
View Replies !
View Related
MenuBar Component
I have been looking for a tutorial to help me out for hours., I have sucessfully set up a menu that reads from a XML file. All I need is when you clcik ona menu item it goes to a certain frame.
I think I need an event listener but I dont know how to do this. Could some one whip up a script that will help me.
XML FILE
Code:
<menu>
<menu-title label="XeD">
<menu-item label="Xenon Design" enabled="false" />
<menu-item type="separator"/>
<menu-item label="Home" instanceName="xedhome"/>
<menu-item label="Services" instanceName="xedservices"/>
<menu-item label="Clients" instanceName="xedclients"/>
<menu-item label="Contact" instanceName="xedcontact"/>
<menu-item label="Login" instanceName="xedlogin"/>
</menu-title>
</menu>
The above code works. I just need a event listener to work.
EDIT: I made a copy mistake with the CODE section...its now fine
Thanks,
Alex
View Replies !
View Related
Menubar Advice
I would like to create a menubar that looks just like the one for macromedia.com
Would it be easier to use the menubar component or create it myself?
And if it's better without the component, is it a good idea to follow a drop-down menu tutorial?
View Replies !
View Related
MenuBar Component
How do I add an instance name to a Menu?
newsMenu = myMenuBar.addMenu("News");
multiMediaMenu = myMenuBar.addMenu("Multimedia");
multiMediaMenu.addMenuItem({label:"Music", instanceName:"mnuMusic"});
multiMediaMenu.addMenuItem({label:"Video", instanceName:"mnuVideo"});
so in the above code I want to an instance name to be attached to "News". As above you can do it with menu items but can you do it with the actual menu?
View Replies !
View Related
MenuBar Component Again
Anyone know how to add event handlers to a Menu on the MenuBar component.
I know how to do it on MenuItems but I also want to be able to do it on the root Menu..
for example
File - root menu
Edit - menuItem
Cut - menuItem
Copy - menuItem
I want to assign an event handler to "File" but I can't see a way of doing it. On menuItem's you assign them an instance name so that's easy but you can't do that to the root Menu.... any ideas?
View Replies !
View Related
Menubar Customisation
I was trying to play around with the menubar component and managed to change the theme color only.
Is there any way to change the base color of the menubar on the whole?
And also it seems like there's only 3 colors to choose from for the them color? Any way to set it to other colors? TIA.
View Replies !
View Related
MenuBar Component?
I'm making a game in MX04 which comes with a map editor. This map editor includes a menuBar at the top (you know, the usual things - File, Edit, Help etc). I've put in all the code for actually creating the different menus and menu options, but I don't actually know how to tell flash what to do when the user selects one of these options, and I can't find it in the Component Dictionary. Can anyone help?
Thanks in advance (hopefully),
corp.
or maybe corpdon.
i've forgotten which i'm called on here.
oh, it says it at the top.
it's corpdon.
View Replies !
View Related
MenuBar Component
I am working on a flash website that requires the use of the flash preset MenuBar component, but have run into a little trouble assigning links to the separate labels that I have created. When the movie is tested, the many labels are separate; but how do you make each of them a different link? Any Help appreciated.
View Replies !
View Related
Macromedia.com Menubar
There is menubar component in Flash 2004 which looks similar to macromedia.com menu used on their site. Problem is that I am struck in creating something like that menu, do someone understand, how to load XML and make menu items from it?
View Replies !
View Related
MenuBar Script -- Help
Last edited by crabclaw : 2005-01-26 at 06:09.
In NRG's tutorial for the MenuBar we see in his actionscript example:
var helpMenu = myMenuBar.addMenu("Help");
helpMenu.addMenuItem({label:"About", instanceName:"aboutMenuItem"});
helpMenu.addMenuItem({label:"Ultrashock", instanceName:"aboutUltrashock"});
Q: How, for example, would I get "About" to go to an "About" url or movie? I tried using "get url" but I don't know where to insert the code, or what the whole coding looks like, ior if I'm missing something -- can some one pist an example?
Please,
crabclaw
View Replies !
View Related
Desparate For Help With Menubar
hello, I'm totally new to Flash MX 2004 and am desparate for some guidance here. I've tried to follow several tutorials regarding menubar components but am still stuck.
Can somebody please post the script for a two button menubar, one with a two item submenu and one with no submenu. Also, what the listener would look like if you wanted the button to load a new page when clicked, as well as the individual submenu buttons.
I just need to see what the correct script would look like so I can study it and learn how to do this.
Thanks in advance for any help (I need it)
Also, can anybody point me in the right direction as to where I can get some good handson info on how to do this in actionscript?
thanks again!
View Replies !
View Related
MenuBar Mayhem
Last edited by kinesis77 : 2004-06-22 at 16:30.
I posted this in the components section but after 26 views, 5 days and no replys I thought I would repost it here. Any ideas or directions would be greatly appreciated.
Ok here is the deal:
I am using a XML obj as the dataprovider for my menubar component. Now i want to assign functions to my menu's. The thing I can't figure out and have been unable to find on any threads is how to reference each menu then how to reference each menuItem so as to assign functions to them. Anybody have any ideas?
THX
PS: If you wanna know what my code looks like just check out the MenuBar.dataprovider in the Help.
View Replies !
View Related
Menubar Won't Drop
Does anyone know what would cause a menubars menu's:
File Edit View etc...
to stop working?
At this point, it seems pretty random. And my project is huge. I was wondering if anyone had any input?
What happens is during the course of using the program (It's a Texteditor), The menu's simply will no longer drop down to allow their respective options to be selected. The title of the menu will still change color, but it won't give me the list...
Anyone? Please?
Thanks.
View Replies !
View Related
Question Of Menubar
How i active the button of the menu bar "Home" without opening the armonio, because i don't have nothing in there!!?
Code:
import mx.controls.Menu;
import mx.controls.MenuBar;
import mx.controls.TextArea;
var my_mb:MenuBar;
var selected_ta:TextArea;
var file_menu:Menu;
var recent_menu:Object;
var edit_menu:Menu;
var view_menu:Menu;
var help_menu:Menu;
file_menu = my_mb.addMenu({label:"Home", instanceName:"HomeInstance"});
listenerObject = new Object();
listenerObject.change = function(eventObject)
{
switch(eventObject.menuItem.attributes.instanceName)
{
case("HomeInstance"):
holder.contentPath = "swf_home.swf"
loadMovie("swf_home.swf", holder);
break;
default:
break;
}
}
my_mb.addEventListener("change", listenerObject);
Thanks every one!!!! :wink: :)
View Replies !
View Related
|