$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
If you ever come in a situation where you want to add a preloader to your Actionscript 2.0 orientated applications, and you have also been using components, you might hit the same problem i did, components are not loading correctly.
If you want to preload your AS2.0 app, you need to change the publish settings and change the ‘export script to frame x’ setting to anything greater then 1. (otherwise you will find your users download xx Kb of as code before they see the actual preload clip.).
When you change this option, the AS2.0 code for the components are placed in that frame also. And that is where the problems come in.
The flash components have a default setting per component which says ‘export in first frame’. So your components are being exported in frame 1 default, and they are screwed up because their as2.0 classes are not available yet. The solution is simple yet effective. Change the properties of each component in your library and uncheck the ‘export in first frame switch’. Everything should work great now.
For more infor see http://www.person13.com.
Leave a reply
You must be logged in to post a comment.