What classes to import for this external as code?

Hi
Just wondering what classes I need to import into my external as fiule to make the following code work:
public static var loader:Loader = newLoader();
        loader.contentLoaderInfo.addEventListener(Event.INIT, fontLoaded);
        loader.load(new URLRequest("font.swf"));
Cheers
Shaun

the Loader and URLRequest classes.
flash will tell you when you try to publish.
well, now that i look at it more carefully, you should see some error messages that help you fix that.

Similar Messages

Maybe you are looking for

  • Installation problem with Photoshop Elements 10 and Premiere Elements 10

    I purchased in a package Photoshop Elements 10 as well as Premiere Elements 10.  It comes with 5 disc....When I install the first disc it does not ask for the 2nd disc once the first disc is done.  When the first one was done the option was hit finis

  • Impact of data file size on DB performance

    Hi, I have a general query regarding size of data files. Considering DB performance, which of the below 2 options are better? 1. Bigger data file size but less number of files (ex. 2 files with size 8G each) 2. Smaller data file size but more number

  • Update from tiger to leopard problem

    Hi. I have a problem. I just purchased a new imac with leopard and because it seems faster and i like the new functions i'd like to have it on my older macbook as well. But when i try to install it it simply gives me the error message "Mac osx 10.5 c

  • Import songs from an ipod

    I had computer troubles and had to format. I reinstalled Itunes. Is there a way I can get the songs from my ipod to the itunes library and playlist? If I connect my ipod to my computer, itune will updates my ipod, and i'll lose everything because the

  • [Solved] Xorg fails when using Vmware.

    I've recently ran into a problem with ArchLinux running as a guest in VMware, I'd try load xorg and it would crash so I thought I'd install another version of ArchLinux in another machine. All went well until I installed xf86-video-vmware & svga-dri