ActionScript 2.0 :: Move To X And Y Position And Stop?

Oct 4, 2008

I'm relatively new to actionscript x and y positioning.. and i was wondering how i would go about: after clicking a button, moving to a specific x and y axis and stopping?I am unsure on the coding that i would use..

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Move Object To Position And Stop?

May 21, 2005

this should be pretty simple for most, but I would like an explanation more than just a quick code fix. I put all the script together for this object, here is the fla. What I want to do is move it up to the y position as it does, but I need the object to move faster and stop there. Since I have given most of script in the main movie, I don't know how to write the script for the button release. All I can get it to do is crawl up with targety=100; but I still have the problem with the mouse follow once my button is pressed.

View 8 Replies

ActionScript 3.0 :: Move The Vertical ScrollBar Position Of The ScrollPane To Top/initial Position

Jun 30, 2009

I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?

View 1 Replies

ActionScript 2.0 :: Move Punto_mc From Current Position To Random Position After Release?

Aug 29, 2009

how to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?

View 2 Replies

ActionScript 3.0 :: Make Buttons That On Rollover Move To Left - On Rollout Move Back To Their Initial Position

Dec 15, 2009

well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.

[Code]...

View 2 Replies

ActionScript 3.0 :: Movieclip To Move To The Position Of Each Of Buttons From Any Position?

May 13, 2010

I'm hoping someone can solve this headache. Basically, I want a movieclip to move to the position of each of my buttons from any position along my x axis. Therefore, the movieclip needs to 'flip' to face the way it is traveling.At the moment I have the movieclip moving to the mouse x axis when I ROLLOVER the button and stop following the mouse when I ROLLOUT but the code won't flip the movieclip so I must have something wrong...

btn.addEventListener(MouseEvent.ROLL_OVER,followCa t);
btn.addEventListener(MouseEvent.ROLL_OUT,stopCat);
btn02.addEventListener(MouseEvent.ROLL_OVER,follow Cat);
btn02.addEventListener(MouseEvent.ROLL_OUT,stopCat );

[code]....

View 0 Replies

IDE :: Way To Get 'MovieClip' To Move From Position A In Keyframe 1 To Position B

Feb 3, 2010

What i'd like to do is have a menu/site map that adjusts when you click on a certain icon. For example, I have a AS3.0 flash file with, say, 5 keyframes with 5 buttons that are in different positions on each key frame. The buttons are set to gotoAndPlay the various keyframes. I can set up a tween that links frame 1 to 2, 2 to 3 etc. but what I would like is a tween from, say, 1 to 3, then 3 to 5, then 5 to 1 - basically in a random order rather than sequentially through the key frames. I could set each of these tweens up individually but the site is for a portfolio that I would like to keep adding to and to do this individually would mean an ever increasing amount of tweens.Basically, is there a way to get a 'MovieClip' to move from Position A in keyframe 1 to Position B in another keyframe without a set of tween frames? I'm sure this is simpler than I am making it sound but I don't seem to be able to work it out.

View 1 Replies

ActionScript 3.0 :: Fluid Layout Stop Changing Resize Position When Movieclip Is At Certain Position?

Nov 19, 2009

I added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.

I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:

Code:
// Add the symbols to stage
var Menu_mc = new Menu_MC();
addChild(Menu_mc);

[code]...

But it seems futile.

View 6 Replies

ActionScript 2.0 :: Move A Box From Position X To Another Position?

Oct 4, 2003

find the basic script to move a box from position x to another position by clicking on a button and easing the movement when it stops.

View 7 Replies

ActionScript 3.0 :: Enemy Animation Sequence - Rotate + Move, Then Stop Then Shoot Then Rotate Back And Move Off Screen

Aug 10, 2009

I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...

View 1 Replies

ActionScript 2.0 :: Move Mc To Position X And Y Only

Jul 27, 2010

i am trying to work out how i can make a movieclip move around the stage to set/predefined positions on the stage when a button/s are clicked - an move in a horizontal or vertical direction only.i worked out how to make an mc move around to set positions in any direction (horizontal/vertical/45 degrees etc...) but now i need to refine it to horizontal and vertical only.

View 4 Replies

IDE :: CS3 - Possible To Move The Mouse To A Certain Position?

Jan 27, 2009

I have a panning background with buttons in it. It would be nice if when the button is pressed i could move the position of the mouse so that the movie pans and catches up with the new position. Is this possible?

View 4 Replies

ActionScript 2.0 :: Move Object To A Certain Position?

Feb 3, 2009

The following code works fine when mouse is pressed at any position on the screen ,object moves that position...but what if I want the object move that position at a certain speed..say+10 using setInterval...I mean I want my object move slowly to any position I click on the screen..[code]...

View 4 Replies

Thumbnail(S) Move On Mouse Position?

Jun 10, 2010

i want to make my thumbnails move opposite of where the mouse is.so for example, if i move the mouse up the thumbnail moves down, if i move the mouse left, the thumbnail goes right etc...im trying to google this but i dont even know what its called so im not getting good results, or rather TOO many varied results lol. i was told on another forum that its called parallax menu or something like that but when i research it, i get millions of pages refering to this type of effect (they have other that move vert/horiz too)

View 5 Replies

ActionScript 1/2 :: Move Cursor Position In TextField?

Jan 17, 2007

I am creating a keyboard in flash. i want to move cursor position in TextField to insert new character

View 4 Replies

ActionScript 3.0 :: Auto-move Position Then Repeat?

Dec 13, 2010

