| Author |
Message |
davidgue first grade
Joined: 14 Mar 2007 Posts: 22
|
|
| Back to top |
|
 |
guitarman fourth grade
Joined: 04 Nov 2005 Posts: 728
|
Posted: Wed Mar 28, 2007 2:35 pm Post subject: |
|
|
Hi david,
What I would do is to make the preloader with some kind of percentage form where user can view the progress. Otherwise, I would be loading the music from external rather than import it into the site itself.
Do you have .fla to share with us? You can upload it to some temporary site so i could help take a look at it.
|
|
| Back to top |
|
 |
indogo fourth grade
Joined: 03 May 2006 Posts: 223
|
Posted: Sat Mar 31, 2007 4:54 am Post subject: |
|
|
mySound = new Sound();
mySound.loadSound("http://somewhere.com/yoursound.mp3", true);
will load and play an mp3 as soon as enough is buffered
or
mySound = new Sound();
mySound.loadSound("http://somewhere.com/yoursound.mp3", false);
will load without playing...
mySound.start();
will then play it
either way your core movie may be small enough not to need a preloader anyway.
hope this helps
mike
|
|
| Back to top |
|
 |
davidgue first grade
Joined: 14 Mar 2007 Posts: 22
|
Posted: Sun Apr 01, 2007 8:34 am Post subject: |
|
|
guitarman and mike,
thanks for your help. i guess i wasnt too clear about what i wanted to do. i do have a percentage box on my preloader screen (which actually is my preloader graphic, i dont have any sliders or anything) and so it takes a while for this percentage box to show up! this is annoying as people are not sure as to whether the site has loaded or if there is an error. i have actually uploaded this. Please take a look and let me know what you think. I really appreciate your help guys.
www.anugrahahall.com
|
|
| Back to top |
|
 |
guitarman fourth grade
Joined: 04 Nov 2005 Posts: 728
|
Posted: Sun Apr 01, 2007 1:06 pm Post subject: |
|
|
perhaps, u can put up all the content to 2nd frame and the percentage box and script on the frame.
if all else fails, just upload the .fla and necessary files, we will take a look at the codes itself.
|
|
| Back to top |
|
 |
indogo fourth grade
Joined: 03 May 2006 Posts: 223
|
Posted: Sun Apr 01, 2007 11:15 pm Post subject: |
|
|
Well having the preloader as a separate file would solve the immedeate problem...the flash file appears to be about 4.5mb so the sheer size is slowing down the initial appearance of the preloader.
Dynamically loading the large parts is your best route.
For the music use the streaming code I gave you (true) and reduce the bitrate of your audio (mp3pro with nero is good for this or the free thompson encoder) I use a bitrate of 56 kbs (near dialup) which still gives decent quality.
Also dynamically load the gallery images as I suspect they are quite large too judging by the quality.
With the above optimisations you may find the preloader starts much sooner anyway.
I must say I love your design
regards
mike
ps for netscape/firefox your embed code needs 'Anugraha1.swf' to work.
|
|
| Back to top |
|
 |
davidgue first grade
Joined: 14 Mar 2007 Posts: 22
|
Posted: Mon Apr 02, 2007 6:18 am Post subject: |
|
|
| guitarman wrote: |
perhaps, u can put up all the content to 2nd frame and the percentage box and script on the frame.
if all else fails, just upload the .fla and necessary files, we will take a look at the codes itself. |
thanks guitraman!
|
|
| Back to top |
|
 |
davidgue first grade
Joined: 14 Mar 2007 Posts: 22
|
Posted: Mon Apr 02, 2007 6:32 am Post subject: |
|
|
| indogo wrote: |
Well having the preloader as a separate file would solve the immedeate problem...the flash file appears to be about 4.5mb so the sheer size is slowing down the initial appearance of the preloader.
Dynamically loading the large parts is your best route.
For the music use the streaming code I gave you (true) and reduce the bitrate of your audio (mp3pro with nero is good for this or the free thompson encoder) I use a bitrate of 56 kbs (near dialup) which still gives decent quality.
Also dynamically load the gallery images as I suspect they are quite large too judging by the quality.
With the above optimisations you may find the preloader starts much sooner anyway.
I must say I love your design
regards
mike
ps for netscape/firefox your embed code needs 'Anugraha1.swf' to work. |
Mike, first off thanks a lot for your comments! This was my first attempt at making a flash site (for a friend of mine) and your comments are very encouraging
I have a few questions:
1. I tried creating the preloader as a separate file, but I had problems coding it. I did not know how to use my code with an external file.
2. How do I load images dynamically? Is there a datatype like 'Sound' for images?
3. It seems like you knew exactly what kind of coding I had done? Is there a way to view to source code for swf files?
Thanks again for all the help!
|
|
| Back to top |
|
 |
indogo fourth grade
Joined: 03 May 2006 Posts: 223
|
|
| Back to top |
|
 |
davidgue first grade
Joined: 14 Mar 2007 Posts: 22
|
Posted: Thu Apr 12, 2007 12:02 am Post subject: |
|
|
Thanks a lot mike! Sorry I havent had the time to post a reply - i am totally swamped here. I will try what you've suggested here and see how that goes.
|
|
| Back to top |
|
 |
|