AS3 :: Flash - Simulating RotationX With Matrix?

May 31, 2011

I have to use Flash CS3, so I can't use the properties rotationX, roationY and rotationZ.I have a movieclip, that looks like this. It is now flat, no 3D rotation or shearing But what I want is that this movieclip has a rotationX, or that it is a bit in perspective like this: As I said, I can't use rotationX, so I have been playing around with Matrix. But I can not get it right.Here is how I try to do it

myMC.transform.matrix = new
Matrix(1,0.15,0.35, 1, 0, 0);

And this is the result get the matrix right, or is there another way?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Matrix Algebra And Matrix Inverse?

Apr 5, 2003

Has anyone here ever developed a function (or general library of relevant functions) that will allow one to find the inverse of a matrix? I've searched the forum archives, as well as the internet more generally, but haven't found anything. If anyone has some leads, I hope you'll pass them along.

If I don't hear anything within the next few days, I might try to develop something on my own, but I'd hate to do so if someone has already done the dirty work.

A solution to this problem would be very useful for 3-D work or anyone doing mathematical programming more generally.

View 14 Replies

Flash :: Simulating A Disabled Wmode?

Jan 27, 2011

Here's the thing, I'm making a flash game that uses some pixel techniques like copypixels, bitmapdata, etc.

Im planning to offer the game to FGL (Flash Game License) and I read that they doesn't not allow wmode, and many other portals do the same.

is my game taking advantage of wmode=gpu?.. how can I run my swf file and disable wmode for sure?, I just want to know if my game will run smothly without that wmode enabled.

View 1 Replies

ActionScript 2.0 :: Simulating Undo/redo In Flash Movie?

Apr 11, 2007

i'm making a drawing tool in flash with the ability to draw shapes, put text, etc. i need to incorporate undo/redo facility in it. is there some efficient way to go about it? or will i have to go the hard way, remembering in some way the last three actions performed by the user in an array or stack or something??

View 2 Replies

ActionScript 3.0 :: 3D RotationX/Y/Z With Local Coordinate?

Jan 28, 2012

When I use 3D rotation tool, there is an option called global transform, if it turned off, the object would rotate by its own axes, this is exactly what I want. How can I do rotatation like that with AS3 code? Is there any property if changed then rotationX/Y/Z would rotate object by its axes?

View 4 Replies

ActionScript 3.0 :: My_mc.rotationX = 50 Does Not Work

Nov 30, 2009

my_mc.rotationX = 50 does not work but my_mc.rotationX += 1 does, when inside an enterframe routine; I have also tried my_mc.transform.matrix3D.appendRotation( 50 , Vector3D.X_AXIS), but also does not work;

View 2 Replies

ActionScript 3.0 :: Fonts In RotationX / Y / Z Unsharp?

May 23, 2010

when you rotate fe. with greensocks engine on the X/Y/Z axis with text movieclips, the final state is never crisp with me.lets say your clip is at rotationX 30and tweens to 0 , in other words it starts at an angle and displays full frontal at ends. no matter what i try, the font has certain parts crips, certain parts blurryI've been spending this sunday with all different kind of fonts, embedding, textfields, fontsizes (as you know certain fonts have their "sweetspot" size, etc, etc, etc, it just doesn't get sharp after the rotation.Funny enough, when i trace out my rotation angle it says 0i even tried an onComplete event to force its properties to zero. but to no avail.

could make a bitmap data file from my text, but come on... why do they implement 3D while the results are off? Really would like to hear some tips here because i am tempting to go back at away3D. I was hoping with flash CS5 their 3D render for textfields would be alot better compared to "crash"Cs4Yep theres a slight annoyed undertone here. To me, it should be fundamental or at the very least, tweak-able like image resizing with "smoothing".

View 5 Replies

ActionScript 3.0 :: RotationX Kills MOUSE_CLICK?

Dec 18, 2010

I'm encountering a weird phenomena. I have a multi nested display object structure. Some of the deeper display objects have MOUSE_CLICK events. But as soon as I set main display item container.rotationX = 5 then the mouse events don't work anymore.

View 10 Replies

Flash :: Map A MovieClip To Another MovieClip Which Has Its RotationX Modified?

Apr 20, 2011

I have a movie clip which I have set its rotationX property to -45. This gives the illusion of 3d. It is skinny in the back and fat in the front. I now want to add thumbnail clips on top, but can't figure out how to translate the original clip's x and y properties back to the 2d world.

View 1 Replies

ActionScript 3.0 :: RotationX/Y/Z Cause Blurred/pixellated DisplayObject?

Apr 8, 2009

I don't know if this would be more appropriate under the 3D forum but it could go either way. I'm having a problem: when I access the 3D rotation properties of a DisplayObject (specifically a MovieClip containing a Loader and some TextFields), it becomes bitmapped and loses its scalability. Is this supposed to happen, and is there a way to regain scalability after rotationX/Y/Z are set to 0.0?

