Professional :: Advanced Masking - Top Two Layers To Be Able To Follow The Same Mouse X/y Coordinates?

Jun 30, 2010

how to make it work.I have 3 layers.

1. top layer is an image of a cell phone with a blank screen (where I'd like the mask to be utilized)

2. the mask... which is paired with the cell phone image above.

3. the main/maskable image, which is only revealed by the cell phone's screen.

4. the very bottom image, visible all the time.
 
I need the base layer image (#3) to be static, and I need the top two layers to be able to follow the same mouse x/y coordinates.  So far, I've only known how to have the mask and the masked image be one together, rather than be able to move the mask independently of the image I want to mask.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: How To Use "startDrag" (Text Masking: Follow Mouse)

Oct 30, 2010

I am learning to flash ,and found thing I could not understand it very well.I made a Text masking:following mouse, just two layers totally,in the first layer, I input some words , and then created the second layer ,but I defined the second one as Mask layer,and draw a circle on it.of course I converted it from picture to MC named Mask. at this point, I faced the troubles, when key the codes "startDrag ("mask",ture") into the second layer,it works, but I thought it should work in the MC, I mean I right clicked the MC-mask,and then chose the action and also input the codes ,but I got the warning like this "this code must exsit in the on/onClipEvent ",and ok , I just add the onClipEvent,but still not work.

View 3 Replies

IDE :: Advanced Masking With Flash?

Jan 14, 2009

Lets say I have 3 layers A, B and C. I want A to be the mask for B which is pretty easy, but at the same time I want B to be the mask for C. Is that possible?

View 2 Replies

Professional :: Create A Mouse Follow Mc Button?

Apr 6, 2010

I have a movie clip that has a mouse follow scripting, I would like it to perform a button task; when clicked navigate to a url. Am I dreaming, I am having a hard time getting this to work. Is this possible?

View 17 Replies

Stacking Several Masking Layers Do Not Work

Jul 31, 2009

The attachment contains two screen shots of a movie clip timeline. The images consist of a text mask symbol sliding diagonally other a text layer, and a picture button sliding to the left under an aqua blue mask. When I scrub the timeline -- things work great. But when I view the movie via the control menu, the dynamic text is not displayed. The images illustrate the masking layers in unlocked and locked mode.
I'm using CS4.
Attachments: masking.jpg (136.8 K)

View 17 Replies

IDE :: Follow Mouse - Limit The Area Where The Clip Can Follow?

Oct 26, 2009

I found this tutorial [URL] and is wondering if I could limit the area where the clip can follow? I'm planning to have my cartoon's EYEBALLS follow the mouse move.

View 1 Replies

Professional :: Control Timleline With Mouse X Coordinates

Feb 1, 2010

how to create a movie with a sequence of pictures and controlling the timeline frames with mouse x-coordinates?

View 4 Replies

Professional :: Control Frames With Mouse X Coordinates?

Feb 1, 2010

I want to take a folder with 20 pictures, in some way convert them into a movie. And then apply so that I can navigate the frames one by one in the movieclip by moving the mouse right and left  (move mouse left - navigate backwards frame by frame, move mouse right - navigate forward frame by frame).

View 2 Replies

ActionScript 2.0 :: Shooting Game - A Gun To Follow The Player, But The Coordinates Are Messing Up And Going To His Feet?

Oct 25, 2010

I'm making a flash game in AS2, and i am having troubles with my gun, i have fiddled with it for a while now and i have narrowed down the problem, but i can't fix it. My problem is that i want a gun to follow the player, but the coordinates are messing up and going to his feet.

Code:
onClipEvent (enterFrame) {
_y += (_root.player._y-_y)/1; //This code makes it goto his feet, but the gun no longer follows player when he jumps.
_x += (_root.player._x-_x)/1;[code].............

View 1 Replies

ActionScript 3.0 :: Follow Mouse With Easing, Until Mouse Is Reached

Jun 23, 2010

I am looking for a quick and simple way of having a movieclip follow the mouse with easing, until it reaches the mouse, at which point I want it to stop. It needs to ease out, so the standard cursorMC.x = mouseX will not do (also because it doesn't update the position of the mouse.

View 1 Replies

Masking To Start When Mouse Rolls Over?

Jun 17, 2009

I also want the masking to start when mouse rolls over.the file id made out of 2 frames and has an external file named test.jpg...frame 1:

Stage.scaleMode = "noScale";_root.createEmptyMovieClip("foo",1);_root.foo.createEmptyMovieClip("img",2);_root.foo.onEnterFrame = function(){ if(this._width > 100 && this.img.getBytesLoaded() >=

[code].....

View 2 Replies

ActionScript 2.0 :: Advanced Sliding MC Related To Mouse Position

Oct 25, 2007

I have been building a movie and I am using the following script to move my mc left or right. However, this looks pretty simple and I was really looking to reach the level of Vodafone this movie's animation, where the mc stops sliding, when the mouse is not moving. This is the code I am using so far and it works fine, but with no easing and it moves continuously..:

Code:
xcenter = 250;
speed = 1/70;
videos.onEnterFrame = function() {
var distance = _root._xmouse-xcenter;
videos._x -= (distance*speed);
[Code] .....

View 2 Replies

Eyes Follow Mouse Cursor - Increase "mouse Sensitive" Area?

Aug 27, 2009

I have created a small flash movie where the eyes of the character follow the cursor. Its based on this one here Only problem is, it only works while the mouse is actually over the movie. Is there any way to increase the sensitive area to the whole screen without increasing the actual size of the movie?

View 1 Replies

ActionScript 3.0 :: Masking Irregular Shapes For Mouse Events

Jan 10, 2009

I have a MovieClip that contains a GIF bitmap that is a non-rectangular object (e.g. a star). All the pixels outside of the star are Transparent. Is there a way I can somehow programmatically limit Mouse events to fire only when the mouse cursor is within the star region (but not in the rest of the transparent rectangular area)?

View 6 Replies

ActionScript 2.0 :: Make A Mouse Over Masking Effect With A Button?

Nov 24, 2002

how i could make a mouse over masking effect with a button.[URL] their buttons on the left.

View 8 Replies

Get An Object To Follow The Mouse?

Dec 26, 2009

I am using CS3 and trying to get an object to follow the mouse and having a hard time finding a tutorial on this, because all of the ones i have found want me to add the actionscript to the MC, and my version of flash won't let me do that. Flash expects me to attach it to the frame and so the code doesn't work.

View 11 Replies

IDE :: Get An Object To Follow The Mouse?

Feb 24, 2010

...without using the startDrag method. I know I can use code like this inside of a mouse event listener/function:

Code:
objectMC.x=mouseX;
objectMC.y=mouseY;

This code makes the object move with the mouse, but only if I move the mouse very slowly. When I move the mouse quickly, the mouse leaves the area of the object and thus the MOUSE_OVER listener stops listening, causing the object to stop.

View 1 Replies

IDE :: Mc Follow Mouse With Boundaries?

Jun 1, 2010

I can't find any info on this so I guess I'll just ask. I'm trying to make moveclips that will follow the mouse pointer on MOUSE_OVER but only up to a certain distance then tween back to its original coordinates (preferably with a bounce or elastic ease).I tried startDrag(); on mouse over and that works quit cool but the problem is stopping the drag...

View 5 Replies

ActionScript 2.0 :: Get A Little Mc To Follow Mouse?

Jan 4, 2011

I'm trying to get a little mc to follow my mouse but stop when it gets to the "walls" (borders).

I first tried to test when the mc itself hit that _x value:

Code:
if (this._x <= 88){
_root.mc_go = false;
} else {

[Code]....

but when the mouse leaves the area, the mc does not continue to follow it all the way to the border, it just stops immediately.

View 1 Replies

Make Eyes Follow A Mouse?

Apr 21, 2004

make eyes move and follow a mouse on the _x and _y axis, but the eye needs constrained with in an eye socket.I have used two mc to constrain while mousedown.

// mc_1
onClipEvent (enterFrame) {
bounds = getBounds(this);

[code].....

View 2 Replies

ActionScript 2.0 :: Mouse Follow From Centre

Feb 12, 2009

Using this code:

[Code]...

I have a compass that is rotating depending on the position of the mouse, however it rotates it from the top left of the stage not the movie clip, how to get the AS to recognise the centre of the compass.. Also, I thought a nice touch would be if the compass had a slight "wobble"

View 1 Replies

Object To Follow Mouse When Close?

May 18, 2009

I have this kind of menu structure design (see image attached), and the way It needs to work is when the mouse goes close to a topic it follows it and when the mouse is a certain distance away it springs back to its orginal place?

View 6 Replies

Follow Mouse From A Pivot Point?

Jun 8, 2009

I am trying to have a flashlight follow the mouse from it's pivot point. Rotating from its registration point, 180 degree rotation. Also have it move back to place if the mouse is off stage.

View 1 Replies

ActionScript 2.0 :: CS3 Follow Mouse On A Guide?

Aug 1, 2009

Im trying to make a object follow the Mouse_x while locked on a Guide line for the Y axis, but in the Test the object doesnt follow the guide.

how to make a object do a Half Circle motion?

View 1 Replies

ActionScript 2.0 :: Follow Mouse (only In Certain Area)?

Oct 9, 2009

I found several tutorials that work great for having movie objects follow the mouse but I haven't been able to find one that restricts it to only a certain area. This is one of the tutorials that I was looking at: http:[url].......What I basically want to do is have this hanging lamp tilt either left or right depending or where the mouse comes from.

View 1 Replies

ActionScript 3.0 :: Follow Mouse Until Touching

Jun 19, 2010

I have a graphic replacing the mouse cursor and I'm having it so that when the user goes over a MC (called hitSquare in this case) the cursor graphic moves to a certain location on the stage, then returns to the location of the real mouse position.[code]The problem with this is that during the 0.5 seconds that it takes the graphic to return to the mouse position, the user can still move the mouse, so it actually goes to different co-ordinates and when the user moves the mouse after the 0.5 is over, the cursor just jumps to the new location.How can I make it so that the graphic smoothly follows the mouse, (even if it's being moved and has to update in real time) and then returns to the standard mouse follow code (cursorMC.x = mouseX; etc) once it's met its final destination?I take it this requires some "mouse trail" code that gets removed once it's caught up with the mouse.

View 10 Replies

ActionScript 3.0 :: MC To Follow Mouse Horizantially?

Sep 30, 2011

I am trying to make a menu bar that when the mouse moves around from button to button it has a bar that follows under the text.I have found scripts for making a MC follow a mouse around the screen but I cant find anything for what I need.

View 8 Replies

ActionScript 3.0 :: Tweening To Follow Mouse

Oct 30, 2008

I am working on a project that involves having a FollowSpot following the mouse until the user click on a button. Beeing fairly new to Flash, I searched on the Internet and came out with a few ideas but I could not find exactly what I was looking for. I have included the code that I now use as a test bench: Everything is included on one frame and it obviously has to loop until a selection is made.

View 3 Replies

ActionScript 3.0 :: Have A Line Follow The Mouse?

Jun 24, 2011

In my latest project I'm trying to have a line follow my mouse, I succeeded doing this with the LineTo and MoveTo functions this is what i have come up with [URL]if you will play with it for a while you will notice that sometimes the line is burned on the screen and just stays there,Another thing i want to achieve is that the line will be created out of a movie clip and will have animations and graphics in it insted of just plain color.
 
btw heres my code
 
package
{
import flash.display.*;
import flash.utils.*;

[code]....

View 11 Replies

ActionScript 3.0 :: Follow The Mouse And Don't Stop?

Nov 8, 2011

i have a plane that gonna follow the mouse but i dont want the plane to stop when it reaches the mouse position , instead it needs to continue its wauy then follow the mouse when it moves again this is what i have so far package

{
import flash.display.MovieClip;[code]....

View 2 Replies







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