ActionScript 3 Sprite Envelope - actionscript-3

I'm quite new to Flash and ActionScript.
Anyway, I wrote my own XML Slideshow, that's working great. The problem I have is that I can't add an 'envelope' effect to the images that are loaded as sprites. I know I can use 'envelope tool' if I break the image apart (ctrl+b) but I need to do it dynamically via AS.
Is there any way to do it.
Rotating the X/Y/Z axis doesn't do what I need.
Looking forward to your replies.
Thanks in advance.

Have you looked at this: http://krasimirtsonev.com/blog/article/distort-movieclip-or-image-in-flash-with-as3?
I think this can help you a lot.

Related

How to create 3d model to display for online use

So this question may seem hard to understand and very vague and that's because I have no other way of explaining this, so I'll try and describe what I want to achieve.
So essentially I want to create a character model (based from the protagonist of Minecraft, Steve). What I'd like this to serve as is a texture viewer from which a user enters his username into. A site that does is can be found here
See how the texture is displayed by a 3d blocky character? That is what I want to create, so essentially a blank 3d model where users textures will appear on when entered.
I'm not asking for entire code on this, I just need to some guidance as to how I would go about doing this.
Thanks for any and all help! If you got more questions I will try and answer them as best as I can. Thanks again!
In my experience, whenever trying to implement some graphics-related feature boils down to working with svg, or canvas, or just plain images. I would recommend that you look into using the HTML5 canvas element with maybe WebGL.

AS3 creating a circle and expanding it by holding the mouse down

The title says it all, I don't know how to code a code that creates a circle, expanding it is no problem, I need help knowing what to code in order for it to be created. Please help :)
Look at the graphics routines in the display class:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics.html
it has examples too.

How to make efficient dynamic mask in starling

I'm trying to make an interactive book for tablets with animations and page flip.
I'm using starling framework.
My idea of page flip is to mask 2 instances of next page with 2 static quads which are moving and rotating (it works great on pc/mac, but slow on tablets).
Using PixelMask is slow/very slow(10-20fps). Using clippedsprite is fast(40-50fps) but cant rotate the mask.
Are there any other options?
EDIT:
During my search I've found the idea of shaders (AGAL in ActionScript3), but I'm not familiar with this. Is it possible to simulate masking by the use of GPU shader?
EDIT2:
This problem was experienced on iPad1, on iPad3 its 60fps :) Dont know how its going to work on iPad2 and iPad4
I'm pretty sure AGAL is the ultimate answer!
But easiest, and still very good, solution is the smart use of ClippedSprites
(Sprites with clipRect since Starling 1.3+)
I've managed to achieve almost static 60 fps on iPad1.
Just needed to remove filters and stop/flatten animations inside Objects!
Filters are massive performance killers!
You can find here a mask class based on FragmentFilter. i got better results with it. But if you want to implement a PageFlip, you can use this class. And here is an improved version of the pageflip with interactive corners. Hope it helps you :D

ActionScript3 Image Morph/Warp

I'm working on an application in actionscript 3
and I need some script to produce effects on images, especially pictures of faces
similar to these:
https://play.google.com/store/apps/details?id=net.andhat.FunnyFaceFree
Any idea?
Thanks!
You'll want to use displacement maps. There are tons of tutorials that can be found on Google.

OCR Actionscript

Hi guys i want to create a OCR in Actionscript 3. At first i thought that i would create a neural network in AS3. But, it's very difficult. Any guidelines on how to proceed would be helpful.
I found this: http://code.google.com/p/zeez/
If you go to the ZeezSample.fla you need to change the main stage class to ZeezSample. It was set to a non-existent file thus the .fla was useless. With that tweak you can see the algo at work. I'm trying to find a way to trim this down and simply recognize a few basic numbers in a flash bitmap / bitmapdata pulled from a webcam.
Cheers!
You could use Alchemy and find a C/C++ library which you would then wrapp for AS3.
I found this one, but I never tried it: http://code.google.com/p/as3ocr/