ActionScript 2.0 :: Create The Animation/movement Of A Cube Flipping/rotating Vertically?
Oct 18, 2004Is there an actionscript I can insert to create the animation/movement of a cube flipping/rotating vertically?
View 4 RepliesIs there an actionscript I can insert to create the animation/movement of a cube flipping/rotating vertically?
View 4 RepliesIn my intializeChar function i've got it so that when you move left it turns your char left by doing _root.grid.char._xscale *= -1; But that makes it so that every frame that your going left it will switch from looking left to looking right. What I want is to have the char face left while moving left and afterwards keep it looking left. And when going right it's the opposite, how do I do that?
function initializeChar() {
game.speed = 3;
game.path.char.swapDepths(10000);
game.char = {startx:1, starty:1, clip:game.path.char};
[code]....
I got a problem with a nice rotating cube(from ericlin) on the mac. This is the link: [URL] When i click outside the swf movie(in html) the cube becomes nuts and rotates very very fast. I only have problem on mac. I already tried things like this, but no succes
[Code]....
I'm trying to make a simple cube menu. The rotation is done by buttons. After finishing my code, im having some troubles with some rotations of the cube.
[Code].....
I want to make a rotating cube with rounded edges. I already saw lots of cube sources, but i need one with rounded edges. My maths actionscript is not so good.
View 0 RepliesI'm trying to build a set of menu items arranged vertically, and to be able to change their scale and position according to the current item selected, giving it some sort of depth effect. found a little bit about scaling menus, and used a script(nothing explained much, just cut and paste) that changes alpha an size of the menu items. I managed to add a swapDepths to bring to front the current item. I need now to figure out how to make the first item full size/alpha on load, move the items to make it look like they're rotating backwards, and get them to stay on their states when one of them is pressed (that is, one at full size/alpha and the others faded and smaller).The test file i'm working on can be downloaded from here, it's in FMX format.
View 2 RepliesI have the 3D rotating cube. Each panel of the cube is an image pulled in through actionscript. When you click on one of the panels, the cube straightens itself to show only the face you've clicked on. This is all great. However, I want to be able to click on that face again and have it link to a URL. This is where I get lost.
I feel like I'm ALMOST there - I've gotten it to work so that I can click the panel and it links to a URL, but right now every panel links to the same link. I haven't figured out how to make each panel link to its own separate URL. Here is the portion of code in my .FLA where I've added the linking action:
Code:
setupFaceAction = function (cube) {
for (var i = 0; i<cube.faceArray.length; i++) {
var face = cube.faceArray[i];
face.onPress = function() {
if (!cube.fading) {
[Code] .....
This is the line I added to make it link when you click the panel after it's facing forward:
Code:
cube.getURL("[URL]", "_self");}
So I assume I need to set up some sort of array so I can have multiple links that correlate with the appropriate image. To make it clearer, I've attached all of my files, so you can see all the code. You'll find actionscript in the .FLA and two external actionscript files. I think "cube.as" may be where I need to do the work.
I am just starting with 3d flash concepts and I was checking this tutorial:[URL]I wonder if there is a tutorial showing the same movement but with a solid cube. I fact, what I want to achieve is this effect:[URL]
View 2 RepliesI would like 2 objects that I can drag up and down indipendantly with the mouse (vertically only) between set limits. I would also like a line between the two objects that stretches like a piece of elastic.
View 9 RepliesI am a graphic designer with many years of experience in Creative Suite Design Standard software. However I'm just beginning to get into Flash and have a project where I need to create a simple page-flipping brochure. My client has a 3-fold borchure in both SWF and JPEG formats which she wants to turn into a Flash flipping book to post on her website. I have the CS3 Web Premium package but I want to know if I need a third-party page flip plug-in or does my version of Flash (9.0) include the page flip engine?
View 3 RepliesI created this Rubiks Cube with Papervison3D. With some resources I created a Cube with 27 minicubes inside (3*3*3 = 27). Rotating the Rubiks Cube on mouse move is already done. (I do not rotate the camera.) All the behavior of a Rubiks Cube is in there already. But I'm a bit stuck in the final phase.
When I play with it like I would do with a normal Rubiks Cube it's working ok, besides I know that the default Euler rotation values aren't reliable anymore after a while. What I need is to rotate the Rubiks Cube to the selected side and after that rotate the Rubiks Cube over the z-axis so the minicube face faces up. I prefer to animate it with TweenMax but I'm really stuck since I need quaternion rotations.
I know the selected face of the Rubiks Cube itself. I know the Euler rotation of the Rubiks Cube using Matrix3D.matrix2euler(_rubiksCube.transform); What I need is to rotate it to the selected face for instance when the current rotation is x: -20, y: 35, z: 10 and I select the back face of the rubiksCube it must rotate to x:0, y: 180, z: 0.
What I need is to change this to Quaternion values and rotate the Rubiks Cube to the new Quaternion value. After that it must rotate the Rubiks Cube over it's z axis to face the selected minicube face up. This is the code I use when dragging/ rotating the Rubiks Cube
[Code]....
I have a cube and the buttons are meant to trigger an animation to view the different sides of the cube. For optimising and swf hosting sake I want to use one animation on the frames of the timeline but for multiple buttons. e.g. button 1 goes to the start of the animation, then at the end, the action goes to the frame 2. if button 2 was pressed to go to the start of the same animation then at the end, the action goes to frame 3 etc. Does anyone have any thoughts on how this should be done?
View 2 Repliesi want a character to move on a globe. the movement of the character is shown though not by shifting the positions of the caharcter but by the rotation of the surface of the globe. buttons are used to move leftward and rightward.
Also, there are three layers of the globe to show depth. how would i script it so that the layers of the globe rotate at different speed?
i've uploaded a zipped of a fla file.
I am trying to do the move vertically animation on a button nested in the vertical layout. I am not sure if the Hgroup restricts the button moving vertically.
<s:states>
<s:State name="default"/>
<s:State name="addRecommend"/>
<s:State name="seeOther"/>
[code]....
I have a big circle with buildings all around the edge. There are two buttons that should control it. One to rotate the circle left, and one to rotate the circle right. I'd like each click of a button to rotate the circle and have it stop on a building, which then would activate an animation of the building.
View 4 RepliesIm in my final year of year 12 and need to have a car rotate in flash by either mouse movement or dragging by the user. Ive tried googling and being lower then noob level on adobe flash I have no idea about anything. I have created a car model in 3ds max. It is of high detail and I wanted to keep it that way. An example of what I wanted to create would be [URL]
View 1 RepliesI'm new to 3D in Flash, I've worked for a while with basic CS4 3D functions (rotation flat objects basically).
Now, I want to create a cube dynamically and start working with it.Since I don't want to start messing around with Papervision or Away3D for a basic cube.
I wanted to know how I can create a cube using AS3 in CS4?
I want to create a cube with images from an xml,..that will rotate to one side of it and show me an image..stay for a while then rotate again to next image-side..wait etc.
View 1 RepliesI need to rotate through an animation sequence.
the animation is 40 frames long and I have stop frames on 1, 10, 20, 30, and 40.
everytime the user clicks the "rotate" btn, it will go through the animation
This is the code I have on the rotate button:
on (release) { for (var i = 0; i<=5; i++) { _root.play(); trace(i); }}
It works for the most part, BUT, once the animation starts over again, it hesitates for a frame when you click the rotate button then it goes back
to normal.
1. I want to make the big yellow circle in the middle to acctually look like it is in the middle of the green rotating spheres... So it is sort of the sun and the rest are the planets... This obviously has something to do with swapDepths, but I am not to good at AS and I can't figure out how to do it!
2. I wish to make the green spheres each a seperate button, so that when you click one of them it falls from the group and the camera follows it (the camera, when following its fall, should also center it)... Then the sphere will bounce on an invisible surface (invisible surface is notable by the shadow created below the ball), come to a rest in the center of the page and then the info shows up...
How to do a Farris Wheel rotating animation in an angle? I tried frame by frame and it doesn't look that good and smooth. Something like this angle: [URL]
View 2 RepliesI'm trying to change the color animation of a rotating spiral but the color stays the same.[code]...
I received a tip from another forum to create a switch to see what was the value of the transformation and change what�s needed but i�m not used to work with switch which is confusing for me.
I'm trying to automatically set up a rotating animation via the Timer Event. There's a Movie Clip called main_mc that's X position is changed with a Tween. Can the Timer Event run multiple events or is it only 1 per Timer?
Code:
var auotT:Timer = new Timer(5000);
autoT.addEventListener(TimerEvent.TIMER, onAuto);
autoT.start();
[code]...
Or do I have to create a timer event for each part?
I'm new to flash and this is my first animation... I'm making it in CS5 using AS2 and it features a snail with a movement loop. The loop is in the library as a movie clip, it has 3 layers and is 19 frames long. Because it is a snail in the loop it ends in a different place then it started. The snail has to move along 97 frames after each movement. I thought I could do this within the movie clip using some actionscript on frame 1 but I haven't really got to grips with actionscript so I was wondering how I should go about moving it every time the loop restarts.
View 2 RepliesI've this application, where two children are playing catch. One throws and the other catches. While I can show a ball object moving between two stationary objects, how do I show the objects "releasing" and "catching" the ball, in a way that is close to lifelike?[URL]...
View 3 Replieshow to make a real movement animation.I saw some game makeing movement program i saw its not that hard .They register movement from on other movement or video some litlie spots are placed in some colors and registring the movement and applyed in the new animation.
View 1 RepliesI have a menu at the bottom of my site. I want this menu to appear when the mouse moves and to fade out when there is no movement?
View 4 Replies[URL]i'm working with some carousel movement and am trying to figure out how to add a level of interactivity beyond simply reacting to the _xmouse position.when pressing prev or next i want to go into a mode where the objects cycle through positions on the ellipse.i was thinking the fuse kit would be a good solution which is what i tried here:[URL]
View 9 RepliesHow can i move an animation backward and forward with the movement of the mouse on the x axis? all of the mouse trailers etc move an object which is linked to the mouse. however i don't want my movie clip to move around the screen. I have an animation of a wave form which I've animated to look as if the wave is increasing and decreasing, ie its amplification. I'd like to move this animation with a mouse movement. ie move your mouse to the left and the wave form increases. move your mouse to the right and the wave form decreases.
I have made an attempt. but it is very clunky and the link with the mouse isn't exact. the animation of wave form moves only if the mouse moves to one side or the other. it's not instant, like the infinite menu.
here is my clunky code:
if (_root._xmouse>=300) {
_level0.animation.nextFrame();
} else {
_level0.animation.prevFrame();
}
I have a menu at the bottom of my site. I want this menu to appear when the mouse moves and to fade out when there is no movement?
View 4 Replies