ActionScript 3.0 :: Dropdown Menu And Having Buttons Goto And Stop At Frame?
Jul 4, 2009
i'm trying to do everything in flash vs is exporting the menu to dreamweaver, and i can seem to have the buttons go to a certain frame and stop? this is the action script i'm using in the dropdown menu mc to get the button to work because if i do it in the to level of the scene i get error saying can access button
news_btn.addEventListener(MouseEvent.MOUSE_DOWN, news)function news (event:MouseEvent):void { gotoAndStop(2)}
but the problem is if i put it in the dropdown menu mc then it just makes the button disappear and doesn't go to frame?
View 5 Replies
Similar Posts:
May 7, 2009
I'm creating a webpage, and I have made some buttons.Image 1 is the homepage, which is frame 1 in Flash.Image 2 shows that when I rollover the button "Portfolio,"I get a dropdown menu.I have this set as frame 3 in Flash.Image 3 shows that I've gone down the dropdown menu and rolled over "Photography." But if I rollout of any of the things from the dropdown menu, it stays at Image 2 (Frame 3)with the dropdown menu visible. Which is a problem...I want to be able to rollout of these buttons to revert back to the homepage, Image 1 (Frame 1).But, for instance, telling "Graphic Design" to go to Frame 1 on rollout means that if I try to go below "Graphic Design" to "Photography," I've rolled out--and so the rest of the menu disappears.So I want to roll be able to select anything from the dropdown menu, and only rollout to Frame 1 if I go outside the entire dropdown menu, not just one button.
Attachments:
3.jpg
(134.5 K)
View 5 Replies
Aug 18, 2011
i created a two layer in time line in one layer there is a movieclip called mc1. In the same layer in 15th frame i have another movie clip mc2. Inside the movieclip mc2 i created another movie clip at frame10 now if i clik the the mc1 on first frame The movie clip should goto and stop at tenth frame
View 4 Replies
Mar 3, 2010
I'm currently working on an AS3 scripted drop down menu and for the most part it works exactly like I had envisioned with one small hiccup. The issue I have is if you accidentally navigate away from a button that creates one of my drop downs before the script has finished running the other drop down buttons will drop down but not be active until you go back to the original button and finish the script. What I believe will fix the problem is to disable the other main menu buttons until the script has finished. I could just disable at the beginning of the script and enable at the end but there are 5 flyouts and 9 buttons on the main menu. This would add up to a ton of extra code. So how could I create a block of code that disables the buttons and another block that will enable them at the end of the script but be able to call them in each script?
And here is my site that I'm currently working on. [URL]
View 1 Replies
Mar 23, 2009
I create most my buttons in the same way as the Lee Brimelows animated buttons tutorial, the problem is I want to either extend on the script or even learn an entirely new way so that I can create dropdown menu function and multi level menus similar to the menu system on [URL] . I have found tutes that create dropdown triggered by onRelease but I want rollover dropdowns.
View 1 Replies
Jul 2, 2010
I followed a tutorial for creating a drop down menu with as3 and it worked great, except for the fact that the buttons within the dropdown don't work. the categories in the drop down are converted to button symbols and when you roll over each button text, it's supposed to change from green to grey but when you roll over them, they don't even register as buttons. Also when I move the cursor away from the dropdown slowly it rolls up, but when I move the cursor away quickly the drop down just stays down and then i have to actually move the cursor back on the dropdown and slowly move it away for it to roll up. For it to roll up I have it so the cursor rolls over a box that borders outside the dropdown and menu button and the code tells the box to roll up when moved over the box.
import fl.transitions.Tween;
import fl.transitions.easing.Regular;
import fl.transitions.easing.Elastic;
stop();
menu_cont.home_rect.alpha = 0;
[Code] .....
View 3 Replies
Jan 20, 2010
at first, I thought I could manage this myself searching the forums about "preloader" but none of the solutions seem to work. I think it has to do with the fact that I'm using the FLVPlayer with an external file. What am I looking for?
1. Well, the preload code for frame 1 that makes sure the external F4V (movie.f4v in the same dir) is loaded 100% before it jumps to frame 2 where the movie should start playing...
2. If possible, a progress bar.
View 3 Replies
Jul 8, 2011
I have a 'dropdown' menu (that actually goes up...) with 4 buttons inside of it. The menu's bg is just a movieclip containing the buttons. The problem is, when you mouse over a button the dropdown menu retracts. How do I get flash to consider the buttons to be part of the background, so it doesn't think you're mousing out when you try to hover over the buttons?Heres a link to the FLA and some of the code. I've been trying to get it working for over five hours and I'm getting extremely frustrated.FLA: [URL]
View 5 Replies
Oct 5, 2009
Just finally making the transition from AS2 to AS3.All i need to do at this point is make two buttons which will control the movie to goto next frame and previous frame. I have gotten how to make the buttons go to a specified frame number and also a button to go to a specified external url but no success in making a simple next/previous pair of buttons.
stop();
but1.addEventListener(
MouseEvent.MOUSE_UP,
[code]....
View 14 Replies
Jun 3, 2011
I'm making just a simple "website"-like project but I'm stuck on scripting the buttons for the drop down menu. I want the buttons, when clicked, to go to a different frame in the root timeline, but I just can't seem to get it work ). This is my code so far for the whole project.
import fl.transitions.Tween;
import fl.transitions.easing.Regular;
import fl.transitions.easing.Elastic;
import flash.events.*;
stop()
[Code] .....
Here's a link to download the .fla [URL].
View 6 Replies
Mar 9, 2011
I've got 3 buttons on a background and would like each to perform this:Rolllover=goto another frame to see graphic and stopRollout= go back to frame 1 and stopClick=goto URL
View 1 Replies
May 30, 2010
I have a php file that has three variables that are passed to a flash file. I know the variables are going through, as I can display them via input text elements.
one of the variables is called percent I want a movie clip called 'thermo' to go to the frame number that the variable 'percent' has stored. For whatever reason, this is not working
_root
loadVariables("scripts/membership_drive.php", "");
_root.thermo code on frame #1
stop();
gotoAndStop(_root.percent);
Like maybe the script does not see the variable percent as a number?
View 6 Replies
Nov 28, 2011
In cs5.5, I have a frame with a movie clip on it. When a user clicks a button, I want the movie clip to stop and the user to be directed to another frame. It is correctly redirecting to a different frame, however, the movie clip is still on the stage and playing. How can I modify the following code to make it not just go to a different frame, but also stop the movie clip that is on that frame from playing?
btn_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void {
gotoAndStop(10);
}
View 6 Replies
Feb 10, 2011
i am doing a simple project in which i have 2 frames in the main time line and a movieclip in the first frame and a button.i have something else in the second frame.when i click the button the movieclip should start after it ends the timeline should move to second frame and stop.
View 7 Replies
Oct 5, 2011
I am using Flash CS5 on an iMAC, running OSX 10.6. I created a file that uses a Combobox on the first frame, and I would like to connect the buttons to go to and stop/play on multiple labels.
View 2 Replies
Mar 18, 2011
I have a number of buttons (that are in an array), I want to add a function that basically says:
If the name of the button that you have just clicked on == (is the same as the name of the scene label) then go to that scene: Now I have used this handler function which seems to work O.K, except for the fact that it keeps trying to goto the FRAME label instead of SCENE label.
I keep getting the error message when i click on a button saying:
ArgumentError: Error #2109: Frame label mars not found in scene home.
at flash.display::MovieClip/gotoAndStop()
function autoGoTohandle(event:MouseEvent):void {
for (var i:int = 0; i < arrayItem.length; i++) {
if (event.currentTarget == arrayItem[i]) {
gotoAndStop((destArray)[i]);
}}}
I figured it must be this line of code at the end: gotoAndStop(+(destArray)[i]);
But how do I change it so it goes to the scene label name and not the frame label name? I Tried adding quote marks like
gotoAndStop(("destArray)[i]");
But I am getting errors.
View 1 Replies
Jul 15, 2004
I'm having with a menu navigation system. I'm using Flash MX. I have created a menu system for the site I'm building ([URL]) where one of the buttons "Choose photographer" drops down a list of names. All the other buttons just jump to another page. The drop down is currently using tweens also the logo moves to the left as the dropdown appears and returns when the dropdown returns. All working fine apart from its a bit jerky.
It's I just wanted to get away from tweening and use action scripts instead, as I'm a newbie to all things Flash I trawled the net for tutorials and examples so that I could cobble together the exact same effect. I have managed to get the drop down work and return using the action script and it does seem smoother and works slightly better. But can I get the logo to move to the left and back in time with the drop down...no.
View 1 Replies
Jun 14, 2010
I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.
View 5 Replies
Jan 12, 2006
I am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.
View 2 Replies
Nov 10, 2009
I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]
View 2 Replies
Apr 15, 2007
I'm making a slide menu that loads a xml file and creates buttons dynamically. Another functionality it has a sliding menu also, and I can't stop it. Heres goes the zip file, which contains .fla and .xml files. What I want to do is when I put the mouse at the top of the mask, the menu stops on the first option, and when I put the mouse at the bottom, the menu stops on the last option. Is it possible? [URL]
View 3 Replies
Mar 19, 2010
I am in frame 20 which is playing a video, How do I get it to stop sound and video when some clicks a menu button to go to another frame? Where do I put the code?0
View 3 Replies
Mar 28, 2010
I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the new menu data.So I will probably need some code that stops the video instantly, when another menu button is clicked. But how do I write it and where do I put it?
Here is my actionscript for the video file to show:
var loaderSlide:Loader = new Loader();
var monoslideshow:Object;
loaderSlide.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
addChild(loaderSlide);
[Code]...
It would be great to get a solution to this problem, otherwise my website will be kinda messy ;)
View 1 Replies
Aug 23, 2011
I have a SWF with two buttons that both direct users to new URLs. The first frame contains an FLV. During the playing of the FLV, the buttons work fine. When the FLV is complete, the SWF plays, resizing and moving the buttons. During the movement of the buttons I can click them and they work--while moving. But they don't work once the SWF reaches the last frame and stops. I need the buttons to work the whole time, especially at the end. [URL]
View 3 Replies
Jan 12, 2009
Now I'm working on a Website which contains a XML Carousel Gallery, with the coding below.Now this all happens on the homepage. I would like to stop the xml on other frames though. Is there any coding I can use on my Buttons, to stop the XML working while going to another frame?
stop();
var folder:String = "thumbnails/";// a folder for thumbnail files + an XML file
var total:Number;
var radiusX:Number =180;
var radiusY:Number = 10;
[code]...
View 2 Replies
Oct 24, 2002
Is it possible to use HTML frames with Flash? For example, I want to make a flash menu system on my site, and have the click of the menu buttons open up an HTML page in a different frame.
View 14 Replies
Aug 31, 2010
i'm making a rollover menu with AS3, and when the user mouse clicks I want it to go to a certain frame in a movie clip and stop. It does this fine, however I have an animation for it to play on Mouse out. So when user mouse clicks then mouse outs from the button area it plays my mouse out animation and i'm back to square one. How can i tell it to ignore the mouse out animation if the user has clicked the button?
[Code]...
View 5 Replies
Jan 19, 2011
I just started using flash and Im hoping someone with more experience can help me out. When I add the stop code to frame one to stop the timeline on my homepage, the buttons Ive set up in my navigation bar do not work. But, if I do not have the stop code in the timeline, the buttons will work correctly. Without the stop code, though, obviously the whole timeline plays through and doesn't stop on the homepage, which is not desirable. So how do I stop the timeline on the homepage and still have my buttons work?
View 5 Replies
Aug 28, 2010
i need loadMovie! url :S
ActionScript Code:
stop();
//embedding font and importing easing.
[code]....
View 1 Replies
Jul 13, 2004
i'm trying to make a dropdown menu like Senocular's menu but without xml and horizontal one.... i attached an example i think i found it here in Kirupa...i want to do it but the problem is i need to give each bar deffernet color and when click it appears with it's color until click another one.....
is it possible to do it with frames not in AS methods..
View 1 Replies