I have MC masked with TEXT,when the user moves his mouse down more text appears from the bottom and when he moves it goes bakc to the original position...I do not want the mouse wheel .. I woudl like to do it by mouse hovering...
I have code like the following: <s:VGroup gap="10" id="group" height="100%"> <s:Label text="This is page 2" /> <s:Button content="Resize Canvas" click="resize(event);"/> <mx:Canvas id="photoCanvas" color="#567898" backgroundColor="#125567"> </mx:Canvas> </s:VGroup>
I don't understand why the following does not work: Pushing the Button resizes the photoCanvas's height (gets taller or smaller). Since the photoCanvas control is a child element of the VGroup shouldn't the container update itself to the new height? The Vgroup has ALWAYS the same height, no matter what the (total) height of the children is! I would like the VGroup to adjust itself and get a height value equal to the sum of its children heights. Is this not possible??
I created several components that are placed inside a VGroup. in one of the components code, i want to add an image and to move it. i don't want the image to be part of the vgroup and to be bound to the vgroup area, i want it to be like float in css. how can I do that?
update I want to be able to move the element in the entire area of the application. not to move it within the vgroup. i don't want this object to be attached to any container besides the main application window in order for me not to have limits how much can i move it and where.
To start things off, I use Flash CS3.moving menu that moves on its own when the mouse moves around it. Like the menu moves up when the mouse moves down.[URL]i have found similar tutorials for what i wanted.. but they are AS2 or older versions of flash..and what i needed is more along the lines of AS3 as that's what my class is learning and using.Does anyone know of an AS3 or anything that works with Flash CS3 tutorial thats what I'm asking?
I'm using an accordion container that has it's creation policy set to auto. One of the accordion's children is a spark border container that has a data grid within it. Currently, I'm using the data grid's creationComplete property to call a function; similarly, I'm using the dragComplete property to call another function.
How can I add listeners for events (creationComplete & dragComplete) via actionscript? The obvious problem is that the accordion does not create all its children on creation (nor do I want it to), so I can't simply use something like: datagrid.addEventListener(...)
I have a large movieclip that contains all the elements of my game - the level backgrounds, the player character, the non-player characters etc. The stage is only a quarter of its width and when the player character moves off the edge of the stage the whole game movieclip moves a quarter width to the left or right, depending on which side the player character has left the stage from.
Each of the quarters of this large game movieclip are considered levels of the game (so there are four levels, obviously) and what I want to know is how do i get an object that exists in one level to appear in exactly the same position on screen in the next level, when the player moves to that level?
Imagine you have a MC used as a container for several other MC's used as buttons.Now, should I use the class of the container to listen for and to dispatch events. OrShould I create a seperate class for each MC inside of the container to listen for and to dispatch events.
In summary: One class for all, or several smaller classes dedicated to their respective MC.How far should one go with abstraction?.
I need to perform an event when the mouse moves AND when the mouse button is down, how can I do that? What will happen is that when I click and drag the mouse, the width of an object will change. Here is what I have so far:
When I roll over the button content will appear somewhere on the stage,if I roll out the content will disappear.I would like to write extra event, when I click on this button while I am there with MOUSE OVER, it will cancel event listener MOUSE OUT.I try it to solve it with IF function, but I don't know what should be the exact coding>.What I am trying to achive in basic logic is:
While onto the button: IF MOUSE_DOWN = FALSE LISTEN for MOUSE_OUT ELSE GO TO home
im talking about the way the MC moves from left to right while stationary...based on mouse movement, anyone have any ideas what this function is called but more effectively, WHEre i can find a tut or something?
I have the following script on a movie clip which fades the clip in when your mouse is over the MC and fades it out when your mouse moves off. It works fine, but it "flickers" when its faded in all the way. How can I stop that?
I have two buttons each in its own sprite now I want to listen for mouse overmout and click event on both. In a way that if you roll over button1 its color changes but at the same time button2 color changes as well.To be more specific lets suppose I have a graphic button like map picutre for a country like UK and then I have text button for UK as well.What I want now is that when user either scrolls over UK map the map button color changes but at the same time the color for UL text button changes as well. same goes for click and out events for the two.
Are there suggestions for code that will essentially listen for (or test) for mouse clicks on 3 separate buttons. Once all the correct 3 buttons have been released, I want a to trigger a final event(load a 4th movie clip). I can't stop thinking in terms of IF (all event 1 + event 2 + event 3) THEN load movie. But I know that isn't AS3 way to do it, any better understand way to do it with event listeners (but not too complicated!)
i am trying to find out how i would make an image pan right and left and up and down following the movements of the mouse. so when you move your mouse to the right the image moves to the right, same for other movements.
has anyone seen any scripts i could use or knw the code. happy to donate to paypal for the code.
I'm currently working on a portfolio-website in Flash CS5. Everything is good so far,but my only problem is the image gallary. My idea is that when the visitor moves the mouse over one of the images, a hover effect will activate - which is does. The only problem now is that I can't get the images to show in a big format when you click on each of them, for a better view of the image.[URL]..
This probably will be very easy for some, but I am stuck on this. I have a map in a movieclip(mc_map) on stage and a small square which acts as a mask to the really bigger size of the same map. What I am want to do is that when I move the mouse on the mc_map(eg: say my cursor is on New York), the small sqaure window will unhide the same area, or will move that bigger image such that the same area is shown under the square mask. I also want to add another cursor(or crosshair) to the stage which is live only in the area of the square and replicates the position of mouse on map.
the preceding works exactly as i want it to.. the catch is, it only does so in it's own swf.. meaning, i want to use it as an external swf embedded in another movie... when it's on it's own, the panning will stop if the edge of mc hits the border, when it's called externally the panning won't stop!
i feel like i've tried everything i can (obviously not!).. where you see 521 and 315 there WAS Stage.width/height and that code was on the external swf itself, in an attempt to stop the panning when it should i tried putting the code in the parent movie and changing some variables, which worked the same with no avail.
here's a link if my babbling wasn't clear enough: [URL] also.. i would like for it to pan only if the mouse moves over the panning clip, it currently pans based on where the mouse is over the parent movie.. i've made multiple attempts at changing this as well, with no luck.
I readed the interactive image pan tutorial and thought it was great and I have a favor to ask.I have this project and I want the background image to pan when the mouse moves, the problem is that I have a menu and I want the buttons to go to different places on the image when I click on them and then the pan stops when the image reachs its destination.
I also have a button that I want to use to restart the Image panning. Heres an example of what I try to do:[URL]..If someone knows how to do this with Action Script,
I have created an animation by making a series of frames. So now I have a FLA file with the frames in.So far, so good.I can export this as a movie and create a SWF file.I can use this SWF file in a HTML document and get it to display in the browser.This is where I hit a brick wall. I have done a lot of searches but I am getting something wrong. I need to adjust this FLA/SWF so that in the HTML file, when the SWF is first loaded it does not play. If the mouse moves over the object it starts/continues playing. If the mouse moves away it stops playing.
I'm working on a school project. Below is an image of what I am working on. My cursor in this movie is the heart. When I move my mouse over Hello Kitty she jumps -- but only once. How can I get her to keep jumping when my mouse is over her, and make her stop jumping when I pull away?
Also, because I am new to ActionScript I might have messed up with the motion of the animation. Hello Kitty used to jump continuously without me doing anything. Then I copied the motion code into my ACTIONS layer and put stop(); in the Hello Kitty object code. So, she doesn't jump all the time anymore, just when my mouse moves over her... but she only jumps once and that is the problem. I want her to keep jumping as long as my mouse is over her.
I am using the following code as part of a set of scrollable bars to change each bar in relation to another when one is dragged. It works until the user swipes the bar as fast as possible then the numbers go wrong.[code]...
I'm seeing inconsistent ROLL_OVER behavior. I have two movieclips (A and B) both containing an alpha=0 hit area child mc (rectangle contained in a mc symbol with the symbol's alpha set to 0 in the parent). I add the same event listener in each parent A & B:
In parent A, when the cursor is over the hit area as the clip appears (using TweenLite.to(alpha), the listener above triggers properly without moving the cursor. In parent B, I have to move the curosor in order for the above listener to trigger. Moreover, in parent B, when the eventlistener is attached to the hit child mc (as shown above) rather than "this" (parent B), I actually have to remove the cursor from the hit area entirely and re-enter the hit area for the above listener to trigger? The parent mc's are loaded differently. Parent A, which works more reliably (mouse doesn't need to move in order for the listener to trigger), is pre-loaded and made visible (.visible = true). Parent B is rendered on the fly in the timeline and is a child of three levels of parents/grandparents...