ActionScript 2.0 :: Start External SWF When Movie Clip Gets To Y Position?

Mar 3, 2008

I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen....Here is what I got so far..

square_mc.onRelease = function()
{ square_mc._x = 30;
square_mc._y = 180;

[code]....

when square_mc get to the Y position of 180, run the external clip.

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Movement - Movie Clip Mc_main Is Not Always Going To Start In The Same Position

Sep 14, 2006

I just followed this tutorial and I did get how it all worked.. and i got my movie clip flying arround the stage. Then when i tried to apply it to a little project i'm working on, i couldn't get it working. I have a movie clip called mc_main and when i click a button I want it to move - using easing - to a new position on the stage. In the first frame of my timeline i have put this AS:

[Code]....

View 7 Replies

ActionScript 2.0 :: Move Clip To A Position From A Varying Start Point?

Apr 1, 2004

I'm trying to have a movie clip with 4 buttons that moves to the four corners of the stage.Depending on which button is clicked, the movie clip goes to that corner.he trouble I'm running into is determining the variable start points. If the end goal is the lower right corner, it needs to be able to move there from the upper left, the lower left and the upper right. So I need to set the starting position as a variable I assume, but can't get it working.

View 2 Replies

ActionScript 3.0 :: Duplicate A Movie Clip In Original Movie Clip Position?

Aug 30, 2011

I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one will just stay where it is on the screen.

However, I'm running into problems with the syntax.

Here is my current code:

[Code].....

View 14 Replies

ActionScript 3.0 :: Loading Movie Clip On Start Up?

Aug 20, 2011

Created a  text move clip that I have added Motion Tween, It works when I Play. But when I test Movie clip it does not  work. What is the action  script code to have it start when the it is loded in test.SWF?

View 6 Replies

Professional :: Movie Clip Start And Stop?

Sep 19, 2011

I am new to AS3 and am trying to work out how to stop a movie clip from playing on mouse click. At the moment I have created a movieclip which plays when the user clicks it, but I now want to be able to stop the movieclip if the user clicks on it again. At the moment I have the following code:
 
stop();bigTree_mc.addEventListener(MouseEvent.CLICK, onClickplayAnimation);
function onClickplayAnimation(event:MouseEvent):void {  bigTree_mc.play(); }
 
The tree animation plays fine, but i want to be able to stop it if the user clicks it again.

View 2 Replies

ActionScript 2.0 :: Movie Clip Start And Stop On Mouse Over?

Jul 30, 2004

I'm attempting to create a movie clip animation that plays a loop when you mouseover and when you mouse out off of the movie clip i want the loop to stop at that current frame and stay there until the next mouse over event which would then start playing the movieclip at "last" frame prior to the mouseout.

View 1 Replies

ActionScript 3.0 :: Flash Start At Center Of Movie Clip?

Feb 28, 2011

I have a movie clip container that contains 7 smaller movie clips, images converted to movie clips actually. This is a scrolling banner that can scroll left or right.

How do I start in the middle of this banner instead of the far left? That is, when the script first loads I want to be able to scroll left and right, not just right.

View 1 Replies

Flash :: Insert A Start Button On The First Frame Of A Movie Clip?

Sep 9, 2009

How do I insert a start button on the first frame of a movie clip that will then disappear after the movie starts playing?

View 2 Replies

Actionscript 3 :: Flash CS3 - Start Whole Stage / Movie Clip From Beginning

May 4, 2011

I have a flash CS project. I have one stage and some frames. How can I start all project from beginning using AS3? Or start all stage's content from beginning?

View 1 Replies

ActionScript 2.0 :: Start() Stop() Movie Clip When Press Button?

Apr 29, 2004

i'm trying to write the code for a flash animation which uses different movie clips and buttons.all the movie clips are in the same layer but i've written code to make all but one invisible when the animation loads.

dance._visible = false;
harmonica._visible = false;
violin._visible = false;

i've then got buttons which are supposed to make the movie clips visible, but then disapear again after the clip has played.i want to be able to press one button to have one clip start playing, but then i want to be able to press another button which stops that movie clip and starts a new one playing.this is what i came up with but it doesn't work

on (press) {
violin.stop();
harmonica.stop();[code]....

this script is from one of the buttons which is supposed to start the movieclip harmonica and stop violin playing.i've got the same code for violin but the other way round.when i press a button it works fine and plays the clip which then disapears (leaving a default clip which plays all the time visible) but pressing buttons to interrupt the clip and play another one don't work properly. the movie clips don't stop and reset when they are interupted. they kind of pause instead. when i go to play a clip that has previously been interrupted it starts from where it has been paused and not from the beginning

View 4 Replies

IDE :: Add A Movie Clip To A Button Position?

Dec 2, 2009

how do i add a movie clip to a button position? i want a button that, when clicked, slides out to a certain position and stop. kinda like a drawer in a desk.

View 1 Replies

Actionscript 3 :: Start Video And Play Movie Clip At The Same Time In Flash?

Sep 27, 2011

Is it possible (in AS2 or AS3) to have a button that starts a video as well as an MC at the same time? The idea being that the video will play alongside a movieclip that contains animated quotes from the dialog of the video, so syncing would be critical to.

View 1 Replies

ActionScript 2.0 :: Get The Position Of A Movie Clip, On A Particular Frame Of A MC?

Jun 12, 2010

I am trying to get the position of a movie clip called "Shooter", returned to a variable called spitballYpos.

The movie clip is sitting on frame 6 (labelled "Shooting") of a movie clip called PDFstanding.

The position returns perfectly if I place the .shooter MC on the first frame of PDFstanding, but on frame 6 the variable result just returns "undefined".

What have I missed? If I need to reference the particular frame the 'shooter' movie clip is on, then what is the correct syntax?

Here's my code...

Actionscript Code:
spitballYpos = _root.PDFstanding.shooter._y;

View 1 Replies

Flash :: How To Position Empty Movie Clip

Jan 20, 2011

I have two images pulling though an empty movie clip, using the actionscript below. I can't seem to figure out how to position both of them, could anybody shed some light on this? I'm using AS3.

[Code]....

View 1 Replies

ActionScript 2.0 :: Display A Movie Clip's Position?

May 6, 2005

actionscript and was trying to display a movie clip's x and y positions in dynamic textboxes. I can make them display the mouse's x and y positions but need to get it to say the movie clip's

View 2 Replies

Actionscript 3.0 :: Change A Movie Clip Position?

Aug 24, 2009

I am creating a flash presentation for school. I am unable to solve this problem, that keeps on pestering me.The problem is:I am trying to create a touch screen calibration movie clip. The only problem i keep running into is, when i click the calibration touch screen cross, what is the script that allows the change in position of the cross after it has been clicked on?Example:The original cross is orientated on the top left of the screen, after it has been clicked i need it to move to the top right of the screen, then clicked again - bottom right, and again bottom left and finally clicked again to be displayed in the centre

View 1 Replies

ActionScript 2.0 :: Add X And Y Position For Empty Movie Clip?

Mar 27, 2004

I created an empty movieclip with[code]...

Where in the script can I add the x and y properties for that empty movieclip?

View 3 Replies

ActionScript 2.0 :: [FMX] Locking A Movie Clip's Position?

Oct 20, 2004

I'm an ActionScript beginner, by the way.

I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?

View 1 Replies

ActionScript 2.0 :: Movie Clip Position Testing?

Dec 16, 2008

Is there a way to test the _y of all movie clips and set a function that if there is a movie clip at _y = 75 that it is 'topMovie' and if another clip is at (topMovie + topMovie._height) THAT movie will be 'secondMovie' and so on ad infinitum?

View 2 Replies

ActionScript 3.0 :: How To Test For Movie Clip Position

Nov 24, 2009

I need to test for the x position of a movie clip and if its in place a do something otherwise if its in position b do something else. Can you tell me how to test for this?

View 2 Replies

ActionScript 2.0 :: Use A Blank Movie Clip For The Position?

Aug 25, 2010

how would i go about using a draw code(Code that allows users to draw within the flash) and restricting it to a certain size and location on the movie? for instance a 75x75 box located at xPos=200 and yPos = 150?

Like would I have to use a blank movie clip for the position? then make an invisible box within it to restrict drawing area?

View 1 Replies

ActionScript 2.0 :: [FMX] X And Y Position For Empty Movie Clip?

Mar 27, 2004

I created an empty movieclip with:Code:_root.createEmptyMovieClip("container", 1);Where in the script can I add the x and y properties for that empty movieclip?

View 3 Replies

ActionScript 2.0 :: _x And _y Position - Stop The Movie Clip

Jul 8, 2004

i have this

onClipEvent(enterFrame){
speed=5;
this._x+=2;
}

i wanna know how do i stop the movie clip in a place?

View 1 Replies

ActionScript 2.0 :: [FMX] Locking A Movie Clip's Position

Oct 20, 2004

I have a simple question, but for the life of me I can't figure it out. I'm an ActionScript beginner, by the way. I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?

View 1 Replies

ActionScript 3.0 :: Movie Clip Should Pop Back To Its Original X And Y Position?

Feb 2, 2009

I made two movie clips that follows the mouse but I want to put constraints on them, they should follow the mouse until the mouse reaches a certain distance and then the movie clip should pop back to its original x and y position.

Code:
private function init():void
{
addChild(backgrnd);

[code]....

View 1 Replies

ActionScript 2.0 :: Stage Position While Inside A Movie Clip?

Jul 3, 2009

Is there a way to position something INSIDE of a movie clip, based on X and Y values of the root stage?

Basically the X and Y of the container movie clip is at Stage.width/2; but I want one specific movie clip inside to stay permanently at 200X and 200Y on the MAIN STAGE. I can't actually move it to the root timeline though because it is using actionscript inside of the container.

View 1 Replies

ActionScript 2.0 :: Preserving Movie Clip Playhead Position

Apr 29, 2010

I need to jump the movie clip position back and forth between two positions on the stage--without tweening--via a mouse click on a button. I have no problem doing this by creating a 2-keyframe timeline, and re-positioning the movie clip for each frame. To move back and forth from frame 1 to 2 and back to 1 on the main timeline, I wrote a gotoAndStop action for the button, (labeled flipflop.) In frame 1 of the main timeline:

flipflop.onMouseDown = function() {
gotoAndStop(2);
};

In frame 2 of the main timeline:

flipflop.onMouseDown = function() {
gotoAndStop(1);
};

The problem is, when the movie clip jumps from position A to position B on the stage, the movie clip resets to frame 1. I need the movie clip to hold its current frame as it changes position from frame 1 to 2 and back to 1. How do I do this, and would the method be the same if the single button controlled the movement of multiple movie clips?

View 1 Replies

ActionScript 3.0 :: Put Movie Clip Object In Diagonal Position?

Sep 20, 2010

i want to put the movieclip in diagonal object and i have the sample image in attached thumbnails:

the image has one pig in diagonal position but, i want more than one pig in diagonal position and i want to create that using actionscript3.

View 2 Replies

ActionScript 2.0 :: OnClipEvent - Get Movie Clip To Ease Into Position

Feb 27, 2005

I'm trying to get my movie clip to ease into position with the below AS and then delete the actions, but it's not working. What am I doing wrong?

[Code]...

View 4 Replies







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