all groups > macromedia flash sitedesign > march 2006 >
You're in the

macromedia flash sitedesign

group:

Movie pauses but plays correctly when browser refreshed


Movie pauses but plays correctly when browser refreshed klloyd
3/29/2006 1:01:36 PM
macromedia flash sitedesign:
I am having an issue with the below fla file. The first time you view
the movie in the html page, it will hang for unknown reasons. But if
you refresh the browser, it will play correctly. I also have the flash
file available at the link below. I'm assuming it has something to do
with the actionscript but I can't locate the problem. Please help I'm
stumped here!

http://test.idnrteachkids.com/interactive/creatures2.html

http://test.idnrteachkids.com/interactive/creatures2.fla
Re: Movie pauses but plays correctly when browser refreshed Ralph
3/30/2006 12:59:31 PM
klloyd skrev:
[quoted text, click to view]

Well, as I see it your scene is too complicated and contains
way too much to be functioning properly.

I learned pretty early that the best thing to do is to make
a movie as a "master" and make several more movies loaded
into that when needed. You can compare with "structured
programming" where you have a main program and several
sub-routines.

Then you have more control over the situation.

If I were you I would split op all the main parts into
several separate movies and load them as necessary into the
main movie.

There are several advantages apart from mentioned, one is
that the loading of the movie does not take so long when all
is downloaded in the beginning. You know, it is over 1,5
Mbytes, calculate the loading time with 56 kbit/s! It comes
to well over 4 minutes! It is better when it takes a few
seconds the first time and more as you proceed.

I have adopted this method in one of my projects (under
development): www.bohuswines.se/ophthalma/
and it works great!

Re: Movie pauses but plays correctly when browser refreshed Ralph
3/30/2006 1:14:02 PM
klloyd skrev:
[quoted text, click to view]

Put this: gotoAndPlay(3); in Action layer frame 1.
I did that and tested here: www.bohuswines.se/creatures2.swf
and it works OK. You can look over the first actions to be sure.

Otherwise:

As I see it your movie is very complicated and contains too
much in one single movie in my opinion to be easy to understand.

I learned pretty early that the best thing to do is to make
a movie as a "master" and make several more movies loaded
into that when needed. You can compare with "structured
programming" where you have a main program and several
sub-routines.

Then you have more control over the situation.

If I were you I would split op all the main parts into
several separate movies and load them as necessary into the
main movie.

There are several advantages apart from mentioned, one is
that the loading of the movie does not take so long when all
is downloaded in the beginning. You know, it is over 1,5
Mbytes, calculate the loading time with 56 kbit/s! It comes
to well over 4 minutes! It is better when it takes a few
seconds the first time and more as you proceed.

I have adopted this method in one of my projects (under
development): www.bohuswines.se/ophthalma/
and it works great!

Re: Movie pauses but plays correctly when browser refreshed Ralph
3/30/2006 1:17:12 PM
Ralph skrev:
[quoted text, click to view]

Oh sorry, forgot, very nice work otherwise!

Re: Movie pauses but plays correctly when browser refreshed klloyd
4/7/2006 12:16:28 PM
Thank you very much for the help and the compliment! It works great. It
is now live here:

http://www.idnrteachkids.com/interactive/creatures.html

Kevin
Re: Movie pauses but plays correctly when browser refreshed Ralph
4/7/2006 9:40:24 PM
klloyd skrev:
[quoted text, click to view]


You are so welcome.

But, still the first loading is very long, hopefully you
don't have any players with modem out there.

It is always a tradeoff between your servers upload speed
and your clients download speed.

Have you tried to load with 56 kB/s?

You can test the download time by simulating in flash with
the .fla file and ctrl/enter and choose 56 kB/s in the menus.

Do that.

Re: Movie pauses but plays correctly when browser refreshed Ralph
4/7/2006 9:44:11 PM
Ralph skrev:
[quoted text, click to view]

It takes a minute and a half to download and I have 19
Mbits/second adsl!

AddThis Social Bookmark Button