View Full Version : Help!
zekebru
08-19-2001, 03:09 AM
I'm having problems with my preloader. I've followed the tutorial on this site exactly, but I am getting a strange error. My preloader doesn't show until about 70% of the way through the downloading! I assume this is because that particular frame is not loading first, but I have no idea how to fix it. This shows up when I test in in the Flash previewer, and also when I test it online. Any help would be greatly appreciated, as I am on quite a tight schedule.
Thanks a ton,
Jesse
08-19-2001, 11:17 AM
if you are using attachMovie or any similar script which involves objects in the library which are not on the stage, they will all be loaded in the first frame. for such cases you have to use the 'Creating Preloaders for the attachSound mechanism' tute. If this ins't the case then your first frame has too much content. your first scene should be the preloader only. the preloader should be text only, or maybe one small graphic. It should not use fancy fonts or any sounds. If you print a filesize report (Ctrl Shift F12 and look around for the option to print a report when publishing) your first frame should be tiny in terms of bytes, if it isn't, fix it :)
zekebru
08-19-2001, 11:31 AM
Thank you!
I haven't seen the 'Creating Preloaders for the attachSound mechanism' tutorial existed! That's almost definitely my problem. Thanks again.
Cheers,
zekebru
08-19-2001, 05:21 PM
Just when you think you have it figured out . . .
The preloader is now working just fine, thanks to your help, but now my music won't play! I know that my problem is a path problem, and I've looked through the forums, but I can't find a distinct answer to my problem. I am creating sound objects like so:
loopOne = new Sound()
loopOne.attachSound("loop");
Now, when I refer to that from inside that movie (sound.swf, which is attached to the root movie with attachMovie), how do I refer to it? Do I use _root.loopOne, since it is in the _root path of the that particular swf? I put a trace on the Volume of my first loop, and it is doing what it is supposed to do.
I'm sorry that wasn't very coherent. Let me give you some more info, though. I have tested the movie (sound.swf) on its own, and it works fine if I specify everything as _root.
Even if I do that, though, I hear no music when I test the main movie. Am I not allowed to play sounds from the attached movie?
I'd appreciate help, as I am without a clue as to how to make this work.
Thanks,
zekebru
08-19-2001, 05:37 PM
Okay, scratch what I said about doing everything you said . . . I forgot the fun little part about the target for the sound. I specified the target as _root, and now all is well! Thanks a ton for the help!!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.