I have 4 navigation button and like home, about us etc.... And i want to disable home when it is click and cannot clicked it until the user click another button first. means if a visitor is at home page then home navigation is disabled, and all other are active, and when they click at aboutus button then the pages goes to the about us page and the about us button is disabled and other get active. I want this solution in AS3 with oop concept.
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?
I have parent movieclip and in that many different children movieclips
What i want to do is when i CLICK, i want to detect which movieclip it has clicked and call corresponding function (defined by onpress event) of that movieclip.
What does the code look like if I want the user to click two specific buttons then go to a new frame. I've been trying different methods, but I am honestly not brilliant with conditional statements. This is what I've got so far...
about_btn.addEventListener(MouseEvent.CLICK, clickAbout); home_btn.addEventListener(MouseEvent.CLICK, clickMain); if (function clickMain(event) && function clickAbout(event))
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 have a flash file from istockphoto that I purchased. It is of the US. When you mouse over a state it is highlighted. I want it to take you to a web page when you click the state. I have bee trying to get it to do that, but I am very lost on how to make that happen.[url]...
I have many movieclips on stage, let's say 100.Rather than setting onRelease or OnPress function for each one, is there any way of looping through all the movie clips (maybe if they were called MC1 MC2 MC3 MC4 etc etc), using an array, to see which one was pressed and then say what should happen if so and so MC was pressed.
Depending on which MC is pressed a variable will be a different number... e.g. MC1 pressed means variableA = 1, MC1 pressed means variableA = 2, MC1 pressed means variableA = 3 etc
I just thought there would be a more intelligent solution than writing out this 100's of times: MC[numberOfMC].onPress = function() { do something };
This is just ridiculous! I just saw another video on this site preaching the gospel of AS3.Look, Im sure it's great in many ways that I dont appreciate or understand but come on! Would it be too much to ask that if I am in 'designer' mode, I could say, right-click on a button and add a URL to it when clicked?? Now I have to write a function to achieve this???
I think Flash needs to be broken into parts that cater to both designers and developers.Not all of us that faithfully buy Adobe products have in house development teams to do our bidding.
i am trying to make a photo gallery so when people click on a thumbnail it expands to full screen, my problem is i have lots of pictures and i want to determine which one has been clicked. i thought i would use the e.target in a simple if statement like this:
[Code].....
in this picture one and two are both on the stage with instance names of picture and picture2.
I have a simple question for someone --Im very new at Flash. I have a box and 3 different colored buttons at the left. When a person clicks the red button the box turns red, green button turns the box green, etc. My question is I would like the text color of the box to appear under the box according to what button they press. Here is my code to turn the box red. What line would i add to have the word Red show up under the box when the red button is clicked. Do I type the word Red and make it a movie clip? Then what?
I have a bitmap with a different bitmapData on it (done through copyPixel) and I was wondering whether there is built in function that can determine what BitmapData the user is clicking on? how to best figure out which BitmapData is clicked, or do I have to do x,y pos comparisons manually?
I've got music player and one of the controls is a movieclip which acts as a PLAY and PAUSE button. What I would like is to swap the image of this movieclip everytime it's clicked. How would I go about doing this? Here's my code...
All is working exactly as it should but when you click on the submit_mc it's look remains the same whether the mouse is up, down or over. It works and sends the email to the named email address but if I was a new user to this form - I would probably click and click and click - not knowing if the message actually went as we are all use to seeing the button area change shape and color when clicked (looks like you are depressing the button)
I can skin the submit_mc but that only changes it's color/shape, it does not change up, down or over interaction with the mouse.
I have created a box with 5 buttons with their corroesponding color names beneath them at the left. When you click on a button it will change the box to that color. How do i get the color name that is clicked to show up under the box?
im working on a new project, and its finished - but there is one issue.... to travel to the next page, you must click the button 2 times ( even if the clicks are 30 seconds apart )....what would cause this? the method we were asked to do was to base the page transition on the timeline rather than embeded in its own MC like previously. that is easy, and here is my set up ( frame and actions ):
[Code]....
and on frame 132 is the frame label "start" and this code:engage.play(); the buttons are in their own MC on frame 125 and are coded correctly ( here is an example of btn 1 ): function btn1Click(event:MouseEvent):void{ MovieClip(root).gotoAndPlay("trans"); MovieClip(root).page=1;} btn1.addEventListener(MouseEvent.CLICK, btn1Click); btns 2, 3 and so on are written the same.... now, i get no errors, but you must click each button twice ( and if its in the middle of the transition sometimes 3 times
I have an issue with a web gallery that i am building and i was hoping for some help?
1. I have a stage and I add some title text to my stage and align it right and height centered.Im preview it looks fine but when i publish its in the center of the screen
2. I have menu items that are loaded from a XML file. I have added two test lines to this file that get added to the menu one text displays as "Contact me" and another called "Links"when this text is click I want to activate a Links movieclip/ wepart and a Contact for the other.I see the logic something like If clicked.text in menubar = "Contact Me" then run contactform else If clicked.text in menubar = "Links" then run Linksform End if.I am a vb.net programmer not flash any help would be great on both questions
when i click some mc in the list it shd be red and the rest white and on rollover it shd be black and on rollout white the clicked mc shd be disabled and all other enabled
I've got a button underneath a mc, is there any way the button cannot be clicked. Because now, even when the button is under the mc, the mouse-hand appears and you can click it..
I have a button within a MC and when clicked i want to go to another scene,I have tried
_root.gotoAndStop("MyScene",1); gotoAndStop("MyScene",1); gotoAndPlay("MyScene",1); and _root.gotoAndPlay("MyScene",1);
but it doesn't work. all element have instance names and a trace(); on the button confirms it has been clicked, but it just wont switch to the new scene,