I need to get my movie clip to move across the screen from (30,100) to (600,100). I have a ball moveclip which loops and looks like it is rotating, therefore I need to create the actionscript code to just move the ball from the points listed above and then it will look like its rolling.[code]But I am getting this error; Access of possibly undefined property x through a reference with static type Class.I have the movie clip named ball with a class of ball_mc and it is exported for actionscript, I dont understand what the error is trying to say?
There are two stationary balls-ball A and ball B. There is another ball- ball C, which has to move from ballA to ballB.The problem is that when the I "run" the movie, ball C is automatically placed at the position of ballB. That is, I do not see ball C moving from the position of ball A to the position of ball B.I have used a line-drawing algorithm to move ball C. Also, the entire stuff is written in Actionscript. PS:this._x++ and this._y++ will not work because ballC has to travel the exact path between the two balls
Code: Select allif (yellowball.hitTestObject(maze1)) { stop(moveball); gotoAndStop(2); } I am trying to do a simple script where the arrow keys move a ball around the screen and when it collides with maze1 the movie skips to frame 2. It says that the code is correct, but it doesn't work.
i wanna ask how do i make a ball bounce off something like a ball bouncing off a bumper in a pinball game? i've tried a lot of times but everytime the ball get stucked to the box and it doesn't move anymore...will be grateful if anyone noes the actionscript of it..
ball collision inside another ball using gravity.I have one large circle in the middle of the stage (its radius is 150 pixels). I have another circle inside of that one (20 pixels radius), this is the smaller ball that I would like to have bounce around inside of the larger one with gravity. When the small ball hits the edge of the larger circle, I would like it bounce inwards to the center of the larger circle. It keeps doing this until it eventually stops in the center of the larger circle at the bottom.
im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.
hero.gotoAndStop('still'); var left:Boolean = false; var right:Boolean = false;[code].......
what i have is a tween on a movie clip of a popcorn kernel on one layer and a tween on a button on another layer to follow the movie clip. i want to be able to roll over the kernel and make it "pop". i changed my over on the button to popped corn (this works) but i want it to stay popped for the rest of the tween.
I have some simple script that has 2 "movie clips". What I want to do is to start moving the second movie clip at the same time when the 1st starts moving. (both start moving at the same time) I tried the following script but it never works:
I am trying to get a ball from left to right I click in 28 and insert keyframe then I right click and click on create motion tween nothing happens. When I do this same thing on the sample one with the car this is what I get. and when I do the ball one sample2 it don't have the blue bar.
I'm a AS3 noobie and have a simple question:Quote:var ball:MovieClip = new Ball();var inc:int = 0;stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, false);
I'm working on integrating Omniture into an Actionscript 2 custom written video player.Omniture is not playing ball at all and their documentation for their Actionscript component is very poor, and they don't provide tech support for it.
I have this code to make a ball bounce. it works fine, however, everything on the stage bounces. I only want the ball to bounce.
Here is my code /* Actionscript 3.0 Bounce Effect. ball = movieclip instance name*/ var velocity = 0; var gravity = 2; var speed = 0.03; var ground = 300; Object(this).ball.addEventListener(Event.ENTER_FRAME, fl_bounce); function fl_bounce(event:Event) { [Code] .....
I am trying to follow and create a tutorial which explains how to make a bouncing ball.I am really struggling with the Action Script 3.0 even though the teacher types it in.I am inserting the code so that you can view it.[code]
I'm pretty new to Flash and I've ran into a bit of an issue. I'm trying to convert a AS2.0 code into a AS3.0 code, more specifically I'm following this guide:
So I am trying to create a document class for my program, and I know all the code is correct because I already have the program working.I am currently trying to rebuild the program, and I simply copy and pasted all the working code into my new program.I have 2 document classes, and when I run the program i get an error, and I don't know how to fix it. It says "The class 'ball' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type."I don't understand why it isn't working now, is there some setting that I need to turn on to get it to work? I do have the line of code: import flash.display.MovieClip;
I made this ball that spawns particles out of it. The particles are the same size as the ball, so they end up above the ball, therefore, I cannot pick it up! I heard something about getChildIndex(), but I wasn't able to solve the depth. How do I get the ball to be on top all the time?
i have just came across the tutorial with physics/bouncing ball - so far i have encountered no problems in understanding it, but just a question:how do i stop the ball bouncing? do i have to equal it to a certain value or just drop in another if/else statement, because now the ball seems to bounce forever, since it gets every time multpilicated by a negative number.
I want to do gravity effect on a ball . I found some thing do this but I need to make the ball goes to the floor direction actually I want it to follow the sloping of the floor with the gravity effect .
im was wondering if anyone knows the script for a ball bouncing off a paddle. I want the ball to bounce off the paddle in different directions depending on:
1) which side of the paddle it hits
2) which direction it came from
Ive only got this so far : script for the paddle
onClipEvent(enterFrame) { if (this.hitTest(_parent.ball)) //if this movieclip hits the movieclip 'ball' tellTarget(_root.ball) //tell the ball to:[code]....