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

Upload and Save Images using AS3

Community Beginner ,
Feb 16, 2022 Feb 16, 2022

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

221
Translate
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
LATEST

Here's the example...

Translate
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