View 1 Replies

ActionScript 3.0 :: Enterframe StartDrag Not Working With RotationX?

Jun 10, 2009

I created a full flash template website loading external swf's.Lately, I managed to add a fake3D rotation with AS3 and CS4 to this global template with enterFrame.Problem : some of my external swf use a vertical scroller also using an enterframe function based on a startDrag bar with the x / y position of the mouse, the scroller dont work anymore.

View 8 Replies

ActionScript 3.0 :: What Do ScaleX / ScaleY / RotationX / And RotationY Do

Aug 2, 2009

What do scaleX, scaleY, rotationX, and rotationY do?I'd like to test it out myself but I'm completely new to Flash CS4 and I don't know how to control these values outside of ActionScript

View 3 Replies

Flex :: Find Out Moment After RotationX Has Finished?

Feb 1, 2011

i am playing around with the rotationX/Y/Z properties available in flashplayer since version 10. for testing purpose i created a cube and put canvas objects on three sides of it (top, front, bottom) and created a tween to get the values required for turing by 90 deg. turning the cube (a canvas) using rotationX = xx works well when the three side-canvas objects are small and filled with a not-to-complex element hierarchy. when using larger and more complex content it slows down. the next idea was to remove the canvas elements content and replace it by a snapshotimage of the content instead before starting the turn, after the turn is performed the original content is put back on the sides again.

this results in a good perfomance increase. using a tween the last step of rotation is done in the function that is called as the tweenEnd handler. in this function also the process of copying the canvases content back is performed. unfortunately this results in a short hang of the cube right in that last rotation step, the reason for which is that rotation and copying back takes place at the same time. so i could wait for some time after having called cube.rotationX = endValue by using a timer or setTimeout(func, 500), but this is ugly. so my question is: after having called cube.rotationX = endValue a period of time is required to calculate data for the rotation and do the rotation itself. is there a way to find out the point in time when the rotation has ended, so that then the copying can be started ?

View 2 Replies

ActionScript 3.0 :: RotationY And RotationX Causing A Flickering?

May 26, 2010

I'm using(tweening) the rotationY and rotationX properties on movieclips a layer above a background, bitmap or video, in two respective projects. There is a flickering of the movieclips and some bizarre distortion going on. I can't seem to find anything on the web about this, -has anyone else encountered this problem? Is it a known bug? Is there a workaround?

View 2 Replies

Flash :: Get Scale Of A Matrix Object?

Mar 14, 2011

Most often, questions are asked about how to scale a DisplayObject, and the answer is usually to use a Matrix.

My question is, how to you GET the scale of a Matrix (scaleX and scaleY)?

There's a Matrix.scale method to set the scaleX and scaleY, but it doesn't return a value, and no other properties exist to read it back.

The reason I ask, I'm using object burried deep down into a Display list, and each may be transformed. So I use the child object's sprite.transform.concatenatedMatrix getter, but am stuck at this point on how to read the scale from it.

View 2 Replies

Flash - What Are Spaces In AS3 Colour Matrix

Jan 8, 2012

In the 4 * 5 array that makes up a colour matrix, what do ALL the values do? All I have found is basically this:
0, 0, 0, 0, 0 <-R
0, 0, 0, 0, 0 <-G
0, 0, 0, 0, 0 <-B
0, 0, 0, 0, 0 <-A
What does each thing do?

View 1 Replies

AS3 :: Function To Arrange Depths Based On Z Position & RotationX

Apr 17, 2011

Any smart people out there who can tell me why this function Im working on to automatically sort the depths of objects placed on the 3D plane is only working intermittently? It seems to work every second or third iteration?[code]Is getChildAt(i) reliable? IE does it return the same order each time it runs or is it based on depth? looking at the manual suggests that it's probably the latter so I guess I'll need to make my own array ordered by the time the sprites were added to the parent and work from there. Is there a better way?

View 1 Replies

ActionScript 3.0 :: Animate Two Images On Axis With RotationX Command?

Aug 15, 2010


I am trying to animated two images on axis with rotationX command. it's working when the picutre comes in 90 degree it gets overlapping. I am attaching the picture for your reference

View 7 Replies

ActionScript 3.0 :: Using Bounds In StartDrag If RotationX Property Is Changed?

Sep 26, 2010

I've created a flash card class in ActionScript that uses a tween to flip the card over the y-axis (i.e., by using rotationX). I also use the bounds property of startDrag so that, when you drag it, its movement is locked on the x-axis. (There's also a method for switching between dragging and flipping, but since that's not broken, there's no need to discuss it further).

Here's my problem. If I haven't yet flipped the flash card over, the card drags fine. If I flip the card over and don't use bounds in startDrag, it works fine. But if the bounds property is set and then I try and drag the flash card after it's been flipped, the movement goes all haywire. It basically jumps back and forth between the two ends of the bounds' rectangle.

