|
-
Prid - Outing
Hi,
sorry for intervening, but koenahn is right, this is all just a huge misunderstanding in communication.
You are sooo ungrateful haha and arrogant haha ... you have been very ungrateful and demanding and arrogant
Actually, koenahn thanked you for your effort and eagerness in helping him, several times, and also apologized for you two misunderstanding each other:
Thanks for your time, angelhdz!
I really appreciate your eagerness to help me.
Again, I sincerely appreciate your help.
I'm sorry we misunderstood each other.
I hope this miscommunication hasn't frustrated you too much, that wasn't my intention.
I am not saying that you are wrong, angelhdz, I just don't understand why you started to get angry with him when he always replied kindly? Maybe you did misunderstand? I am not trying to take anyone's side, but I'm trying to help here. I've seen koenahn help other people here many times before, so I see no reason for him to quarrel with you, right?
He does actually state his problem in the original post:
Now many of you might say things like 'just set the character clip to 'export on frame 1', but the problem is that if I do, the character clip will load before the preloader shows, rendering the preloader kind of useless.
In the bold text, there's already some hint of his problem - he wants to load the character AFTER the preloader, but that's insufficient, we need more info, and this step-by-step text shows what he really wants:
1. User somehow opens the .swf.
2. .swf loads the preloader (white screen) (does not take long)
3. .swf shows the preloader (preloader is now visible)
4. .swf loads the character movie clip (preloader still visible)
5. .swf attaches the character movie clip to the stage (preloader and character clips are now visible)
6. .swf loads the rest of the game's contents (while preloader and character are still both visible)
7. if getBytesLoaded() == getBytesTotal() I'll take it form here.
1. Someone opens the SWF file, in some browser, for example.
2. SWF starts loading the first frame, where the preloader is, because the preloader itself also contains graphics and coding, so Flash actually needs to load that first, before it can show itself, and that's what he means by the white screen. The white screen is shown before the preloader's design and coding has been loaded (actually, before the whole first frame has been loaded), then after that, it is shown, so he doesn't want a custom white screen, but it's an inevitable white screen, you can't do much to prevent it.
3. Flash has now fully loaded the preloader's design and coding (and the whole first frame), so it's now displayed, the user can see it.
4. Flash loads the character movieclip
5. This is pretty self-explanatory
6. "Flash loads the rest of the game's contents", here is where the main problem is shown. He says "the rest of teh game's contents", which means that he would like the preloader to load the character movieclip first, then have it load the rest of the game's content.
I must admit, it also took me some time to get what he really meant, but after reading his second post:
What would help is if somebody could tell me if it is possible to tell Flash to load certain clips before others...
The real reason you're misunderstanding each other, is that the preloader you program in Flash, isn't really a preloader at all. All it does, is that is shows how much of the SWF file Flash actually has loaded, so the actual preloading is handled by Flash itself, it's not something we have control over. So, my answer is; NO, you cannot decide which movieclip to load before others, because Flash does that for you, and there's no built-in function to accomplish such, hence it's not possible!
Did you export the Class to frame 2? File >Actionscript 2.0 settings > Export Frame for classes > type 2
That won't help, because that only includes Classes, and Library Items are NOT classes, at least not in Actionscript 2 (they are in AS3). Therefore, it's not possible to decide in the Linkage options, which Frame to export a Library Attach item, but you can do that manually, by unchecking "Export in first frame", and then manually placing your movieclip on the Frame you want it to be loaded, then it's available throughout the rest of the movie through Actionscript, because usually, when that option is ticked/checked, all those items are loaded in the First Frame.
However, there's an option which you can consider using instead. It's not exactly what you want, but better than nothing, right :P?
There's an event handler which is called when a Movieclip is loaded, it's the onLoad handler. If you use it on the _root movieclip, you can check when the Flash file has fully loaded. I did an experiment myself, and it indeed works with the white screen, and is called once the first frame is visible (i.e. right after the white screen is gone). You can exploit this event handler to check when your Flash movie has been loaded, and then instantly redirect it to Frame 2, where supposedly the movieclip is. Then, you can use the movieclips' properties, getBytesLoaded() and getBytesTotal(), to check when your movieclip is fully loaded. I am not sure if this will work, because I haven't tried the method with having the movieclip on second frame, hence I don't know whether it will actually be shown at once there, or if it will appear once it has been loaded (once getBytesLoaded()/getBytesTotal() is equals to 1 [, or 100, if you're multiplying it with 100]). You'll just have to try that for yourself and see if it works. The reason this isn't what you want, is because you don't know when Flash will actually load that movieclip. Maybe it will load it in the end, or halfway through - you never know, but if this works, it's the closest you will get, I think. If you're trying this inside Flash using download stimulation, onLoad will be called instantly when the Test Movie flash player shows up, so don't get fooled by that, because when testing in your browser - according to my experiment - onLoad will be called when the white screen is gone, and the flash's first frame has been loaded and fully displayed.
I hope this helps, and I also hope that you two look past the misunderstanding and get back on good terms
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|