This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2006 > Re: Problem using CSS in Flash MX 2004





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Problem using CSS in Flash MX 2004
jarrknee

2006-04-19, 6:30 am

The code you want should be something like the following, not sure if you have
any typos...
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("css/styles.css");
cssStyles.onLoad = function (success) {
if (success) {
loadedInfo.styleSheet = cssStyles;
_level0.myLV.load("vars/test.txt");
loadedLinks.styleSheet = cssStyles;
_level0.myLinks.load("vars/test.txt");
} else {
loadedInfo.txt = "there has been an error loading the requested page, please
contact the webmaster for more information..";
}
}


Have a looke for typos... also, have you made a style.css... and is it in the
style folder of your project? A couple of things to look for.:|

WebXperience

2006-04-26, 10:34 pm

I found the problem!!

While exploring the Fireworks MX 2004 folder located under "C:\Documents and
Settings\USER\Application Data\Macromedia\" folder I discovered that this
folder was empty. So, I connected the old hard drive and investigated the
contents of the corresponding folder on that drive. Discovering the wide
assortment of files and folders in that folder, I simply copied the contents of
that folder to the Fireworks MX 2004 folder and retried running the application
and IT WORKED!

Thanks for all your communications and in depth troubleshooting steps, I will
keep them in may Application troubleshooting Tool Tips for future reference. I
have included the actions used here which brought about the successful
resolution of this issue so that if you'd like you might include them in any
Help Desk Methods you may have. It was truly a collaborative effort because I
would not have thought to explore the Application Data folder to resolve this
issue without you pointing me in that direction.

Thanks again!


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews