Upload and Save Images using AS3

New Here ,
Feb 16, 2022 Feb 16, 2022

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

Views

27

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

LATEST

Here's the example...

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines