I've created a menu that scrolls down when my mouse is over the click zone but somehow when I move my mouse out of the click zone it stays up and will not go back to my first frame. Here's my code
stop() medczone.addEventListener(MouseEvent.MOUSE_OVER,med2);medczone.addEventListener(MouseEvent.MOUSE_OUT,med4); function med2(e:MouseEvent):void { play();} function med4(e:MouseEvent):void { gotoAndStop(1);}
I have some trails data that I am adding to an interactive map. The trails were imported from Illustrator and are lines that have been converted to movieclips upon import. I'd like to add effects and some interactivity to the lines upon click and mouse_over. The difficult piece is that Flash treats movie clip like a box making it dificult to click on just the trail you'd like info for. For example, if there are two trails next to one another, clicking on the one you want can be difficult.
Is there a way that I can make it so that only the line part of the MC is the piece that responds to mouse action (rather than the whole box which encompasses its extent)?
I have two sprites A and B, both are irreuglar drawn shapes (both with a transparent fill) that overlap certain points. The current result is B on top (though which is on top is not really relevant, as the same problem will exist if A is on top). They are both children of the same UIComponent.
Both are listening for the MouseEvent.MOUSE_MOVE event. It is to occur when a corner on either shape is passed over by the mouse. Though, when the mouse moves over the corner of A and this corner is behind B the MouseEvent is never raised.From my investigation I've found when i turn the fill off on the sprites and just draw the outline of the shape the mouse event will raise, but this is not what is wanted. how can I get *both* the objects listening and responding even when the corners of one is overlapping the other?
I got this accordion from http:[url]....and I would like to have a MOUSE_OVER event on the buttons.The problem is that I don't know how to target the movieclips that are in the library of the accordion.fla file.
So I am making a basic Mouse_over/ mouse_out event, but if I pull the mouse off before the object reaches frame "box_big" then the mouse_out event will not activate. What is a way around this?
It can be quite confusing title, but my question is simple. I have a mouse_over eventlistener associated with the eventcomplete from a tween. The problem is that if I have allready the mouse over the mc it will not react, only when it is out of bonds and enter.Is there a way to make it work when the mouse is over and not entering the mc?
I am trying to create a Japanese map where on mouse over prefectures (states) would zoom in by some 1.2.If I make every prefecture_mc as a separate layer, then they scale on under another which, my friends is not good looking behaviour . when I create all 47 prefectures within one layer, then prefecture_mc:scaleY=1.2; is ignored. It was simple in AS2 besides it was scaling from the center
I have several buttons inside of a movie clip, as well as functions for the MOUSE_OVER and MOUSE_OUT events. There is no gap between the buttons, however, if I move from one button to the next, first the MOUSE_OUT and immediately the MOUSE_OVER function is called again (even though all of this is inside of the movie clip). If I have the buttons inside another button, moving from one (sub-)button to the next is not problem, but then I can't have any animations/movie clips inside (or can I?). Is there any way to "fix" this, meaning that I can move from one button to the next without triggering the functions?
I have a basic rollover function for my button, which seems to work, but whenever the mouse is moved to the right (but remaining inside the movieclip) the MOUSE_OUT function starts happening, and then when the mouse is stopped moving, the MOUSE_OVER code re-activates. I have no other movieclips in front of it, but it is masked using actionscript. I don't understand why it's doing this, because the mouse never goes outside the area of the movieclip, so the MOUSE_OUT function shouldn't activate. The movieclip doesn't change side or shape at all, it just changes colour.
I have an MC(named "mouseTip") that gets added to the stage and follows my mouse on MOUSE_OVER. On MOUSE_OUT it gets removed. I just created a dynamic text field inside mouseTip so I can display type when mouseTip is present. For some reason, when that happens the mouse gets blocked by the textfield inside mouseTip and the MOUSE_OUT gets triggered.Once mouseTip is removed, the MOUSE_OVER gets triggered since the mouse is still over the button and my mouseTip MC just flickers rapidly.
I have a map of US counties that I've setup to display census info on mouse over. I am pulling this from a XML table that is populating a dynamic text field in an info box. I've also been working to cause a color change on mouse over. Right now I am doing that by changing the color on MOUSE_OVER and changing it again on MOUSE_OUT[code]...
I am tweening the alpha of some MCs to make them vis/invisible on MOUSE_OVER and MOUSE_OUT.Its easy for me to do this as a static event but the effect is a little too abrubt. I've accomplished this with
function NEOVER(e:MouseEvent):void{ NEZOOM.alpha=.5; NETXT.alpha=1;
I am attempting to have a text sentence slide out from behind and to the right of a company name. The company name is a movie clip and the sentence is a movieclip within a movieclip.On a mouse_over the sentence scrolls out from the right of the company name and then on a mouse_out the sentence scrolls back to the left behind the compnay name. This is working perfectly.Here's the trouble: after the sentence has scrolled back behind the company name and when the mouse is placed over the company name again, the sentence will not scroll out from behind the company name. The movieclip performs perfectly only one time and it won't repeat itself. I would like it to work everytime the mouse is placed over or removed from the company name. Perhaps you know why this is happening. Here is the code I am using on the main timeline. The inner movieclip has its own timeline for the sentence. It has a 60 frame tween on it with a stop() command on the first and sixtieth frame.
first of all sorry for my english. I'll try to be precise. I have few movieclips, lets call their instance names mc1, mc2, mc3.they are not buttons, just movieclips. I also have dynamic text field with instance name "description".
and all I want is to have description text on that dynamic text field when I mouse_over them, like "this is mc1", or when mouse_over other: "this is mc2" etc.. I have this code, and it's not working.
ActionScript Code: mc1.relatedText = "This is mc1"; mc1.addEventListener(MouseEvent.MOUSE_OVER, displayText);
What I created was just a test but I can't seem to get it working. What I did was create a very small rectangle at frame 1. Created a tween and then at frame 100 made it a very large rectangle.
Then in my code I wanted the user to MOUSE_OVER something and the rectangle to ease to the length it was at frame 30. However I keep getting this error message:
ArgumentError: Error #2109: Frame label frame 30 not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at Untitled_fla::MainTimeline/test()
When I MOUSE_OUT before the MOUSE_OVER mc is still playing, it doesn't see the MOUSE_OUT. I tried adding a stop(); line to the beginning of the Button1Out function, but that didn't do squat.
I need to add in a mouse over event listener for an object, when I'm already over it. If my mouse leaves the object and comes back, then the listener works, but for some reason, when if I just move my mouse around over the object, it doesn't work. Hopefully that is enough to go on without posting code...
I have a square movieClip that expands into other movieClip options with a MOUSE_OVER. This works no problem. I drew an invisible rectangle underneath all of these options so that they would stay open when I moved the mouse towards them.
But when I try to code the first option to also work with MOUSE_OVERs and CLICKs it causes problems. At first when I tested the movie it looked fine until I tried to MOUSE_OVER the first new option - the new option produced no results. I think this was because the original invisible rectangle was on top of it.
So I changed the order of layers so the invisible rectangle was on bottom. Then as soon as I tried the new option, the entire original movieClip collapsed back to its original state. I assume that the area beneath the new option was being covered up, and thus my MOUSE_OVER (on the original movieClip) no longer registered.I then tried adding code to tell the original movieClip to also listen for a MOUSE_OVER on the new option. This worked - I could move the mouse over the new option and the original movieClip remained open, but the old problem of the new option not registerring occurred. I think my new code overrided what I wanted the new option to do.
I am confident that I could probably get this all to work if I simply opened the original movieClip with a CLICK instead of a MOUSE_OVER, but I'd rather keep using a MOUSE_OVER if there's a way to do it.
I realize that this is all a bit hard to follow, so to summarize - I want a single movieClip to animate, revealing new movieClips. I want to be able to animate these new movieClips (with MOUSE_OVERs and CLICKs), all while the original movieClip remains "open" in its MOUSE_OVER state/frame.
I have a series of flash buttons and the client wants an image associated with each one of the buttons to fade in on the main section of the page upon rollover of the button and then fade out on rollout of the button.He then wants a new image to fade in when you rollover a different button and fade out on rollover, for all the buttons.
I have tried this but the sound plays when the page is loaded aswell as when ouse over.
Code: var aboutBtnsnd:Sound = new Sound(new URLRequest("clook.mp3")); var aboutBtnchannel:SoundChannel = aboutBtnsnd.play(); var aboutBtnpausePosition:int = aboutBtnchannel.position;
So I am making a basic Mouse_over/ mouse_out event, but if I pull the mouse off before the object reaches frame "box_big" then the mouse_out event will not activate.
i have a button (not a movie clip) and have implemented a mouse_over / mouse_down that causes the button to light up just by adding a keyframe inside the button itself I have also included a keyboard event that dispatch that mouse_event.click whenever the space bar is pressed.How do I trigger that button's mouse_over, such that when the spacebar is pressed , the button will light up, using as 3 code?
I have a movieclip that contains a textfield inside of it. This MovieClip has 2 frames, with the graphic changing colors in both frames and textfield staying the same.I have applied this code to it:
I have a SCENE with 4 MOVIECLIPS near the bottom of the scene that when moused over I want them to scroll/animate upwards to reveal the full view of the movieclip which has a message on it. Very similar to www.sunchips.com. Please look at this and you'll know exactly what I'm trying to do.
In the main timeline I have the 4 movieclip properties set as BUTTON with instance names on each mc. The attached code is for the first button/mc. I want the mc to scroll up when you mouse over it then scroll down when you mouse out.
Here is the AS code that is on the last frame of the SCENE where it stops the intro animation.
I get this error message when I test the movie: 1061: Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display:SimpleButton.
I'm using a MOUSE_OVER event to display an invisible movieclip...so when user hovers mouse over movieclip it tweens from 0 alpha to 1 alpha. However, I'm having problems with it. The movieclip is a MusicPlayer, which contains other movie clips within it. When I move the mouse over the music player's background it appears....I then move the mouse over the Play button and briefly the MusicPlayer disappears then reappears. This happens every time I move the mouse to different elements of the MusicPlayer? It quickly flashes invisible, then becomes visible again and its a pretty annoying effect.
Are there any alternatives to the MOUSE_OVER event? I was thinking about maybe drawing a rectangle that covered the area of the music player but was separate to the music player, so whenever the mouse was within the rectangle's x and y coordinates the MusicPlayer would become visible.
I'm having a really weird problem with the MOUSE_OVER event. I'm building dynamic tabs representing mp3 songs containing textfields with info and a dynamic image for the cover art. I am trying to get a simple MOUSE_OVER working over the whole tab, such that you can select the next song to play.
I am using a Sprite with alpha 0 that overlays my whole tab (incl. the textFields) as a Listener for MOUSE_OVER and _OUT... I've checked by setting the alpha to something visible and it indeed covers my tab and follows it around as I move it (just making sure I'm not moving the tab without moving the hotspot). Also, I only create it once my cover art is loaded, ensuring that it will cover that too.
Now, when the tab is in the top position, everything is dandy. As soon as I move the tab to make space for the next tab, the textFields break my roll behaviour... just like that noob mistake of overlaying a sprite over the one that you're listening for MouseEvents on. But... the roll area is still on top of the field, I've set selectable and mouseEnabled to false on the textFields... nothing.