ActionScript 2.0 :: Sliding Menu, Disabling Buttons?
Nov 25, 2003
I've created a sliding menu that has a left button and a right button. Each button slides a background movieclip to the left or right. The background mc eases into position when one of the buttons is clicked. Problem is that buttons can still be clicked while the mc is easing into position. This throws off my x coordinate positioning of the mc. I've tried disabling the buttons and enabling them again at a few different points in my code. I've also tried using a time delay to enable the buttons but my logic isn't working. I've stripped the code that was not working out.
View 5 Replies
Similar Posts:
May 29, 2009
i have a movie clip (mc_1) inside of this movieclip i made
-one button ("start") : by its event Roll_Over the animation (of mc_1) starts
-ten menu buttons (b_1,b_2,b_3,....,b_10) : at first they're not on the stage, but they appear one by one,frames by frames, after I rolled over "start".
-one invisible button (inv_btn): placed right under the area occupied by those previous buttons..by its RollOut event i make the menu rewind so the ten buttons disappera one after one other.
now i have to put the menu buttons inside an array (cause i made a script for dynamic loading images from XML) but i receive #1009: Cannot access a property or method of a null object reference. this is why i put in the array buttons that at first doesn't even exist...and when the menu closes disappear again..how can I handle the situation?
//this is the array code i put in the first frame of mc_1.
var bottone:Array = new Array(b_1,b_2,b_3,b_4,b_5,b_6,b_7,b_8,b_9);
for(var i=0;i<bottone.length; i++) {
var but_var:MovieClip = MovieClip(bottone[i])
but_var.buttonMode = true;
but_var.id = i;
View 3 Replies
Aug 21, 2010
If you have a look at the attached sliding menu there are four buttons. Each button brings an image in place. I want the button that�s been clicked to remain red until I hit a different button, even when the cursor is not right in front.
View 4 Replies
Nov 25, 2003
I've created a sliding menu that has a left button and a right button. Each button slides a background movieclip to the left or right. The background mc eases into position when one of the buttons is clicked. Problem is that buttons can still be clicked while the mc is easing into position. This throws off my x coordinate positioning of the mc. I've tried disabling the buttons and enabling them again at a few different points in my code. I've also tried using a time delay to enable the buttons but my logic isn't working.
View 5 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 29, 2007
I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.
View 10 Replies
Jan 31, 2009
I've got an idea for a game I'm making that makes use of both mouse buttons, but the pesky right click menu always gets in the way. I've been doing some research, and I've heard tell of some "authorware" programs that disable the menu? I've also heard that disabling the right click menu voids some kind of warranty.
View 1 Replies
Feb 8, 2006
Can anyone tell me if there is any way by which I can disable the right-click menu in Flash (SWF not EXE) , completely (I don't even want the About Macromedia.. link). I know that its possible to add ContextMenu items but I don't want to show the Settings.. or the About Macromedia.. items too.
View 9 Replies
Sep 11, 2009
I used the tutorial on this site for the horizontal sliding menu and would like to modify it to work like the one found here [url]....
View 1 Replies
Jul 29, 2006
I want to add a _y value to the sliding menu tutorial, [URL]
View 6 Replies
Nov 22, 2009
So I know Flashvars uses a lot different methods in AS3 because of the loader classes and all that. How do I disable the button and make it only display the second frame to the button corresponding to the page that the user is currently on?I've called a variable in the HTML document using query string (or I could use Flashvars just as easy if that makes it easier) called "currentPage" and on each page in the HTML give it a page name.I know how to grab the variable from the HTML into a text field in the SWF (see this tutorial) but I'm having trouble manipulating my menu buttons.
View 0 Replies
Jul 20, 2009
i have a movie with this button which disables it upon loading of external .swf file:
on(release) {
loadMovieNum ("lg_01.swf", 2);
i1.enabled = false;
}
the site in progress: [URL]..How do i tell said .swf file to re-enable the "i1" instance from the original .swf file it loaded into? I guess where I'm getting lost is how to tell one .swf to affect another.
I think if i knew this little tidbit, I would most definitely be able to have more control over my sites.
I'm a self-taught novice actionscripter and obviously don't know enough to do something as simple as this.
View 14 Replies
Aug 24, 2009
Any tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].
View 2 Replies
Oct 7, 2009
I want to make this sliding box lookin thang follow my mouse whenever it is in the blue box. http:[url]....Example ::..
The box starts on the left side behind the "HOME" text.now say i move my mouse over portfolio, forum, or even back to home.I want the box to follow along make sense?
View 2 Replies
May 4, 2009
I created a slide down menu and for the most part it works when you click on each link, but for some reason, it hangs if you have one link expanded and you click on another link:[URL].. I used an old .fla file and it worked fine but when I added an extra category to it, the menu went all crazy. I'm not sure how to fix it.
[Code]...
View 1 Replies
Jan 21, 2003
Lostinbeta utilises a sliding menu system with a delay so that the section head follows after the content. I have been looking around for a tutorial but haven't found one to date
View 1 Replies
Jul 22, 2008
I have a sliding menu. As one of the movies inside the contentHold i want to load an swf. I do this by going into the movie content2 and adding the following code:
Code:
this.clip_mc = this.createEmptyMovieClip ("holder", 1);
this.clip_mc.loadMovie("sourceMod.swf");
The swf file works perfectly if i launch it separately, but when i try to launch it from the sliding menu all i see is the background of the clip and not the actual content.
View 1 Replies
Aug 8, 2009
i m looking for a script to make a horizontal sliding menu just like one of the at the site [URL]
View 1 Replies
May 18, 2010
im trying to create a cafe flash website in Flash CS5. My problem is that I know how to create regular buttons that point to different frames but i want to make the site nice. The only button that will be a drop down button is the Menu button that will give me soup, salad.My problem is that this type of vertical drop down menu will drop over other buttons. I want the buttons bellow the menu button to drop or shift down as well when the mouse cursor is over or clicking the menu buttonI have tried to search the internet to create a vertical sliding drop down menu but had no success.
View 2 Replies
Sep 26, 2003
Below is the code from a siding menu that works fine..............
[AS]onClipEvent (load) {
xcenter = _root.box._x + ( _root.box._width/2);
speed = .03;
[code]....
However after loading this into another movie it wouldn't move, I made some changes and now it scrolls only to the left. Can someone please tell me what I have over looked ?????
[AS]
//**************************************************
onClipEvent (load) {
xcenter = _level0.tops_contain.box._x + ( _level0.tops_contain.box._width/2);
speed = .03;
[code]....
View 1 Replies
Dec 8, 2011
I know that this tutorialas been here for a long time, but I started using it just now. It works fine, although I need to have the slides animate automatically.
View 2 Replies
Apr 15, 2009
scenario: user rolls over a button, "something_mc" covers the entire flash movie, but buttons underneath that "something_mc" are still active. how would i disable the buttons underneath until user rolls off of "something_mc" (and in doing so reactivates the buttons).looks like most search options here bring up when another .swf is loaded ontop of another. my situation is if everythings in the same movie.
View 1 Replies
Jul 21, 2009
I've created a gallery to play some FLV videos and after getting the thumbnail buttons to go and play on specific frame labels, I now need to disable the button that was clicked and have it re enabled when I click on a different button. Here is my code so far:
stop();
btn01.addEventListener(MouseEvent.CLICK, navigate);
btn02.addEventListener(MouseEvent.CLICK, navigate);
btn03.addEventListener(MouseEvent.CLICK, navigate);
[Code]....
View 5 Replies
Dec 20, 2004
I'm building a site at the mo with pop up that can be activated and covers the main page with a new info page. This popup can be activated at anytime and will cover whatever is in the main page. Trouble is, buttons are still active from the main page when popup is displayed and given the site design the only way to stop this problem is disabling the buttons below. What is a good way of doing this? I was hoping flash keeps some sort of array of mc content and the buttons could be identifed this way but somehow i don't think this is likely!
View 1 Replies
Oct 23, 2007
main swf load's in empty mc an external swf (submenu) and each swf load's in empty mc subsubmenu) other swf.
now in each sub_swf (second swf) when button is clicked I disable some buttons:
on (release) {
loadMovie("books_1.swf",empty)
[code]....
View 1 Replies
Dec 18, 2003
I have an mc that when you rollover opens a menu system. There are buttons behind this menu system that I would like to have disabled when the menu system is open and re-enabled when the menu system is closed. I have this script on my timeline:
[AS]
function lnkenable(isIt) {
lnk0.enabled = isIt;
[code]....
View 1 Replies
Dec 20, 2004
I'm building a site at the mo with pop up that can be activated and covers the main page with a new info page. This popup can be activated at anytime and will cover whatever is in the main page. Trouble is, buttons are still active from the main page when popup is displayed and given the site design the only way to stop this problem is disabling the buttons below.
View 1 Replies
Apr 30, 2011
I made (in fact assemble) an sliding menu wich works fine, the thing is i realized i need liquid layout in my site i cant make it work with this particular menu, i found nformation an i could make a flas movie with liquid layout but with simple mc.
movieclip: menu_mc (this is its instance name)
code in keyframe:
/// begin sliding code
[code]....
View 5 Replies
Jul 5, 2005
how to do this sort of navigation system? Just like the one used here:
[URL]
Click on "Jewels to love madly" and click Rings. A vertical bar comes up that slides up and down with image links.
That's the effect I want to achieve but I'd like it to be horizontal, like the one here:
[URL]
except that one doesn't use images.
View 3 Replies
Mar 21, 2006
I've ben through the Sliding menu tutorial on kirupa at:[URL]The effect is great although for my purposes I am trying toget rid of the elastic easing effect and get a even speed without easing. The overall effect I want to achieve is a more of a push and stop rather than the blocks being sprung into place. [URL]
View 1 Replies