To be successful in your life, you must be able to communicate well with all people around you. So learning about the communication styles helps the listener to understand the speaker’s point of view and helps the speaker how his communication affects the listener.
There are four styles of communication, no one of them is better than another. The population is divided among these styles and the people of each one play their role in our life. I think everybody also can communicate with any one of these styles according to the situation but absolutely everybody has his major communication style.
Preloader is a custom class which allows developer to implement the loading page style of the application instead of flex default progress page.
Developer should take care of some problems when implementing Preloader
If developer uses any class of the project inside the preloader, this will cause the whole project to be loaded then the preloader will be shown next, if this happened the main use of the Preloader will be lost since the progress value will be 100% because the whole application is already loaded.
Developer shouldn't use any class or even any static variable inside it when implementing Preloader.
If a flash object is hosted on a remote server, and the remote server applys the cloud computing system this will be a problem because:
onProgressHandlerprogress should be equal "bytesLoaded / bytesTotal".
bytesTotalis the problem since it takes more time to be loaded,
- BytesLoaded will be sometimes equal to or even larger than bytesTotal so preloader will dispatch completion Event although application not loaded yet.
onProgressHandlerprogress should be equal "bytesLoaded / DefinedApplicationSize".
- The whole idea is to make ANT task to automatically generates a file which contains the size of the application in compiling phase of the project.
- Developer should retrieve this value from the file generated in the start of Preloader work then set the "DefinedApplicationSize" value.