openeyes
01-11-2006, 08:33 PM
I have a movie that uses 3 font symbols that are imported from an external library. I believe these fonts are preloaded before my _root movie even starts to load so my preloader doesn't really serve a purpose. The user just sees a blank screne until the font symbols are imported. Has anyone run into this problem before. Is there a way to dynamically import the font symbols at a later time so that the preloader works? Any ideas or support would be greatly appreciated.
Right now I am using the bare minimum for my preloader so that I can display at least some data for the user who is waiting for the movie to load. This code works for other movies without importing font symbols so why are they giving my trouble with this. I thought importing font symbols were supposed to cut down the movie's size to make it run faster???
Below is my preloader code
_root.onEnterFrame = function() {
stop();
var percent:Number = Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100);
if (percent>99) {
_root.gotoAndStop(2);
_root.loadText_txt.text = percent+"%";
} else if (percent<99){
loadBar._width = percent;
_root.loadText_txt.text = percent+"%";
}
}
Right now I am using the bare minimum for my preloader so that I can display at least some data for the user who is waiting for the movie to load. This code works for other movies without importing font symbols so why are they giving my trouble with this. I thought importing font symbols were supposed to cut down the movie's size to make it run faster???
Below is my preloader code
_root.onEnterFrame = function() {
stop();
var percent:Number = Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100);
if (percent>99) {
_root.gotoAndStop(2);
_root.loadText_txt.text = percent+"%";
} else if (percent<99){
loadBar._width = percent;
_root.loadText_txt.text = percent+"%";
}
}