Hi,
Sorry, newbie question.
I have been developing a T-Shirt Designer (http://www.thanweb.co.uk/terry/flash/t_shirt.html) and found some AS to enable a file upload.
The following code is a small section of my code that uploads a users image to a folder and then downloads the image for preview in a scrollPane.
I want to be able to Drag and Drop the image that is inside the scrollPane, but the script (below) does not work??
function downloadImage(file:Object):Void {
var Pic = "./files/" + file;
imagePane.contentPath = Pic;
this.imagePane.Pic.onPress = function(){
imagePane.Pic.startDrag("");
this.swapDepths(this.getNextHighestDepth());
}
this.imagePane.Pic.onRelease = function(){
imagePane.Pic.stopDrag();
}
}
Thank you for looking