|
|
|
#1 |
|
Junior Member
Join Date: Mar 2005
Location: Albuquerque, NM
Posts: 1
|
preloader for screen-based document
I'm using Flash2004MXPro. Have created a rather large screen-based file which is in need of a preloader. I understand you can't mix scene-based and screen-based on the same document, so I'm trying to create a preloader that will work by loading the separate screen-based swf file.
I've been on the Macromedia AS forum and gone round and round trying to come up with just the right AS. The closest success has been that I created a preloader with two frames: frame 1 has a MC and the following AS: loadMovieNum("soykaphotography2.swf", 1); stop(); this.onEnterFrame = function () { if(_level1.getBytesTotal()) return; if (_level1.getBytesLoaded() >= _level1.getBytesTotal()) { gotoAndStop(2); delete this.onEnterFrame; } } frame 2 is a blank keyframe. On testing the preloader, it progresses nicely loading in the main movie, however, it won't stay on frame 1 while it's doing it. Instead it jumps immediately to frame 2 and I have a blank screen as a preloader. (Kind of defeats the purpose, eh?) You can view what's happening at my site: http://www.soykagraphics.com/photography/photography_home.html[/url] and click on "Enter Jane Soyka's Photo Gallery" I've attached the preloader file. Any ideas? |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|