---
id: 1341
title: The "initCompleteHandler" function is protected in the FX4 DownloadProgressBar
slug: the-initcompletehandler-function-is-protected-in-the-fx4-downloadprogressbar
date: '2009-04-29T18:35:09Z'
modified: '2009-04-29T18:35:09Z'
status: publish
type: post
author: pmoelgaard
categories:
  - ActionScript 3.0
  - Adobe Flex
tags:
  - Flex
excerpt: null
canonicalPath: >-
  /posts/the-initcompletehandler-function-is-protected-in-the-fx4-downloadprogressbar
featuredImage: null
commentCount: 1
wordCount: 184
readingTimeMinutes: 1
hasMedia: false
hasVideos: false
url: >-
  https://forwardthinking.pemo.me/posts/the-initcompletehandler-function-is-protected-in-the-fx4-downloadprogressbar
---
Great news for all of us implementing Custom Preloaders...

Instead of having a private "initCompleteHandler" function on the DownloadProgressBar, the function is now protected so we can override it in custom implementations. This means that we no longer have to implement the IPreloaderDisplay interface and hack out a lot of the intended functionality in order to have the preloader also handling the load of the application logic so that it does not change to Application View until the Application is considered to actually be ready.

This is great news... making the DownloadProgressBar a lot better... now it all seems like just need some kind of "preventDefault" behavior in order to have total control over the switch from preloader to application without having to bloat the preloader itself...

Currently I am resorting to including either classes such as the PureMVC facade, a Mate eventmap or another kind of EventAggregator into the Preloader SWF in order to be able to hook into it... this is however only possible if you also hack a bit around in order to prevent the default switch from preloader to application.
