Move A Distance Of 2178px Upwards On Stage?
Jun 8, 2009
I have a large image (w: 1071px, h: 2222px) which I need to move a distance of 2178px upwards on my stage and the quality of the tween is terrible.
I've ticked the box in the image properties to allow smoothing and I've also reduced the image quality to 50% but it still lags. I've tried chopping the image up into seperate pieces so that when some of the image has gone beyond the stage area and is no longer visible that part of the image is removed and flash no longer has to move it. I've used timeline and actionscript tweens. I've tried exporting a quicktime movie to see if the results would be any better but they were pretty much the same. I am pulling my hair out here!!
View 2 Replies
Similar Posts:
May 18, 2011
Here is my code:
function createEnemy(event:TimerEvent):void {
var enemyAppear = new MovieClip;
enemyAppear = new Enemy();
enemyAppear.x = Math.random()*stage.stageWidth;
enemyAppear.y = 285;
[Code] .....
What I am trying to do is spawn a enemy to stage and when it appears on the stage I would like it to move across the stage a certain distance.
Visual Example:
O = enemy, X = original position, Y = new position
O (Spawns @ Location X) X ---------------------------------------------------------> Y
( Moved from location X to Location Y)
View 3 Replies
Dec 20, 2003
Ive got an object called "heart" and I have another object called "k". The heart follows the mouse and when the heart hits the k I want the k to move upwards by 10 pixels. Can anyone give me the AS on how to do this?
View 1 Replies
Nov 22, 2011
I am working on a project where I have 5 equal sized panels inside of a MC that I am using the following code on the loading of MC:
onClipEvent (load) {
targetx = 650.0;
delay = 8;
}
[Code]...
What I would like to do is ALSO move the panels with left and right arrows that act independently of navigation buttons. So that if you were on panel 2 you could advance to panel 3 or back to 1. Can I assign AS to the arrows to move the MC a specified distance left or right?
View 2 Replies
Nov 23, 2011
I am working on a project where I have 5 equal sized panels inside of a MC that uses the following code to load the MC: ( it slides into place in the viewer window)
onClipEvent (load) {
targetx = 650.0;
delay = 8;
[Code].....
What I would like to do is ALSO move the panels with left and right arrows that act independently of navigation buttons. So that if you were on panel 2 you could advance to panel 3 or back to 1. Can I assign AS to the arrows to move the MC a specified distance left or right?
View 8 Replies
Feb 23, 2011
I'm trying to figure out how to make an object move vertically or horizontally a set distance once the object has been mouse clicked and then stop. Sounds relatively simple, but I'm pretty clueless at it.
View 2 Replies
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
Jun 17, 2005
I am working on the project where everything is based on the distance from the center of the stage. First I made this fla where flash outputs the x and y distance from the center. First problem is that I want to output distance only in positive numbers.
View 1 Replies
Oct 16, 2010
I am posting my code that attaches the movieclips on stage
[Code]...
i was hoping that when the newMc expands, all other mc would keep the same distance between each other as at initialisation. I not able to figure how to do it. maybe even an earlier post or llink where similar query was explained.
View 1 Replies
Apr 26, 2005
i am working on a game called "virus". you click somewhere on the screen and the virus goes to where you click. you have to dodge random moving white blood cells, and if you hit them you lose. everything is working. except for one thing. scoring.
i have made a movieclip with a dynamic textbox in (score), and in the movie clip there is a section where the number in the score textbox goes up really quickly, a section where is goes up medium, and a section where it goes up slowly. i want to make it so that when you get closer to the center of the movie, for the score to go up quicly, and slower as you get further out. i have tried hittest with movie clips in the centre of the stage, but it doesnt seem to work.
View 3 Replies
Dec 11, 2006
I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.
View 3 Replies
Apr 28, 2011
In AS3 I am trying to get the distance between 2 3D objects by using distance method.
if(Vector3D.distance(model.position,model2.position) < 100)
{
// do something
[Code]....
>>You can use it directly as a method of the Vector3D class to get the Euclidean distance between two three-dimensional points.
Which point does this method pick? Is it the closest point to the other object ?
I am just thinking of how much time this would take in testing objects with large poly count.
View 1 Replies
Jul 11, 2011
How do you make a movieclip move horizontally from the start of the stage to 3/4 of the stage. Stage size is 700 px by 600 px i want just one row in the middle of the stage. i want that movieclip to disappear right after it reach the end of the 3/4 mark.
View 1 Replies
Jul 30, 2011
figure out why the movie i just made is off stage. I just I don't want to start from scratch or move every object that is off stage onto stage. What did i do to get it here to begin with???
View 1 Replies
May 26, 2005
I've done the tutorial on falling snow but what I really want it to do is fall upwards... like bubbles on water.what part of the code I need to change...
View 6 Replies
Feb 2, 2012
With actionscript2, is there anyway to expand make a text field expand upwards if more text was added then the current size could hold, rather than downwards? Data is loaded from XML.
View 2 Replies
Feb 18, 2009
Is there any way to detect when the mouse has moved upwards or downwards?
I currently have a mouse listener with an onMouseMove function that uses the _ymouse to detect any movement within a restricted distance.
But I want the mouse to detect up and down movements in any distance.
View 2 Replies
Oct 15, 2005
Is there any code to force a V2 combobox to open updwards, rather than the default downwards?
View 1 Replies
Nov 30, 2009
Im trying to make a character get propelled upwards when he steps inside a bubblejet, but as i am very new to actionscript i have no idea where to start. heres what im trying to do:I hope that makes sense! im sure it will be a simple thing to do just i really am clueless!
View 2 Replies
Sep 21, 2011
Im trying to make a character get propelled upwards when he steps inside a bubblejet.
View 7 Replies
May 23, 2011
I'm making a platformer, and I'm trying to make a spring to launch the character upwards, and im using this script:
Code:
_root.player._y -=300
The code works, but it just teleports the character 300 pixels upwards, but I need a fluid motion.
View 2 Replies
Feb 8, 2009
I am making a pong game and am having some problems with the boundaries. The ball bounces off just fine but if i hit it to close to the boundary, the ball will get stuck in the wall and slowly travel upwards. Bouncing back and forth. It happens on both sides. Also How do you set a key press movement to stop. I want to be able to stop at the boundary if i hold the left key down but it would stop the game entirely. I have it set now so that the controls reverse every time a boundary is hit. My big problem is the boundary though. I will eventually figure out the paddle movement on my own. Another problem I am having is getting my score value to increment correctly. It always reads as a NaN until I score. When I do it goes 1, 11, 111, and so forth. I have the variable set as number values but the dynamic box, I think, is still reading them as strings
View 1 Replies
May 28, 2009
If there a quick way code wise of getting a dynamic textfield to count upwards to a specific number?
i.e. I have a global variable named: _global.num and this equals 30 and I want it to count from 0 to 30 quite quickly.
View 1 Replies
Aug 30, 2006
It's been SOOO long since I've done this! Now I have a client that wants it, and I cannot remember how to do it! You guys are gonna laugh at this.
I need a MC to move across the stage using AS, not tweens. Just from left to right. Not using a button or anything, just play the movie and have a MC go from left to right using AS.
View 1 Replies
Aug 5, 2011
How would I move a movie clip from a (non-specified) point, to a designated destination (in coordinates)? For example, move a movie clip named "Guy" to coordinates X=100, Y=100.
View 4 Replies
Dec 18, 2011
how to move the stage within the actual .fla file by modifying this.x and this.y variables in the layer 1 actionscript.
But within the document class- public class Starlight extends MovieClip, it does not seem to work no matter what i try and my research lead me to this use code instead:
for( i = 0; i < stage.numChildren; i ++){
stage.getChildAt(i).x -= player.speedx * player.bounceSpeed;
stage.getChildAt(i).y -= player.speedy * player.bounceSpeed;
}
I do realize that its hacky and slower as compared to actually moving the stage itself. And i'm not sure what's going to happen if another object that moves comes into the stage because technically this code is unnaturally altering the x,y of everything in the stage.
[Code]....
View 1 Replies
Feb 20, 2009
I have a menu with three buttons and a head "scene" where i present my information. When I push a button in the menu three small pictures are shown on my "scene". Each picture should show a bigger version of the picture and here is the problem. The first picture is shown and it is possible to make it disappear with removeChild. But how do show the other two pictures?! I have tried to do the same as i have done with this picture but with no success.
function visaGolf(e:MouseEvent){
var headBtn:MovieClip = new btn();
headBtn.name = "headBtn";[code]....
View 0 Replies
Aug 24, 2009
Any way of moving everything off the stage taht is of two types of movie clip.. see I have a couple of entities on my stage, one is a menu which has a series of buttons each of which have a number of event listeners etc. Then I also have two types of movie clip, and at any one time I will never know how many of each I will have.. Is there a way of calling all movie clips on the stage and setting their coordinates? But only movie clips of a certain type?
View 8 Replies
Dec 18, 2011
I know how to move the stage within the actual .fla file by modifying this.x and this.y variables in the layer 1 actionscript.But within the document class- public class Starlight extends MovieClip, it does not seem to work no matter what i try and my research lead me to this use code instead:
ActionScript Code:
for( i = 0; i < stage.numChildren; i ++){
stage.getChildAt(i).x -= player.speedx * player.bounceSpeed;
stage.getChildAt(i).y -= player.speedy * player.bounceSpeed;
}
I do realize that its hacky and slower as compared to actually moving the stage itself. And i'm not sure what's going to happen if another object that moves comes into the stage because technically this code is unnaturally altering the x,y of everything in the stage.
View 9 Replies
Jun 27, 2010
I wonder if there is away to move all objects currently on the stage at the same time without addressing each of them and regardless what obects which are on the Stage. Something along with Stage.y=-50 I know this wont work but is there a way?
View 6 Replies