Here's an article on how to do it...it looks correct to me:
You can't set the preloader in Catalyst, but it's fairly easy in FB.
I want to change the preloader too, but don't know where to do this.
On the second line of main.mxml is one entry called "preloaderBaseColor="#fa2756"", but I can't see any differences changing it.
Is there a way to change the style of the preloader completely not only the colors?
Check out the article I posted.
I have inserted the code you posted in that article and it worked,
but I'm not able to edit the FLA file downloaded there.
Is there a way to edit FLA files in FC?
Can I cerate SWF files with FC and use them as preloader?
I guess its time for me to upgrade from Flex to FB.
I haven't done much work on this side yet, so I'll let you know if I have any questions in future.
HI Guys, this is exactly what I have been looking for, the blak on dark grey bar is really confusing people who have longer load times ( welcome to oz internet!)
I kinda understand what your doing but am still such a FB noob that I dont understand exactly where the replacement code sould go.
I know its a pain but can anyone help me with a " making this code work for dummies" ( i mean real DUMB ) instructions???
On another note, I have some videos that are resized and play when an icon is clicked. they are frameless. Again sometimes when a user clicks they take 3-4 secs to play. Does any one have any ideas on how to display a loading or buffering message while the user is waiting??
These are the steps I went to replaced the default preloader:
1. Import the FC project to FB
2. Download the fla_source_files (http://www.flexer.info/2008/02/07/very-first-flex-preloader-customization/)
3. Unzip it, drag & drop the preloader.swf in your FB project to the package explorer, same node as your MXML file
4. Insert preloader="CustomPreloader.swf" to the first line in your MXML project file.
5. Make a new file in your package explorer and name it CustomPreloader.as
6. Copy the code "CustomPreloader class" (link above) and insert it to the AS file.
The problem is, you need some "Flash Creator" to edit and customize the preloader (FLA-file).
I think there is no way to create your own preloader with FC.
Hey lui, thanks so much for taking the time to help me, I'm really struggling with FB ( thats flashbuilder we are talking about aren't we.)
Now to be a total clown ( nothing against mind you ) but for the life of me I have tried what you said and still cant get it to de bug without errors.
I have attached t screens, one with my swf in the package explorer and my preloader="CustomPreloader.swf" in line 2
And the other is the error I get at compile.
Thanks so much for any help and this is really important to me on my projects
Sorry I found the error in my post.
The entry in the second line has to be: preloader="CustomPreloader". (WITHOUT .swf)
This is the name of the class which you define in your CustomPreloader.as.
Hi lui, thank you sooooo much. all up and running now. Thats going to make a huge differance to what im building
thank you again
Hi Laz, you're welcome!
Did you changed the FLA file too?
Yeah, I've just quickly custom'd it based on the elements that were in the file, but I'll look at a more elaborate version later today
<Thanks again so much/>
thanks for the info! check out my site at www.chrisdoughmandesign.com
one question though.... do you see how the loading bar starts over a few times? might it be because the first line of code in FB is a mess?
<s:Application xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.catalyst_test.*" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" preloader="CustomPreloader" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:lib1="assets.graphics.catalystClipPaste32018.*" xmlns:components="components.*" xmlns:lib11="assets.graphics.catalystClipPaste63875.*" xmlns:lib111="assets.graphics.catalystClipPaste63876.*" xmlns:lib1111="assets.graphics.catalystClipPaste63877.*" xmlns:lib11111="assets.graphics.catalystClipPaste63878.*" xmlns:lib111111="assets.graphics.catalystClipPaste63879.*" xmlns:lib1111111="assets.graphics.catalystClipPaste5187.*" xmlns:lib11111111="assets.graphics.catalystClipPaste5188.*" xmlns:lib111111111="assets.graphics.info_and_key.*" backgroundColor="#ffffff" height="600" preloaderBaseColor="#ffffff" width="800" xmlns:lib1111111111="assets.graphics.click_here.*" xmlns:filmroll="services.filmroll.*" xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:valueObjects="valueObjects.*">
it looks like there is something for every time i imported or pasted in something into FC. do you know what is ok to delete? or am i just going to have to deal with that?