ActionScript 2.0 :: Making A Movie Move With Script?

Jul 7, 2005

I have two movies in my Flash movie. One has the instance name of "Main" and the other "Content". I need to make it so that when I on(release) a button -the "Main" movie clip and the "Content" movie clip move to different locations on the stage. I want to do it without tweens (im trying to break that habbit) and I would really like it if the movies moved quickly to their targeted location with an ease of like 100 and when they reached their location they do that thing where they kinda over-shoot their target and bouce back to it.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Making A Movie Clip Move By An Exact Distance?

Aug 18, 2011

I have one simple movie clip (instance name is MC) and a button. I need to make the movie clip move by a distance of 50 (along the x-axis) every time the button is pressed. I don't need the movie clip to move to x-position 50 but rather a distance of 50 regardless of where it currently is on the stage.

View 2 Replies

ActionScript 2.0 :: Making Target Move Around Like Another One?

May 4, 2009

making another symbol(object) to move around randomly like another symbol i made here is the script for the symbol

onClipEvent (load) {
this._x = random(550);
this._y = random(310)+90;[code]..........

i need to make another symbol like this one that moves around same way i think i need to make a new layer? make next script for new symbol so it will to move around the same way.or tell me what to write in the new script for the symbol .

View 8 Replies

ActionScript 1/2 :: Making An Instance Move?

Sep 6, 2011

I need to move an instance of the class Snowboarder from x -1.00 to x 199.99.  How do I link from my actionscript of class Enter?Here is what I have class Enter [code]Is another class even needed?  This "Enter" class will only be used to move a snowboarder over the screen and have a logo apear behind him.

View 2 Replies

ActionScript 2.0 :: Making A Mc Move In A 'S' Shape?

Apr 7, 2011

I want my mc to move in a wave shape (like a very low frequency signal) as it moves horizontally accross a blood vessel. I know how to do guide tween, however, I do not want this as I want it to be random. I have a numeric stepper which generates the no of salt particles.

View 1 Replies

ActionScript 2.0 :: Making Two MovieClips Move Together?

Nov 25, 2007

I've made a draggable menu for a flash site (menu_mc), but the buttons don't work inside the movie clip when I apply startDrag. To remedy the problem, I simply made another movie clip (menubuttons). I now want to more or less attach the two movieclips:

Code:
if (menu_mc.moveTo(x,y)) {
menubuttons.moveTo(menu_mc.x,menu_mc.y)
};

I also tried some pretty iffy statements:

Code:
menubuttons._x = menu_mc._x

That last one works initially, but when I move menu_mc, menubuttons stays put.

View 2 Replies

Professional :: Making Shape To Move In Flash 8

Mar 9, 2010

I am trying to make a ball move, it's all perfect apart from this:
Statement must appear within on/onClipEvent handler = ( isJumping) = false;)
Then I put in "on", then it says:
Unexpected 'on' encountered.

View 7 Replies

ActionScript 3.0 :: Making A Shape Move Automatically?

Jun 1, 2011

i am making a few simple games for the iphone and i would liek to know ow to make a shape move across the screen automaticly so i touch it and it continuously drops down until it hits the floor is there a code to do this, i tryed a while boolean = true but it didn't wrok.

View 2 Replies

ActionScript 2.0 :: Making StartDrag Move Through And Axis?

Jun 1, 2004

I want to make a handle pull up and then down through an arc. Now using the startDrag on the Handle won't make the handle pivot around an axis. It needs to move a bit like a (one arm bandit) or (The old coin Poker Machines) I have attached a basic file to show the problem I have so far.

View 2 Replies

ActionScript 2.0 :: Making Movieclip Alpha = 0 And Move?

May 26, 2003

I'm trying to make a movie clip move a small bit to the right and slowly (or quickly) dim until you can't see it. I've tried 2 different methods. The first was my original so that once you had the mouse in the original location of the movie, you just have to keep it there, you don't have to move the mouse with the clip. The 2nd was one i got after searching the forums. I've debugged out the for statement and tried just seeing if i could make a different movie's alpha change, and it didn't. So I believe the problem is either in the if (of the first) or onRollOver (of the 2nd).

