ActionScript 2.0 :: Continuous Movement Tutorial?
Nov 6, 2003how on earth do i make the circles ascend rather than them going left to right in this tutorial:[URL]..
View 6 Replieshow on earth do i make the circles ascend rather than them going left to right in this tutorial:[URL]..
View 6 Repliesi was trying to make the thumbnails continuously scroll left and right, instead of stopping when it gets to the end
View 14 RepliesI'm working for a client that wants me to create an interactive map, which I can zoom in/out, move the map around, have a minimap guide, and other goodies. I've got the bulk of it created, but I got stuck trying to create a gamepad type controller which the user can click on, and it will move the map.
What I'm trying to do is this: The gamepad graphic I created is like a typical Playstation/X-box style thumbpad controller. There are an up, down, left, and right arrows graphic which the user can click to make the map go up, down, etc. (I have created code to let the users use the keyboards, in case they don't want to use the graphics)
Is it possible to create a continous movement when the mouse is pressed, or will my poor user be stuck clicking the mouse ad-nauseum?
What can be the cause of the YouTube player not working (playing, buffering, firing api events) if I don't continuously move the cursor over the player?
View 1 Repliesdid the tutorial on my pc (mac) and de .swf work, but if i upload it, it does not run either.Another question. is it possible that the random movement may only occur in a specific area of the movie
View 2 RepliesI tried to remake the random movement tutorial [URL] but at the end the objects stayed all at the same place. So I downloaded the fla at the bottom of the page and when I previewed the animation it also did not work. I use Flash MX on a Windows XP pc.
View 1 RepliesI have a movieclip with a grid of 9 squares (3x3) what i would like to do is have each square move either on the x or y axis into a position of another square (like one of those puzzles where you move the tiles around to form a picture...) a random square in a random direction at random intervals.I have tried editing the random movement tutorial on Kirupa, but i cannot get the effect i need.url...
View 2 RepliesThis thread is designed to help collect discussion on the Random Movement in AS3 tutorial.
View 2 RepliesI sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM. I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial ([URL]). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
[Code]....
I have built a catalog in flash that was orginally built in InDesign and exported but it has some small content that is hard to read for the elderly users viewing it and I would like to add a zoom feature or some type of magnifying glass.
View 1 RepliesI am looking for a tutorial called Senocular's 3D car race tutorial
View 1 Repliesoriginal: I really just need to figure out how to center the pictures. here is what I did I have modified the tutorial that I finished to have a bigger stage for bigger pictures. Everything is working properly but the pictures are displayed on the left side, I want to have them centered in the stage for the images, after clicking on the thumbnails, plus my images are different sizes as well. ranging from 200x410 to 744x410 but all are the same height of 410. i will post up what I am talking about at the end. I believe it is something within either the action script or the xml coding that allows the position of the image to be differently? please help here is what i am talking about[URL] Continued: Here is my coding in action script:
[Code]....
I've been playing with carousel code, and was wondering how to change it from circular animation (carousel) to left/right linear (conveyer belt) style animation, how to change the mover code and 't.angle = i * ((Math.PI*2)/numOfItems);'
[Code]....
I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.
I've been trying to figure this out (see my lame attempt below) but without much luck.
onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved
[Code].....
I wish to get the effect of ants scuttering across the screen or up a tree, I have not decided which direction yet. I started with the tutorial code for the snow effect from kirupa, and changed it around to fit the little vector ant I created. The way I have it now looks pretty good, but the movement is a little too fluid. They obviously move in sinusoidal paths bc the code tells them to. I have about 20 copies of the main obj, and they're all a little different in size and specs (speed, transparency, etc) but what I was wondering was if there is any way I can change the code to make it a little more hectic, or erratic, not so fluid. If there is no way of doing so, it looks pretty good right now. If there is, however, I think it could look awesome. here's the code I'm using for the object.
onClipEvent (load) {
//stage
movieWidth = 850;
movieHeight = 50;
[code]....
how to get the camera to move with a character? At the minute he just moves off screen when i press right rather than the camera following him.
View 3 RepliesI have a Mogli (Junglebook-like) Character that i got to move with the arrow keys on the keyboard.
I want the character to jump (so for example , he must while moving to the right of the "gamearea" , you must be able to hit a key (say for example the "control" key ) and then the character must jump ( go up ) and as soon as the key is released he must obviously come down.
And also how do one set movement speed on any particular movement.
i'm trying to achieve an effect in which a triangle movieclip (which expands and then dissolves) respawns itself continuously. I'm hoping to figure out how to tell flash to respawn a new instance of the 15-frame movieclip of the triangle, when the original clip hits frame 5. the next one would do the same, and so on and so forth.My research so far has led me to believe this has something to do with the 'addChild' function but i'm so far unsure of what to do with it
View 1 RepliesI have about 27 photos. They are all 250x188. I would like the work space to be 250x564 so that 3 photos display first and they keep scrolling from the bottom to the top continuously through all the photos and repeat. Could someone recommend the best way to do this in Flash CS4. I am totally new to this.
View 9 RepliesI am trying to make a scrolling banner. I have succeeded so far in making it scroll from right to left and it loops. However my problem is this - I need for the looping to start when the graphic is at position X (x being a frame number).
View 3 RepliesI currently have an animaion I'm creating in Flash CS4. There are 3 nested movieclips on the main timeline (all on one layer) each in there own frame (1,2,3) and they are also labelled ("strategy", "videos", and "messages") I want the animation to play continously without any interaction from the user i.e clicking buttons e.t.c I'm struggling to link the three movieclips together using ACS3 i.e once MovieClip one has played it will go back to the main timeline and play the second MovieClip on frame 2 and so on. From looking at various forums I thought the gotoAndPlay function may work, would I also need to specify that it is going back to the "root" timeline?
View 5 RepliesI have a horizontal image scroll that is made up of various thumbnails. When you move your mouse to the left it goes left, move it to the right and it goes right.The problem here lies somewhere in making the loop continuous. I have it looping correctly. There are masks on each thumbnail.
I have two instances of the same movieclip that contains the thumbnails right next to each other. This allows it to loop.When two instances of the thumbnails are both on the screen at the same time, a few of them lose their masks while they are on the stage. Why is this?
'm still rather new to AS3, I'm trying to make a roll_over scroll function however I've only got it to move a little bit each roll over, I'd like it to continuously do so until the mouse has come off the button area
Scripting:
reel_mov.x=14
r_button.addEventListener(MouseEvent.ROLL_OVER,right);
[code].....
Which CI server do you use for Flex? My main contenders are currently
Hudson
TeamCity
Both seem to be popular on the general level but have you got some direct experience with using one or both with Flex development? Or would you recommend some other tool?
I have a dial which I drag around a circle to give me a reading between 0 and 1.
Something like this:
dx = mouseX-centerX;
dy = mouseY-centerY;
rad = Math.atan2(dy,dx);
[Code]......
This work's great, except when the slider goes from 359 degrees to 1 degree, my value between 0 and 1 returns to zero. (Which makes sense, as the value is based on the angle of my slider)
I'm trying to find a way for the dial to move from 359 degrees to 361 and onwards basically.
In my head: I need to check if the next value of my mouse drag goes past the 360 degree point and add 360 to the total, to stop it returning to zero and continue to 361 degrees.
I have an image sequence that plays forward and backward with left and right arrows are clicked. The previous frame button does loop past the first frame, but only moves 1 frame per click..how do I make it a continuous loop of prevFrame? [code]
View 7 RepliesI need to loop an array that also play the swf to the end beffor it goes to the next array. How whould i do that? if anyone could link me to a page where i can find out or tell me how i did it would be great.
i have this but this dosent work as i wannt:
ActionScript Code:
function onCompletePreloading():void
{
contentContainer.addChild(_swfClipsArr[0]);
[Code]....
insted of having the "addEventListener(MouseEvent.CLICK, setContent);" i need something that counts the current frame and the end frame of that swf is that possible?
I want to make a scrollbar of a dynamic text continuous when clicking up or down ie when holding the mouse down the text should scroll and when MOUSE_UP the text should stop scrolling. I tried making it with ENTER_FRAME Event but it happens too fast(when i click once the text scrols by 3-4 lines).
I would like to apply the hold effect, like when you press down in your browser window for example: the page first holds for a second and then start to scroll. I hope you get the idea. How to acomplish this in AS3?
I want to make a slideshow that when you hold down the next button, it keeps cycling through the images, I tried a for loop but that went to fastwhen yo uclick the button it cycles through, but you have to keep pressing for it to change, I just want the user to be able to hold it downif you want a better understanding of what I am trying to do go to alienware's new case flash introif you go through the long intro and click the "click to see 3d model" that is essentially what I am trying to do, only instead of hovering your mouse over the image I want the user to just click the next buttonalso, is there anyway to allow the images to preload?
View 4 RepliesThe file reads images from Images folder.But the problem is that its leaving a gap in the end and the start.Also the funny thing is the XML reads from the last node instead of the first.What I want is the images to scroll Continuously Without leaving gap.
Here's the Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
//test=xmlNode;
[code]....