ActionScript 3.0 :: Flash Gradually Moving Y Position Of MovieClip

Dec 3, 2010

I'm totally new to ActionScript and don't really know what I'm doing yet! I have an assignment due Thursday and one of the things I'm currently stuck on is: I'm trying to get the water in a beach scene to gradually move down the screen until it fills the screen (and then the game will be over). At the moment I'm trying to do this using a timer event, is this right?

View 4 Replies


Similar Posts:


Actionscript 3 :: Flash: Moving A Movieclip From A Container To Another While Keeping Same Position And Rotation

Feb 22, 2012

I have 2 container MovieClips (mc1, mc2), each of them has a separate x,y, rotation. I want to take a child from mc1 and addChild() it to mc2 while keeping the same x, y, and rotation on the screen so you see the added child mc as if it didnt change position or rotation, just moved to the other MC.

View 3 Replies

ActionScript 3.0 :: Position Mc's Along X Gradually

Sep 8, 2009

I don't know which is the best way to explain this, but I am making an accordion-style xml menu and I would like to position my items from left to right so that their "x" and "alpha" property increase gradually, as if it was calculated from Strong.easeIn, if you know what i mean.How would one go about this in actionscript?

View 2 Replies

ActionScript 2.0 :: Moving MovieClip To Certain Y Position

Jun 19, 2005

I use the following function to move a mc to a certain y position. When that y position is reached the mc goes back to it's original position:

