ActionScript 2.0 :: OnRollOver/RollOut SwapDepth And Zoom?

May 27, 2010

I have 9 movieclips that I would like to when you rollover they zoom in and come to the front and when you rollout they to return to their original positions.I am using as2 and the code that I have is for the swapDepths

1_mc.onRollOver = function() {
1_mc.swapDepths(2_mc);
1_mc.swapDepths(3_mc);

[code]....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: OnRollOver/Rollout - Cursor Changes?

Mar 10, 2006

The problem I am having is, I am creating a flash animation on a movie clip.. When the user rolls over the area, the movie animates, and as they roll out of the area, the movie animates again..This isn't a very big deal but, I dont want the cursor to change from the default.. But the OnRollOver property tells the mouse cursor to flip to a hotlink cursor.. Is there a way to prevent that?

View 2 Replies

ActionScript 2.0 :: OnrRelease OnRollOver And Rollout Won't Work

Mar 26, 2011

I've been doing flash for less than 6 months, and now i encounter a problem, you see I'm more a artist rather that a programmer/coder,im creating a simple rollOver effect and a onRelease where the code loads a external flash swf, most of the time this code works but now it won't even recognize the MCs as buttons,[code]and here's the actual file without the external swfs

View 1 Replies

ActionScript 2.0 :: OnRollOver / RollOut Stops MovieClip Function

Sep 9, 2007

I have a movieclip that has selectable text / scroll bar / other buttons etc - What I would like is to have an onRollOver / RollOut event to call a function on the entire movieclip, however when I do this - The entire movieclip is treated as a button and I cannot select the text nor click the scroll bar / other movieclip buttons within this movieclip. Is there a way to set the onrollover / rollout to execute a function without having the movieclip itself turn into a button / stop functioning?

View 2 Replies

ActionScript 3.0 :: OnRollOver Button - Zoom In / Out Effect

Nov 5, 2010

I want to do a simple thing in Flash CS3, but some how I am unable to do it. Actually my requirement was....OnRollOver of a Button I want to slightly zoom it and OnRollOut. I want to slightly zoom out the Button. And the conditions are I should not use TimeLines/Stage Assets etc. Every thing has to come dynamically. Including the Button creation/ZoomOut/ZoomIn effect etc. and mainly I need it in Flash Cs3/Flash Cs4.

View 3 Replies

ActionScript 3.0 :: Zoom On Rollover And Shrink On Rollout?

Dec 28, 2009

I am trying to create a zoom effect on my buttons "home - about - contact" so that when you rollver "home" that button gets bigger and the "about & contact" buttons move to compensate the size increase and the same for the other two buttons.

View 1 Replies

ActionScript 2.0 :: Mc.onRollOut - Shows An Animation OnRollOver And An Animation On RollOut But OnRelease The Animation Enlarge Itselfs

Jun 19, 2004

I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )

[Code]....

View 4 Replies

ActionScript 2.0 :: OnRollOver Event Of Parent MC Preventing OnRollOver Of Child

Oct 18, 2007

I have a movieClip, which in turn has a nested movieClip. I need each of these to have thier own onRollOver events, the parent movieClip is OK, but the event never fires for the nested movieClip. My code goes something like this:

[Code]...

is output when mcOne is rolled over, as it should, but nothing is output when mcTwo is moused over.

View 2 Replies

AS3 :: Rollover / Rollout Menu, Rollout Not Working?

Sep 28, 2010

I need some help figuring out why my rollout is not working on this menu:I put some little close buttons at the bottom just to link them closed for now.Rollout isn't working.My code for each link is a movie clip with two frames for example links on "mens"Frame 1:

Code:
stop();
mens.addEventListener(MouseEvent.ROLL_OVER, mensMouseOver, false, 0, true);

[code].....

View 1 Replies

ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

Feb 7, 2012

I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:

//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............

View 1 Replies

ActionScript 2.0 :: Continuous Zoom - Change The Code To Zoom In At The Same Amount?

Jun 7, 2004

i've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:

on (rollOver){
_root.Mypic._width += 5;
_root.Mypic._height += 5;

}
wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.

View 14 Replies

