preloading one scene at a time

This is a discussion on "preloading one scene at a time" within the Flash & Multimedia Forum section. This forum, and the thread "preloading one scene at a time are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 5th, 2003, 13:29
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
preloading one scene at a time

Because I've got a website that is around 600KB, it would take quite long on a 56K to load it all in one shot at the start. Instead, I prefer to load it scene by scene... as in.... go to scene 1 and in scene 1, it will launch the preload the sequence and verify if ONLY scene 1 is loaded. If scene 1 is completely loaded, it goes to an play a particular frame. Flash then goes to the frame and plays the animation and displays the rest of scene 1. Lets say the user selects Scene 2. What will happen is that the preload sequence will start again, ( this time residing in Scene 2 ), to verify if scene 2 is loaded completely before playing the rest of it.

I've seen this in many sites, such as netdogz.com ( plz go there to get a better picture of what im talking about )..... I think it should be possible to do so but may be quite difficult???? i would like to hear from u if it is possible to work out such a preloader....

PS : If you really don't get what I'm talking about... then please tell me in your reply. I can show you some kind of a design plan ( I can plot it on a piece of paper and then scan it in and post the image on my webbie ).

Thanks in advance for any solutions. u ppl have been very helpful

  #2 (permalink)  
Old Sep 5th, 2003, 13:50
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
ok... ive drawn the main idea. http://www31.brinkster.com/gwxthebest/idea.jpg
Also, as I've got to finish the project in 2 days' time... is it possible to finish it within 2 days ( provided I can spend up to 4 hours per day doing this ? )
by the way, hope you care to download the 100kb image if you don't know what Im talking about or want a clearer picture
  #3 (permalink)  
Old Sep 5th, 2003, 15:34
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Your picture doesn't show up... It says access denied. I know what you mean on the scenes thing, but 600kb isn't that big. I am sorry, but I don't know how to make a whole program load, much less a scene, i just wanted you to know your pic didn't show.
  #4 (permalink)  
Old Sep 5th, 2003, 15:57
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
it works alright here... but maybe http://www31.brinkster.com/gwxthebest/idea.html
would work. guess brinkster does not allow direct linking to images or something...
  #5 (permalink)  
Old Sep 6th, 2003, 09:37
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
i think chances are that CANNOT be done and that I done it all the wrong way .....

What happens at www.netdogz.com is that each portion of the site loads dynamically from an external SWF... that could also explain why the background sound plays seamlessly along the website...[xx(]

I don't have time to redo anyway if the only way to do it is through loading external movies so please tell me if you know how it can be done ( preloading one scene @ a time ).
  #6 (permalink)  
Old Sep 6th, 2003, 11:59
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You were right to pick up on the seperate files. That is how the music plays across the background and new sections can be loaded, etc, etc. This is the best way to do things.

Ok... Because all the scenes are located in one file, it is impossible to load one scene at a time. The browser loads the file and that is that.

It is however, possible to detect if a scene has been loaded and this should be ok in your book?

Code: Select all
ifFrameLoaded (200) {
    gotoAndPlay(1);
}
ifFrameLoaded allows you to find out if a frame of number (200) has been loaded. If it has, then you can .... do whatever you want... in this case gotoAndPlay(1);

Using this you should be able to specify the number of frames for each scene and put this loader in each. You can keep looping back to this frame to keep checking that the scene is loaded.

Hope you understand, if not I'll rustle up a demo file :wink:
  #7 (permalink)  
Old Sep 6th, 2003, 13:43
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
I understand what you mean... so am I right to say that the loading and preloading of the various sections of www.netdogz.com was done using the dynamic loading of external movies? thanks 4 taking the time 2 reply anyway
  #8 (permalink)  
Old Sep 6th, 2003, 17:06
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Yep, you're completly right. Which means that nothing is loaded until you hit the button and then flash monitors the loading and tells that file to play when it's done.
Closed Thread

Tags
preloading, scene, time

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
scene syntax Rick Flash & Multimedia Forum 5 Sep 27th, 2007 21:25
Scene Loop again monkeygraphik Flash & Multimedia Forum 0 Sep 25th, 2007 09:11
Scene loop monkeygraphik Flash & Multimedia Forum 2 Sep 23rd, 2007 17:56
preloading using a swf? nikising Flash & Multimedia Forum 7 May 23rd, 2007 08:42
Adjusting time from server time to local time Tim356 Classic ASP 10 Jun 21st, 2004 14:57


All times are GMT. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43