Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash

Problem with Preloader

 
Jump to:  
 
vinaytvijayan
PostPosted: Mon Sep 01, 2008 7:53 am    Post subject: Problem with Preloader
       
Hai Friend,
I am Vinay. Based on a tutorial i tried to create a
preloader but the preloader(its not at all complicated which contains only the
heading of the site i create and which loads like pouring color into it-done
with a mask). Actually the preloader itself do not have much to load.It
contains a dynamic text which changes showing Percentage loaded and the code is
given below What the problem is the preloader is not showing itself until it
reaches about 50% After that the preloader works like color pouring into the
heading with a white background and the % loaded shown..
stop();

var yChange=29;
var yStart =560;

myInterval = setInterval(preload,100);


function preload(){


var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);
mask_mc._y = yStart-(yChange/100*pctLoaded);
dynamicTxt.text = pctLoaded;

if(current>=total){
gotoAndStop("main",1);
clearInterval(myInterval);
}
}
 

 
kglad
PostPosted: Mon Sep 01, 2008 5:03 pm    Post subject: Re: Problem with Preloader
       
everything used in the first frame has to load before your preloader will be displayed. than includes objects linked for export with actionscript and embedded fonts.
 

 
vinaytvijayan
PostPosted: Tue Sep 02, 2008 6:42 pm    Post subject: Re: Problem with Preloader
       
Hai,
Thanks for your reply and your answer helped me..What i did is based
on some instructions went to file-->publish settings-->Generate size report and
it gave me exactly what happened.and made all that loaded in the first frame to
second..Actionscript classes were loaded in the first frame Than could be
changed by clicking File-->publishsettings--> Actionscript There is a small
button called settings for actionscript Click that and change settings to
second frame..Any library item could be changed by right clicking and clicking
linkage and setting it to export to second frame
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

uk news rodos health and safety training Commercial painting podpis elektroniczny