Is there any way you can think of to solve this problem? Alternatively, is there any way to use sprites to limit movement? For example, would it be possible to place a pair of one-pixel-thick horizontal lines on the top and bottom side of the flash card, set their alpha to zero, and somehow stop the flash card from moving past the lines?

View 4 Replies

Media Server :: Simulating A Webcam

Nov 15, 2010

I have this video chat(video, text and audio) program written in actionscript and using FMS as the media server, that I would like to test out with diff comps. I don't have enough webcams to go around and also not all have a built-in webcam. Is there anyway I can use some software to record the screen activity as a video and than stream it over? I am aware that there are softwares that can record the screen activity, but how do I stream it over after that, while still in my video chat applicaton?

View 4 Replies

ActionScript 2.0 :: Simulating Mouse Clicks?

Jun 13, 2007

I'm building a system that will record a user's experience in Flash (where they click and at what time it was). Is it possible to simulate a click? I would use this to replay the user's experience. If not, I guess I'll have to record what button object they clicked on and pass everything through the event handler.

View 8 Replies

Flash :: Transformation Using MovieClip.transform.matrix ?

Jul 2, 2009

I have problem when dealing with transform in Flash cs4 ....When I rotate my movieclip and trace the output, my movieclip's width also changed....

View 4 Replies

Actionscript :: Get Transformations From Transformation Matrix In Flash?

Sep 1, 2010

I have transformation matrix properties (a,b,c,d). How to calculate scaleX, scaleY, scewX, scewY and rotation angle from those values?

When only one type of transformation is applied, I can figure out that:

scaleX = a
scaleY = d
scewX = c
scewY = b
rotation = arccos(a) or -arcsin(c)

But when multiple transformations are applied at once I don't know how to calculate those values.

I need to do this outside of flash so I can't use any flash helper methods.

View 1 Replies

ActionScript 3.0 :: RotationX And RotationY And RotationZ And PerspectiveProjection Together Break MouseEvent?

Apr 21, 2009

When I change the rotation of a movie clip, and apply PerspectiveProjection, all mouse events applied to that movie clip and all the movie clips inside that movie clip break.The mouse event bellow will not work for me.
 
a_mc.rotationX = 1;
a_mc.rotationY = 1;
a_mc.rotationZ = 1;[code]........

View 2 Replies

Site / Apps For Simulating Internet Speed?

Jan 5, 2003

I have a common problem. Because I am sitting on broadband, I don�t have possibility to se how my productions are going to behave on for example 56K, ISDN or similar connection. Is there any application or site that can actually �squeeze� connection speed for those purposes?

View 3 Replies

ActionScript 3.0 :: Simulating Image RollOut On Screen

Dec 9, 2008

I'm wondering if there is an action script under 1.0 or 2.0 (sorry still trying to learn everything with 3.0) that will allow me to simulate having an image roll out as if it were unrolling on your screen.

View 1 Replies

ActionScript 3.0 :: Very Choppy Preloader - Simulating Download

Mar 17, 2010

I made a preloader for this movie: [URL]. But when I simulate a download, it goes straight from 0% to 100% and the bar goes from nothing to filling only half of the screen. I'm using Flash CS3. Here's the code for the Preloader.fla file:

var req:URLRequest = new URLRequest("movie.swf");
var loader:Loader = new Loader();
var nPercent:Number;
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preLoad);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded);
[Code] .....

The graphic for the preloader is made up of two parts. background_mc is the light blue background for the progress bar and bar_mc is the dark bar that's supposed to fill it up.

View 2 Replies

Actionscript 3 :: Simulating A Trading Card Game?

Mar 8, 2011

Currently, I have a handle on the basic elements of the game, like drawing cards and shuffling. However, I am lost on how to implement the functionalities unique to certain cards.To simplify things, I have a deck class and a card class. The card class includes variables like a card's name and type, and it gets their values by extracting them from a database. But say, if I'm trying to create a Base Set Charizard, how would I store and call his poke-power (read:ability), as it has effects beyond the normal rules of the game and needs its own code.

View 2 Replies

ActionScript 3.0 :: Simulating Mouse Click With DispatchEvent?

Oct 11, 2009

I have few buttons that have listeners for same function like this:

ActionScript Code:
oPodjetju.addEventListener(MouseEvent.MOUSE_DOWN, mainButtonClicked);
prodajniProgram.addEventListener(MouseEvent.MOUSE_DOWN, mainButtonClicked);

[code]........

View 2 Replies

ActionScript 3.0 :: Simulating An IPhone Slide Button?

Apr 15, 2012

He's making an interface design for the iPad, and he wants to simulate the finger-swipe that you can use on iPhones and iPads. How would he do this with a mouse in Flash? When the mouse is clicked and dragged in a certain direction, it must gotoAndPlay() a certain frame

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved