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

PROGRESS and COMPLETE Events explanation...

Community Expert ,
Feb 07, 2010 Feb 07, 2010

Copy link to clipboard

Copied

Hello everyone, I am looking for someone who would explain something to me.

While creating a preloader in Flash using AS 3.0, there are 2 events that take place: PROGRESS Event while the file is loading, and COMPLETE Event when the file successfully loads.

The parameters for events are:

-  addEventListener(ProgressEvent.PROGRESS, functionName);

-  addEventListener(Event.COMPLETE, functionName);

My question is: why Progress uses ProgressEvent and Complete uses Event? What if you use Event in both?

Any help will be much appreciated.

Adobe Community Expert
Adobe Certified Professional
TOPICS
ActionScript

Views

382

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 Expert ,
Feb 07, 2010 Feb 07, 2010

Copy link to clipboard

Copied

LATEST

try it.  you can learn alot from experimenting.

you'll find the Event class has no PROGRESS property. why adobe created a ProgressEvent with a PROGRESS property instead of creating a PROGRESS property for the event class, i don't know.

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