I'm Flashing
- Started
- Last post
- 15 Responses
- dippy
Not really. I just need help with Flash.
I have this .fla that has a preloader in the first scene, and a scrollpane that contains a large .png within a movieclip in the second scene. Problem is when I run the file, the preloader doesn't show up, even though the file is streaming.
I'm a Flash n00b, and I've already searched macromedia.com and google. No dice. Any help?
- dippy0
oh yeah, when I remove the scrollpane and the movieclip that contains the .png from the library, the preloader shows up just fine.
Aaaarrrggh!
- lvl_130
'scene'?!
first off stop using those. start using mcs or loading in seperate swfs. then preload those (tons of tutorials that can help you there)
- dippy0
I knew I was still in the Flash stone age! Thanks!
- lvl_130
I knew I was still in the Flash stone age! Thanks!
dippy
(Jan 13 05, 22:11)sorry, i wasn't trying to be a dick.
i have a bunch of links at work, but none really at home : /
- Beech0
are scenes really that uncool?
i'm new to flash too, i've used them a bit and they have been working ok, they do slow down the compiling a fuck load i have noticed.
- dippy0
No lvl_13, I didn't take it that way at all. I didn't use //
or didn't you notice?;)
Seriously, thanks for the tip. I'm workin on it.
- lvl_130
: )
no prob. compared to a lot of people on this board flash is also a foriegn language to me...where the hell is unfit anyway : )
- ddefenba0
Could be the components are actually loaded before the preloader. Here is a very lengthy description of the problem:
http://www.bit-101.com/blog/arch…
- dippy0
Okay, this problem won't go away.
So I built a .fla from scratch, including a preloader, using this tut:
http://www.kirupa.com/developer/…And the preloader works just fine as long as the main content of the file is normal stuff (other mcs, text, whatever). But as soon as I put in a scrollpane and a linked mc in the scrollpane, for some reason, pretty much the entire file streams BEFORE frame 1 even starts playing. In other words, it waits until the scrollpane and its contents finish loading before frame 1 starts playing.
So that's why I'm not seeing the preloader. Am I just missing something?
- dippy0
yeah, ddefenba, I think that's it. Sorry, didn't see your post before I posted. Let me read that link...
- ddefenba0
From the wordy article, a link to a simpler description of the fix:
http://www.gskinner.com/blog/arc…
Cheers.
- caseyc0
I always have a stub loader swf that preloads assets into a loadvars or xml object then replaces itself when complete. Basic example:
preloader_lv = new LoadVars();
preloader_lv.onLoad = function()
{
_level0.loadMovie(mainSwf);
}
preloader_lv.load(mainSwf);LoadVars or XML can load any type of file, so once it's done the content is cached and loads (almost) instantly when referenced again.
- dippy0
Yes!!
It's working now. Those articles really helped, dd. Thanks a ton.
It seems to me like it would be a really common problem, I wonder why there's little documentation on it.
Regardless, you guys all rock!
- alin0
BYW alternatively from onEnterFrame() methods it is also useful to remember that version 7 of the flash player supports the new MovieClipLoader() class.
You can use it's methods...
onLoadProgress()
onLoadInit()
onLoadError()to track loading progress accurately.
- System-Idle0
also useful to remember is:
flash loads macromedia components in the first frame of your file before the first frame is initiated, in my experience.Also using any type of pre loader methods in the falsh GUI usually dont show or happen to quickly when you export because flash treats the files you are loading in as already cached. to test properly you need to test your files online