Actionscript 3 :: Skew Or Change Perspective Using Greensock?
Jul 5, 2010I want to tween programmatically an image using greensock, but i dont know if it is possible to make it look like the image is 3d.
View 1 RepliesI want to tween programmatically an image using greensock, but i dont know if it is possible to make it look like the image is 3d.
View 1 RepliesI would like to draw a grid in perspective and draw a circle in in te left bottom corner.But I am not able to get it right.[code]...
View 1 RepliesI have downloaded the "greensock-as3.zip" extracted it and tried to run the following file to install the plug-in. But it throws an error "Unexpect file format".
greensock.swc
i am new in flash development, i heard that Greensock lib is the best one. But when am trying to download its really confusing. there are a lot of names like
* TweenNano
* TweenLite
* TweenMax
* TimelineLite
* TimelineMax
* Tweening Platform v11
Which is the best or full featured lib.. where do i get the download link for the complete package or. lease guide me if am wrong.
LoaderMax uses the following function in their DisplayObjectLoader.as class which is under loader/core :
Although they have put the forced GC under a Try/Catch block. Flash Player 11 still manages to crash on it. Any ideas about this?
protected static function _forceGCHandler(event:Event):void {
if (_gcCycles == 0) {
_gcDispatcher.removeEventListener(Event.ENTER_FRAME, _forceGCHandler);
_gcDispatcher = null;
[Code]...
Using the greensock tween engine I have a little effect going over my button. It works when I publish on my desktop. But stops working when I import the swf into my main swf. It's the scaling e.target, that is not working!
PHP Code:
map.east.buttonMode = true;
map.east.mouseChildren = false;
map.east.addEventListener (MouseEvent.MOUSE_OVER, eastOverHandler);
map.east.addEventListener (MouseEvent.MOUSE_OUT, eastOutHandler);
function eastOverHandler (e:Event):void {
[Code] .....
I have a page I'm developing that has a greensock split text field that I use to animate text. [URL].. I'm using a timer to help control the tween it doesn't work real smoothly.
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.text.*;
import com.greensock.text.SplitTextField;
[Code]...
importing GreenSock external classes into my flash project.
Line 27: import gs.*;
DesktopmyFlashAPPS wittersrczainu witterMainClass.as, Line 271172: Definition gs could not be found.
[Code].....
ive got xml file which in:
HTML Code:
<easeType easeType="Bounce.easeInOut"></easeType>
and after xml loaded to flash i set variable which is actually set up in function after starting flash movie to just refresh values of variables:
ActionScript Code:
newEasing = setupXmlList.attribute("easeType");
changeSetup(newEasing);
[Code]......
but there is no any change whichever easing i choose... I think there is some issue with refferencing objects, as from XML there comes String and in the TweenLite constructor i pass a string when i think some specific object is required.
I am finding my way with AS3 but am having difficulty with a gallery project I am trying to put together based on the sample slideshow available on this site.
The problem relates to reading the thumb and image paths in the xml file. The error that is coming back is:
Loading error on ImageLoader 'loader1' (assets/thumbs/): Error #2035: URL Not Found. URL: file:///C|/Documents%20and%20Settings/Alistair.HOME/Desktop/AB%20gallery%20proj/assets/thumbs/
[Code].....
I want to skew the combo box in flash as2. Is it possible to do so?
View 8 RepliesI'm trying to rotate a symbol while keeping the shape and proportions locked, but even when using Free Transform, my shapes skew (from rectangles to rhombuses to squares).I'd like to keep the lines straight and parallel.Locking the height and width with the link tool doesn't seem to make a difference.Does anyone know how to rotate shapes without the automatic re-proportioning?
View 4 RepliesI have a skewed input text box in the stage.If we press tab, the highlight border is not skewed.How can i skew the highlight border? Or any way to hide the highlight border?
View 1 RepliesI would like to know how to set the skew value of a movieclip as -180. If i try to set, it is setting in positive as 180.
View 3 RepliesHere i am looking to skew and distort the Movie Clip dynamically.is this possible to do?
View 1 RepliesPlace a 100px by 100px box on the stage (not a movieclip, just a simple shape).
Now apply a vertical skew of 30 degrees. You should get this...
Click outside of the shape to release the transformation data. The degrees for skew resets to 0 (this is expected), see image below
But What skew would you apply to the shape to return it to its original shape. Initially I would've thought it was -30 in the vertical skew, but this seems to return a weird hybrid shape.. See below:
i got a problem with a nice skew function From Ericlin of URL...[code]i have prepared a small and plain .fla for you so you can check it out right here, its also attached to the posting (Flash MX 2004 File but should be ok for earlier versions?):url...while the borders of isometric walls are still exactly vertical (90 deg) the function is producing lines which are very slightly skew. might be something like 90.1 deg... but this inaccurancy produces ugly gaps between walls i put together later.This function is maybe not accurate enough, maybe to accurate, i am not sure. But i need probably some rounding in there but i dont know where, really (is that a wonder? look at the script! ;))when you zoom in and look at the "orientation bar" (thick dark blue bar), you will notice that there is a very small gap on the top right corner but its bigger on the bottom right corner of the wall texture.
View 1 RepliesI'm trying to create a nav where I have a bunch of images that are at an angle....and one that is facing the viewer.Sort of like the itunes store ..Is there a way to skew an image with code so that it will achieve this effect?
View 2 RepliesI'm using greensock LoaderMax to load video files and sound files. I've copied as much code as is available to me. A video (s9) is playing and at a certain percentage through the video, I need to play another sound.
[Code]...
1. I am trying understand what horizontal skew does. Does skew means the object is @ a angle to horizonal plane. When i set to 120 ' as horizontal skew it turns upside down. Is there any good web links to understand how horizontal skew works in flash?I checked in some weblinks but it was not useful
View 2 Repliesgot a problem with a nice skew function From Ericlin of Here is the content of the original Actionscript Function:
PHP Code:
function skewObj (obj, mcW, mcH, pt0, ptH, ptW)function distance (pt1, pt2) var dy = pt2.y-pt1.y; pt2.x-
[code].....
Is it possible to make tweens happen at the same time with Greensock Timelinelite?
I know it could be possible to fake it by putting a negative delay in but that's not very accurate.
I want a random image from the xml to be loaded and displayed when gallery is opened, together with gallery thumbs. Then remaining images are to be loaded in the background.
I am having problems pushing and retrieving data from the array that I have set up. The trouble I am have relates to the following code (but I attach a zip with all code and assets).
ActionScript Code:
private function _xmlCompleteHandler(event:LoaderEvent):void {
trace("loading complete");
_slides = [];
[Code].....
I'm trying to apply a GlowFilter (border) to a image and then rotate+skew it. Unfortunately, doing this makes the filter look bad (jagged edges) even though the image itself is smooth. I've tried a few things, including using different filters (like the DropShadowFilter). Here's a rough example of what I'm doing...
[Code]...
images skew when loaded up using loadmovieclip fuction thumbnail images should load at resolution 150x150 but display at 150x175 cant find scaling as in my code (couldnt get scaling to work right with my looping function so left it out)
View 1 RepliesI am trying to skew an spark Image object using a matrix. The problem I am having is that it only effects the top angle. I think it may be related to the position of the image (x and y). The top angle is prefect but the bottom is flat!
Here is a bit of code:
//imgA = pixles down from top left coord, I used arctan with oposite over adjacent to get a radian angle
//size
openImage.width = imgW; //say 200
openImage.height = imgH; //say like 300
[code]....
I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is then animated using Flash CS. Animation is performed using rotate/translate/scale/skew tools. How to create such a component and add it to Flash CS library?
View 1 RepliesI have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.
[Code]...
navigation center left, the grey boxes.click it and the content area will flip 180.how is it possible to do such FX?is there any general methods to use perspective in flash?
- with bitmaps
- with MCs
I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have.
I already tried using a matrix, but that didn't work. I posed a question about it, and there somebody sugested that I should use a 3D engine to get the result I want.
[Code]...