ActionScript 2.0 :: Telescope-camera - Move Around The Scene And Zoom-in Or Zoom-out?

Dec 14, 2005

I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point

View 1 Replies

Actionscript 3 :: Zoom In Zoom Out Loop In Certains Buttons?

Dec 15, 2011

I have this code for my effect to zoom in and zoom out in certains buttons

canada.addEventListener(MouseEvent.MOUSE_OVER, canadaover);
function canadaover(event:MouseEvent):void
{[code]....

the problem is when u reach certain corner of the button it kinda gets into a loop, any ideas how can i fix this?

View 2 Replies

ActionScript 2.0 :: A Rollover/rollout Movieclip With Rollover/rollout MC's Inside It?

Oct 19, 2005

I am trying to figure out how to make a bottom bar similar to the one seen ontions inside the bar- here's what I've got so far:as you can see I have a date/time MC inside the bar_mc which is working fine but whenever I try to have a new rollover/rollout movieclip (or button) inside the bar_mc it won't work/won't show rollover animation.

View 1 Replies

ActionScript 2.0 :: Alpha Tween - MC To Fade In On RollOut And Fade Out On RollOut

Sep 17, 2003

I know this question has been asked a thousand times already, but I simply can't get it to work. I've looked at various other threads posts, but none of them seem to work. Here's what I'm trying to do: I have a button (Instance name: "go") and a MC (instance name: "fader"). Now, I want the MC to fade in on rollOut and fade out on rollOut. Currently, I have this code: In frame 1 of my movie: (taken from this thread)

[Code]...

View 3 Replies

ActionScript 1/2 :: SwapDepth But No SetDepth?

Feb 26, 2010

Why does the MovieClip class have no setDepth method? Why should we use swapDepth when a setDepth method is the easier way to set a movieclip's depth? Is it because setting of depth should be done by another class like DepthManager?

View 4 Replies

ActionScript 1/2 :: Set The SwapDepth For UI ScrollBar?

Oct 11, 2010

How do I set the swapDepth for my UI ScrollBar? (the scrollbar show-up when some external text is being loaded). Or how do I make 'abc' right on top of all other items?

[Code]...

View 3 Replies

ActionScript 2.0 :: SwapDepth() With And New KeyFrame?

Dec 5, 2005

i got some trouble here that I cant seem to find a solution, well, I dont even know what happends here.

The goal: Make a puzzle-like with 54 MCs

What it should do:
- Come to front onMouseOver swapDepth(1)
- Go to back when onMouseOut swapDepth(-0)
This is working...

I cant seem to understand why my MCs are still appearing on another keyframe when I click the button "2"

Btn "1" goes to the puzzle. Btn "2" goes to an empty keyframe but there are some MCs that are still visible when they should not be.

View 7 Replies

ActionScript 2.0 :: Swapdepth On Duplicate Mc In A Mc?

Jun 23, 2009

I am having tremendous trouble with swapdepths on a movie. I am quite the lame coder as I am more the designer type but I am trying to get some basics down for a simple RPG.Basically I have 2 layers. the top layer is 9 empty clips in a 3x3 grid I load all the 'objects' into. These loop around so I can build up a map in sections. It loads the next 'set' when the player moves to the next 'section' (the player doesn't move as the background does).the second layer is simply a background with the same idea but has no interactive elements.

The player is on the same layer as the 'objects'. I don't know if layers affect depth information.The problem is that I am trying to make each object within the loaded .swf modular, in that it checks whether or not the player is in its hitzone, and applies certain things. like swapdepths, transparency etc.transparency works a treat, but swapdepths seems to only work on ONE of the objects I have in that sections objects movieclip. It even traces that the player is below the object with getDepth tests...but it doesn't actually go under. Some clips are instances, while others are not...but still, only ONE works properly.

Is there any weird swapdepth rules in regards to changing depth of clips inside loaded movieclips inside a main movie?!I have tried swapping individual objects as well as the parent clip as a whole and neither seem to work.

View 2 Replies

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

May 13, 2011

Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I canīt seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?

View 1 Replies

ActionScript 2.0 :: Zoom In Zoom Out Double Click

Oct 26, 2009

i had a flash file, and the image was dynamically loaded in a movieClip. when i double click the image it will zoom max. and another double click it will retain its best fit.

View 0 Replies

ActionScript 2.0 :: SwapDepth Duplicating Movieclip?

Jan 12, 2009

I've developed a resource with drag and drop movieclips within a presentation.There are a huge number of drag and drop clips, so I've added a bit of swapDepth code so that the chosen movieclip is always in view. The problem now is that when I go to the next page (which contains a different drag and drop activity), a movieclip from the previous page is duplicated. Is there any solution to this? I've tried an onenterframe unload for the next page, but obviously this deletes the MC permanently making it fairly useless.

View 2 Replies

ActionScript 1/2 :: Swapdepth Object Under Two Objects

Aug 12, 2011

Can I put one object under two objects?

View 3 Replies

ActionScript 2.0 :: Animation Stops After The Use Of Swapdepth?

Sep 20, 2011

The tab stays at its place once mouseover takes place. do the mouseover on BEST PROPERTY DEALS tab and you'll see the issue. how to make the animation smoother as i tried but i wasn't able to make complete cirle's animation smoothly as the MC used to come back the same path it took in the first half of animation.

View 0 Replies

ActionScript 2.0 :: MC Remaining In Scene After SwapDepth

Jun 11, 2008

I'm trying to make a few movieclips grow when you rollover them and the shrink back down when you rollout. I tried using swapDepth to make it so each clip would stay on top. But then when I try to instruct its root movie clip to go back to frame 1 (which is blank with a stop command), it remains on the stage. Here's the code for the movie clip to grow/shrink/swapDepths

[Code]...

View 1 Replies

ActionScript 2.0 :: Keep Button Rollover After SwapDepth()?

May 13, 2004

I am using buttons inside movieclips, and changing their visual layer by using swapDepth method. But for some reason i loose my rollover button effect when I use swapDepth.

View 2 Replies

ActionScript 1/2 :: SwapDepth And Dynamic Text Boxes?

Feb 24, 2010

I have a dynamic text box that I need to use  swapDepths with and I understand that I should turn it into a movieclip but I get weird results.

View 2 Replies

ActionScript 2.0 :: Keeping Button Rollover After SwapDepth()

May 13, 2004

I am using buttons inside movieclips, and changing their visual layer by using swapDepth method. But for some reason i loose my rollover button effect when I use swapDepth.

View 2 Replies

ActionScript 2.0 :: Recreate The RollOver Swapdepth Effect?

Jan 9, 2006

I have been trying to recreate the rollOver swapdepth effect (above). Works OK but slow using mc's on the main timeline using the swapDepth behaviors.It appears (on the [URL]) that each swf is loaded independently on top of the main with their own preloaders.This seems vastly more complicated than just swapping depths on a single timeline.

View 1 Replies

ActionScript 2.0 :: Changing Stacking Order (swapDepth)?

Jan 25, 2006

I've been following the Changing Stacking Order (swapDepth) tutorial but there's something I'd like to know.In this tutorial, we have 3 buttons inside 3 Mc's. Each Mc is called green, yellow and blue.The AS code for each button is:

Code:
on (press, release, dragOver, dragOut) {
x = 0;
x = x+2;[code]....

What I would like to get is that the MC (window) that I click, goes to the top, BUT respecting the relative position for the others. I mean, in this tutorial, if you run the swf file and put every window a bit one over the other, and click the bottom window, it will come to the top, but the other two won't keep their relative position because the clicked window will be swapped with the one on the top. Understand? (it's very simple although difficult to explain).To make it easier: let's imagine we have 3 papers on the table and I pick up the one in the bottom and put it on top....this is exactly what I want (but in this tutorial, the other 2 papers are moved aswell). I just want that the window I click gets on top of the other 2, nothing else.

According to Kirupa's words, this EXAMPLE here is done using swapdepth aswell, and IT'S EXACTLY the behaviour that I want. Just compare this one with the one in the tutorial and see the different window behaviour.The thing is that I don't know how to do this with "swapdepths". In the AS reference bok it says it can be done but (as usual) they don't tell you how to do it...

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved