Problem with latency when loading external movies

This is a discussion on "Problem with latency when loading external movies" within the Flash & Multimedia Forum section. This forum, and the thread "Problem with latency when loading external movies are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 11th, 2005, 14:43
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with latency when loading external movies

Hi peoplez!

My knowledge of flash where required by studding tutorials. I’m working with flash around a year and half from now if I’m not mistaking and I’ve made several site’s with flash components… let’s say that I’m not a newbie anymore


Introduction:
I’ve made a site almost completely in flash: 1 main movie and several smaller movies for each section of the site:
- Each movie has his own loader (scene1=loader, scene2=movie).
- Sizes: Main movie 400kb, smaller movies 130kb – 170kb
- good server

I choose this method so you wouldn’t have to wait much in the main load and to avoid loading sections of the site that you probably wouldn’t surf/see.

Problem:
I don’t know why, but there is some kind of latency when you click the menu (most of all by people with low internet speed connection). Some times it takes so much time that you could wait and wait thinking that it doesn’t work. In the other hand, there is none latency when the movie has to open a new html window.
Btw: this doesn’t occur when testing in flash program or from the HD


Code:
This is the code I’ve used for the button:

on (release) {
_root.webcentro.loadMovie("multimedia.swf");
}

Solution?
- Is there a better way to do this?
- Would it be wise to preload all movies in the background? How can I do that in a way that the movie would only begin to play by clicking the button and not when it’s done with loading?


For more info or such, just ask please! ï?Š

Thanks in advanced! :wink:
Reply With Quote

  #2 (permalink)  
Old Jul 11th, 2005, 16:46
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I assume you're saying that, after clicking a link in your navigation, it takes time before that movieclip appears and states that it is loading?

The problem here is caused by two factors - one is the simple fact that it will take a split second for the server to respond with the request and start sending the flash file requested. The other is that the first 10kb or so of that file are required before a loading screen can even be attempted to be shown. If your loading screen is a few kb then that is also added on. On a 56k connection, you're already looking at a few seconds during optimal conditions.

There is of course a way around this! Lie! When the user clicks on a link, have something pop up to say that the file is loading. Don't put the loading screen into the swf you're loading - keep it seperate. That way the loading screen appears immediately when someone clicks a link.
Reply With Quote
  #3 (permalink)  
Old Aug 1st, 2005, 12:23
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Hi!

I’m sorry for having you waiting my answer … I’ve had very busy and difficult days :S


I assume you're saying that, after clicking a link in your navigation, it takes time before that movieclip appears and states that it is loading?
-> Yes

On a 56k connection, you're already looking at a few seconds during optimal conditions.
-> it already happens with 1mb dsl connection :S

have something pop up to say that the file is loading
 already done that, it doesn’t help very much

the project: www.djdomingo.com/total.htm


I’ve heard about 'export to first frame' but I cant get it done, can some one explain this or know someone where I can find a good tutorial about this?


Tnx!!!
Reply With Quote
  #4 (permalink)  
Old Aug 1st, 2005, 12:59
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
The loading times on the site you linked to are pretty much instataneous for me. There's no visible latency!

I would suggest that you test this on other computers, using different browsers and possible different connections to nail down exactly what the problem is.

To other members: Do any of you notice latency when browsing the links on the Flash site linked above?
Reply With Quote
  #5 (permalink)  
Old Aug 1st, 2005, 14:09
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
I have done that with firefox, internet explorer at pc (several pc’s).safari and internet explorer at Macintosh (other pc). Could it be just the poor dsl connection? (Could affect using emule, torrent or such programs?)
Reply With Quote
  #6 (permalink)  
Old Aug 1st, 2005, 15:10
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Btw….what’s your internet connection? (I hope I’m not rude :S )
Reply With Quote
  #7 (permalink)  
Old Aug 1st, 2005, 16:01
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'm using 2mbit dsl but the speed of the connection really won't make a difference here, the latency does and all dsl should have similiar latency.

It could indeed be a poor dsl connection, or maybe your setup.

Try pinging popular websites and seeing your response time.

If using windows XP go to start>run and type cmd.

Then type 'ping' followed by the website you want to ping.

Ping times will vary based on your connection, your location, the location of the website you're pinging and the current connection load of both ends.

Here are my times:
www.yahoo.com - 93ms
www.yahoo.co.uk - 18ms
I'm in the UK which explains the longer time to reach the .com.
Reply With Quote
  #8 (permalink)  
Old Aug 2nd, 2005, 08:55
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
my pings:

www.djdomingo.com (project site) : 192ms
www.yahoo.com : 172ms
www.yahoo.co.uk : 116ms
www.terra.es (my provider) : 63ms


The thing is that it happens to other people too, not only from this pc.

Do you know a better method or do you recommend one to load external mc?
Reply With Quote
  #9 (permalink)  
Old Aug 2nd, 2005, 15:01
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
If this is really a problem then why not simply keep the data inside one MC, or alternatively, attempt to preload the content?
Reply With Quote
  #10 (permalink)  
Old Aug 2nd, 2005, 15:11
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
If I put everything in one mc, it will then load unnecessary data…
The alternative sounds cool, but its then the same stuff…it will load data you might not even ask.

…maybe I would have to do that in case I don’t find a cure for this. Do you know how I can do this? It would preload then the external mc in the background but stop at the first frame (even the first frame of the preloader?) and play/resume and show then it self when the user request that data….right?


I’ve also heard (and tried) of “exporting at to first frame”
Do you know something about it?
Reply With Quote
  #11 (permalink)  
Old Aug 4th, 2005, 11:19
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not sure I understand what you mean.

You can import data to the first frame...
Reply With Quote
Reply

Tags
problem, latency, loading, external, movies

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading external swf crazytyler34 Flash & Multimedia Forum 3 Nov 15th, 2007 21:38
Loading external movies typeofdoug Flash & Multimedia Forum 4 Mar 7th, 2007 19:43
loading external swf worldheadja Flash & Multimedia Forum 3 Feb 7th, 2007 19:06
design & code problem - movie index strategy and loading movies betso Web Page Design 2 Sep 11th, 2006 20:35
loading external swf razor Flash & Multimedia Forum 1 Nov 30th, 2005 15:40


All times are GMT. The time now is 16:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43