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

PROGRESS and COMPLETE Events explanation...

Community Expert ,
Feb 07, 2010 Feb 07, 2010

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

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