[AS]onClipEvent(load){
xspot = _root._xmouse;
yspot = _root._ymouse;

[code]......

View 5 Replies

ActionScript 2.0 :: Making An Object Move To A Specified Location?

Feb 2, 2007

How do i make Obj1 move to Obj2 without easing? I want it to move Obj1 to Obj2 "walking" not "directly" by setting its _x and _y values.

Example for code with easing:

onClipEvent (load) {
_x = 0;
_y = 0;

[Code].....

View 8 Replies

ActionScript 2.0 :: Making StartDrag Move Through And Axis

Jun 1, 2004

I want to make a handle pull up and then down through an arc. Now using the startDrag on the Handle won't make the handle pivot around an axis. It needs to move a bit like a (one arm bandit) or (The old coin Poker Machines) I have attached a basic file to show the problem I have so far.

View 2 Replies

ActionScript 2.0 :: Making Electricity - The Domes Don't Move?

Nov 24, 2002

i've jsut downloaded eilsoes electricity thing which is here: http:[url]....and i'm really confused of all the action scripting and stuff. I was planning on creating somethin similar except without the sliding bar, just the electricity; the domes don't even have to move. i didnt' understand what 'Math.Floor' was...

I also saw the stuff 'home1x' 'home1y'. What are the differences between these and 'point1x' and 'point1y'? and what exactly are they...

View 11 Replies

Actionscript 3 :: Making Image Move In FLEX/AS Flash?

Apr 24, 2011

In the following code ,onclick of fruits image how to make the fruits image drop in the box image with proper effect(i.e, dropping of the fruit image into the box image should be shown).

[Code]...

View 2 Replies

ActionScript 2.0 :: Making A Background Image Move With Mouse?

Jul 1, 2009

How is an effect like this created? The effect is after you click "enter site", you see the background moves a bit when the viewer moves the mouse.[URL]

View 2 Replies

ActionScript 2.0 :: Making Objects Randomly Move & Hello Kirupa?

Feb 12, 2008

I'm trying to simulate rubber ducks in a bath tub (Don't ask .)I've got 5 mc's on my stage (Each MC is a duck.) And I've been trying to figure out the AS (2.0) to make them all move in random directions around the stage, bouncing off each other and the stage sides.

View 7 Replies

ActionScript 2.0 :: Making An Arrow/bullet Move Where The Mouse Was?

Oct 13, 2008

i want to make a game where u shoot arrows at the mouse direction, i have everything exept for that, i think is trigonometry, i have seen it on many games but i cant seem to figure it

im planning to make the arrow something like this

onClipEvent(enterFrame)
{
if(Key.isDown(Key.SPACE) && _root.readytoshoot == 1)
{

[Code]....

View 4 Replies

ActionScript 2.0 :: Making A Symbol Move The Direction It's Facing?

Dec 2, 2011

I want to know if there's a way to make a symbol move the direction it's facing.I have a character which rotates when you press Left/Right:

if(Key.isDown(Key.LEFT))
{
_rotation -= 15;

[code].....

View 6 Replies

Actionscript 3 :: Link Images/layers In Flash CS4 - Making Them Move Together?

Nov 15, 2009

I have two copies of an image (one called blurPic_mc & one called sharpPic_mc) and I want to be able to move both of them around the screen togethe I need them to stay exactly on top of each other for some other functions I am running but right now the only one that moves is the top one (sharpPic_mc).I included my code below.

sharpPic_mc.addEventListener(MouseEvent.MOUSE_DOWN,Click);
sharpPic_mc.addEventListener(MouseEvent.MOUSE_UP,Release);
function Click(event:MouseEvent):void{

[code].....

View 1 Replies

Actionscript 3.0 :: Making Movieclip Randomly Move Around A Constrained Area

Mar 11, 2010

I have an array of display objects that are simple scattered circles on the stage. My goal is to have them move around randomly within, say, a 5/10 pixel radius/range from their original x and y. Sort of like fireflies, but not as jittery and fast, I'm looking for something real smooth. What I have now is something like this:

Code: Select allfor (var g=0; g < total_circles; g++)
{
circle = new DrawCircle( 3, 0xFFFFFF );
circle.x = random; circle.y = random;
addChild(circle);
jitter = JitterCircle( circle, 10 );
}

So as you can see for each circle I call a class JitterCircle and pass it two values: the actual display object and the range I want my circle to fly around in.
Inside JitterCircle I have this:

[Code]...

View 2 Replies

ActionScript 2.0 :: Making A Sprite Move In Directions From A List In An Array?

Jan 26, 2007

I wanted a sprite to move round on the screen when a play button was pushed. I have a left and a right button which store strings "left" or "right" into the next positions of an empty array called history.

When i push the play button i want i want the sprite to move either left or right according to what commands are in the array. My code just seems to play one single command and then stops when i hit play again it just repeats the same command.

Is there any way to make it play through all commands in the array one after another?

Here's the loop that i was trying to use.

[Code]....

View 3 Replies

ActionScript 2.0 :: Making A Pawn Move Correctly According To Dice Roll?

Jul 14, 2008

I'm trying to create a board game with a dice. I have a pawn which is supposed to move through the fields on the board according to the number on the dice, after it was rolled. The board has rectangle shape.I've created a function rollDice() which is controlling dice rolling and the movement of the pawn. The dice itself is event handlerThe board itself is within movie clip "map_mc" in which I've created a separated mc, called "node" + the number of the field, for each board field. So, there are "node0" to "node37" inside "map_mc", as there are 37 fields on the board. The pawn "tiger_mc" is also inside the parent "map_mc".

The problem is next:I somehow can't achieve that the pawn move from the current field to the next (according to the dice number) step by step. The movement is too quick and the pawn "is cutting" the corner of the board.Explanation of the code:The whole code for dice rolling and pawn movement is inside rollDice() function which is called by pressing the dice itself. It tracks both current position of the pawn (var curr_position) and it's next position (var next_position). It also push index of all fields in between into array fields_arr. I've created a counter inside that function which goes through fields_arr elements and changes the pawn's _x and _y accordingly, up to the last field - the new position. But the pawn is moving as directly from the current to the new position (not gradually over the fields in between). So the effect of such movement is that the pawn "is cutting the corner of the board". For instance, if the current position is "node7" (which is on the one side of the rectangle/board) and the next position is "node12" (which is on the next side of the rectangle/board), the pawn is not moving gradually node8-node9-...-node12 but as directly from node7 to node12,

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 :: Making Movie Clips Follow A Custom Line But They Movie With The Cursor

Feb 4, 2009

trying to make a movie clip follow a custom drawn vertical line, the movie clip follows the cursor but only the y axis

I have added an example of what i mean and the file i need it to happen to

ps the vertical line needs to be hidden.

View 8 Replies

ActionScript 2.0 :: Making A Ball Move - When Rollover Twice Quickly, It Also Accepts The Second Rollover Command?

Jan 22, 2005

I am making a ball move from left to right and back. but when I rollover twice quickly, it also accepts the second rollover command. I would like it to accept that second rollover only when the first one is finished. I mean, I want the first to be finished before it accepts another rollover.I know it is simple to solve this with a tween using frames instead of as, but I was wondering if someone knows how to adapt the script.

on(rollOver){
ballTween = new mx.transitions.Tween(balMC, "_x", mx.transitions.easing.Regular.easeOut,balMC._x, 44, .5, true);
ballTween.onMotionFinished = function() {
ballTweenterug = new mx.transitions.Tween(balMC, "_x", mx.transitions.easing.Regular.easeOut, 44,11.9, .5, true);

View 2 Replies

ActionScript 2.0 :: Making A MovieClip Move Side To Side Along The Horizontal Axis?

Dec 22, 2008

Im in need of a simple code which makes a MovieClip move side to side horizontally preferably using the attachMovie function.The MovieClip must not go off the screen so the movement will have to be limited within the stage size.

View 11 Replies

ActionScript 2.0 :: Image Pan - Making The Background Image Move Around As If It The Scene Is A POV

Mar 7, 2011

was wondering if anyone could assist me with some actionscript. I am working on a project similar to this (thehideout.org.uk/refuge/) and making the background image move around as if it the scene is a POV.

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

ActionScript 2.0 :: Making A Button In A Movie Clip Goto Another Movie Clip (pic)

May 30, 2007

What action script would i need to make a button in one movie clip goto and play a frame in another movie clip? Im not very good at flash but i've been trying my usual codes but it dont work..

View 2 Replies

Making A Rollover Flash Movie

Dec 6, 2007

I have a map of the UK with all the counties and i was wondering how I would go about making a rollover flash movie. I specifically need it to highlight the county when the mouse is over that county and a little box to appear with the county name in it. Like an ALT tag I dont want someone to tell me exactly how to do it just some tips on how i would go about this. Is there an image mapping tool in Flash. Or how would i go about marking out the coordinates for each of these areas.

View 6 Replies







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