ActionScript 2.0 :: Sliding Menu - Buttons Can Still Be Clicked While The Mc Is Easing Into Position?
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'm looking to do a sliding image menu like this one: [URL]. I can do this using tweening but it is not as smooth as using actionscript. Does anyone know what the name of this is as when I do a search as I can't find any solutions? I've tried 'thumbnail expand' and 'image easing' but am not getting any hits.
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.
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;
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.
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]
How do I create a easy script for vertical links, which when pressed, the link moves up and content comes inbetween the link and the rest of the links. I also need it so if another link is clicked the previous returns to its original position.
My teacher in Adobe Flash CS3 is so slow with the teaching (and some doesn't understand what the .alpha = 0; does in my class so he has to teach them and they just keep us at thesame level). We has just taught my class "trace". Anyways, my problem is this: I've made a XML file which gets loaded into Flash and it gets my animation and adds the labels to the buttons, so far so good, but I am trying to make these buttons do stuff when clicked, like (website menu) if you press "contact" it will show "contact" and if you press "home" it will go to "home" etc.
As I said I'm a bit of a noob to AS3 (started to go through it in class 2weeks ago, but as I said he teachs very slow we are better off on ourselves) so I'm not that sure off how to do this. before starting to talk what I've tried I'll give out the code (it's done after one tutorial with some modifications). Tutorial is found here: [URL]
For a flash website I'm creating, I want my main window box with all the information containing it to fly in when a menu button is clicked. I can't figure out the actionscript to do that. It's the same thing as this website's main window:
I'm currently working on a project were I would like to enlargen some of my menus ( there are wround 30 menus ), and this should be done when the user clicks a on one of the three buttons in the "main-menu".Now, I've been trying to create a function that, when one of the "main-menu" buttons is clicked, are called. This function then defines the menus and makes them scale, however the following code returns: "undefined".[code]Maybe a "for" loop isn't the solution, or maybe I'm just trying to define the items in a wrong way, with the array thing ( "...item[q].sca...").Btw. all the menus are loaded in dynamically through an XML document.
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.
I have been working on a horizontal AS3 draggable menu for some time now and i am almost there with it. I am basically trying to replicate the menu at [url]...
So far i have got everything to work apart from the easing movement when the menu is dragged. The menu is quite simple, it is made up of a container mc.Inside this container there are 6 buttons which fill the dimensions of the container.The container itself is bigger than the stage and the user must click and drag the menu horizontally to see the rest of the menu.This is working. However, i am still after an easing effect when the menu is being dragged as it stops dead (because it is using the startDrag and stopDrag commands).how to implement an easing effect on the dragging of this menu i would be so grateful as i cannot manage to do it! (perhaps using tweenlite or tweenmax if its easier, or by using simple physics - I have attached a zip file that contains a compiled SWF and a CS4 FLA file.This is the AS3 i have so far:
[URL]there are 5 links on the right side homepage, about us, our coffee, services, contacts my question is about the sliding effect when any of these 5 links are clicked. when any of these links are clicked whatever page content is currently visible, that content slides away to the right and then the content of the link that has been clicked slides from the left and this page content appears, how is this created.
i am guessing that the rectangular area where the content for all the 5 pages appears can be a containing movie clip, and when any of the 5 links are clicked on each of those links in the action script code for on release code will be written to display the appropriate page however how can i get that sliding effect of pushing the existing content away to the right and display the links content which would slide from the left, how to go about doing this i am guessing it would be an action script code.
I have 6 buttons, and a thin bar.. I am doing an effect whereby when I click on the 6th button the bar will move and stop at the 6 button, and when I click on the 2nd button it will move and stop at the 2nd button.. but I cant stop the bar..
bar = slider button = btn_1 Each btn script: on (press) { slider.yMove = btn_1._y; }
I am creating a vertical menu with sub-links, which expand out once the main link is pressed, pushing all the buttons below them downwards (with easing). Except when i give one of the links a _y position to ease to, it never fully makes it to it, by under 1 pixel, leaving it slightly blurred.For example, i want to ease one of the buttons below the clicked-on button to _y = 300. but it eases to 299.5.
I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?
but with no response. I realise that code is incorrect, but need something that will work in that way. I presume i need some sort of listener to follow the _x position of the specific movie clip.
I have been building a movie and I am using the following script to move my mc left or right. However, this looks pretty simple and I was really looking to reach the level of Vodafone this movie's animation, where the mc stops sliding, when the mouse is not moving. This is the code I am using so far and it works fine, but with no easing and it moves continuously..:
I am trying to find out a nice simple way to make an object decelerate / ease into position. I have seen that there are loads of different ways of doing it but I wondered if there is a good simple function that can do the job??
How can I make the easing start fast then go slow? Right now it starts slow and speeds up. Well not really, because it speeds up and then slows down once it gets closer to the mouse position. But becuase the mouse position is greater than that of the movement, it seems like it speeds up then just stops!
I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...
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?
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.
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
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:
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.
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.