ActionScript 2.0 :: Can't Figure Out How To Make The Stars Slowly Decrease
May 31, 2005
I'm using the following code to spin a couple stars on the stage when the mouse rolls over them. Can't figure out how to make the stars slowly decrease in speed after the user rolls off though.
[Code]...
View 8 Replies
Similar Posts:
Apr 26, 2011
Is there anyway of changing an integer of 100, into a 1, 0 and another 0?In context, I've got game with a score. Every time you pick up a coin, it adds 10 to the score, there's 20 coins (so a max score of 200 possible). I've got numbers 0-9 as seperate images. The score currently is a single three digit integer, and I need it to be represented as three single digit integers so I can assign those to an image.
View 4 Replies
Aug 3, 2009
I made this simple AS3 game that generates a random amount of stars on the stage. The user has to count the number of stars, punch that number into the input box and hit submit.The problem is that if the user wants to play again, he/she will have to go through the hassle of closing and re-opening game. That's why i'm now wondering how to make a reset button that re-generates the stars for the user to count again.URL...
View 1 Replies
Nov 29, 2009
I have a 3 screen project and there are two buttons on each screen that have to be able to enable the user to jump to the appropriate screens when clicked on. I am totally new to flash and I have tried off and on for a couple weeks to figure this out in various books and online. I just can't figure out what I'm doing wrong.
View 1 Replies
Mar 8, 2009
there just havig a stupid problem where the health on my game increases on my game instead of decreases when the player is hit. here is the source codeHUD.as (Scoreboard)
Code:
private var stageRef:Stage;
public var s_score:Number = 0;
[code].....
View 3 Replies
Mar 18, 2010
I'm new to flash and have been trying to figure out the correct software to use to make a video for the front of our corporate website. I want it to look like what is found on www.athenahealth.com, but can't seem to find the software the does this. Is it Adobe Flash? I haven't been able to figure out how they make it with viewer controls (elapsed time, pause, etc) and embeds seamlessly in the website (as opposed to the videos that pop up in a lightbox).
Can anyone provide any insight into the software used by Athena Health on this site?
View 5 Replies
Jul 9, 2004
How do I make a stat and decrease/increase it in flash mx 2004?
View 2 Replies
Jul 9, 2004
How do I make a stat and decrease/increase it in flash mx 2004?
View 2 Replies
Jan 9, 2010
I am making a flash game for a school project, and I decided to make a stick fighting game.once the enemy attacks the player their health just drains. The only way I can fix it is if I have a decimal instead of a whole number, but I have the variable of the health in a text box to display the players current health and it doesn't look to good with a decimal number.So, I am wondering if there is a way to make the health decrease by a decimal, but show a whole number in the textbox.[code]
View 2 Replies
Oct 28, 2009
I am having a problem with making 1 animation. I want to make a slowly appearing line. The scene is a pencil drawing a line. So as the pen end moves a line is slowly appearing, I couldn't get the technique on doing this?
View 5 Replies
Dec 2, 2010
im trying to make a box that will bounce slowly between 2 and repeat ( i hope that makes sense 0_o) so far the code i have is
import flash.events.Event;
var speed:int = 3;
var hit:Boolean = false;
[code]....
but one it hits wall 1 it moves 3 pixels to the right and stops =/ i tried changing the if(hit == true) to
if(ball.hitTestObject(wall1)){
ball.x += speed;
}
but it does the same thing.
View 4 Replies
Sep 10, 2009
I have a movieclip, powerMeter, that I need to slowly expand until it's width is 80. I using
Code:powerMeter.width -= 80; to make it shrink, but I need a way to slowly make it scale back up.
View 3 Replies
Nov 16, 2010
I have the following code which will bring my Banner_mc onto the middle of my Introduction page with some effects. Now, I want this movie clip to wait for a while and then move to right until it disappear with the same effects. How can I do that?
[Code].....
View 8 Replies
Sep 23, 2006
I have to make a text fade off slowly, at the same time a text behind fading on at the same position, Can I do this with different MovieClips or I have to use a simngle text component... Ok, this what I want: (fading on) SomeText (fading off/fading on)Some other text (fading off)
View 4 Replies
May 28, 2009
how I can make a movieclip randomly slowly float around within a certain specified area on the page? The way I'm doing it now.. is I use TweenMax.. set a bezier, and have the object tween randomly every 20 seconds to a random spot using the Timer class. This is looks okay.. but I'm sure there's a better way to do it so I can control the area which I want it to float within more easily.
View 14 Replies
Feb 21, 2011
I'm trying to make about a minute long animation of two koi fish.
1. Fish slowly swim in frame
2. Fish swim in circle a couple times
3. 4 food pellets drop into water
4. Fish eat them one at a time
5. Fish slowly swim out of frame
I've finished step 2, but now I want to go back and do step 1. I've attatched a picture of my koi and I was wondering if there was any way I could flip the image of them and tween them to make it look like the fish were moving their bodies all in flash.
View 2 Replies
Jul 28, 2009
i have a drop down menu am working on and each button tab (although they are not button instances !) when clicked opens up the "drop down" section which you can mouse over to choose another specific button etc - if you mouse out of that drop down area then it pulls back up to the original tab state .. what do i change to the code below to decrease the area that you mouse out of to make the drop down area pull back .....at the moment it at least two inches on the screen below and to the right of boundaries of the drop down box before it pulls up - i want to it pull up as the mouse leaves the boundary box .... hope this makes sense .... there is some part of the actionscipt below that controls this but can work out which bit and how to change it !!! (am guessing the x mouse and y mouse bits - but how to change it ???)
[Code]...
View 1 Replies
Apr 21, 2006
I want to create a dynamically star burst that follows an animated mc. I found this mouse trailer that do the things I want, except it's following the mouse and not a mc.How can I modify the code to make it follow a mc and not the mouse?
View 3 Replies
Feb 10, 2009
I need to get something similar to this done in a short period of time, so I don't have much time to play around.
Does anyone have a similar code/tutorial or anything that resembles this?
View 3 Replies
Jan 10, 2012
I'm interested in dynamically creating (duplicating) a movie clip of a star and placing it randomly on the stage. It should then grow in size and change it's x & y location so it moves off the stage. (I've attached a file to hopefully show what I'm interested in.)I can hack this out in AS 2.0 but it has to be in AS3 and my old high school programming education just isn't hacking it.
View 1 Replies
Mar 4, 2005
Looking for a zoom through space & starfield effect. I've seen horizontal ones but I am looking for stars coming at you head on. Similar to the snow tutorial. Random generated stars zooming at you....
View 3 Replies
Mar 4, 2005
Looking for a zoom through space & starfield effect. I've seen horizontal ones but I am looking for stars coming at you head on. Similar to the snow tutorial.
View 3 Replies
Apr 27, 2009
So. I have this relatively simple code
[Code]...
when I run it, there's this wierd random star just in the middle of the screen. I tried tracing all stars with _x values of 0, 200, undefined; _xscale values of 0, 100, undefined. There was nothing. I don't know why it's there. I don't even know if it has code in it. =/ Does anyone know what it is? Btw, I know it looks like crap ... sorta more like a glue gun than stars ... I have a better looking version, I just used this to try to disect the problem.
View 7 Replies
Jan 13, 2012
i want to finish it in the end! i have this code which generated 20 stars and an ai player collects all of them (going for the one which is closest to it). This code was courtesy of -lauri... the code was
ActionScript Code:
import flash.events.Event;
import flash.display.MovieClip;[code].........
what i have currently is a player who moves around with the arrow keys collecting stars which appear at random moments... i wanted to make it so that the ai can also collect these stars and i am pretty sure that the code for that would be linked to what.
View 6 Replies
Dec 19, 2005
I have an idea for something at work. I want to have stars hanging by strings from the top of my flash document. if the user mouses over these stars I want the star to lightly swing in the direction the mouse went over at. Almost as if you had a cardboard star hanging from the ceiling and you tapped it with your hand. I know this probably includes friction but my tests don't seem to work out the way I want. Does anyone know how to achieve this?
View 8 Replies
Feb 5, 2011
I was hoping someone might have found a tutorial or done one on how to make a 3d field of infinite stars that can be navigated with mouse movement or the accelerometer..
View 0 Replies
Jun 21, 2009
I had a complete interactive application built in ActionScript 2.0, and now need to revise and update it -- which means converting the old code to 3.0. The first scene is a preloader for the entire application that loads and intro animation before launching the application. I went to the help section figuring that once I had some actionScript in the file, I could delete and experiment with the code until I began to understand (I did take a semester long course in Java, but not much has been retained). If you couldn't tell already, I'm a designer and not a programmer.
I copied the ActionScript from the help section, and pasted it into my Flash document. I went to test movie and got the following error message: "1037: Packages cannot be nested" I can't even figure out what that means! I have nothing else in my document.
[Code]...
View 5 Replies
Oct 19, 2009
I have a little math problem with a game I'm making, and I can't for the life of me figure out the formula needed to accomplish something..Say, there's a sniping game, and a BIG image that must scroll from left to right according to the mouse movement.
Something like this:[URL]... In that example, the scene is 550 pixels wide, and the image is 1100, exactly two times the scene, so the formula is kinda easy..
[Code]...
the center of the image would be at x 1500, way over to the right of the scene, outside it, but it would fit inside the screen, like this (the blue square represents the real size of the scene):[URL]..Then when the mouse is at the far right side, that is 550 x, the image center should be at -950 x, like this:[URL]...
View 3 Replies
Aug 17, 2011
I'm trying to remove a child from the display list from a different class than I added it in but it keeps coming up that the parameter child is null. I traced it and it says undefined, but it is still on the stage.Here's what it looks like in the class where I added it:
[Code]...
View 3 Replies
Feb 14, 2010
I draw figure in Flsh ID with JSFL methods, for example
// draw rectangle
doc.addNewLine({x:0, y:0}, {x:2000, y:0});
doc.addNewLine({x:2000, y:0}, {x:2000, y:500});[code]....
how can I fill it, because this way doesn't work doc.setFillColor('#0000ff');
View 1 Replies