• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Upload and Save Images using AS3

Community Beginner ,
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

121

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
Community Beginner ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

LATEST

Here's the example...

Votes

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