Actionscript 3.0 :: Make The Deselection By Simply Clicking Out Of The MovieClip?
Mar 19, 2010
On the code i'm writing you can select an object to interact with it, but to deselect you have to click on it again, is there a way to make the deselection by simply clicking out of the MovieClip?
On a few rather cliche'd flash sites, the loading process is preceded by a scrolling bar in which the percentage of loaded bytes or frames is shown. instead of making a new % scroller for every file/movie I make (and want to display separately), could I make a scroller as it's own movie and simply import it from a library? (Dumb question, I know, but I'm the kinda guy who'd prefer Perl over PHP.)
I am embedding an swf into an html page using the same code that flash outputs when you publish your movie. I want to be able interact with the movie without clicking on it but it seems that I HAVE to click before I can interact via the keyboard.This is happening when I view the automatically generated HTML page in FireFox v. 3.0.6.
I'm new to wonderful world of flash and I'm having a little trouble with a button I've created. Basically, I have a button which covers an image. I'd like to make it so that after the button is clicked, it disappears - thus exposing the image behind it.
So, here is what I'm trying to do. I have a page full of characters for a project I'm working on now, and I want to add some interactivity to the page by making each of the characters clickable and having a description of the character pop up that you can then close. I have included 3 images of what I'd ideally like tohappen.Picture 1: The page in just a normal state, nothing happening.Picture 2: On rollover, I would like the character to pop out and enlarge.I know how to make it enlarge on rollover, but I don't understand how you would make it come to the front above other layers. with understanding how to do.
Picture 3: I want a description like this to pop up when you click on the character. I have a layer at 50% opacity to fade the background out as well. I need to know how to:1. Make this image show up when you click on the respective character.2. Make this image disappear when you click on the red X button at the top right
I have a movieclip with moviclips in them. Lets class it...
mainMC = main movieclip childMC = mcs inside the mainMC
The problem is that the mainMC is to be used as a button. If I click the part of the mainMC with a childMC, it doesn't work. I have to click a blank spot on the mainMC where no childMC exist in order for it to properly register.
I think the title is self explanatory... anyway, I wanna make my buttons do a cool animation (like roll away or explode) but until AFTER they're clicked,
Please go to [URL] and click on the photo gallery link. Then click on any other link. The photo gallery stays on the page! how I can make it go away when clicking on other links? The actionscript for the photo album is on the last frame in the actions layer.
But when I go to click on something it uses the mouse's pointer still. I'd like to be able to drag with any part of my custom cursor(which is larger than a mouse).I've tried making a hit box that detects when the mouse is near the clip but it doesn't work onsistently(sometimes it just clicks like normal).Is there to make the clicking area of the mouse change?
I have a 3d model of a village created in 3DS Max, and I want to know what is the procedure for me to get it into Flash?The reason for this is because I want to use AS3 to make the user be able to fly through the village by clicking a button. Like for example, when the user clicks a button named "Water" the view(camera) flies through to the village's Lake. Then when he/she clicks "Houses" it goes maybe to a hut. And again if he/she clicks "Water" it will go to the lake using the same path it took.
There is only one defined path that the camera can go through, and that path have locations where the camera can stop depending on which button is clicked ("Water" stops at the lake, "Houses" stops at the hut, etc.)
I have 5 movieclips on the stage. I also have a color picker. I would like for the user to click on the movieclip they want to change the color of. The color picker will change the color of the movie clip that the user has selected. Another feature that would be nice would be if the selected movieclip was highlighted or something so the user knows which one is selected. Anyone know if this can be done.
I am using Adobe Flash CS5, Action Script 3.0, and I want to disable my "home" movieclip after it has been clicked, so it stays a certain color or design that can't be clicked anymore. I already created the _up, _over, _down, and _disabled in the "home" timeline, and I don't know what to do after that.... i tried home.enabled = false, but it's already disabled when I hover to it. These are my codes so far:
I have a Sprite that contains many MovieClips: by adding an eventListener (Mouse.CLICK) to the container Sprite I want to get the name of the MovieClip clicked. Is this possible?
I have a MC with the instance name of "price". When I click another MC that says "Competitors", I want "price" to move over left 50, and then up 60. I have tried everything I could remember but it has not been working. How to make this one fluid motion.
If I have a MovieClip, simply a blue square with class AS file called blueBox, in the constructor of the blueBox.as file I have: this.addEventListener(MouseEvent.MOUSE_DOWN, sayHello); Why does this not call the sayHello method when I click the movieclip on the stage? I know on the stage that I could grab the instance of my bluesquare movieclip and add an event listener to it that way, but I just wanted to 'encapsulate' in a bit more.
I'm not very sure how to explain my situation... In short codewise: I have a movieclip that listens for a click-event, set trought addEventListener. At a certain point I 'addchild' a button to that movieclip AND disable the eventlistener of the buttoncarrying movieclip. (the button is over the movieclip on the screen, and clicking the button must NOT trigger the mouseclickevent of the parent movieclip.)
when clicking the button, i need to do some actions (works ok) AND get the movieclip listening to NEW clicks. But from the moment I add the evenlistener to the movieclip again, it seems to 'remember' the OLD moueclick meant for the button. That's what I can't have, I start to think that I need to flush a clickingbuffer belonging to the movieclip or something... Now in words: It's about a minimized login-window (=movieclip), that needs to maximize when clicking on it (anywhere on the window). When maximizing I add a form and some buttons. When clicking my "cancel"-button I want to minimize my login-window again and let it listen for mouseclicks again so we can maximize it again..
I want to do this: When the mouse is between two y-coordinates, let's say 40 and 50, a movieclip is supposed to be moved. How should I do this? I can move the movieclip by clicking on a button but how do I do this one? And where should the code be put? I thought that this code would work if I put it in the first frame, but it's not..
Basically, I need it so you click my movie clip with instance name of "bg"and it links to a site.. but it also opens as a new tab (Not a new window, but a tab like in mozilla), or a new window in internet explorer
I am usinga Flash CS4 file using Actionscript 2.0 I have a movieclip and a button and a combobox next to it. When I click on the button btn I use sucessfully the code below to stop the movieclip
I have drawn intersecting lines. The user can click on a region inside the angle formed by the two lines.When the user clicks inside the area, the small region formed by the arc between the two lines showing the angle should change. How can I do that.the region between the intersecting lines is sprite object to dispatch event listener, but the arc is shape object.
I'm shwoing a step by step process on how I did a photoshop piece, and I want to have a simple flash swf that goes through each of the screenshots at the viewer's pace, by them clicking. I wasn't even thinking so complicated as to include forward/back buttons, even just somethign so simple as having the entire image clickable to move 'forward' and when it gets to the end it just loops or something. super simple, i would do an animaged gif but i want it to be at the user's own pace. but if you think of how an animated gif cycles that's how simple i want it to be. also a few of fading/dissolivng between the images would be cool.
What happens is I've used the the bus and car mcs to drive on both sides of the road in the animation (they will go across the screen then flip over and drive back within their respective mc).When they first cross over they are layered right but because of the timing of each animation, there is a point where both are going the same way on the same side of the road. At this point the bus pulls up higher (to the side of the road to pick people up) and the car passes it. The problem is when the car passes it is registered as being behind the bus (which would be hitting people).So i'm trying to get the car to swapDepths and come to the front Only when driving on one side of the road, so only at a certain frame reference essentially - not the entire mc.
I have a movie clip viz. A. Inside that I have another movie clip viz. B. Now A has an event listener which returns its X, Y on mouse down, which in turn is used to magnify A taking those X,Y as the center point. B has its own event listener, one for changing color on mouse over and other to show a pop-up on mouse down.
Problem: When i click anywhere inside A, not covered by B, there is no problem fetching X,Y. But if i click on B, which is covering some area of A, it doesn't work. Simply because the event on B is probably not letting the event of parent to fire. Even if i write to fetch X,Y on mouse down of B, it returns its own X,Y and not of the parent, i.e. A. Because of this, the magnification doesn't work accurately in cases where child movie clip is obstructing an area of parent movie clip.
I am trying to play a nested movieclip by clicking on a button. I have an instance name for the nested moviclip, and this is the code I atatched to the button:
on (release) { _root.conference.gotoAndStop(35); }
Nothing happens when I click the button with that code. However, if I take out the instance name, the button will play the frame specified: