ActionScript 3.0 :: Make Movie Clip Move In Relation To Another?

Jun 12, 2010

The menu works as follows: My stage is 960px wide. On the stage there is a holding MC called container_mc which is 1900px wide. Within this holding MC there are 6 buttons which fill up the entire dimensions of the MC. This container_mc sits on the stage and the sure can click and drag this container about horizontally thus revealing all of the buttons. When they click it opens up a box. When the box is closed the menu comes back. All of this works perfectly.

I am now trying to integrate a movieclip, lets call it markermc that sits underneath the container_mc on the stage. Now, as the menu is dragged i want this markermc to move relative to the container_mc. So if the container_mc is being dragged left, at the same time i want the markermc to move right or if the container_mc is being dragged right then the markermc needs to move left. The reason i want this is because it will give a visual clue as to where you are on the menu. A working example of this can be seen at [url]...

The container_mc's starting X position is 20px on the stage. This is the same starting position for the markermc. The container_mc can be dragged as far as -960px for its X position. When the container_mc is at this point, then the marker MC needs to be at 960px. Basically i am trying to get the markermc to move inversely to the container_mc.[code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Nested Movie Clip Position In Relation To Root Timeline?

Feb 23, 2009

when I attach an mc inside another movie clip and then during interaction with the movie change the _x of that parent clip to whatever other value than original location, the _x of the child mc does not change as it regards its position in relation to the parent - moving the parent does not move the child within it how do i find the _x of the child in relation to the _root though as opposed to the relation to its parent?

View 1 Replies

ActionScript 3.0 :: Make A Movie Clip To Stop And Move To Another One?

Jun 30, 2009

I have a movie clip called Lion Beginning_mc, inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.
For example:

Key Frame number 01 - Dog
Key Frame number 02 - Cat
Key Frame number 03 - Mouse

I want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.

View 1 Replies

Professional :: Make Movie Clip Move Slowly Towards Right After A Few Seconds?

Nov 16, 2010

I have the following code which will bring my Banner_mc onto the middle of my Introduction page with some effects. Now, I want this movie clip to wait for a while and then move to right until it disappear with the same effects. How can I do that?

[Code].....

View 8 Replies

ActionScript 2.0 :: Make A Stationary Movie Clip Do A Jump Move To The Top

May 28, 2004

im been trying to make a stationary movie clip do a jump move to the top, slowing down, and then comming back down (like a ball being thrown vertically up) within a given number of frames, ie 10 frames.

Also i would want to add a horizontal vector quantity whereby if a key is pressed (ie left) then it would move horizontally left while still in jump mode.

Does an actionscript like this exist?

View 2 Replies

Professional :: Make Background Move Over / When Movie Clip Hits Edge

Mar 25, 2012

the conent will not be able to be seen unless the user hits the arrow keys on there key board. So i need to make a group of objects i can make into a movie clip and than inside that movie clip make an animation that plays the squirrel running. i will pause here to ask two things i dont know how to do i want the squirrel to have an animation when standing still where it flicks its tail (like a real squirrel would). and also how would i flip the squirrel so when the left key is pressed it points left and when the right arrow is pressed it faces left? and my main question when it reaches the edge of the stage the extended background that runs off stage moves over to reavel more content. as well as not have the squirrel run off stage? in short i am using the squirrel to view the full pages content.

View 2 Replies

ActionScript 2.0 :: Make A Movie Clip Move Dynamically Following A Path Given By A Line?

Jun 25, 2005

How can I make a Movie Clip move dynamically following a path given by a line?? Like.... the user can draw a line and the movlieclip moves following it ? how ?

View 1 Replies

ActionScript 2.0 :: Have 2 Movieclips - Move Both Of Them But The Second Movie Clip Will Only Move If The First Clip Reach His Final Destination?

Aug 29, 2003

i have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?

View 2 Replies

ActionScript 2.0 :: Make The Slider To Move After A Movie Clip Symbols Instead Of Button Symbols?

Oct 29, 2008

I used this tut to create a menu. [URL] And my question is; Can I make the slider to move after a movie clip symbols instead of button symbols? That way my menu would be animated.

View 1 Replies

