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.
Copy link to clipboard
Copied
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.