Skip to main content
Known Participant
February 17, 2022
Question

Upload and Save Images using AS3

  • February 17, 2022
  • 1 reply
  • 225 views

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;*")]);
}

    This topic has been closed for replies.

    1 reply

    Known Participant
    February 17, 2022

    Here's the example...