Hi all,
I have a file upload function working nicely, using the new fileReference class. I then takes the image file & downloads it to a Movie clip using loadMovie.
The problem is, that when I try to manipulate the image further - i.e applying a transformation matrix - it won't respond to anything.
i'm trying to use some code (written by
www.senocular.com - if you haven't seen his stuff, i'd recommend a look - v.good) that gives the user a 'free transform' ability on the loaded image. I can get the code to work, when I apply it to an image that has been converted to a movie clip and is already on the stage, but not when the image is loaded into the clip using my upload/download function.
I've tried using the MovieClipLoader class, but I can't get that to even load the image. I think my problem there, is that the file name is only defined once the file has been uploaded. i.e:
- Code: Select all
//works
function downloadImage(file:Object):Void {
imageHolder.loadMovie("./uploaded/" + file);
}
//Doesn't work
var imageHolder:MovieClipLoader = new MovieClipLoader();
var imageHolderListener:Object = new Object();
imageHolder.addListener(mclListener);
function downloadImage(file:Object):Void {
imageLoader.loadClip("./uploaded/" + file);
}
I'm going crazy over this one - apologies if this post doesn't make sense - I think I might have melted a vital part of my brain...
Any ideas most welcomed... i'm going to get a stiff drink...
Thanks,
DrGonzo