ActionScript 2.0 :: Get A Movie Clip To Slowly Move To The Coordinates Of Another Existing Movie Clip

Oct 23, 2010

it seems simple enough but i have no idea on how i could get a movie clip to slowly move to the coordinates of another existing movie clip

View 5 Replies

Stop A Movie Clip From Looping And Move To Another Frame/movie Clip?

Jun 30, 2009

it isn't such a big problem bur for a beginner like me it is.I have a movie clip called "Lion_beginning_mc", inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.For example:Key Frame number 01 - DogKey Frame number 02 - CatKey Frame number 03 - MouseI want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.

View 5 Replies

ActionScript 2.0 :: Each Of The Tiny Things Separate Movieclips That Move With Relation To The Mouse?

Sep 19, 2008

Could anybody point me to the right direction on how to do the background for [URL]? Is each of the tiny things seperate movieclips that move with relation to the mouse? I want to understand how it works since it seems to work efficiently and doesn't have any slowdown.

View 1 Replies

ActionScript 3.0 :: Move A Movie Clip When Calling Another Movie Clip In?

Nov 27, 2009

I have two buttons one button is calling in a movie clip with tween and then a second button that is also calling in a movie clip into the same spot. I want to make it so that when ever you are calling a movie clip in is that it moves the other movie clip away or that it lands on top of the old one. Here is the code.

import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[Code]....

the problem is that it the second movie clip is always on top even though thay are on the same layer.

View 4 Replies

ActionScript 2.0 :: Scrollbar For A Movie Clip - Move The Clip Within A Certain Ratio

Nov 22, 2004

how I can create a working scrollbar for a movie clip? I've managed to get as far as inserting two buttons that allow you to move the movie clip up and down, it's just getting the scrollbar to be able to move the clip within a certain ratio that I'm finding hard to do.

View 4 Replies

ActionScript 3.0 :: Make A Movie Clip Follows Anther Movie-clip That Could Be Moved By User?

Sep 7, 2010

iam tring to make a new project , i just wants to know how to make a movie clip ( constant speed ) follows anther movie clip <--- "which can be moved by the user "

<<<>>>> i believe that this idea is good , that i records the X and Y postion of the User's movie clip and just make the other movie clip points at this postion and move toward it ,

how to make the other Movie clip (( which is a car ! .. so it have acceleration , speed , steering , etc )) go to this position or let us say try to??

View 9 Replies

ActionScript 2.0 :: Make A Clip Move To A Different Location?

Jan 5, 2003

This is my first tread, but Im a long time viewer of this site.I ve got a question. Im trying to figure out how to move a clip from one location to another using a button. This is the code on my movie clip.

onClipEvent (load) {
_root.targX=100;;
}

[code].....

View 1 Replies

Professional :: Make Movie Clip Non-clickable Unless Another Movie Clip Is Visible

Mar 22, 2011

I'm making a room escape game and I've run into a problem. When an item gets added to the inventory, I'd like the user to be able to click on the item to affect another object (e.g. clicking screwdriver hides screws and displays other image) however when I add the code to the item, if the item is clicked and it's nowhere near the object it affects, the image pops up and it looks really stupid.

So what I'd like to be able to do, possibly using if and else statements or whatever's easiest, is to only have the inventory item be clickable if the movie clip of the object is affects is visible on the stage.

View 6 Replies

ActionScript 3.0 :: Make A Circle Object Movie Clip Call Ball And Make A Rectangle Object Movie Clip Call Mc

Dec 12, 2010

make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.

[Code]...

can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?

View 1 Replies

AS3 :: FL4 Move Movie Clip?

Mar 19, 2011

suppose one has two buttons "left" and a "right ".the 'left' moves to the leftand the "right" to the rightand the goal is to move the object "ball"based on this potential requires that script to do this?

View 1 Replies

ActionScript 3.0 :: Multiple Tweens To Make A Clip Move In A Curve?

Jan 12, 2011

I'm looking for some actionscript that will move a clip from one point to another, but in a curve. I've done one that tweens the x and y positions as well as the scaleX and scaleY that sort of does this.

