Flash Loading

Hey, I’ve delt with the problem before and somehow, I managed to solve it, but then I forgot how. Now since I’m revisiting Flash, I get it again…Anyways…I recently tried to do a bar preload by the kirupa tutorial (beautiful), which taught me a lot, I can’t test it out though. The actual movie is somewhere around 1.5mb. The actual content isn’t that big, but I had to put a music file in there to see if the preloader actually works. Now, in Dreamweaver, I created a link to the swf file:

< A
HREF=“http://members.lycos.co.uk/maxtr0sity/AsianInc.swf
TARGET="_blank"
>Flash
< / A >
^separated and capitalized to avoid link

But when I click on the link, a new window pops up (suppose to), but nothing happens. I think my IE is trying to load the entire movie first and not let the movie load it self. I doubt that I’m right, but any clues?

ok do this go flash and hit ctrl + enter to test your movie. go to bandwidth profiler and change you connections speeds. slow them down and then hit ctrl + enter twice to see your preloader

Ok, thanks anyways, but I have solved that problem, but neways…i hav other problems now…i dunno if neone has had this problem before, but when i tried to make a file bigger, the fla went really big, and i had warnings by flash that the source code is unstable if i run it, i tried to take out most of the contents, but the fla size doesn’t decrease even after i restart…

mmh that never happened to me
-try saving all your sound files/big images in anothr flash library that you then import, maybe that might save some space…

FLA size will not be reduced, EVEN if you delete objects from your library. The swf will be reduced however, even if the FLA is not reduced. To tell what the produced swf file size will be, do a test and then look in the bandwidth profiler.

as for unstable code… that usually comes from a loop reaching “infinity”. Double check any loops you have for syntax errors.

try removing unused symbols in the library… then save as the file to different filename… then… that’s it!

hope that helps…

ahh… good answer noxious. I did not know that. I’ll have to play around with that a bit.

Well, ok, but lets say I deleted a real big file from the library and the fla is still say…4mb…what if i add more stuff to the fla?..will it go from 4mb?..or is it going to get larger once it fills up the 4mb?

no one cares about the fla file… that is just your source file… if you want to edit, create and such.

the size that you DO worry about is the swf… the swf only save the info that is needed. you can have a million-and-ten unused items in the library, and swf will not include it.

if you want to make sure the swf file is smaller you can change the mp3 quality and jpeg quality in the publish settings dialog box.

try to edit your mp3’s in cooledit or something… try and stick to smaller loops (instead of an entire song (watch out for copyright)). a smaller mp3 loop will help with the file size as well.

erm… what else thinking

watch out for infinite loops in the actionscript like david said… this can cause quite a mess. generally it will freeze the computer up for a bit, then you will get a pop-up message telling you that there is a loop running, and it will ask you if you wish to continue running the loop… JUST SAY NO!!! else you might bomb your computer out.

hope this helped a little bit

:alien:

quite a nice preloader… just copy all the info into your preloader scene… don’t forget the stop(); function on the frame!

:alien:

well…i finally decided on a preloader…right now…the movie has nothing…but by the title…neone wanna make some suggestions?

http://members.lycos.co.uk/maxtr0sity/trial.htm

Me and ahmed has got this so far:

Title: How To Become An Asian
Subjects Covering:
-Chinese food
-Martial Arts

PS.this is suppose to b funny

either the file is f***ing huge, or it is stuck… i can’t get past the “how to become an asian” loop… i think you seriously need a preloader…

or might it be stuck???

dunno? i’ll try again

:alien:

it’s a loop because i havent’ thought of contents yet…

bwhahaha… and here i’m thinking its stuck… erm, maybe it might help if you are asian to give some asian advice. LOL

if (youAreAsian){
add all the tips you can think of;
}else{
ask an asian for help;
}

hehehehe :alien:

lol

*Originally posted by david *
**ahh… good answer noxious. I did not know that. I’ll have to play around with that a bit. **

heeeheee … that’s a nice compliment david! :wink: