Menu Issue.
hey,
ive built a flash menu mostly with actionscript and i have a few issues with it. all the rollovers are great but what i want is if you click outside the menu movie. i have the release outside action but i was wondering if there isany wa of micking a on click outside action. the problem is the menu is still there unless you click on an item and i want it to be easier to abort the menu.
any ideas?
G
FlashKit > Flash Help > Flash MX
Posted on: 03-22-2005, 01:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Xml Menu Issue
k so i got everything working(sorta), using mc tween to create alot of the motion worked well but ive noticed the menu itself seems sorta buggy, if i can get it working itll be a great addition to the collection of resources that have helped me get this far.
http://www.kobalt7.com/2007/thumbnails5.html
http://www.kobalt7.com/2007/thumbnails5.fla
http://www.kobalt7.com/2007/xmlmenu.xml
Pop-up Menu Issue
I export a pop-up menu from Fireworks as an HTML and Images file. I then create the webpage in dreamweaver with the pop-up menu and save the file. When burning to a disc, the pop-up menu will not link back to the document it is trying to open. It states at the bottom of the page "Error on Page" and when I click for details it says "Problems with this web page might prevent it from being displayed properly.
Line: 486
Char: 18
Error: Access is denied.
Code: 0
URL: file://C:Documents and SettingsA637026Application DataMicrosoftCD Burning and then the html file
Any help?
Menu Issue
Hi,
i have no idea if this is the correct forum for wasking this.
I have a flash menu, with a XML configuration file.
When you click a menu item, in the mainframe the page goes to the correspomg page (menu item Home goes to home.html etc.)
That works fine
Only.. any other page than home.html somehow automatically changes into home.html, without the user clicking anywhere.
Do I make sense? You can see for yourself: http://www.moondesigns.nl
If I picked the wrong forum to ask this or if you need more info, please let me know. Thanks in advance for any help you might be able to give me.
FatalDestiny
Menu In As Issue
HI,
I have created a navigation system for the first time in 'as'. I aim to try and complete it all in code and have hit a stumbling block.
When a user selects a menu option (which is text [mc] and an api drawing [mc]) i would like that option to be displayed in an empty mc on the same navigation bar.
I have developed the menu in its own swf and with script in as file. the only script in movie timeline is the navigation array i.e. instance names and url link.
It is essentially a problem that the fantastic site http://www.eccentris.com succesfully implements in their main navigation. When you click the options it displays the currently loaded option at the end of the menu and when you click an alternative it swops them both over.
I still would like to do all this in 'as' no tweens on the stage etc.
Thankyou and happy new year,
Simon
Help With Menu Issue
I have a site I'm working on that has a simple swish menu:
IDI site
The clients wants to have the menu show up as an image map with links on the image if the user doesn't have Flash installed. Any ideas on how to achieve this? They don't want the detect flash and send to another url if not detected. They want a detect flash, if no flash, than replace swf image with a jpeg image with image mapping for the menu.
I know it would be some type of script to replace the swf file with the jpeg or something, but I'm stumped.
Menu In As Issue
HI,
I have created a navigation system for the first time in 'as'. I aim to try and complete it all in code and have hit a stumbling block.
When a user selects a menu option (which is text [mc] and an api drawing [mc]) i would like that option to be displayed in an empty mc on the same navigation bar.
I have developed the menu in its own swf and with script in as file. the only script in movie timeline is the navigation array i.e. instance names and url link.
It is essentially a problem that the fantastic site http://www.eccentris.com succesfully implements in their main navigation. When you click the options it displays the currently loaded option at the end of the menu and when you click an alternative it swops them both over.
I still would like to do all this in 'as' no tweens on the stage etc.
Thankyou and happy new year,
Simon
AS Menu Issue
I re-adapted a FLA from somewhere (i cant remember now where i got it) to make a 2 level menu but i'm having an issue with one of the buttons.
I have 4 buttons and when you roll-over them a new set of buttons appear for you to click. Everything works perfect exept for one thing:
when you roll out of the 2nd level set of buttons it disappears. The 2nd, 3rd and 4th sets dissapear but i cant make the first one to work. I cheked all the instances names and they are OK. The roll-out action of the 1st level of buttons work well for all.
Here's the source:
http://www.juanlacueva.com.ar/menuissue.zip
Here's the code:
for (i=1; i<5; i++){
_root["subMenu0" + i + "_mc"]._visible = false;
}
//Menu 1
menu01_btn.onRollOver = function() {
menu01Visible = true;
subMenu01_mc._visible = menu01Visible;
};
menu01_btn.onRollOut = function() {
menu01Visible = false;
subMenu01_mc._visible = menu01Visible;
};
//Creamos los eventos dinámicamente para el menu02
for (i=1; i<5; i++){
subMenu01_mc["b"+i+"_btn"].onRollOver = function(){
menu01Visible = true;
subMenu01_mc._visible = menu01Visible;
}
subMenu02_mc["b"+i+"_btn"].onRollOut = function(){
menu01Visible = false;
subMenu01_mc._visible = menu01Visible;
}
}
And then it goes on but with "submenu02", 03, 04....
The beggining of the code originally was
(i=1; i<4; i++) but i changed to (i=1; i<5; i++) because the 4th button didnt work and after the change did.
Can anyone please help me?
thanks in advance
Menu Issue
Alright I have a menu, I can make a drop down menu just fine. But it the user rolls over it too fast, yadayadayada...
So I tried to fix the problem with this
ActionScript Code:
Frame 1 of button’s actions layer
//all this code is inside the complex button so you can stick as many as you want
//on the stage and all will work.. they all will have this code in it..
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
this.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}
this.onRollOver = function(){
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}
this.onRollOut = function(){
rewind = true; //set or rewind switch to true so it will play backwards...
}
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Last Frame of button’s action layers
Stop();
Now the buttons aren't buttons and don't work.
IS there a hapy medium for me, or am I up a creek.
Thanks in advance to everyone who answers.
Menu Navigation Issue
Hello. I have a Flash movie at the following address: http://216.247.25.135/LookingGoody/H...e/central.html
I have a question and I wonder if anyone would now how to achieve this effect: when you pass over the hair accessories in the purple box to the right, a bigger view of that image 'slides' in and replaces the girl to the left. When the user rolls off the hair accessory button, the item scrolls back out and is replaced again by the girl. My problem is when the user quickly rolls from one item to the next, how can I trick Flash into not showing the girl and just show the next detailed view slide in? I just want the hair accessory (not the girl) to appear. As it is now, she appears for a brief second in between each rollover because that is the way the timelines are set up. I thought it would be an easy effect, but as you can see, the problem is to only show the girl when the user has not roilled over any item.
If anyone knows how to achieve this effect, please let me know as soon as possible. I can be reached at jhanlon76@hotmail.com if you need any further information. Thanks!
Menu Issue / This Is Probably VERY Easy,,
hi there flash fellas,
i´m building up a simple menu system by having the main menu-items as independent MC´s (profile, news, projects & contact - within a MC called "menu").
however the problem in it´s simplicity is that i can´t figure out the way to make an opened title (f.ex "projects") to shrink back when another (f.ex "news") is clicked.
-the mock-up can be checked at: http://www.lassilamannberg.com/lme.swf or lme.fla if somebody wants to take a closer look; anykind of hint/trick appreciated
Drop Down Menu Issue...
I wanted to create a drop down menu, I figured the first part (I guess). What I did was, I created a button for this purpose and in the "over state" of the same button, I did a movie clip for the drop down menu. It worked fine when the cursor went over the button, but as soon as I went down to select something from the menu, everything just disappeared. How can I make the same drop down menu appear all the way..
I guess I'm doing something wrong...
I appreciate any help guys.
Thanx
Slide Nav Menu Issue
does anyone have experience with a slider hovering over a menu button when the user places the mouse cusor there? I can post the fla file...mine is out of whack and is not aligning properly..
can anyone help??
Dynamic Menu Issue(s)
Hi there everyone!
I have two issues I'm trying to tackle with the menu component extension created by Ahmed Dardiry.
The first is the menu itself. it seems that if I create more that 9 targets, target 10 and any target following that will simply not function. I thought I might be able to adjust this in the Component definitions but I don't see where I could tweak this. I have 4 sections created in the dynamic menu. Category 3 is where the error is occurring.
The second "issue" is more of a wish list for this nav. I have created a red arrow to accompany the dynamic menu. It's currently crudely placed on the main timeline. I would like it to follow the category selection made in the left nav on click. There are two other arrows on the main timeline that allow you to "scroll" through all the pages in a linear fashion. When the main page arrows jump to the next or previous category, the red arrow up in the laft nav should move accordingly.
Any help on this would be greatly appreciated. I have about 1200 products to do so tackling these issues will impact the whole lot down the line.
Many thanks in advance.
///eppik
-------------------------------------
EDIT: I uploaded a zip of the file but I don't see the link anywhere. You can download it here.
-------------------------------------
EDIT 2: bump :-)
-------------------------------------
Menu Rollout Issue
Flash Menu
The button you rollover and the menu that drops down are two different objects on two different layers.
I can't think of how to get the menu to go away after you rollout of the drop-down menu area. The area is already used for buttons on the menu so how do I get this to work without getting some funky coding glitches (like rolling onto a link in the menu causing the menu to dissapear)?
Menu Issue (uses SetInterval)
Im using F5.
I am trying to make a drop down menu, and thought of using the setInterval function.
I made a menu inside a MC, wich has, on the 1st frame the action:
tempo=4000;//time Id wish to wait, in miliseconds
stop ();
Then, once the user presses a button, the timeline plays, untill it reaches frame 10, where I have:
stop();
var timer;
timer = setInterval(moveOn, tempo);
function moveOn(){
gotoAndPlay("roda");
clearInterval(timer);
}
I want to wait for tempo then goto "roda" and play, but its not working the way I expected
The file is attached.
Any help will be much appreciated
Thanx in advance
Menu Issue (uses SetInterval)
Im using F5.
I am trying to make a drop down menu, and thought of using the setInterval function.
I made a menu inside a MC, wich has, on the 1st frame the action:
tempo=4000;//time Id wish to wait, in miliseconds
stop ();
Then, once the user presses a button, the timeline plays, untill it reaches frame 10, where I have:
stop();
var timer;
timer = setInterval(moveOn, tempo);
function moveOn(){
gotoAndPlay("roda");
clearInterval(timer);
}
I want to wait for tempo then goto "roda" and play, but its not working the way I expected
The file is attached.
Any help will be much appreciated
Thanx in advance
Menu Navigation Issue
Here's my issue. Basically i have a menu with a couple of choices and I want to be able to scroll up and down that menu by pressing "up" or "down" buttons i've created, and select a menu item by pressing the "select" button i've created. So i have the 3 buttons, and i have a text field with my menu choices, and i have frame labels coinciding with the menu choices; what i need to know is (1)how to control the scrolling thru the menu with the currect selection "highlighted", and (2) how to move to the frame label of the selected choice.
Thanks for any help anyone can give me.
Shaw
Animated Menu Issue
hi
was wondering if anyone could cure my headache. i want to make an animated menu that slides onto the screen as the user rolls over a graphic. i made the graphic pieces and the menu items( the menu items are buttons nested in the graphic of the menu) I moved all these into a movieclip and animated the move with a mask layer so that the menu slides in from nowhere.
in the main time line i have created a button that controls when the movie comes in and out.. however once the menu "slides down" i cant figure out how to make it stay.. The button that controls the menu has a rollover action to tell the movie when to play and a "rollout" action to tell it when to "slide back up". but i need the menu to stay in its down stage...so that the user can select the menu items.This is where i get stuck. i have tried making the menu "holder" graphic a button..and then putting an action on it in the menu "movieclip" timeline..but it doesnt work..HELP!!! Is there and issue with nested buttons?? The menu items also do not seem to work properly as well...ugh...
thanks in advance for any advice..
erik bredthauer
Help Debug Menu Issue
I recently discovered a problem with a site I've been developing and I'm having trouble determining the source of the problem. Everything works well with Flash 8 and I think in Flash 7, but with older flash players the buttons on my drop down menus will not work. At this point the files are so big I had no choice but to post a link ot a dev url.
View the site here:http://www.wicdesigns.com/samples_fla/HBDArev/hbda.htm
Download fla's here:http://www.wicdesigns.com/samples_fl...v/hbda_dl.html
A quick and dirty look at the organization of the site is as follows: hbda_content is the container which calls content swfs for 7 areas.
I was able to recreate the problem, or similar, by publishing the main content for Flash player 6 (rather than 7). The ddmenus opened, but the buttons were dead. I'm not sure whether this is a problem with the container clip content_win or perhaps a problem with the content fla. (I remember having a problem with calling scripts at the beginning of an ext loaded clip due to some sort of delay.) I included the hbda_content.fla and hbda_about.fla (one of the seven content flas) on the download page. The code is pretty basic and I'd REALLY appreciate some insight on what might be causing this.
[F8] Menu Button MCs Issue
hi there I've got an _mc as menu with 16 _bt inside it. Each button is an _mc comprised of a _bt on frame one and graphic for down state on frame 2.
i'm doing my action script in frame one of the main _mc (menu mc).
i've created seperate functions for each _bt mc but for the down state i would like to somehow control all the buttons inside each function or in other words instead of having something this long:
ft.featured.onRelease = function(){
ft.gotoAndStop(2);
kidz.gotoAndStop(1);
comedy.gotoAndStop(1);
celebrities.gotoAndStop(1);
//and so forth for 15 _bt in 16 functions
};
i would like to direct all the _bt that aren't clicked back to frame one. i'm not such an action script expert i learn as i go, i tried to look at arrays, is that the way to go? anyone has ideas?
cheers
[F8] Scrolling Menu Issue
Hi,
I have a working scrolling menu (attached FLA).
The way it works is that you scroll the mouse to the left or right and the menu moves accordingly.
My issue is that when i move the cursor FROM the left the menu starts moving right away.
When moving the menu FROM the right side it doesnt start moving untill much further in that on the left side.
Im sure this lies in the code somewhere but im not sure how.
Any help would be greatly appreciated.
I have uploaded the FLA to my FTP here,
http:/www.muttromedia.com/flashkit/flashkit.zip
Flash Menu Issue - Please Help
i there. I purchased a Flash Menu for a website I am working on (I know, I know, for shame). However, I am having issues with altering it. All I wanted to do was to add two new submenu items, yet when I add them, they won't work. I believe that the issue has to do with the instance names. The submenus that came with the file have instance names that are numbers (i.e. 1, 2, 3 etc). Yet when I try to assign my new submenu item a number as an instance name, it says it is not allowed. Yet, when I change the other submenu instance names to non-numbers, the file doesn't work at all. I have attached a link to the file. The new submenu items I added are "community" and "employees". If you run the file, you can see the issue. I have been fiddling with this for a week now and have had no success, and its pretty much one of the only things holding up the site. Any help at all would be greatly appreciated.
You can download the .fla file here
http://www.3hounddesign.com/download
Someone please help!
Menu Text Issue
I am relatively new to flash (8), so please excuse my ignorance.
I am having difficulty creating more space between characters on my menu text. The text is gathered from an XML file. I want to space the letters slightly more apart as to make them more legible. My site is live: http://www.bradjenkinsinc.com Click on menu, the tabs inside the menu are the buttons that I have the issue with.
Changing the character spacing in flash does not seem to translate into the movie. I can easily change the font and size but not the spacing. Is this something that needs to be changed in the XML or the actionscript?
Any help would be appreciated.
Thanks.
Drop Down Menu Issue
Menus don't drop down on first roll over. you have to roll over another item then roll back to get it to drop down.
The code is attached. Please help!
Menu Collapse Issue
I was trying to create a drop down menu (like in a program but automated with mouseover) if Flash. I played around using one of the tutorials on this site to design the menu. The problem is the tutorial calls for a manual click. I had no problem setting the mouseover parameters. The problem is I have no idea how to code it to collapse. Any guidance would be appreciated.
Thanks!
Drop-down Menu Issue
Hello! The navigation that I am working on has got me stumped! I can't figure out how to keep the sliding bars from overlapping each other. I would like any open menus to close when the user activates a new menu to drop down and I can't figure it out. Please, any help would be greatly appreciated! Thx!!
http://www.littleanimals.com/test/nav_test.swf
http://www.littleanimals.com/test/nav_test.zip
Context Menu Issue
Hey there. Thanks for reading this.
I'm trying to disable the context menu options for the entire movie and everything in it. I thought it would be easy with a short:
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
on the first frame of the movie.
It simply doesn't work. It works great on a new movie. One with nothing in it, but something inside my movie is conflicting it seems.
Source:
http://www.tracypeterson.com/work/pa...flipsource.zip
any ideas why?
-Tracy
XML Menu Href Issue - PLEASE HELP
Thanks for clicking me post!
I've got this issue with an XML generated menu that I found in the forums here and I can't get any more feedback on some issues I have on the XML side of things.
Basically I can't get any of my href links in the menu to work. I'm a cut and paste XML guy who doesn't really understand this mess at all so I don't even know where to start...I just know I have to have it done very very soon.
here is my XML code:
Code:
<?xml version="1.0"?>
<?xml-stylesheet href="menu.css" type="text/css"?>
<menu>
<item name="Home" action="http://www.kirupa.com" targetType="url">
</item>
<item name="How to find us" action="link2">
</item>
I've attached the files I'm working with - thanks for any and all help!
IE Issue & Drop Down Menu
I've just created my first website, and I was wondering if someone could help me :
1. In Internet Explorer my flash presentation/website is presented in a "frame" which dissapears when selected. Is it possible to automaticaly load my flash presentation/website without that "frame"?
2. I've created a drop down menu, with an invisible RollOut button. But is it also possible to create a drop down menu which automatically dissapears after a few seconds?
3. Any Tips on how to improve the below mentioned website ?
(Please bear in mind that I'm just a beginner)
website : uls.com.mx
XML Dropdown Menu Issue - HELP
Hi everybody.
Thanks to everybody for all the hard work and for sharing it!
I have a problem with the xml dropdown menu.
Simply put, I need it to be able to create a second column if it is longer than the stage (y). Does that make sense?
Please help me with this problem! The site I am doing this for needs to go live tomorrow!!!
Pop-up Menu And Button Issue
Wow... It's been so long since I've been active here I had to create a new account!
Well. At any rate... Hello all and thank you in advance for any help you may be able to lend to my plight.
I don't have much issue with old school animation (Tweening/Keyframing) in Flash which is what I'm acustomed to. But I realize my need to begin doing it in actionscripting and frankly AS makes my mind bleed when I look at it. ><
Nonetheless, as a designer I've been handed the task of building an web-based interactive console for a future project. I've met only a few minor snags but one is really bothering me.
I have an invisible "button" (MC+AS, not a Buton symbol) that fills most of the main body of the console in the background. I also have a few navigation links at the bottom which on release bring up a respective pop-up menu of extra "tools" (MC). My issue is that when the pop-up is up and active on the stage I can still click the invisible button underneath and perform its actions. I need these pop-ups to be "solid" if that makes sense. When they are up and active I don't want functionality of whats beneath them to come through.
Is there a simple fix for this or am I looking a bigger issue?
Thank you all again for the assistance.
-B-
AS2.0 Menus Within A Pop-up Menu Issue
I'm trying to nest two buttons within a menu that pops up from the bottom of the screen. I believe my problem is known as a propagation issue due to flash only registering the parent movie clip but not a child movie clip (not allowing me to click on the text links that appear in the menu), but I'm not exactly sure how to solve it.
Everything is done using movie clips, allowing for the menu to pop back down once the mouse rolls off of the popped up tab.
I made a movie clip that houses both the animation for the pop up menu and it also holds the text links that appear .25 seconds into the animation to try and circumvent the problem but since I have gotoAndPlay running on both the parent movie (housing the text and the tab animation movie) and the tab animation movie I'm probably shooting myself in the foot right there.
Here's the code I'm currently using in Scene1
Code:
this.hit_tab.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
//Open Menu
if (icetwo._currentframe == 1) {
icetwo.gotoAndPlay(1);
}
if (icetwo.ice._currentframe == 1) {
icetwo.ice.gotoAndPlay(1);
}
}
};
icetwo.onRollOut=function(){
icetwo.gotoAndPlay(6);
icetwo.ice.gotoAndPlay(6);
}
icetwo.text1.onRelease = function() {
//Button event
trace("text1");
};
I switched over from onRollOver to the hitTest code to try and solve the issue but it didn't appear to help. I apologize for the probably messy code. If anyone is able to point me in the right direction it would be very much appreciated.
I've attached the file I'm working with, which I hope helps.
Rotating Menu Issue, HELP
I am trying to create a rotating menu that rotates around the horizontal axis. At first the menus rotate 360 degrees and it all worked fine and the distance between the menus are equally spaced.
But then I changed it so that the menus only rotate in half the circle. When the animation first plays, it runs sweet but after a while I start noticing the distance between the menus are no longer equally spaced. I have been trying to figure it out for days, but the solutions I come up with just doesn't work at all.
It would be greatly appreciated if anyone could give me some help here. I can already imagine myself looking at this for the next few months and still don't know what to do .
Here's the function for rotating each of the menu, it is registered with the enter frame event.
In the constructor the angle of each menu is set to i * (maximumAngle - minimumAngle)/numberOfSelections + minimumAngle
where i goes from 0 to numberOfSelections
maximumAngle is 1.5 PI, minimumAngle is 0.5 PI.
//Move the menus according to rotate speed and angle
public function RotateSelections(e:Event):void {
//Calculate the x and y position
e.target.x = Math.cos(e.target.angle) * radiusX + centerX;
e.target.y = -1 * Math.sin(e.target.angle) * radiusY + centerY;
//Calculate the scale
var s = e.target.x /(centerX+radiusX);
e.target.scaleX = e.target.scaleY = s * scaleFactor;
//Calculate the angle
var newAngle:Number = e.target.angle + speed;
//Something could be wrong here, but I don't know what
if (newAngle > maximumAngle) {
//Selections are moving downwards
newAngle = minimumAngle;
} else if (newAngle < minimumAngle) {
//Selections are moving upwards
newAngle = maximumAngle;
}
//Sort out the depth
arrangeDepth();
}
Context Menu Issue
Ive made a simple flvplayer and a custom context menu with a full screen option. However the context menu does not seem to work whenever i right click above the flv. the menu shows up and is clickable but the actions do not fire when i click them. It works fine when i right click outside the flv-area on other parts of the interface.
What is wrong?
Drop Down Menu Issue
Hello - I have a drop down menu (ewf.fjvenezia.com/collectionsMENU.html )which I would like to keep centered on the page as it is clicked on. Anyone have any ideas?
Disregard the imperfections on the above page, since I am far from being finished.
Many thanks,
Flobair
Context Menu Issue
Hey there. Thanks for reading this.
I'm trying to disable the context menu options for the entire movie and everything in it. I thought it would be easy with a short:
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
on the first frame of the movie.
It simply doesn't work. It works great on a new movie. One with nothing in it, but something inside my movie is conflicting it seems.
Source:
http://www.tracypeterson.com/work/pa...flipsource.zip
any ideas why?
-Tracy
XML Menu Href Issue - PLEASE HELP
Thanks for clicking me post!
I've got this issue with an XML generated menu that I found in the forums here and I can't get any more feedback on some issues I have on the XML side of things.
Basically I can't get any of my href links in the menu to work. I'm a cut and paste XML guy who doesn't really understand this mess at all so I don't even know where to start...I just know I have to have it done very very soon.
here is my XML code:
Code:
<?xml version="1.0"?>
<?xml-stylesheet href="menu.css" type="text/css"?>
<menu>
<item name="Home" action="http://www.kirupa.com" targetType="url">
</item>
<item name="How to find us" action="link2">
</item>
I've attached the files I'm working with - thanks for any and all help!
Buggy Menu Issue
Hey guys,
i made this menu for a friends site but as you see its acting a bit wiered also some links become blurred. I am using flash after a really long time. Can you let me know what the problem is and how I can fix it.
Thanks in advance.
Dynamic Menu Issue
I really like this menu: http://www.ultrashock.com/flas/Detailed/138.html
I am trying to figure out how to put in links. What I am trying to do is have the link display a FLV (dynamically so it will stream) and a scrolling text box (hopefully also loaded from an external HTML file) on layer 1 (so the other links will also be sent to layer 1 to wipe what was already there). My version of the menu has only one drop down menu with 4 or 5 links in it.
I hope this is understandable...
Magnetic Menu Issue
i downloaded the magnetic menu from this site.
Change button names no problem. How do I type in content inside the windows? When I type text nothing shows when I publish the movie. # 1,2,3,4 stays the same. Please help. Anyone...
---
snowcrash
email: salvarado@sva.edu
Menu Disappearing Issue
I have a menu that drops down a series of buttons. I place my cursor over a part the image and the buttons drop down.
My problem is, when i take my cursor off the button to click on one of the dropped down buttons, the entire button goes back to its original state (no dropped down buttons).
How do i make the button not go back to its original state?
Thanks and happy holidays
Help On Menu Dropdown (size Issue)
How do I make the flash movie "fit to size" when all my menu's are dropped down?....Right now the menu's are way to big and I can not see all of the menu. Please someone help me
Thanks
StretSquirrel aka The Patzer
A Bit Of Trouble.. Root Menu Issue
Hey there,
I was wondering if I could get a hand with this.
I'm using this actionscript to run a retracting drop down menu.
set("_root.menu1.link1.theTitle", "Company Profile");
set("_root.menu1.link1.theLink", "http://www.link.com");
and everything is working fine.. but when I hit the link the information is loading into a blank window. Is there a way for me to have it load into the self target? I can't seem to figure it out..
Thanks in advance for any help.
PS
I'm running Flash 6.
Rollover/Rollout Menu Issue
I've read similar threads but nothing exactly like this. I'm creating a simple rollover menu: when a menu heading is rolled over, a submenu appears, and each submenu item is a button. Conversely, I *want* to the submenu to disappear when it is rolled off - as seen in Macromedia's main navigation menu. However, I have been unable to get this to happen.
I have set this up (as seen in the attached file) thusly: the main timeline is just one frame, which contains a movieclip of the Rollover Menu, which has three menu headings. The Rollover Menu movie clip has four sections: one with all of the submenus closed, and one of each submenu open. When any of the menu headings is rolled over, I gotoAndPlay the corresponding "submenu open" section.
I made the submenus movieclips of their own, in the hopes that they would respond as a group to the "rollOff" command (by going to the "menus closed" section). However, I've since learned on this forum that movieclips containing buttons will not take button behaviors. I do not want to use the cheap trick of creating a large invisible button and using "rollOver" to go to the "menus closed" section. I have looked at two examples posted on this site that use the "hitTest" command to determine whether a movieclip is being rolled over, but I have not been successful at applying hitTest to my file.
I'm new to actionscript, but I'm not afraid of a little coding, as long as I can comprehend what's being done. The code in the examples seemed to be more complex than what I need. If anyone can take me to this next step, I'd be much obliged.
Menu Issue (file Included)
Hi,
I have a menu file in which I need to add a new link called Team Building to. I don't know a lot of flash yet, and what I tried to do was copy and paste the contact link and change it to Team Building. If you take a look at the fla file, you can tell I haven't been 100% successful with it. I don't know how to go about making it work properly on it's own like the other menu items...any helpers would be much appreciated!
Thank You!
Menu Script Issue AS2.0 ... Really Stuck
Im using a component from http://emehmedovic.com
this is a menu system, the email link works as do the url links.
however i cannont get the menu to work with gotoAndPlay and
fscommand.
if someone has the patience to look through the code that would be awesome
as im really stuck. If you need the fla i will post it.
Code:
//
// This symbol contains Menu Component, skin elements and sample code;
// as a convenient way to get you started right away.
//
import xm.components.MenuProperties;
import xm.components.MenuComponent;
MovieClip.prototype.useHandCursor = ture;
Button.prototype.useHandCursor = true;
stop();
// Menubar
var menu:MenuComponent;
menu.menuProperties = new MenuProperties({itemSymbol: "Vertigo: MenubarItem", textFormats: [new TextFormat("_sans", fontSize, 0xFFFFFF), new TextFormat("_sans", fontSize, 0xE1E4EC), new TextFormat("_sans", fontSize, 0x666666)], itemSpacing: 4, itemLeftMargin: 4, itemRightMargin: 4, itemTopMargin: 1, itemBottomMargin: 1, spawnOffsetY: 2});
menu.spawnMenuProperties = new MenuProperties({vertical: true, separatorSymbol: "Vertigo: PulldownSeparator", itemSymbol: "Vertigo: PulldownItem", backgroundSymbol: "Vertigo: PulldownPane", textFormats: [new TextFormat("_sans", fontSize, 0x444444), new TextFormat("_sans", fontSize, 0x000000), null, new TextFormat("_sans", fontSize, 0x7D7EB0)], itemLeftMargin: 10, itemRightMargin: 10, leftMargin: 5, rightMargin: 5});
// Menu Actions
var fontSize:Number = 11;
function toggleContrast(Void):Void {
trace("toggleContrast");
}
function setTextSize(p_n:Number):Void {
fontSize = n = Math.min(25, Math.max(9, p_n));
var p:MenuProperties = menu.menuProperties;
var pp:MenuProperties = menu.spawnMenuProperties;
p.textFormats[0].size =
p.textFormats[1].size =
p.textFormats[2].size =
p.textFormats[3].size =
pp.textFormats[0].size =
pp.textFormats[1].size =
pp.textFormats[2].size =
pp.textFormats[3].size = p_n;
menu.draw();
}
function increaseTextSize(Void):Void {
setTextSize(fontSize + 1);
}
function decreaseTextSize(Void):Void {
setTextSize(fontSize - 1);
}
function normalTextSize(Void):Void {
setTextSize(11);
}
// Menu Definition
function open(p_url:String):Void {
getURL(p_url);
}
function (goto) {
gotoAndPlay("mapmain");
}
function(quit)
{
fscommand("quit");
}
/*
Menu Item Object:
caption:String
enabled:Boolean
symbol:Number (predefined: 0 - none, 1 - check, 2 - radio)
char:String (predefined: MenuComponent.checkChar, MenuComponent.radioChar)
shortcut:String
// Item Handler: m.apply(o, a))
m:Function (function)
o:Object (thisObject)
a:Array (argumentsArray)
menuProperties:MenuProperties (overrides menuProperties)
spawnMenuProperties:MenuProperties (overrides spawnMenuProperties)
pulldown:Array (array of menu items for a child menu)
(or)
separator:Boolean
*/
var stateMenu:Array = [
{caption:"Canberra", enabled: false},
{caption:"New South Wales", enabled: false},
{caption:"Northern Territory", enabled: false},
{caption:"Queensland", enabled: false},
{caption:"Tasmainia", enabled: false},
{caption:"Victoria", enabled: true},
{caption:"Western Australia", enabled: false}
]
var contactsMenu:Array = [
{caption:"Phone. 9330 0922", enabled: false},
{separator: true},
{caption:"Email", enabled: true, m: open, a: ["mailto:vur.com"] }
]
var linksMenu:Array = [
{caption: "VicUrban Website", m: open, a: ["http://www.vicurban.com.au/"]},
{caption: "mapmain", m: goto},
{separator: true},
{caption: "Undefined", enabled: false, m: open, a: ["http://"]},
{separator: true},
{caption: "Undefined", m: open, a: ["http://.com/"]}
];
var item_ts_inc:Object;
var item_ts_dec:Object;
var item_ts_nor:Object;
var textsizeMenu:Array = [
item_ts_inc = {caption: "Increase Text Size", shortcut: "Ctrl++", m: increaseTextSize },
item_ts_dec = {caption: "Decrease Text Size", shortcut: "Ctrl+-", m: decreaseTextSize },
{separator: true},
item_ts_nor = {caption: "Normal Text Size", shortcut: "Ctrl+0", m: normalTextSize }
];
var viewMenu:Array = [
{caption: "Text Size", pulldown: textsizeMenu},
{separator: true},
{caption: "High Contrast", symbol: 1, shortcut: "Ctrl+J", m: toggleContrast},
{separator: true},
{caption: "Zoom In", enabled: false },
{caption: "Zoom Out", enabled: false },
{caption: "100%", enabled: false, symbol: 2 },
{separator: true},
{caption: "Exit", enabled: true, m: quit}
];
menu.items = [
{caption: "File", pulldown: viewMenu},
{caption: "State", pulldown: stateMenu},
{caption: "Updates", pulldown: linksMenu},
{caption: "Contacts", pulldown: contactsMenu}
];
// Listeners
function beforeSpawn(Void):Void {
item_ts_inc.enabled = fontSize < 25;
item_ts_dec.enabled = fontSize > 9;
item_ts_nor.enabled = fontSize != 11;
}
menu.addEventListener("beforeSpawn", this);
// Set text size and draw menu
setTextSize(fontSize);
Menu Mouse_out/mouse_over Issue
I have constructed a menu.
It consists of a background and some links (movieclips).
When the mouse hovers over a link a selection is dragged to be placed underneath that link. And when the mouse leaves the menuarea the selection is supposed to return to its original position.
I am using a tweeneffect for the animation of the selection.
My problem is that when moving the mouse over a link it registers the mouse_over event for that movieclip (this is correct), but it also registers a mouse_out event for the background since the links are placed on top of the background. This causes a glitch in the animation of the selection.
When i move the mouse over a link I only want it to be registered as a mouse_over event for that link, not a mouse_out event for the menu-background
What is the best work around to avoid this?
Im pasting some of the code i have at the moment to clarify my problem.
code:
menu_bg_mc.addEventListener(MouseEvent.MOUSE_OUT,r eturnSelection);
function returnSelection(evt:MouseEvent):void {
var cFrame = MovieClip(root).currentFrame;
if(cFrame == 1) {
new Tween(selection_mc,"x",Strong.easeOut,selection_mc .x,home_mc.x,1,true);
}
}
home_mc.addEventListener(MouseEvent.ROLL_OVER, hover);
home_mc.addEventListener(MouseEvent.CLICK, goToFrame);
function hover(e:MouseEvent):void {
new Tween(selection_mc,"x",Strong.easeOut,selection_mc .x,e.currentTarget.x,0.5,true);
}
Menu Mouse_out/mouse_over Issue
I have constructed a menu.
It consists of a background and some links (movieclips).
When the mouse hovers over a link a selection is dragged to be placed underneath that link. And when the mouse leaves the menuarea the selection is supposed to return to its original position.
I am using a tweeneffect for the animation of the selection.
My problem is that when moving the mouse over a link it registers the mouse_over event for that movieclip (this is correct), but it also registers a mouse_out event for the background since the links are placed on top of the background. This causes a glitch in the animation of the selection.
When i move the mouse over a link I only want it to be registered as a mouse_over event for that link, not a mouse_out event for the menu-background
What is the best work around to avoid this?
Im pasting some of the code i have at the moment to clarify my problem.
ActionScript Code:
menu_bg_mc.addEventListener(MouseEvent.MOUSE_OUT,returnSelection);
function returnSelection(evt:MouseEvent):void {
var cFrame = MovieClip(root).currentFrame;
if(cFrame == 1) {
new Tween(selection_mc,"x",Strong.easeOut,selection_mc.x,home_mc.x,1,true);
}
}
home_mc.addEventListener(MouseEvent.ROLL_OVER, hover);
home_mc.addEventListener(MouseEvent.CLICK, goToFrame);
function hover(e:MouseEvent):void {
new Tween(selection_mc,"x",Strong.easeOut,selection_mc.x,e.currentTarget.x,0.5,true);
}
Infinite Menu Scrolling Issue
I'm new to actionscript
I have followed the Infinite Menu tutorial with success. However I want to have the scrolling action reverse directions. For example if I move my mouse to the left the scrolling goes to the right or vice versa. This is probably an easy fix however I'm not getting it to work. Here is the code
onClipEvent (load) {
xcenter = 444.8;
speed = .0030;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) {
_x = -889.5;
}
if (_x<-889.5) {
_x = 0;
}
}
Note clip with is 889.5 and mid is 444.8
If this has already been answered please send me a link
Thanks
|