don't know why my external CSS file does not load

Use this for the ACE

var styles: TextField.StyleSheet = new TextField.StyleSheet ();
styles.onLoad = {function(success:Boolean):Void}
If (success) {}
display style names
trace (this.getStyleNames ());
} else {}
trace ("error loading file CSS.");
}
};
styles. Load ("styles.css");

I have a CSS file in the same folder named styles.css

for some reason although I only get the message

"Error loading CSS file.

I don't think there are errors in my script, but I could be wrong. A second pair of eyes will help you!

DOH! Thank you. DW who had placed there, and I forgot to get out.

works fine now

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Standard calendar from the iPhone/iPad

    How to print the calendar on my iPhone or iPad? (The calendar that comes with Apple products).

  • Smart album does not work with dates

    So, I live in Denmark, where the date is given as follows: 1/12 2015 (1. of December 2015)This is supported on my mac, and there's nowhere where on my mac or one of my devices, as this date, 1/12, is considered to be January 12. But in the Photo, whe

  • HP compaq dc7700 minitowers: BIOS update exe does not work

    I have the HP compaq dc7700 with mother 0a58h HP. I currently have the installed Intel e6400 CPU, but I have the Intel core 2 quad q9550 carrying around and based on the official list of HP upgrade that must be supported. So I put it (it was on the r

  • error code - 40 in teststand deployment

    I just got a new laptop and installed all the products NOR including TestStand I had in my old laptop. Using the same deployment file I had on the old laptop, I run the deployment utility and get the following errors.  What I am doing wrong? : From n

  • How to change the default value for the Windows Explorer window resizing

    I recently reinstalled XP and now when I open Windows Explorer, the window opens it up to a size of about 1/8 of the size of the screen.  I keep the resizing to how I like it, but every time that I re - open, he is reduced to the size of 1/8th.  How