Copy link to clipboard
Copied
Hello,
I want to know how to upload images in an UILoader. I know how to do FileReference.
I want to know how I can save it and automatically load it.
Here's the code I have so far...
var fileRef: FileReference = new FileReference();
fileRef.addEventListener(Event.SELECT, onFileSelected);
button1_btn.addEventListener(MouseEvent.CLICK, selectPuzzle1);
function selectPuzzle1(event: MouseEvent): void {
fileRef.browse([new FileFilter("Images", "*.gif;*")]);
}
Copy link to clipboard
Copied