ActionScript 2.0 :: Scriptable Mask Locked On Y Axis Without Mouse?

Feb 25, 2003

I want to recreate the same effect (this has been done) but with a little twist, and I do not know how to code the mask with Action Script.What I want to achieve is this:

1. Lock my mask on the Y axis;

2. When I mouse over it, the mask would move up and down;

3. The mouse cursor would disapear while being in the mask.

My flash file is almost complete. I just need the code to move the mask.

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Scriptable Mask - Large Mask Behind The Whole Of Flash Site?

Aug 19, 2003

what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.

All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).

View 4 Replies

Flash :: Professional - Error "creating Movie File Be Sure The Destination Is Not Locked Or On A Locked Drive"

Jul 22, 2008

OK I have been racking my brain to get this resolved and unfortunately there isn't a lot of info on the web. Scenario: We are in a shared environment. Central file server (Mac OS X server) over gigabit enet. We open flash files over the network and then we "try" to publish the files back to the same server in which the .fla is stored. (I have read John at Adobe's comments on the practice but this DID work).

So we access the flash file at /Volumes/ServerName/JobFolder/~Flash/ and we "attempt to" publish the .swf to /Volumes/ServerName/JobFolder/htmlfolder/flash .... this was working previously in flash 6-7 but in 8-cs3 it has stopped working and we are kicking ourselves to get some answers. When we try to publish we get the following error: "Error creating Flash movie file. Be sure the destination is not locked or on a locked drive. Also, check that the file name is not too long."

[Code]...

View 6 Replies

Flash - Detecting Mouse Move And Release On A Locked Draggable Object?

Aug 10, 2010

I'm making a custom slider component. The head (the thing that you drag) is programmed like this:

head.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
head.startDrag(false, new Rectangle(stubDiv,0,width - stubDiv - ((levels-maxLevel)*stubDiv),0));

[code]......

View 2 Replies

Professional :: Make A Circular Dial, Point At The Mouse Position While Staying Locked To It's Location?

Jul 23, 2010

I trained on flashMX back in the day and haven't done anything since so now I've got CS5 it's a bit like being at school again! I have a circular dial sat in the middle of the screen with an arrow placed on it's edge. How do I get the dial to rotate so it always faces the mouse pointer?

View 7 Replies

ActionScript 3.0 :: Move Mask On X-axis Only?

Aug 27, 2009

I've got a script that let's me drag the mask with by clicking and dragging it with with my mouse. Currently the mask will move along x and y axis. I would like it to move only on the x axis.[code]...

View 3 Replies

ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

Sep 10, 2010

I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:

[Code]...

View 2 Replies

ActionScript 3.0 :: Mask Movie Clip To One Increment Higher On Z-axis

Aug 31, 2009

I've got a 3D tween I would like to apply a mask to but am having a difficult time doing so. I'm guessing this is as a result of the tween that is happening on the Z-axis..?if this is the case then setting a mask movie clip to one increment higher on the Z-axis and setting the mask MC's layer to Mask should work; it's not, however.

View 2 Replies

ActionScript 2.0 :: [FMX] Following Mouse Only On Y Axis?

Nov 29, 2002

I want the menu to follow the mouse, but only up and down. I just can't figure out the code.so far is a simple start drag, in and onClipEvent handler... i can't figure what to use..._y, or _ymouse. and where do i put it?

View 13 Replies

Oject Follow Mouse On X Axis

Jan 20, 2009

I'm trying to create a navigation bar similar to that of [url]....I have tried to code a rectangle box to follow the mouse, but with no luck.

View 1 Replies

ActionScript 2.0 :: Mouse Ease On Axis?

Sep 29, 2005

I looked at the 'mouse follow with easing' tutorial. http:[url]....how to restrict it to one axis and set boundaries. I only want it to move along the x-axis.

Code:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}

View 7 Replies

IDE :: Elastic Mouse Follow - X Axis

Jun 3, 2009

I'm currently creating a navigation bar for a project using flash cs4, action script 3.

