ActionScript 3.0 :: Make A Wall Which Is Not Straight?
Nov 18, 2011Is there any tutorial how to make a wall which is not straight
View 6 RepliesIs there any tutorial how to make a wall which is not straight
View 6 RepliesHow do you make an MC travel in a single straight line (not two, not three, only one) according to mouse position and current position?
View 3 RepliesI've managed to follow some drawing tutorias which work fine (mouse down draws a line everywhere you move mouse like MS paint).I would like to adapt this now if I can so that when a user clicks down, a straight line will follow their mouse until they click again and this releases the straight line. This should leave one line on the screen, then they are free to move their mouse and repeat the action again.
View 6 RepliesI like to create a Flex application, an image gallery, which comes like 3D wall. How can I do that? Is there any examples available?
View 2 RepliesImagine loop that contains a ball_mc that bounces off walls for how ever long the loop. I am asking what the math part would be to make the ball_mc bounce off at the correct angle and such.
View 1 RepliesI am currently working on a game and I am stuck. I do not know how to make a rounded surface that will act as a wall/barrier. It is pretty much a semi-circle. I know you can make a circle act as a barrier but I would need to use the perimeter of the circle. Also is there a way you can make an actual image a barrier? I am new at this but I know from reading up that making a rounded wall is pretty tough. I am going to use this wall to make a ball bounce or "roll" around it. Below is a picture of what I am trying to do. The black dot is the ball.
View 3 RepliesAll I really need is to make a post to the Facebook wall of the user from flash movie.Been trying to find any decent tuts for Flash IDE but everything seems to be for Flex mainly.
View 2 RepliesI am familiar with hit test, but how do you make a ball bounce off a wall with the same angle that it bounced on it with?ex. it hits the wall at 45 degrees, and it bounces off the wall at 45 degrees
View 6 RepliesI would like to know if there is a way to make a flash movie that sends information straight to my email with the push of a button. Is it possible? Can it be done without knowledge of the person? I want to have a poll, and calculate the votes by hand, or eye, I suppose. I just don't want to have to set up a server of any kind.
View 1 Repliesi want to make a ball move at a constant speed into a wall and bounce of, initially it should move back but then It should carry on moving towards the wall.
I managed to make it bounce but once it hits the wall it carries on in the opposite direction!
im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest. ive typed in
[Code]...
So I have a simple game I'm making where you are a box shaped character and you have basic movement around the screen. I know how to make walls and the coding but I would like to make a wall that the character can't go through on either of the 4 sides or even a squiggly line that doesn't have a definite shape. I used this coding:
[Code]...
And that does kind of work, but it's not stable (works better with one side only). Sometimes one side of the wall, the character will still be able to go through. The tool I'm using to make the wall is a rectangle tool if that makes any difference. And I'm on actionscipt 2.0 on adobe flash cs4.
Attached is the red blood cell (rbc) animation. Each rbc is derived from the same symbol under multiple instances. And they all move randomly in the same x direction at random speeds. Unfortunately, I am unable to code for an arterial wall (ie. a boundary) so some of the rbc's end up leaving the animation at the wrong point (eg. from the top and bottom, instead of the right side).
I have two boundaries (named "top" and "bottom") but would like some help with AS2.0 to make these boundaries active rather than a part of the background. The code is inserted below, however it may be better to take a look at the actual fla:
amountOfrbcs = 220;
rbcsize = 240;
rbcWidth = Stage.width +10;
[Code].....
Is it possible to play a movieclip which is in the library, but not on the timeline? If not - and if I don't want that movieclip to be seen until a button is clicked to activate it - how do I hide it? with a mask?
View 12 RepliesI know you can restrain an mc in a rectangle when using startDrag, but is there a way to have the mc only go horizontal or vertical without going off diagonally? Sort of like a slider that can only move in a straight line in four directions (like a cross).
View 4 RepliesI am trying to bend 2 parallel lines into a circle, but with a motion tween, it curves under eachother... (see att)how would I make them curl to a circle
---------------
/-------------
/----------
[code].....
I've followed the drawing api tutorial off here for MX and have got that working perfectly. I would like to adapt this now if I can so that when a user clicks a straight line will follow their mouse until they click again and this releases the straight line.
View 2 Repliesi'm trying to read in the URL displayed in flash
if i do this:
url=this._url;
i get:
http://domain.com/myFlashMovie.swf
but i what i actually want is:
http://domain.com/myFlashMovie.htm
plus whatever i pass through the URL
e.g.
http://domain.com/myFlashMovie.htm?canUCme
drawing a straight line, just like on the flash game Line rider. I need to be able to create a line by dragging it with the mouse.
View 3 RepliesHow to drag an object along a straight path using AS 3?
View 2 RepliesI've managed to get the flex WebService class working with my Flash CS4 project.The problem I'm having is that If I do two calls in rapid succession to different methods of the same WebService,then I can't distinguish the results when they come back.In my project,my function onWebServiceData would trigger twice,but I couldn't tell which time was in response to Method1 and which was in response to
Method2.
I have this code inside an ENTER_FRAME event. I'm trying to move the "ball" from its x- and y-position to a tartget x- and y- position:
Code:
if (processClick)
{
if (ball.x < targetX) ball.x += 8;
if (ball.x > targetX) ball.x -= 8;
[Code]....
But the "ball" doesn't move in a straight line, I think it is because the x- and y-movements are processed independently?
Is there a way thay I can make the "ball" move in a straight line from the starting point to the target point?
Also, is there maybe a way to manually create a tween between the starting point and the target point using actionscript? If I export the "ball" movieclip for actionscript?
I am trying to create a flash movie (AS3) that would allow the user to draw using his mouse but straight lines only. The user would click to set the start point of the line then as he moves the mouse around the line would move with the mouse until the user clicks again to set the end point. When the user clicks again a new line is created without deleting the previous one.
View 3 RepliesI'm using BulkLoader for loading a background image and an image. When the preload start it makes strange movement instead of going straight to the end. If you don't understand you can see it live here: [URL] This is very annoying because i don't know what is the problem unless it's a library (bulkloader) problem (i hope no
[Code]...
i am trying to stop the music playing straight away, but instead only when the button is clicked.
Code:
stop();
//Stop at this frame
var music:Sound = new Sound()
[Code].....
how to play mp3's in flash i know how to link it from url but cant i just play it straight from my comp? ty btw i think ive seen this in the tuts but i couldnt just then soo i posted this
View 1 RepliesIf i have a set of xyz coordinates,
[Code]...
how do i draw them to screen seeing as they will not be straight lines?
I'm looking into uploading an XML file and then storing it's contents in database. It looks like upload method of flash.net.FileReference would do the job however it just gives you an option to upload it to server.
I could upload it to server, read it from that server and then delete that file but I would like to avoid extra work.
Is there a way to just load a file into memory without saving it on some remote location?
I am very new to actionscript 3.0 & currently i have a project to do that required actionscript.
ActionScript Code:
package{ //package
import flash.display.Sprite;// for sprite, to prevent 1046 error code
import flash.events.MouseEvent; //for mouseEvent, to prevent 1046 error code
import flash.display.Shape; //for shape, to prevent 1046 error code
public class gridDrawLineTesting extends Sprite //for mouseX mouseY
[Code] .....
This is the code that I have found from various web and paste it into one. I want to draw straight line & snap to that point at the same time. My problem is when I click at 2nd point, there is a 'extra' line at (0,0) joining towards my 2nd corrdinate point. I want to get rid of that 'extra' line.
I want a straight line to slowly curve so it become a circle. Can yo do that with actionscript?
View 5 Replies