ActionScript 3.0 :: Remove The Mirror Effect When Rotating An Object On The X Or Y Axis?
Jan 29, 2010
I want to rotate the object on these axes, but it's causing a problem in that I want to flip the image 180 degrees only, however the image becomes mirrored when it flips and you must continue rotating another 180 degrees to get it back to normal.
Is there a way to take off the image mirror when rotating something?
View 1 Replies
Similar Posts:
Jul 4, 2009
On the web there's a bunch of tutorial on how to rotate an object around a point ,or a stage axis..But how do we rotate this object around its own axis?
View 10 Replies
Oct 14, 2009
I have an flv file which I am playing through an flv playback component. The flv has a width of 320 pixels, however I wish to dynamically control the width of this flv, therefore I have placed it in a movieclip, and set the width to an arbitrary figure (400 in the example below). All of this works fine.
If I then decide to add a function to spin the Movie clip round 360Deg on the Y access, by the time my Movie Clip has done a full circle it is smaller than it was (now 361 pixels).
If I keep the Movie Clip at the same width as the original flv, there is no problem, and if I reduce the width before the spin, then post spin the Movie Clips width is wider.
Code:
import fl.video.*;
var vid:FLVPlayback;
vid = new FLVPlayback();
vid.source = "Media/Some.flv";
[Code]......
View 0 Replies
Mar 30, 2011
The idea is I have 3x3 containers(Sprites) - each one holds 2 tiles of 2 two images (shown one and unvisible - laying behind) . So there are 9containers and 18 tiles. When I click on the image I get rotation of the containers, and when every container is about 90 degrees, its childs swap each oher. So in result I get second image shown. But unfortunely then, shown image is rotated by 180 degrees, that means its left side is on the right. Pre rotating containers ( of tiles gives total mess, as middle tiles seem to be right, but left side of the image and right doesnt match to rest.So I need to rotate tiles, which are bitmapData - parts of Bitmap. But I can not rotate them - there is no property .rotationY for bitmapData, and I can not use matrix's rotate() method as it traits only angle rotation and not axis rotation.If I rotate by Y axis the bitmap before slicing it to tiles nothing happens, so I guess draw method relies on default Bitmap.
So Q : How can I rotate on Y axis a bitmap to have mirror reflection of the image and then apply it reflected to the as a .bitmapData property and slice it to small pieces.
View 0 Replies
Jan 26, 2011
flash and followed a tutorial online on how to make a animated spectrum analyser here - [URL]
What I wanted to know is if it is possible to have a small mirror effect underneath the animation, sort of like this image
It obviously needs to be a proper mirror and not just a static image.
The animation itself is 940px wide, 200px high so I will only need the mirror effect to be around 50 - 80 px high.
View 4 Replies
Aug 7, 2007
Is there a way to create a dynamic mirror effect that will create a reflection regardless of what is placed above a set line? Meaning, we should not have to duplicate symbols, flip them and create the effect manually. The flash should be smart enough to create the reflection on the fly.
View 14 Replies
Jan 25, 2010
I'm trying to make a UCI (user created interface) for the music player, Cowon D2. Basically, I am trying to create mirror effects for album art movie clips.
I have searched high and low but have been unable to find a suitable solution which would work on Flash Player 7 with Actionscript 2.0. I had started to lose hope but decided to ask on this forum as a last attempt.
I have previously just flipped the movie clips then set alphas on them. However, it does not look very nice. I would prefer a gradiented mirror image.
BitmapData and Matrix classes are however not supported by Flash Player 7.
View 2 Replies
Mar 2, 2005
I'm trying to grasp how functions and motion tweening works.
Heres my question. How do i make an object move along the y axis once it has reached its x axis target?
HEre is the code, that i got from here.
and what in this code is making the MC ease out?[code]...
View 14 Replies
Jul 4, 2003
Does anyone know how to mirror a movieclip using actionscript? like mirror to rorrim, I tried using the rotation method but it seems to do it but leave the movieclip upside down
View 2 Replies
Sep 16, 2009
I have a rectangular movie clip which I am rotating along its y-axis according to the position of the mouse, using this code:
PHP Code:
rotateClip.addEventListener(Event.ENTER_FRAME, doTilt);
function doTilt(e:Event):void {
var clipToTilt:MovieClip = MovieClip(e.target);
clipToTilt.rotationY = (stage.mouseX-400)/10; // The stage width is 800
}
When I position the clip in the centre of the stage (x=400) the function works fine - the clip rotates from -40 to 40 degrees, and the perspective effect looks the same at each extremity. However, when I change the x co-ords of the clip to 600 it still rotates in the range -40 to 40 degrees; but it looks as if it's turned much further round at -40 degrees than it does at 40 degrees. Surely if it's rotating by the same amount it should look the same, wherever it's positioned on the stage? I've changed the vanishing point of the object to x=600, but it doesn't seem to make any difference.
The reason I'm using the centre of the stage as a reference is because I want the clip to appear un-rotated when the cursor is in the centre of the movie. Is there another value I should be setting, or have I misunderstood the concept of rotating along an axis?
View 4 Replies
Nov 30, 2009
I have 4 movie clips rotating around a center axis. I know how to make each one pause individually, but I don't know how to get them all to pause when you roll over just one of them. Right now it only pauses the one you roll over and the others continue to rotate. I have this code pasted into the actions of each movieclip that is rotating.
Code:
onClipEvent (load) {
var radius = 220;
var speed = .6;
var xcenter = 450;
var ycenter = 300;
[Code] .....
View 1 Replies
Jul 12, 2009
Does anybody know an easy way to duplicate a display object (placed with addChild() to stage, containing a square which moves and scales and rotates randomly around), and make the duplicate mirror vertically 'everything'. As if it's a water reflection?
I'm only simplifying my case, in reality the display object has complex and multiple moving objects with filters.
View 4 Replies
Apr 3, 2009
I posted a question regarding how to make a ladybug move around the screen and I managed to make a class that loaded a ladybug png then using a timer moves the bug around the screen...
but I have a huge problem...this has been bugging me all day and cannot find a solution...
The ladybug moves around the screen but rotates towards the moving direction before moving. The problem is that the ladybug is rotating at 0,0 axis and not at the centre of the movieClip. Is there a way to offset the registration point so that the ladybug rotates centred?
[Code]...
View 1 Replies
Nov 5, 2009
Just joined this forum and getting back into flash after a few years away, im currently using AS2 and was wandering if there was a way to create a zooming effect which zooms on the z axis in AS2the zoom starts way off in the distance and then zooms all the way off the screen.
View 3 Replies
Jun 23, 2011
I want to have a fade effect in between different images, but I don't know how to incorporate it. Could somebody modify this code or tell me how to modify this code so that it will fade in between images?
View 4 Replies
Dec 29, 2010
How can I create such rotating images effect using AS3? Using Flash CS4.
[URL]
View 4 Replies
Sep 29, 2009
I have a dynamic textbox, left justified, characters embedded, set on whole pixel x and y, 266 wide and 310 high. I then made that into a movieclip with registration at the center. I then use code to flip it on the Y axis. The text is clear before the first flip when you test the movie. Flipped 180 on the Y axis so that it is backwards it is fuzzy. Flip it 180 again so it is back in its starting position it is still fuzzy. I have tried doing it without code, just flip by entering a value in the transform panel for the Y axis, it still goes fuzzy.
I need the text on the backside of my panel to be clear. go here to see the full panel in action [URL] click through to "work" on the menu. I am attaching a very simple FLA with a flipping textbox mc and a plain textbox on stage to show how the text should look
View 1 Replies
Mar 18, 2010
My client has a simple shape that they want the user to be able to animate, i.e. it looks like a single square on the stage, but when you grab it and drag, a load of squares appear and fan out from the corner of the first. I was thinking, I can easily achieve the first part of this by attaching, say 20 movieclips of my square to the stage, but I'm not sure how to approach the back/forth draggable aspect of this.
View 1 Replies
Mar 23, 2006
If I click on mc1, then mc1 has to go to the position of mc3, mc3 has to go to the position of mc2. The same thing must happen when I click on mc2, it has to move to the position of mc3 and mc3 has to move to the position of mc1. I would like to create some kind of infinitive effect by rotating the mc's. In a later stadium I want to fill the mc's with pictures.
View 2 Replies
Apr 20, 2009
I am trying to build a portfolio site with a 3D rotating effect.I am new to Papervision so I might be doing something stupid with my code. Anyway, this is my code, but nothing shows up on stage when I load it:
Code:
private function init3D():void {
opaqueBackground = 0xFFFFFF;
camera.focus = 100;
camera.zoom = 11;
[code]....
note: assets is an array of movieclips that I created containing my images loaded from an XML file.
View 2 Replies
Jun 30, 2011
i am currently having trouble with my object rotating to face another object.currently it works fine as in this picture, my object at the origin will be able to rotate and move to the object in the 3 quadrants except the quadrant with positive 90degrees to 180 degrees, my object will rotate a few full rotation for some time while moving to the object does anyone know why? the sentence that i use to rotate is rotation += (foodLocationDegrees - (rotation - 90)) * .2; whereby food is calculated using
[Code]...
View 1 Replies
Oct 29, 2003
how can i grab an object and rotate it with an object which is on it rotating [meaning that the second object is on the same possition on the first object?] can i make it being horizontal all the time?
View 14 Replies
Jun 28, 2011
currently i have a function in which my object fish will move to a food i am having trouble getting it to rotate nicely to the food currently my function is as below.if the food is above the fish my fish rotation is 0 which is facing up, if the food is below my fish i will give it a rotation of 180 which will make it face down , however the rotation is too sudden it does not give a nice and realistic effect of rotating to the food.how can i make it when rotating to move some distance and at the same time rotate? because it cant rotate to the food in the same spot as it would not be realistic.
public function moveToFood():void
{
var foodTarget:Food = fishArray[fishArray.length - 1];
[code]......
View 5 Replies
Feb 7, 2006
in a nut shell I have found this wicked piece of open source actionscript.
It responds to the cursor and was wondering if it is posible to modify the x_position and y_position actions and make the action respond to a moving object???? (a movieclip with a variable name)
is this to complicated to attempt or is it doable??
ACTIONSCRIPT
Code:
//
var rows, colm:Number;
//
[Code]....
View 2 Replies
Oct 4, 2010
I'm using CS3 with ActionScript 3.0. What I want is simple, and I've done some searching but nothing that can get me the right results.I'm going to post a link that does exactly what I want: http:[url]......This rotates the circular object around a center point in a way that you can distort the object yet is still remains turning in a circular motion. A simple motion tween rotating the image will only work if the object is perfectly round, so distorting the object to make it more straight or curved won't work with a simple tween. I want to do exactly what is happening here (with my own object), is there some AS3 behind the scenes here making this turn on a center point?
View 3 Replies
Apr 21, 2011
i'm trying to use actionscript so i can make an object move up and down the Y axis by inputing numbers into a textbox. However at the moment my object starts in the centre and then when i enter a number it only goes down, and im not too sure how i can use negative numbers to make it travel up the y axis. I was thinking of using the numbers -10 - 10 so -10 would go down and 10 go up. Here is my code
Actionscript Code:
// EXAMPLE WHERE TEXTBOX USED TO POSITION A BALL ON THE STAGEpackage { import flash.display.Sprite; import flash.display.Stage; import flash.text.*;
[code]......
View 2 Replies
Mar 2, 2011
I have a problem. I got an object on the z-axis that goes back to position 500 on the z-axis whenever it hits 0. I want it to move to a random position on the X-Axis.
So far so good, but when it goes back, I want it to choose another random position. Instead it returns in the same angle in which it left the screen so it will eventually leave the screen. Again, I want it to go like left, right, right, left or whatever, but not the same way all the time. [code]...
View 0 Replies
Oct 4, 2010
I'm using CS3 with ActionScript 3.0. What I want is simple, and I've done some searching but nothing that can get me the right results. I'm going to post a link that does exactly what I want:This rotates the circular object around a center point in a way that you can distort the object yet is still remains turning in a circular motion A simple motion tween rotating the image will only work if the object is perfectly round, so distorting the object to make it more straight or curved won't work with a simple tween. I want to do exactly what is happening here (with my own object), is there some AS3 behind the scenes here making this turn on a center point??
View 5 Replies
Jan 23, 2009
I have an object that is being moved along it's x axis a certain amount each time an button is pressed. I want to be able to restrict the movement of that object along it's x axis so that it can not go past a certain point.
View 2 Replies
Jul 16, 2009
wanna spin an object on its axis 45 degrees each time by pressing 4 buttons, so 1st button moves it 45 degrees, 2nd button moves a further 45 degrees and so on...I've got the sliding of an object left to right or up and down nailed to this code
onClipEvent (load) {
_root.newposition = "null";
}
[code].....
View 7 Replies