Code:
function moveInOut (clip, yPos, speed){
var yStart = clip._y ;
var yTarget = yPos;
clip.onEnterFrame = function (){
var dY= yTarget - this._y;
[Code] .....

But I don't want the mc going back to it's original position but to a completely different y position to create kind of a bounce effectHow to accomplish that?

View 14 Replies

Actionscript 3 :: Gradually Limit Rotation Of An Object Influenced By Y Position Of Mouse

Nov 23, 2009

I have created a flash app in which there is a circle with circles plotted along it's circumference, it is rotated when the mouse is moved up or down. The rotation is drawn directly from the y position of the mouse pointer. What I would like to do is grade the movement some how so that the further down the mouse pointer goes the less impact on rotation the movement has.

My current code is like this:

myCircle.rotationZ = e.localY;

Is there some form of math formula I could use which would reduce the amount of rotation the greater the y position of the mouse position?

View 4 Replies

ActionScript 3.0 :: Moving Playhead Inside MovieClip Based On Mouse Position

Dec 16, 2009

I am having difficulty with getting the playhead to move inside a movieclip based on the horizontal or vertical position of the mouse on the screen. I can get the horizontal motion to move the playhead, but I can't get the vertical movement to do the same. I have attached the document class .as file for it.

View 2 Replies

ActionScript 2.0 :: Gradually Attaching MovieClip From Library

Jan 25, 2006

I just need to gradually attach mc one by one into stage then get bounce...What I have so far is I just attach the all the total mc simultaneously..so how's to attach one by one then get bounce...

Here's the code...
springSpeed = .9;
springDamp = .6;
xscale = 120;
yscale = 120;
function bounce() {
[Code] .....

View 1 Replies

Flash Object Keeps Moving Position?

Jun 3, 2010

I came across a problem where my flash timer keeps changing position as the browser window is resized or if the user scrolls down the page the timer will move with it?It also changes position on different monitor screens.Is there an easy way without too much code to position it at a certain position on my page :[URL]As you can see its too low and should be in line with 'Comming soon'Im also using Dreamweaver if that makes a difference.

View 2 Replies

Flash :: Gradually Enlarging Text?

Apr 9, 2010

I want to create a Flash or animated video that starts with a red dot on a black background. Gradually the dot increases in size and is actually text which says something such as "Buy American". How can this be done?

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 3.0 :: Moving 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..

PHP Code:
onClipEvent (mouseDown) {
this._x = _root._xmouse;

[code].....

View 5 Replies

ActionScript 2.0 :: Moving A MC To A Certain Position Then Back Again?

Jan 26, 2006

I want to make a movie clip move left continuously and smoothly on rollover then on rollout i want it to be able to move it back to its original position with an ease. The problem is getting it to remember the position it finished in on rollover. How can i do it with actionscript?

I want to do it all with actionscript because I did it with frame labels and tweens first of all but its not smooth enough, it jumps in certain points because it cant remember how far left it moved on the rollover.

View 4 Replies

ActionScript 2.0 :: Child Mc Moving It's Position?

Dec 18, 2011

I can have the parent move the position of the child by adjusting its _x and/or _y. The child can move itself along the x axis by using _parent[childname]._x = but I can't get it to move along the y axis using _parent[childname]._y = , it just doesn't move.

View 13 Replies

ActionScript 3.0 :: Moving The Player To The Mouse Position

Sep 29, 2010

I have a question about moving and animated player symbol to the mouse location on a MouseDown event. Right now I have it set up to do an easing so that I can control how fast the player moves to the location. Problem is that it is done with easing. I don' t like the easing because the velocity of starts really fast and then slows down before it reaches the mouseX and mouseY location. I would like just a plain ol' stroll from the player location to the mouse location on the MouseDown event. Here is my code:

[Code]....

View 8 Replies

ActionScript 3.0 :: Moving Image Relative To Position?

Jan 6, 2010

I had coded a different file similar to this and had a movieclip move along the x axis relative to where the mouse position is.

The idea is the movie clip is a panoramic photograph (eg. 6000x900) and it would move dependant on where the mouse it. ie. if mouse is in the centre it will be stationary and when it moves left and right the image will move accordingly (faster when further away from the centre).

The code below works moving the movieclip's x position but when I try and do it with TweenLite (using the quotations for relative positioning) the movieclip snaps immediately to -107374182.4

ActionScript Code:
import com.greensock.easing.*
import com.greensock.*

[Code]....

There is obviously something fundamental I am missing but cant see it at the minute. I had this working previously but then tried to progress it and write my own class for the panning (that now turns out I do not have time for) but I saved over the code and cant not go back.

I have put together an example zip with a .fla and the greensock tweening platform.

View 2 Replies

ActionScript 2.0 :: Moving To Position In Dynamic Text?

Nov 28, 2005

I am working with a block of dynamic text that is being loaded from an external text file. Imagine it looks like this:

Image 1:
Some text here.

Image 2:
Some text here.

Image 3:
Some text here.

You get the idea. This text is in a scrolling text box. What I'd like to happen is when the function gotoImage2() is executed, the text scrolls the down to Image 2 so that it is at the top of the text box. Make sense? Seems like a variable needs to be embedded in the text file, but I have no idea how to do the rest. I also can't get any of my custom scollers to work. They all embed the text in a masked mc. Is this the only way to scroll dynamic text? Any good pointers to smooth text scroller tutorials I'm using Studio 8.

View 1 Replies

ActionScript 2.0 :: Moving ACTUAL Mouse Position?

Dec 26, 2005

Is there any way in flash in which i can control the position of the mouse? i need to be able to reset the mouse to a predefined position, but when i do _xmouse=value nothing happens and if i am using mouse._hide and have a movieclip instead of the mouse and do mc._x=value the movie clip goes to my position but as soon as i move the mouse it goes back to the previous position... i need a way to control the ACTUAL "ms windows" position of the mouse ... maybe with Javascript?

View 10 Replies

ActionScript 2.0 :: Scrollbar Moving The Position Of An Image?

Apr 8, 2006

I have a horizontal scrollbar. I want this scrollbar to move a movie clip left and right on the screen.I cannot figure out what I am doing. In one example I'm looking at, it has the script on the button of the slider:

onClipEvent(mouseMove){
_root.vPosition = _root.SliderMC.ButtonSliderMC._y * 5 / 6;
}

I can't figure out the math for my scrollbar. How do I find the fraction that is in this part of the script? The numbers are not matching up for me. I also can't get my slider to go left to right. It keeps going down. And my image that is suppose to be scrolling the with slider is not even moving.

View 3 Replies

ActionScript 2.0 :: Moving MC According To Horizontal - Mouse Position

Jun 9, 2006

I'm creating a strip of 6 characters horizontally - 3 will fit on the screen at any one time, with the option to flick the mose left or right to scroll and see the rest. I'm after a tute that covers moving the mouse left and right, and shifting a movie clip in the opposite direction (only along the x axis), with easing, and depending how far from the center of the screen the cursor is.

View 3 Replies

ActionScript 2.0 :: Moving Scoll Position In ListBox

Oct 23, 2006

I want to be able to move the list names of the listbox up and down can this be done through actionscript.or is there any way to bring the selected item to the top

View 1 Replies

ActionScript 2.0 :: Moving X Position From Start To End State

Sep 12, 2007

I have this script, that zooms and fades the movieclip but I also need to shift the position slightly from the start state to the end state. For example var startX = 60 var endX = 70 so when the zoom start it starts at x = 60 and slowly moves as it zooms out to x = 70.

View 1 Replies

IDE :: Change Mc Position When Mouse Stops Moving?

Jun 23, 2009

I've got this: [URL]

and need to add a function which changes position of those three mc's(myMC, myKulicka,myStin) to the center whenever the MouseMove stops. Thx for any advice

Used AS:

_root.onEnterFrame=function(){
if (startMoving==true){
myMC._rotation=_xmouse;

[Code].....

View 1 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

ActionScript 3.0 :: Setting A Position Of Movieclip Called Red X And Y Position?

Jul 3, 2009

setting a position of movieclip called red x and y position within a movieclip called background

Code:
background.redsquare.x = 300;
background.redsquare.y = 300;

comes up with TypeError: Error #1010: A term is undefined and has no properties.

setting a position of movieclip called red x and y position withen a movieclip called background

Code:
redsquare.x = 300;
redsquare.y = 300;

This works fine but how can that be when surely you must access the red withen the background rather then just accessing red?

View 3 Replies

Flash :: Visual Bug When Moving A MovieClip?

Jan 30, 2012

In my attempt to create a simple Pong-like game, I've encountered a very strange and at times severe visual bug.When I set the ball (A Flash CS 5.5 library MovieClip) in motion moving around the screen at a rather fast speed, I've noticed that sometimes the edges of the ball would be cut-off for a short moment in the direction it is moving.

When it happens, it almost seems like the position of the ball MovieClip is slightly ahead of its own border and thus the part that is outside the border fails to get drawn.

Here's a picture that illustrates how this looks - at least for me:

You can also view the .swf file online here: [URL]

Some technical data:

I've been unsuccessful in capturing the with a screenshot no matter how much I tried. Sometimes I would open the .swf and the bug would be almost non-existent while at other times it was very blatant. I'm using an EnterFrame event function to increment / decrement the x and y position of the MovieClip. I have never encountered any such problem in any Flash app, in this machine or others. Truncating / rounding the x and y values of the MovieClip didn't help. Neither did setting cacheAsBitmap to true.

View 1 Replies

ActionScript 2.0 :: Moving Menu - Change Scale And Position

Mar 21, 2004

The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But Im having problems with the X and y coordinates and scales of the MC and when I click on the option, the MC gets smaller and then bigger to the size I want. Its suposed change scale and position but its not working like it is suposed to work. Im not sure either if I�m setting the Mc on the initial x and y coordinates.

View 4 Replies

ActionScript 2.0 :: Letters Moving Effect With Mouse Position

Sep 9, 2005

How can we simulate this effect? (Letters moving with mouse position?)

View 4 Replies

ActionScript 2.0 :: Moving Flash Content Into MovieClip?

Feb 15, 2010

Im trying to get a Flash Guestbook to work, but i would like to place it somewhere else, than on the main stage.

But all the layers, and actions are on the main stage of the GuestBook Fla.

How do i move it all into a MovieClip, so i can place the Guestbook anywhere i want in my Flash Site?

[URL]

View 6 Replies

ActionScript 3.0 :: Set That Movieclip X And Position According To Stage Position

Nov 3, 2009

lets say i have a sprite on the stage and one movieclip inside it. now i want to tween or just set that movieclip x and/or y position according to stage position. so for example i want to set mc.y = - 100; (by which i mean -100 to stage, not sprite which mc is in.)

View 2 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







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