hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : how preload swf sequential, how??
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

how preload swf sequential, how??

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2010, 06:32 PM
ramonjosegn ramonjosegn is offline
Junior Guru
 
Join Date: Sep 2008
Posts: 215

how preload swf sequential, how??


HI

what code can I use to load external swf files in sequence, ie that upon completion of pre-load 1 are preloaded then preload the 2 and so sequentially

in AS2

thanks

__________________
www.mecacho.com - hosting, multimedia, web design, logos, corporate

Reply With Quote


Sponsored Links
  #2  
Old 02-05-2010, 06:39 PM
Bingen Bingen is offline
Newbie
 
Join Date: Nov 2009
Location: México
Posts: 23
Tal vez esto te sea util.
Suerte.

Reply With Quote
  #3  
Old 02-05-2010, 10:56 PM
ramonjosegn ramonjosegn is offline
Junior Guru
 
Join Date: Sep 2008
Posts: 215
Gracias por la información, lo había visto anteriormente pero no lo había puesto en práctica, me parece bastante largo el código, prefiero códigos más sencillos, pero trataté de ver si puedo adaptarlo a lo que necesito, es que tengo como 34 fotogramas donde se carga cada .swf y me gustaría que se hiciese una precarga en cada fotograma, pero tampoco de todos los swf externos, pues pesan muchísmo (unos 2 megabytes), así que mi idea es que se carguen de a poquitos

gracias

__________________
www.mecacho.com - hosting, multimedia, web design, logos, corporate

Reply With Quote
Sponsored Links
  #4  
Old 02-08-2010, 12:43 PM
ramonjosegn ramonjosegn is offline
Junior Guru
 
Join Date: Sep 2008
Posts: 215
HI, I found this code

var currentSwf:Number = 0;
var swfs:Array = new Array("xpeli001.swf", "xpeli0032.swf");
///////////////////////////////
trace(swfs);
var listener:Object = new Object();
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(listener);
// This "loadNext" will stop after the last one.
function loadNext():Void {
if (currentSwf>=swfs.length) {
return;
}
mcl.loadClip(swfs[currentSwf], theTargetClip_mc);
currentSwf++;
}
// When the swf loads, set it up to constantly check its current frame
// against the total frames, and if those match, the swf is done playing.
// If that's the case, then load the next one.
listener.onLoadInit = function(targ:MovieClip):Void {
theTargetClip_mc.onEnterFrame = function():Void {
if (this._currentframe == this._totalframes) {
loadNext();
delete this.onEnterFrame;
}
};
};
loadNext();
// crear un movieclip vacío que se llame theTargetClip_mc
// create a empty movicliep and (re)name instance with theTargetClip_mc, the array load in this movieclip

thanks to drukepple

( http://www.gotoandlearnforum.com/vie...e43bc2ba63b403 )

__________________
www.mecacho.com - hosting, multimedia, web design, logos, corporate

Reply With Quote
  #5  
Old 02-09-2010, 11:09 AM
ramonjosegn ramonjosegn is offline
Junior Guru
 
Join Date: Sep 2008
Posts: 215
I have problems with this code, no play swf2, some suggestion??

thanks

__________________
www.mecacho.com - hosting, multimedia, web design, logos, corporate

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sequential shell commands on a cron job... Shin Asuka Hosting Security and Technology 2 10-07-2007 06:50 PM
sequential autoresponder? mediagi Hosting Software and Control Panels 1 05-25-2004 12:55 PM
Preload images koorb Programming Discussion 6 11-21-2003 01:49 AM
Preload site before displaying billt Web Design and Content 4 09-13-2003 07:19 PM
preload image script? DreamWeaver Web Hosting Lounge 4 12-11-2000 02:44 PM

Related posts from TheWhir.com
Title Type Date Posted
Hackers Post 450,000 Yahoo! Voices User Login Credentials Online Web Hosting News 2012-07-12 10:38:07
WordPress.com Company Automattic Names First Official Chief Financial Officer Web Hosting News 2012-04-26 15:19:03
Web Host webHOSTING.net Improves Data Backup Using Nimble Storage Array Web Hosting News 2012-03-28 13:14:22
Storm On Demand Boosts Performance with Solid State Drives Cloud Servers Web Hosting News 2012-03-07 14:31:24
What WordPress Hosting Customers Want Web Hosting News 2012-02-27 14:16:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?