ActionScript 3.0 :: Load My Main SWF Through My External Preloader - FontDescription Could Not Be Found

Oct 9, 2010

Been trying to load my main SWF through my external preloader, however no mater what i do I'm getting this: VerifyError: Error #1014: Class flash.text.engine::FontDescription could not be found. Could this be due to TLF embedded fonts or things being loaded on the first frame of my main site?

View 1 Replies


Similar Posts:


Professional :: FontDescription Could Not Be Found?

Feb 5, 2011

I wanted to load an external swf file in to a FLA file i used the code
 
var my_Loader:Loader = new Loader();
addChild(my_Loader);
var my_url:URLRequest=new URLRequest("external.swf");

[Code].... 
 
but when it loads I get the error
  
flash Error #1014: Class flash.text.engine::FontDescription could not be found.
 
I googled but the only thing I found was to place
 
var font:FontDescription = new FontDescription();
font.fontName = "Arial";
 
in the actions (Yes Arial is the font I am using)
 
The external loads fine and runs with out any errors alone.

View 10 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 2.0 :: One Main Preloader For Multiple External SWF

May 2, 2005

I need to preload 2 external .swfs, one containing animation and one containing sound, and I need them to start playing at the same time. As of now I have a general preloader on the main timeline, but as you might expect, after the preloader finishes, there is a lag while the .swf's are being loaded. I thought everything was solved, until a friend of mine looked at it in dial-up, and the preloader just kept looping 10 times before the animation started, so now I'm starting over. Part of my complication I believe is that I'm using loadMovieNum into levels as opposed to loading the external .swf's in a separate container MC (that's what I've noticed most people recommend for this problem), but I tried doing that technique several times with no luck. Right now my main movie, index.fla, has a preloader MC in the first frame, with this AS attached to the clip:

Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
[Code] .....

The clip contains a loadbar, static text (which just says 'Loading'), dynamic text (which tells the percentage), and a 'stop' in the actions layer. In the actions layer within my main movie, there is a 'stop' on the first frame as well. On the second frame, there is this AS:
Code:
var audioOn = false;
loadMovieNum("musicfile.swf", 1);
loadMovieNum("1movie.swf", 2);
stop();

In order that the animation and music starts at the same time, within my animation .swf (1movie.swf), I have this AS on the first frame of the actions layer:
Code:
if (_level0.audioOn == true) {
gotoAndPlay(2);
}

Within my musicfile.swf, there is this AS on the second frame of the mp3:
Code:
_level0.audioOn = true;
My main objective is to be able to use my preloader to preload both of these .swf's concurrently in my main movie so that they may start at the same time.

View 1 Replies

ActionScript 2.0 :: Use The Main Preloader To Loads The External Swf's ?

Sep 20, 2003

I have a main swf loads a serveral swf's from the menu.how can i use the main preloader to loads the external swf's ?

View 4 Replies

ActionScript 2.0 :: External Preloader +swf Reloading Main Swf?

Apr 1, 2012

I have an External Swf with its own Preloader that is loaded into my Main swf,It works fine when i am testing it in Macromedia Flash 8 However when i upload all of it to my site and i click the button that loads the External swf in to my main swf it loads the hole main swf again and not the external swf. (NOTE i load the external swf into a MC ''myContainer2'' on the main swf) Here are my codes:

