To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-08-2005, 07:28 PM   #1
jane-m
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?
Attached Files
File Type: fla preloader.fla (44.0 KB, 26 views)
jane-m is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.