I'm trying to make something similar to a news slider where I get content from a TXT file then loop a news ticker. As of right now I have the content working, as well as the automatically moving text. What i'm trying to do now is repeat the text as soon as it goes off screen, so it will be constantly scrolling. Here's what I have so far...
 
content.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_2);
function fl_AnimateHorizontally_2(event:Event)
{
content.x -= 10;
}

View 5 Replies

ActionScript 3.0 :: Move The Screen Around From Its Original Position?

Jun 23, 2009

I have implemented a pan and zoom function on my code.Whern I zoom in all components look perfectly rescaled, all shapes and lines.

However my text becomes pixelated and isn't redrawn. Is there a method to make it appear smooth and readable even when I zoom in or move the screen around from its original position?

View 1 Replies

ActionScript 2.0 :: Move Stage With Mouse Position?

May 27, 2010

I can't get his to work like it works on this site...http:[url].....

View 9 Replies

ActionScript 2.0 :: Move Stage With Mouse Position

Jun 6, 2010

I want to move the bg with mouse movement and use this code.

Code:
leftMouse = mask_mc._x;
rightMouse = mask_mc._x + mask_mc._width;
topMouse = mask_mc._y;

[Code].....

There are two movie clip one is mc and another one is mask_mc. I made the Registration point for both the movie clips to the left and tested locally and it seems OK when I am in the left edge, top edge or any edge the background is not visible and after that I uploaded to look how it goes. But I can see the background when the mouse is at the edges. How can i adjust the same?

My mask has a size of 1024 x 768 and the mc has a size of 1250 x 940.

View 8 Replies

ActionScript 3.0 :: Move A Mc Depending The Position Of The Cursor?

Sep 14, 2011

I'm trying to make a movie clip move left or right depending if you move the cursor to the right or left on th screen. The clip is long and it have a lot of thumbnails and when it reaches the end of the stage has to stop. I have achieved this, but when the mc comes to the side of the stage it is getting slower and slower and I need it to move with a constant speed.

[Code]...

View 6 Replies

ActionScript 2.0 :: Scale Too Say 150% And Move To A Different X Y Position And Zoom

Apr 19, 2004

how i could create a function to do the following:- I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.

View 4 Replies

ActionScript 2.0 :: Array With Positions, Move To Position ?

Jan 24, 2006

i have this array with positions:

[Code]...

let each movieclip go to it's original position out of the array?

View 1 Replies

ActionScript 3.0 :: Item Move On Mouse Position?

Jun 2, 2010

i want to make my thumbnails move opposite of where the mouse is. so for example, if i move the mouse up the thumbnail moves down, if i move the mouse left, the thumbnail goes right etc...

im trying to google this but i dont even know what its called so im not getting good results, or rather TOO many varied results lol.

what this function is called?

View 14 Replies

ActionScript 2.0 :: Create Button To Smoothly Move Mc From One Position To Another Using It?

Jul 27, 2009

I'm trying to find somewhere that will show me how to create a button that will smoothly move an mc from one position to another using AS

View 2 Replies

ActionScript 2.0 :: Load Movie When Move To Specific Position

Nov 15, 2009

I'm working on this scroll from tweener [URL]. I've made a button that lets me reach the position I want on the scroll
Code:
this.bout.onRelease = function() {
this._parent.gotoPosition(4);
};

Now I'd like to load a movie when I move to this or that position. Maybe with if?
Code:
this.bout.onRelease = function() {
this._parent.gotoPosition(4);
if (_root.Position=4) {
loadMovieNum("test.swf", 1);
}};
but this doesn't work (it loads the movie alright but not because of the position).

View 1 Replies

ActionScript 3.0 :: Move MovieClip Position When Button Clicked

May 22, 2010

I have a simple arrangement where a movieclip moves to a new x y position when a button is clicked. I want the movieclip to slowly move or 'glide' there instead of jumping straight to the new position.

Heres the code..
btn_up.addEventListener(MouseEvent.CLICK, moveUp) ;
function moveUp(event:MouseEvent):void {{
allcontent.x += 200;
allcontent.y += 200;
}}

View 1 Replies

ActionScript 2.0 :: Script That Makes A Movieclip Move To A Certain X Position?

Nov 9, 2005

I'm looking for a script that makes a movieclip move to a certain x position (_x = -563) and when it reach that x position it should jump back to its original position (_x = 0 and start moving again to _x = -563

View 2 Replies

ActionScript 3.0 :: Flash Move MC Depending On Position Of Cursor

Sep 14, 2011

I'm trying to make a movie clip move left or right depending if you move the cursor to the right or left on the screen. The clip is long and it have a lot of thumbnails and when it reaches the end of the stage has to stop. I have achieved this, but when the mc comes to the side of the stage it is getting slower and slower and I need it to move with a constant speed.

This is the code:
var x_down:Number = 2900;
var end:Number = -((x_down)/.8 + 50);
var key:Number;
var c_key:Number;
var start1: Tween = new Tween( padre_mc, "x", Regular.easeInOut, padre_mc.x, (padre_mc.x + 280), 1, true);
[Code] .....

View 1 Replies

Actionscript 3 :: Flex: Move One Object To Specific Position With Animation?

Jul 14, 2011

how to make one object move to a specific point with animation in Actionscript ( not MXML code ) ? ( Flex 4.5 )

View 4 Replies

Flex :: Move Coordinate Position Of Flash Download Progress Bar?

Oct 12, 2011

I am extending the Flash DownloadProgressBar component for use as a preloader with Flex. Is it possible to override the x and y coordinate position of the progress bar? (the default is to center the bar)

View 1 Replies







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