External Preloader
onClipEvent (enterFrame)
{
percent = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
gotoAndPlay(percent);

[code]....

View 1 Replies

ActionScript 2.0 :: Better To Have The Preloader Code In The External Swf Or In The Main Movie?

May 31, 2005

When importing external swf's, would it be better to have the preloader code in the external swf or in the main movie? I've seen threads about this everywhere but I don't see the difference. Once the movie pops in it starts preloading right? Is there a faster result when the preloader is in the main movie?

View 2 Replies

ActionScript 3.0 :: Preloader In External.swf Does Not Work When Loaded Through Main Swf

Jul 11, 2009

this is my final bug then I can finally launch this bloody site. here's my problem, I am loading an external .swf, which contains a pre-loader. the preloader in the external .swf works fine when I test it online by itself (not being loaded via main.swf) But when I test the external.swf through the main.swf the preloader does not work. the external.swf just plays through like it does not recognize the stop in the first frame to initialize the preloader skipping it altogether.here is my code:

[Code]...

View 3 Replies

ActionScript 2.0 :: One Main Preloader For Multiple External .swfs?

May 2, 2005

I've tried to approach this from several angles, employing several of the tutorials, attachments found in various threads, etc, and nothing has worked. So, please bear me as I ask yet another question regarding this subject.I need to preload 2 external .swfs, one containing animation and one containing sound, and I need them to start playing at the same time. As of now I have a general preloader on the main timeline, but as you might expect, after the preloader finishes, there is a lag while the .swf's are being loaded.thought everything was solved, until a friend of mine looked at it in dial-up, and the preloader just kept looping 10 times before the animation started, so now I'm starting over. Part of my complication I believe is that I'm using loadMovieNum into levels as opposed to loading the external .swf's in a separate container MC (that's what I've noticed most people recommend for this problem), but I tried doing that technique several times with no luck. Right now my main movie, index.fla, has a preloader MC in the first frame, with this AS attached to the clip:

Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();

[code].....

View 1 Replies

Flash :: Set Up A Preloader To Show The Load Progress Of The Main Swf

Nov 3, 2009

I'm trying to set up a preloader to show the load progress of the main swf, which has all of it's assets embedded. I found the factory class method as described on bit-101, but no load progress ever seems to show. The swf loads fine, but the bytesLoaded is always equal to bytesTotal and therefore the preloader is never called.

[Code]...

This correctly calls the Factory class first, and then instansiates Main and calls init(). But as I mentioned above the preloading is never shown as it seems to be loading everything straight away.Is this a problem with the way I'm embedding the images or because I'm testing locally?

View 3 Replies

ActionScript 3.0 :: Preloader Percent To Include Main Movie And External .swf

Apr 4, 2011

I need a preloader to include an external .swf (iPhone_334x500.swf) that is dynamically added later in the timeline. Currently, the preloader goes to 100% and then begins to load the external swf before completing and going to frame 2. Rather than just appear to sit at 100% for 20 secs while it is still loading my external swf, I would like to include the external swf's load time in the preloader data.

This is my "preloader" code on frame 1, which is empty except for the AS. (Just a basic bar and percent preloader.) I included all of my code just in case, so please ignore the font embedding and masking if it makes it easier.

[Code]....

View 3 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

Apr 22, 2007

I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);

[code].....

View 2 Replies

ActionScript 2.0 :: Preloader - Load A Movie Clip After Pressing A Specific Button In The Main Scene

Jan 2, 2005

I wrote this AS for my preloader which schould be able to load a movie clip after pressing a specif button in the main sceene:

[Code]....

1) The problem is that to be able to target a movieclip I will need to give it a instance name. Where can i find this function in MX ?

2) I cannot understant how I schoul put a loadBar being a small movieclip on the main timeline, I think( the same timeline the container clip is at ) or maybe not ? well I am bit confused now..

Well I have done already a sceene preloader for my site and it works perfectly and i did not experience any problems as Im having now with this new kind of preloader.

View 2 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

ActionScript 1/2 :: Preloader For External Swf Load

May 11, 2009

I have my main swf file and two external swf files i'm trying to load into the main one. I have preloaders for each external swf file but when I have the main swf file it won't load the preloaders it seems to be loading the entire thing and then showing the swf. How do i change that to showing the preloaders i already have? here is my code at the beginning on each external swf,

[Code]....

View 19 Replies

ActionScript 2.0 :: Load External Swf And Using Preloader?

Jul 23, 2009

I am trying to build a website with a preview window to display pieces of work when you click on a thumbnail. Each piece of work will be it's own swf, because there will be several images to show in each example, and I want to have a cool blur/fade in and out of each, and I want it to loop.

Anyway, I am trying to figure out how to load the swf into a "preview box", and have a preloader calculating the size and all that. So when you click a button, depending on the size of the external swf, the preloader will pop up and on completion, the swf will load. Not sure where to put the preloader code or where I should put the preloader in the first place.

View 1 Replies

ActionScript 3.0 :: Preloader To Load External Swf's?

Jun 25, 2010

I need to load external swf's into a gallery. But for some reason I can't picture how to set it up on the timeline. This is for college homework.

I have the entire gallery set up and working but I just don't have the preloader for the three external images. However, I do have a preloader working fine for the site itself.

Here's the code for the external swf's:

ActionScript Code:
loader.load(new URLRequest("1.swf"));
var movieName:String;

[Code]....

View 0 Replies

ActionScript 2.0 :: Preloader Can Load External SWF?

Sep 5, 2005

I have preloader and I want to load External swf file.and file is loaded it automatically go to loaded file.

View 1 Replies

ActionScript 2.0 :: Preloader For External Swf Load?

May 11, 2009

I have my main swf file and two external swf files i'm trying to load into the main one. I have preloaders for each external swf file but when I have the main swf file it won't load the preloaders it seems to be loading the entire thing and then showing the swf. How do i change that to showing the preloaders i already have?

stop();
myBar._width=0;
preloadI=setInterval(preloadF,100);

[code].....

View 5 Replies

ActionScript 3.0 :: Load An External SWF Into Main SWF?

Jun 24, 2009

I'm using the following code to load an external SWF into my main SWF. The code is called inside of a button function. The code works TOO well. The external SWF loads multiple times on top of each other.
 
var ldr:Loader = new Loader();ldr.load(new URLRequest("portfolio.swf"));
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,      onLoaded, false, 0, true);function onLoaded(evt:Event):void {    addChild(evt.target.content);    evt.target.removeEventListener(Event.COMPLETE, onLoaded);}
 
