Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-23-2004, 06:09 AM   #1
the chad
Registered User
 
Join Date: Sep 2003
Location: New Zealand
Posts: 7
Default Flash 5 - preloader and animation for external swf's

Hi,

I need to create a preloader that loads external swf files, but instead of counting values etc, rather have some animated doors slide over the top of the MC that the external swf is loading into.

When the external swf is loaded, I want the sliding doors (or image or whatever) to open back up and reveal the loaded movie.

I found a Flash MX version of this, but cannot find a Flash 5 version. I know it can be done in Flash 5 cos' I have seen sites that utilised it before MX came out.

Thanks in advance,
the chad is offline   Reply With Quote
Old 03-27-2004, 04:21 PM   #2
Warrior
Victory Is Mine
 
Warrior's Avatar
 
Join Date: Apr 2003
Location: Earth
Posts: 1,233
Default

Man I haven't been here for a long time. Anyway, preloaders are my speciality.
Have a movie clip with sliding doors with 100 keyframes and is animated. Put a stop action in the doors movie clip and put this code on the preloader scene

First Frame
Code:
Preloader = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
if (doors._currentframe<Preloader) {
    doors.play();
} else {
    doors.stop();
}
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
    _root.play();
}
Second Frame
Code:
gotoAndPlay(_currentframe -1)
I have attached a example for you in Flash 5 format.
Attached Files
File Type: zip doors.zip (119.5 KB, 388 views)
Warrior is offline   Reply With Quote
Old 03-27-2004, 08:39 PM   #3
the chad
Registered User
 
Join Date: Sep 2003
Location: New Zealand
Posts: 7
Default re: animation for ectarnal swf's

Thanks Warrior,

I appreciate your help.
I'll check out the attachment you sent me.

Cheers,
the chad is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:04 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.