ActionScript 2.0 :: Distort A Loader In It?
Aug 11, 2009How can I distort a Loader in AS2?
View 6 RepliesHow can I distort a Loader in AS2?
View 6 RepliesI know how to use the Bitmap transformation matrix to manipulate an image using ActionScript, but I cannot �distort� an image. I can only scale and skew.
I did a bit of research before posting my message, and I found a very complicated process of using Fuse along with Sandy (custom class) and some other custom classes. But there must be an easier way.
I simply want to distort an image like in the example below (I am referring to the one with the caption "No")
I have a movieclip that I load a jpg image into. I can rotate the movieclip & scale it in x & y directions which is great BUT has anyone got any ideas how I could distort it into a trapezium using actionscript?[code]Scaling the y is fine, but I effectively want to scale the x dimension by different amounts depending on what the y position is.
View 3 RepliesHow do I make this effect... to Drag a CD image, (about 300x300 pxls) to the right of the stage and at the same time, while dragging, making the cd to flip in position to get inside a CD drive or something? When realesed inside the drive, a music clip would play. If release outside, go back in initial position.
View 1 RepliesAll I want to do is have a word start as a normal word, and then distort into a U shape, like the word is smiling. I've been googling and tutorialing and all I have come up with is breaking the word up and then using the distort tool, but it distorts every corner of every letter, isn't there a way to distort the whole word just a little? Also, when I "create shape tween" the text dissapears and when I "create motion tween" it needs to turn into a graphic so then I cant even use the distortion tool. What do I do?
View 2 RepliesHere i am looking to skew and distort the Movie Clip dynamically.is this possible to do?
View 1 Replieshow to use sandy to distort a movieclip.
View 5 RepliesIm unsure if this is possible, but I'm looking for a way to distort a rectangle to become a curved shape,So far I can do this through using a variety of masks and blends, to create the illusion, but the as the shape isn't really distorted. Thus artifacts in the image are not distorted.
View 8 Replies[URL] I just watched a tutorial where they apply bnes to deform a "bitmap" image. Their image didn't distort like my image. Why is this happening. I imported an image then I "selected "break apart" and then I added bones to it. When I move the bones it makes the image distort, but in this tutorial here the image doesn't distort. What is wrong?
View 6 RepliesI was wondering how to distort a Flex object like Panel so it looks like a trapezoid?
View 2 RepliesWhat I would like to do is to take a loaded GIF file as a Bitmap and then distort it by stretching and shrinking parts of it, so it would look like it got squished up against the screen. I'm pretty sure that there's no easy way in Flash to go beyond scaling and shearing, but I wonder if there might be some simple techniques to accomplish this kind of effect. By the way, I've also thought of pre-deforming the images in GIMP and saving them there, but I can't find a simple way to do it without learning their scripting language.
View 1 Replies[URL]. In this site, we can change the distort the shape of the text. We can do something like we can do in photoshop. How to do this?
View 1 RepliesI have a movie clip with a square inside. I want to use actionscript to distort the movie clip into a perspective shape, like this: [URL]
View 1 RepliesWith the select tool, I placed my mouse over the edge & it changed to the little curve sign, but when I dragged it, it just moved the rectangle. Same thing when using the transform tool.
View 3 RepliesIn flash cs4, i've created motion tweens on 4 separate layers with 4 different movie clip symbols that were created with the pen tool. it seems to be fine when i scrub the playhead, but when i test the movie, 2 of the movie clip graphics distort, and the bottom halves of them move faster than the top halves.
View 2 RepliesI wanna transform and distort my sprite which has bitmap childs from this ._ |_| To this .._ /__
View 3 Repliesim searching for a class or way to disort my movieclip like this. but all i can found are ac1 or ac2 workarounds . it must work with flash player 9
View 3 RepliesI have a movie clip with a square inside. I want to use actionscript to distort the movie clip into a perspective shape, like this: [URL]
View 2 RepliesHow to distort the dimension of an image like from left side little small and from right large.
View 1 RepliesI am developing some Text effects in AS3. I did complete curve text effect but are getting problem with bulge text. Because bulge text distort each characters so i have to convert the text to bitmap format to distort. The problem is the quality is not good enough, especially when we resize the object. I see in some websites they solved this issue and it works pretty good, like as [URL].
View 1 RepliesAs part of my flash design, I want to have some tweening text. At the beginning of the tween, the height of the text needs to be distorted ('too tall'), and at the end of the tween, the text will have settled into its correct height. However, when I try to scale the text in the first keyframe of the tween, the font size changes along with the text field height. Normally, I could just make the text into an image, but this needs to be a dynamic text field. Is there no way to scale the height of the text field and distorting the text height without changing the font size?
View 1 RepliesI have two swf files, each one almost with the same classes, the most important one is a Singleton class, each swf does "singleton.getInstance()". The diference is that one swf is like a container and the other one is like a module. So when the container loads the module from an absolute path like loader.load("file://c:/modules/module.swf") or loader.load("[URL]"), two different singletons (same class) are created
But when the container loads from a relative path like loader.load("module.swf") , just one singleton is created (that is what I want) I am just intrigued with this behavior, could someone explain me this? PD: I believe is something related to loaderContext and applicationDomain but It also appears that isn't working right. -Patricio Foieri , Vertigo Labs
The title describes the problem: Loader.load() is firing the INIT event, but in my listener it's reporting loader.content as null. The description for INIT event is "Dispatched by the associated LoaderInfo object when the properties and methods of the loaded SWF file are accessible."I'm loading a lot of JPG images, and 95 percent of the time it works fine; the init listener fires and reports valid loader. content.I absolutely need loader.content available because I need to set the bitmap smoothing property to true.I've tried using Event.COMPLETE and it has the exact same problematic behavior.
View 13 RepliesI'm feeling a bit low now as I have been suffering this for months. A simple loader loads my simple game and runs VERY FAST on even slow pcs BUT when I build this other loader, it goes quite slowly and I don't know where the app is going wrong. WHERE is the processing consumptoin coming from out of my app.
[Code]...
I have the following code which simply loads an external swf, puts it in the right place and should all be hunky dory.This works:
Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest=new URLRequest("foobar.swf");[code].....
to set the dimensions of the loader so the external swf doesn't 'spill over', the result is a blank screen. No matter how high I set those dimensions it just doesn't display anything.
I got this very strange behavior from FlashPlayer debugger 10.1 r82. When I call loader.load method, no ADDED event is dispatched to the loader object. But if I open the file and call loader.loadBytes instead, an ADDED event is dispatched to the loader object. I suspect the ADDED event is dispatched because the content is being set as the child of Loader object, but why in the other case it is not dispatched?
View 4 Repliesthe file loads correctly but the loading screen only flashes up at the end.The only thing being exported in frame 1 is the loader image, and that is extremely small.Is it possible that there's a queue of things being loaded and the loader image is at the bottom of that queue? Since that was one of the last things added to the project
View 1 Repliesi have a main loader swf file called loader.swf and it loads an RSL.swf (runtime shared library for my swf files) and then 10 swf files, each one to a container (fE.: movieclip '01' in loader.swf, then movieclip '02' and so on). the 10 swf files have a lot of references to RSL.swf, and i have to use RSL.the problem is when loader.swf loads the RSL and the other 10 swfs the loader throws errors like this:
Code:
*** Security Sandbox Violation ***[code]...
then i put in EVERY swf files (loader,RSL and the other 10) the code Security.allowDomain ("*") but throws the same errors...
I'm loading some images with Loaders, cloning the BitmapData to a new Bitmap, and adding the Bitmap as a child of a Sprite. So far, so good. I want the Loaders I'm using to be removed by garbage collection, which they seem to be. The problem, or so it seems, is that when the Loaders are cleaned up, the Bitmaps I'm creating lose their data.
Edit: All this is happening when a class is instanced, and many copies of this class are being used as actors in a game. As the Actors are being created the older ones are losing their BitmapData to garbage cleanup. When all of them are finally loaded, only the last few are visible. I've rewritten my posted code as a class. If I prevent the Loaders from being cleaned up by somehow keeping a reference to them, the Bitmaps don't lose the data, but I don't want these Loaders hanging around.
[Code]..
I am attempting to load multiple images in AS3 and I'm exploring different options on how this can be done.I would like to have to only use one Load() instance and handle the various image assignments in the onComplete handler...here is my first attempt:
var buttonLdr:Loader = new Loader();
buttonLdr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
buttonLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadCo
[code]....