Seems I've seen this sort of thing on YouTube at the end of watching a video. A set of small videos appear, they scale up in size and move to a new position, but they go up, and then down smoothly (thus, a 'curve');

View 9 Replies

ActionScript 3.0 :: Move A Movie Clip To Top?

Jun 15, 2009

How do I move a movie clip to top? I have 4 clips on stage and they alpha in and out. When one is at alpha 100% I want it to be above all the other is this possible?

View 5 Replies

Move A Movie Clip From The Library?

Nov 9, 2009

from one flash .fla file to another .fla file? I would need all the different layers too. I tried to export it but it does not work.

View 2 Replies

ActionScript 2.0 :: Move My Movie Clip?

May 21, 2010

I have this code on my instance named "orangecell", i would like this mc to be shown on (350, 250) is it possible?[code]...

View 0 Replies

ActionScript 1/2 :: Move Content From 1 Movie Clip To Another?

Sep 15, 2009

I have loaded an external swf into the movie clip 'image1' on the stage. Once the swf has loaded into 'image1', is there any way I can seamlessly move the content from 'image1' to movie clip 'image2' (on a different layer and position on stage.

View 1 Replies

ActionScript 1/2 :: Move The X Coordinate Of Movie Clip?

May 20, 2010

i have this code on my instance named "orangecell", i would like this mc  to be shown on (350, 250) is it possible?? stage size is

[Code].....

View 3 Replies

ActionScript 3.0 :: Move Movie Clip When Mouse Over?

Sep 10, 2010

I want to move my movie clip when mouse over. The rectangles position is 275x200, so I want to place it at 275x170 when mouse is over.

Here's my code.
 
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
import flash.events.Event;

[code]....

It doesn't work. How to fix it? That scrolls up, but how to put it down at the earlist when the position is y170 and mouse out?

View 21 Replies

ActionScript 3.0 :: Play Movie Clip Once And Move To The Next?

Nov 16, 2010

I'm trying to set up my entire interactive piece for class, and I've set up everything in different flash files and am now piecing it together, importing movie clips. I got the first clip to play by using the following code on the first frame:
  
stop();var clip:ZombieCloseUpInside = new ZombieCloseUpInside();addChild(clip);clip.play();clip.y =-90;stop();gotoAndPlay("2");
 
the second frame, (2), has this: stop();var clip2:RDJtalking = new RDJtalking();addChild(clip2);clip.play();
  
However, what I need is for the actionscript to wait until the first movieclip is finished, then move on to the next frame. I apologize, my teacher wasn't very proficient in teaching us the basics of actionscript, so now the night before the project is due, I'm out of ideas.

View 2 Replies

ActionScript 2.0 :: Move Movie Clip Button?

Aug 23, 2009

I've created a movieclip button where on release the button moves and grows into the background of my content. The problem is that if the mouse does not hover over the button while it is moving, the movieclip does not play all the way through.

I have come up with two solutions to the problem but i need help developing the coding for them.

The first option being to freeze the the cursor in its position until the clip is fished playing through.

The second option is to come up with a coding that allows the clip to play through independent of the movement of the cursor.[code]...

View 0 Replies

ActionScript 2.0 :: Move A Movie Clip Say A Cm To Left?

Jan 5, 2011

What script would I use to move a movie clip say a cm to the left?

When I say this._parent.mc._x -= 3 it just keeps moving left, but it doesnt stop. I want it to move 3 left and then stop. How can i do this?

View 4 Replies

ActionScript 2.0 :: Move Movie Clip To 3 Different Positions?

Feb 29, 2008

I have 3 movie clips that are acting like buttons appearing on the top of the stage from left to right,

when you click on one of them, they ease to the left of the stage from top to bottom, my next trick, and my problem, say the middle movie clip gets clicked on, I want it to move to the top of the stack on the left, the other movie clips should cycle like a wheel and go down into the other positions.

I just cant figure out how to make the script do what I need, Im missing statements and other stuff...

Code goes like this...

// DESIGNATION THE POSTITIONS OF THE LEFT SIDE STACKED BUTTONS..
var topXstack = 30; //left position of stacked icons
var top1Ystack = 180; //top most
var top2Ystack = 345; //middle

[Code].....

View 2 Replies







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