Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Very Strange Flash Problem -- Help!!!!


Very Strange Flash Problem -- Help!!!!

Reply
  #1 (permalink)  
Old 02-10-08, 03:40 PM
tommyc325's Avatar
tommyc325 tommyc325 is offline
Wannabe Coder
 
Join Date: Sep 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Very Strange Flash Problem -- Help!!!!

ok so i devolped this web site - http://alteredimage.com/newsite/main.html

everything is being pulled in with variables and loadMovie levels.

The weird thing is works perfect on my machine locally and it works pretty well online but the issue is if i refresh the page ( http://alteredimage.com/newsite/main.html ) the content and design elements dont load up anymore.

I was thinking maybe its a variable issue but i have no idea...

any suggestions???


Reply With Quote
  #2 (permalink)  
Old 02-11-08, 05:27 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Ok, I see your problem and this is a guess...

You have your actions on the very first frame and when the movie first loads they all get executed because download time is longer and it sits on that 1st frame longer. Second load is much faster so the .swf loads before all the external content is loaded and it moves frames in the correct time and either skips over the commands, or just doesn't execute properly. With flash, the .swf will pull from cache, but the external content you load will always load.

My suggestion is to implement a pre-loader that allows the entire movie to load before you begin moving the timeline. That way you have complete control over the scripting - regardless of download speed.

Good luck - nice site!
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Reply With Quote
  #3 (permalink)  
Old 02-11-08, 08:22 AM
tommyc325's Avatar
tommyc325 tommyc325 is offline
Wannabe Coder
 
Join Date: Sep 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
thank you

thanks very much -

i was wondering is there a preloader that i can preload all my external swf's into a cache and then when my "main movie ( container )" calls for them they load from the cache?????????

i think this will solve all my issues - if theres anywhere you can point me to i would appreciate it.

I looked at a few sites but allot of there "preload external swf's" automatically loads the swf into the scene based on the frame the preloader is on THIS IS WHAT I DONT WANNA DO, again i would like to load them into the users cache and then load them when i call for them.

got me?
Reply With Quote
  #4 (permalink)  
Old 02-11-08, 08:27 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Yeah, I understand what you are saying.

But, if I may ask... why are you doing it this way? It would be much more efficient and easier if you contained everything in one .swf.
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Reply With Quote
  #5 (permalink)  
Old 02-11-08, 08:30 AM
tommyc325's Avatar
tommyc325 tommyc325 is offline
Wannabe Coder
 
Join Date: Sep 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
simple answer

i dont know hahahahahaha

2 things

1. i was always told to load external swf's into my main movie

and

2. i already have everything done this way :-)
Reply With Quote
  #6 (permalink)  
Old 02-11-08, 08:37 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Ok, I suppose that's a good enough answer.

Just a note for future projects: it is more efficient to contain everything in as few .swf's as possible. The reason isn't only because of size, but also limiting the number of HTTP requests.

Say you have a total of 4 swf's that get loaded, each are 50KB. That's a total of 200KB. If you combine them into one, it's still 200KB (not accounting for compression), but it's only one trip to the server. Where, with example A, you have four round-trip's to the server - thus increasing your possibility of lag/errors.

As for caching... flash will automatically cache any swf's that are loaded. So, you could have a pre-loader on the first frame, load everything and then begin the movie. Then, when you load the movies in subsequent frames, you don't need to do anything - Flash will automatically pull from the cache.

Best of luck.
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."

Last edited by omniman; 02-11-08 at 08:37 AM. Reason: Spelling error
Reply With Quote
  #7 (permalink)  
Old 02-11-08, 08:41 AM
tommyc325's Avatar
tommyc325 tommyc325 is offline
Wannabe Coder
 
Join Date: Sep 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
can u give me a example preload script that will work for this?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
flash load problem mahmoud82 PHP 8 01-15-08 04:51 AM
Funky Problem with Flash + Javascript in Safari infusionstudios JavaScript 0 12-11-06 07:29 PM
Flash IE7 Problem, not the usual one. GO4TF4CE Flash & ActionScript 2 11-28-06 04:57 AM
PHP/Mysql flash problem !!!! phoenix211984 PHP 3 09-17-06 05:44 PM
Problem with iframe & Javascript - Trying to communicate with a flash movie victorpantet JavaScript 1 01-27-06 05:32 AM


All times are GMT -5. The time now is 06:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.