As you can see in the picture there is a navigation bar, and inside this bar there is a small rectangle and two lines (located at the first located at x=25 and the second x=555).

I want the rectangle to follow the mouse but be slightly delayed (elastic?).. Another requirement is that rectangle only moves on the x axis and therefore the y axis doesn't change(it is y=68), but doesn't move further than the two lines. The rectangle is a movie clip and its name is 'rectangle'

I pretty much want it exactly the same as this [URL] except the ball can only move on the x-axis and in between the two lines.

View 1 Replies

ActionScript 2.0 :: Car Moving With Mouse On X Axis?

Apr 16, 2011

I would like to make a similar effect with car movement found on that site:

[URL]

i assume that there will be something to do with "_x = _x+_xmouse" but how do i define the boundries and what about the wheel movement? Or maybe it would be better to do this as a MC and if x of the mouse is less than x of MC then prevFrame, if its more then nextFrame ? Have no idea how to put it all together

View 3 Replies

ActionScript 2.0 :: MC Follow Mouse On X Axis Only?

Dec 18, 2004

I need to know the action script to make a movie clip follow my mouse on the x axis only, you see it used a lot in banners.

View 7 Replies

ActionScript 2.0 :: Follow The Mouse On The X Axis?

Aug 22, 2004

I have an mc, that i need to have follow the mouse on the x axis. I have that just fine. But my problem is that i need a certain frame within the mc to play if the mouse is at a certain area of the stage. For example, if the mouse is at the x coordinate of 235 to the left, frame 2 of the movieclip will play. I uploaded just a test fla that i was practicing on.

View 5 Replies

ActionScript 3.0 :: Rotate A Sphere With The Mouse On The X And Y Axis?

Nov 6, 2009

I am trying to rotate a sphere with the mouse on the x and y axis but the sphere keeps 'roll'ing and flipping it all around.

package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;

[code]....

View 1 Replies

ActionScript 2.0 :: Rotate On Axis With Mouse Easing?

Apr 20, 2006

I have a mc that I want to continously rotate, I want it to rotate in whatever direction the mouse is from the center of the mc. If the user pulls the mouse out I would like for it to speed up and slow down accordingly.If this is not possible, I wouldnt cry. Any way when the user goes over a desiginated area I would like for the motion to stop until they pull away again.How would I go about doing this.I've seen this thread but don't understand where to attach the script, and I also need the stopping script

View 1 Replies

ActionScript 2.0 :: Make MC Follow Mouse On X Axis Only?

Apr 3, 2010

I need to know the action script to make a movie clip follow my mouse on the x axis only, you see it used a lot in banners.

View 7 Replies

Actionscript 3 :: Rotate Movieclip On Different Axis On Mouse Position?

Mar 27, 2011

I am looking for direction to this old UFC effect - [URL] that appears on the main page. It is movieclips rotating on different axis based on the mouse position. So far I have found this script:

stage.addEventListener(MouseEvent.MOUSE_MOVE,EnterFrame);
function EnterFrame(e:Event)
{
mc.rotation = (180*Math.atan2(mouseY-mc.y,mouseX-mc.x))/Math.PI + 90;
}

But this only rotates on x and y. What's a way to approach this effect?

View 1 Replies

ActionScript 3.0 :: Detect How Fast The Mouse Accelerates On The Y Axis Of The Stage?

Aug 6, 2010

How can I detect how fast the mouse accelerates on the Y axis of the stage?

View 9 Replies

ActionScript 2.0 :: Make Circular Movement Based On Mouse Axis?

Feb 28, 2005

I have a round arrow on stage (like half of a circle) and I want to make it turn left when mouse moves right and vice versa. How to accumulate this turning thing ?

View 2 Replies

ActionScript 3.0 :: Smooth Mouse Move Both Axis Content Scroller?

Jan 29, 2009

I have one very large movieclip, and I'd like to create a very smooth (eased), tween, that moves it around the stage, on mouse move. so far, I've read the "get mouse direction" article, and that's helped a lot. and I'm calculating the distance the mouse is moving.. and that's all good and dandy,.. but I'm having a little trouble converting that into a smooth scroll.. I'd like to use tweenmax preferably, and not an on enterframe.

