This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2005 > Web Site Stalls or Doesn't Work





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Web Site Stalls or Doesn't Work
snurg

2005-08-18, 7:44 pm

I am developing a music site called
http://www.sweetybomb.com

I am having chronic problems with the site working okay at 1st in most
browsers,
but am having 2 similar issues:
1) Activating all the links never works as the Flash site either stalls on a
frame or stops working altogether (it freezes)
2) Revisiting the same site on a browser will work slower or sometimes not at
all

I feel like this is a combination of the web cache (which I've emptied
although the problem re-arises soon) and the
file sizes of "some" of my content
e.g. My homepage and the next movie it loads with UI buttons are a grand total
of 160kb...small small small
BUT, some of the movie clips that can be accessed (witht the loadMovie code)
are large (2MB-8MB)

Anyhow, please advise Thank you

feed_me

2005-08-18, 7:44 pm

Can you upload your .Fla file so I can have a look? I'm not sure why this would
happen.

Do you have any code in there that says (english translation) 'if this button
has been pressed, do not reload' (i.e. in order to stop a person loading a page
they are already on.)

Are you unloading movies once they are no longer needed, or straight replacing
them? or hiding them?

Is it your band? The music and videos are great. :)

snurg

2005-08-18, 7:44 pm

Hi, thank you, I do play in the band and
also made those videos, glad you enjoyed

I have included the ActionScript on the homepage
below...which should answer your questions

How do I attach an FLA? I will do that too

//stop homeScreen//
stop();

//create empty Movie Clips for UI selections
onLoad = function()
{
_root.createEmptyMovieClip("UI_mc", 1);
_root.createEmptyMovieClip("selections_mc", 2);
}

//buttons load movie clips//
about_btn.onPress = function()
{
loadMovie("about.swf", "UI_mc"),
unloadMovie(2);
}

music_btn.onPress = function()
{
loadMovie("music.swf", "UI_mc"),
unloadMovie(2);
}

pix_btn.onPress = function()
{
loadMovie("pix.swf", "UI_mc"),
unloadMovie(2);
}

gigs_btn.onPress = function()
{
loadMovie("gigs.swf", "UI_mc"),
unloadMovie(2);
}
email_btn.onPress = function()
{
loadMovie("email.swf", "UI_mc"),
unloadMovie(2);
}

:D

feed_me

2005-08-22, 7:15 am

I'm not sure I get what you're doing here... You've made a movieClip called
'selections_mc' but don't seem to be putting anything in it, only unloading
from it everytime you click a button. If you don't mean to be doing that, then
I think you should also be unloading content before you load in new content,
not after as you've written.

Is whatever loads in UI_mc loading content into selections_mc when it's
loaded? If so, why do you need to do that?

I may be missing something, my brain isn't working yet.

I'm not sure if you can upload it here. It might be worth uploading it to your
webspace and linking to it from here if you're still having trouble.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews