ActionScript 2.0 :: MC With Following Arrow On (press) {?
Mar 19, 2004
I have 3 movie clips lined up as buttons. When you rollover one, the others fade out to an alpha of 20. I also added an arrow that is called when I click on a mc to align it self to the top center of the mc. When I added the arrow I lost my fading. Somewhere in the actions is messing this up.Here is a fla file. I am using Flash MX actionscriptI also have Flash MX 2004 but I dont like it.
View 10 Replies
Similar Posts:
May 29, 2009
I am making a side scrolling game and I have all my pieces made, background, main character, enemies, wall, floor, etc. I have begun coding it with Action Script 3. I have it to where i have a main menu, and two buttons= one that goes to instructions and one that starts the game. I have my main character as a movie clip and inside the movie clip I have labels- stand, right walk, left walk, jump, duck, fire, and die.I coded it to where when I press my right arrow key it goes to and plays the right walk, down arrow key it plays the duck label.I have a trace on them and they are working. What Im trying to figure out how to do is 2 things. First, when my character gets to a certain spot on the screen, he stops walking and the screen moves, and second how to make the enemies move. Im scripting everything internally and not using any classes for this game.
View 1 Replies
Oct 22, 2010
I have an arrow which I can control with the UP and DOWN keys. They move to a specific y coordinate when I press the arrow keys. What I want is when the "play" text is "selected" by the arrow to go to a frame called "levelone". But I can't make it work This is my current code:
Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN)) {
[code].....
View 2 Replies
Feb 5, 2005
i want a my_mc to move when i press the < LEFT> arrow but also to fire and onEnterFrame event so it will move.. and also to delete the onEnterFrame when the key is not pressed so the onENterFrame is not going on in the background
View 4 Replies
Jan 13, 2009
How can i make it so a when you press a button it starts a countdown but every other press dosent reset it?
View 14 Replies
Mar 13, 2010
I have a problem when I making a game Flash with action script 3,. I want tomake my character move when the key helding and I want my character attackwith one tab press either
View 3 Replies
Aug 29, 2011
I have text field which is 0 by default (score_txt)Two buttons +1 and -1 (plus_btn and minus_btn) When I press +1 text increases by one, and when i press -1 it decreses
View 4 Replies
Jun 17, 2005
i have an object that i want to drag and drop with the same event.Something like on press start drag and on press again stop drag. I'm sure it's pretty simple with and if and else statment but i can't find how to do that...The best i have done so far was this:
[Code]...
View 4 Replies
Mar 5, 2011
I have been working on a tutorial in Flash on the topic of Flash () for two days, and I am just finishing up on a template. I have fixed five bugs, but I cannot think of how to fix this last one. I'd rather actually fix the problem this time, instead of improvising . So, here is what is going on:
I have this thing at the end where you have to enter in the code that I taught the viewer to proceed, then hit the continue button to finish the tutorial. But for some reason, whenever I try to go back with the back arrow, it does, but then I can't go forward with the forward arrow until I reach the first frame that contains actual tutorial ("page" 2). Then it works again. It seems really random, but there is [obviously] a good explanation for it. I thought it might have something to do with the fact that all of the arrows up to the "test" part, excluding the back arrow there, have the exact same instance name. However, "page" 2 is the 2nd time it is used (introduction, then the "page" 2, then 3, 4, 5, and 6, then the test part thing), so it makes less sense that it would work the 2nd time, but not the third, fourth, fifth, or sixth. And I know there's nothing wrong with the code itself:
[Code]...
View 3 Replies
Sep 13, 2009
It lets you move a Cube, with the arrow keys on the keyboard. This is the code.
Code:
function hearKey(yourEvent:KeyboardEvent):void{
if (yourEvent.keyCode==Keyboard.RIGHT){
cube_mc.x+=5
[Code]....
I keep pressing the down key down and also press the left key down...
now it moves left...(not so good, i want it to move both left and down, how do i do that?)
now i release the left key but am still on the down key....
View 1 Replies
Jul 14, 2009
The objective is to get the fox - by using the arrow keys - to move around on the stage and when he touches a duck the duck should disappear of the stage. The duck has a motion tween on it, to make it fly.Also if the fox touches one of the traps he should make a sound - using the redfox.wav sound in the library and disappear off the stage.I have this code on the actionscript timeline //Program to generate a set number of traps
//Declaring Variables var numOfTraps:Number; var movieWidth:Number; var movieHeight:Number; var counter:Number; //setting variables values for traps numOfTraps = 6 movieWidth = Stage.width; movieHeight = Stage.height; //Program to generate a set number of traps //Declaring Variables for (counter = 7; counter <= 13; counter++){ //Place 6 traps on the stage [code]....
View 11 Replies
Nov 9, 2009
Is there a quick way to draw an arrow in Flash? I have seen postings from 2006 which say there isn't, but I wondered if there is a way in CS4?
View 1 Replies
Jan 8, 2012
I'm trying to program an arrow flying in the air, but the speed doesn't look well. But now the arrow moves very slow, here's a sample. (I know the arrow and the trajectory doesn't match 100%, it's just a sample.)
[Code]...
And now it looks good, but can someone tell me why I need to do this while in physics it normally would fly 15 times too fast?
View 1 Replies
Apr 11, 2009
I made a full homepage which is working perfect in flash cs3, using as3, i upload it, and start navigating on the homepage, it still worked perfect, but the moment i wanted to go back to the previous page with the arrows in the top left corner of either explorer or firefox it jumped all the way back to my google startpage, what can be done about this, so visitors doesn´t have to log on to the homepage every time the click the arrows in explorer or firefox?In another forum someone recomended me to split up the pages and upload them seperately which i did but, the problem is that even though i organize my subdomains it doesn´t work it says that the link is broken.The link to the homepage is URL...Click on the spanish flag and you will see what i meen by not bieng able to use to arrows, and if you click on the brittish flag you will see what i meen but the link is broken, on which i used the actionscript 3 and the following text:[code]
View 1 Replies
Dec 12, 2010
i have created a movie clip which are composed of balloon, archer,bow and arrow. but the main problem is when i clicked the mouse the arrow start to shows up but it does not move vertically, in short it does not shoot upward.
[Code]...
View 1 Replies
Apr 6, 2009
This is a fairly simple problem, yet I can't make it work. I have an arrow-shaped mc, and I want it to rotate, constantly, so it points at the mouse.
this is what i do every frame:vectorArrow.rotation = Math2.radsToDegs(Math.atan(-(root.mouseY - y)/ (root.mouseX - x) ) );
what happens is that it rotates strangely. It doesnt rotate fully, let alone point to the mouse. I've also tried someone elses code:
[Code]...
View 2 Replies
Mar 31, 2010
I have a file set up with a movie clip moving from side to side by itself and when it reaches the end of the stage it goes back in the opposite direction.[code]I know want to control the movie clips movement with arrow keys, just left and right so that it would stop when it reaches the edge and will only let me move it the opposite direction.I guess I'm just trying to set up a sort of template.
View 9 Replies
Apr 29, 2011
I have been using powerpoint all long for my presentations, but I'd like to move on with Flash. My question is therefore as follows: How do I use the arrow keys to go to the next frame and optionally, the left key to go to the previous frame?
View 2 Replies
Feb 9, 2012
I need to know how to make it where my character jumps up with the arrow key, I need my character to make a sound, How do I do that?
View 8 Replies
Jul 29, 2009
For some reason, the down and right keys aren't working. They work fine in other programs but in this program they fail.
paddle_ybase = paddle._yscale;paddleSpeed = 0;
onEnterFrame = function(){
if(Key.isDown(Key.UP)){paddleA._y -= 1;}if(Key.isDown(Key.DOWN)){paddeA._y += 1;}
if(Key.isDown(Key.LEFT)){paddleA._x -= 1;}if(Key.isDown(Key.RIGHT)){paddeA._x += 1;}
steam(7);paddle._rotation = paddleSpeed;
} function steam(num){for(i=0;i<num;i++) {
[Code] .....
View 3 Replies
Oct 27, 2010
I'm trying to do a rather complicated mask in flash and can't quite get it right. I have a logo with three arrows on it. The arrows travel in water droplet pattern. Between the arrow heads is a small white space. I need to build this as a mask because the color of the arrows has a gradiation from light blue to dark blue.
View 2 Replies
Apr 21, 2011
When I first put this code in, it worked.Now it doesn't Does anyone have any ideas as to how to fix it?[code]
View 4 Replies
Jun 19, 2009
I am making a input field for keywords, and while the users writing I'm displaying suggestions for keyword on a list underneath the caret position.The input field is single line, so I am using the arrow up/down key to select a suggestion and Enter to insert it.And it's mostly working, with the big exception that the up/down key also changes the caret position to the begining/ending of the TextField.
I've tried using preventDefault() and stopImmediatePropagation() in the KeyboardEvent.KEY_DOWN event listener that I also use to change the selected suggestion, but that does not change anything.I checked the carret has not yet moved when KeyboardEvent.KEY_DOWN event is fired, bu visually I can see that it is being move before key is released (key up).
View 4 Replies
Jun 15, 2009
The default behavior for textfield, when up arrow is pressed is, the cursor goes to the beginning or first character. I would like to disable this and add custom behavior when up arrow is pressed. I am able to add the custom behavior but I am not able to stop the default behavior.
View 2 Replies
Apr 3, 2008
I'm not at all used to working with actionscript but sometime back in time I made a flash demo where I managed to map my left & right arrow keys to navigate to the frames of my choice.
To be able to navigate to specific frames in the timeline by pressing either Left arrow or Right arrow key.
This is the code Im trying to use
if(Key.isDown(Key.RIGHT)){
gotoAndStop(nextFrame);
} else if (Key.isDown(Key.LEFT)){
[Code]....
View 5 Replies
Jun 29, 2010
im trying to make a navigation menu thats out of 5 buttons to go through them with arrow keys, right and left, figured i could do it with an array, but cant seem to work that out
View 2 Replies
Aug 19, 2010
How do I remove the last element in a arrow?
I have an arrow called lagers.
When I press a button I want the last element in the arrow to be removed.
I heve tried this code, but I cant figure it out.
removeMovieClip(lagers[lagers.length]);
View 4 Replies
Nov 10, 2010
create one rotating arrow around the countdown from 15 to 0.
View 1 Replies
Nov 18, 2003
how do you move an object around with the arrow keys.
But there's a catch.
I need my object to flip horizontal when pressing right when it is facing left ( and vice versa). And I need it to flip vertical when it is facing facing upwards and the down arrow is pressed (and vice versa).
View 4 Replies
Oct 12, 2005
can anyone take a look at this .fla, and tell me what code needs to be applied to the arrow buttons?
View 7 Replies