View 14 Replies

ActionScript 3.0 :: Make Objects Rotate On An Axis Adjacent To The Mouse?

Oct 2, 2009

I have proper code to make objects rotate on an axis adjacent to the mouse. I also have proper code on how to make objects elastically bounce towards a specific x,y coordinate.

So far the code I have is for the object to follow the mouse when clicked. when the mouse is up, the objects (on a rotational axis) wind back to original position.

What I would like to do, is combine the formulas for rotation with the elastic formulas to bounce these objects back into place with rotational movement.

[Code]...

View 7 Replies

ActionScript 2.0 :: Moving Graphic X Axis Only Threw Mouse Move Code Check?

Jun 2, 2003

basically this is the code i got from a kirupa tutorial and i just want the graphic to be moved on the x axis

onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
//get the limits of the normal pic movie

[code].....

View 3 Replies

ActionScript 3.0 :: Construct Coordinates With Distance In Meters On The X-axis And Time In Seconds On The Y-axis

Nov 27, 2011

I am trying to construct coordinates with distance in meters on the x-axis and time in seconds on the y-axis, without using the timeline. How can I draw the divisions on the x-axis and y-axis ? Or I better draw the whole thing.

var my_shape:Shape = new Shape();addChild(my_shape);
my_shape.graphics.lineStyle(3, 0xFF0000, 1);my_shape.graphics.moveTo(50,50);my_shape.graphics.lineTo(50, 300);my_shape.graphics.lineTo(500, 300);

View 9 Replies

ActionScript 2.0 :: Make An Object Move Along Y Axis Once It Has Reached Its X Axis Target?

Mar 2, 2005

I'm trying to grasp how functions and motion tweening works.

Heres my question. How do i make an object move along the y axis once it has reached its x axis target?

HEre is the code, that i got from here.

and what in this code is making the MC ease out?[code]...

View 14 Replies

ActionScript 3.0 :: Mask Stick To The Mouse?

May 9, 2010

i know how to make an animated mask to have an image on top of another to have them transition as the mask passes thru..but this time instead of animating the mask i was wondering how to make the mask be sort of a brush on the tip of the mouse pointer..

View 5 Replies

ActionScript 3.0 :: Movable Mask That Follows Mouse

Oct 22, 2010

I'm trying to create a movieclip that contains 6 different images. In this movieclip, I would like, for example, a mask that follows the mouse to reveal the next picture. (ex: Image 1 has a circle mask revealing Image 2. When clicked, Image 2 will now be at the front with a circle mask revealing Image 3. And then Image 6 will not have any mask but on click will go back to the beginning)I understand that a lot of it will be up to how I order them in the timeline and frames.My problem is that in my class, we've learned how to do this for TWO images only, and the only way for the mask to move is to use the MOUSE_DOWN and MOUSE_UP events (which is where the mask is only movable if you move it yourself.)It would be a big help if someone can first answer these questions:

1)What is the function called/is for instead of a MOUSE_DOWN/UP it will just simply follow the mouse?

2)Would I have to create 6 frames with, let's say, Image1 and Image2 on Frame 1, then Image2 and Image3 on Frame 2 etc? And each frame will have its own actions layer frame?

View 2 Replies

ActionScript 3.0 :: Add Some Mouse Events To The Mask?

Aug 16, 2009

i would like to add some mouse events to the mask (which is masking something else below) and because i cant add it to the mask, what would be the best solution?

i was thinking of creating one more movieClip same size and position as the mask, but i would need to put it below everything else because the content that mask is masking should also receive mouse events...

View 8 Replies

ActionScript 2.0 :: Mask Move With Mouse

Apr 29, 2010

i have a problem in moving the mask with mouse

what is the right code

here is the code i use

// myImage is bakground image
// myMask is masking
stop();
myImage.setMask(myMask);

[Code]....

View 2 Replies







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