To see the mess go to:[URL] hit the "web" button.

View 4 Replies

Actionscript :: External Swf Load Into Main?

Aug 13, 2010

I need to load external swf into my main swf into a dispay object in this main swf.

View 2 Replies

ActionScript 3.0 :: Load External Swf In Main Swf?

Feb 18, 2009

i'm trying to load external swf in my main swf. when I click first time in first frame on object(movieClip) which has event handler gotoJob, the jobfair.swf will load and it works. But I have on the stage in first frame also another objects - movieClips. If I click on some movieclip, than it means to go to nextFrame. But when I return to first frame, where is also object with click handler gotoJob and I click on it, it does not load the swf.

Code:
function gotoJob(evt:Event):void{
var requestSWF:URLRequest = new URLRequest("jobfair.swf");
var loader:Loader = new Loader();

[code]...

View 5 Replies

ActionScript 2.0 :: Load External SWF And MC On Main SWF Via Xml?

Dec 15, 2009

external SWF 1 plays and when it finishes, it loads the SWF 2.inside the loader SWF, there are MC-buttons which can control which swf will be played.i want it to be dynamic so i used XML.there are 5 external swfs and 5 MC-buttons. when i update the xml, i want loader SWF to display only 4 external SWFs and 4 MC-buttons.update:the xml is being loaded but it wont load the SWFs. heres th AS and xml

Quote:
stop();
myXML = new XML();

[code]......

View 2 Replies

ActionScript 2.0 :: Load An External .swf Into The Main .swf?

Jun 14, 2004

In the current flash project im working on I load an external .swf into the main .swf, the external .swf contains sound loops and movieclips which they are attached to. In the main .swf there are buttons which trigger the sounds to stop and start.the problem im having is that the sounds wont play when the button is pressed, when everything is in one file it all works fine, so i believe the problem is to do with the reference to the external file.

[Code]...

View 1 Replies

ActionScript 3.0 :: Get An External Preloader To Load Image?

Nov 29, 2009

I have an image gallery that I made with this tutorial (AS3 Photo Viewer Tutorial), and I'm trying to get an external preloader to load it. The only tweaks I've made to the tutorial file have been to change the stage size, and change the name and contents of the xml file.The preloader, which uses something I downloaded from preloaderz, worked with another, simpler swf, but when I try it with this one, I get

Quote:TypeError: Error #1009: Cannot access a property or method of a null object reference.
at PhotoViewer()

I don't know why this won't work. Another thing I don't quite get is how the .as file is attached, because the PhotoViewer.fla file appears to be blank, with nothing I can see in the timeline/ stage, or in the actionscript. Before trying the external preloader, I tried adding one to PhotoViewer.fla, using script from the ActionScript 3 Classroom in a book, which worked in their lesson file, but not with this file. I also tried moving the script to the .as file, but that didn't work either.I'm using Flash CS4. If all else fails, I might have to try a simpler image gallery, that would hopefully work with a preloader, but I like how this one looks.

View 5 Replies

ActionScript 3.0 :: Load External Image - Preloader?

Jan 26, 2009

I have my site working using this style of loading in images. I want to add a preloader so it works better is this possible?

View 1 Replies

ActionScript 3.0 :: Load External SWF And JPG And Make A Preloader Of It

Feb 9, 2009

i learned how to load an external SWF and JPG and make a preloader of it. Now I need to preload a MP3 and I can't. The code I did my self was:[code]

View 2 Replies

IDE :: Create A Flash Preloader To Load External Swf?

Sep 14, 2009

[URL] this is my website and my banner is swf file.... it takes some times to load in a low speed connection... I want to have a preloader for this, which shows the precent or the bytes loaded, total bytes, and also a load bar....

View 6 Replies

ActionScript 2.0 :: Flash8 Load And Display External Jpg Before Preloader

Mar 29, 2009

I would like to load and display an external jpg before my main preloader begins.

Basically this is for a game and I would like to display an advertisement jpg then keep this up while the game preloads.

I tried the following code on the first frame but it doesn't seem to work.

Code:

var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadInit = function () {

[Code].....

View 2 Replies

ActionScript 2.0 :: Flash8 Preloader For Videochat And Load External .swf?

Apr 14, 2009

I make preloader.swf and videochat.swf I make a background for my videochat, and i cut it to 15 pieces, and make 15 .swf in my forlder /skins/ I make a .xml files called skin.xml in folder /skins/

something like this.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<Skin>
<SKIN_BKGROUND>
<BKGROUND name="Standard" value="bkground.swf" />

[code].....

Now i want my preloader load skin.xml and load all the .swf in my xml and at the end it load videochat.swf I need the example to preloader everything with 1 progressbar % how i can paste the .swf background in my videochat.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved