Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

loading CSS and HTML

0 views
Skip to first unread message

amyinbrooklyn

unread,
Nov 1, 2005, 10:35:30 AM11/1/05
to
So, it seems that if I want to maintain attributes such as fonts, colors,
weights, etc. it's better to set external text up as an HTML document, right? I
just want to know if I am approaching this correctly. My client wants to edit
copy and upload it so that it will load into the SWF posted on their server. No
problem. But now they are telling me they'd like some basic formatting done. Is
it wise to set it up as HTML if they do not know it? I guess I can go over the
basics with them but I just want to know if that's the best way to do that.
That's my first question.

Secondly, I seem to have a problem with my CSS loading because when I test my
movie, the formatting is not there. Is there something wrong with this?

bhrLV = new LoadVars();
bhrLV.load("bhr.html");
bhrLV.onLoad = function() {
bridesCass_txt = this.brides_cass;
eventsText_txt = this.eventsinfo;
bridesCass_txt.html = true;
eventsText_txt.html = true;
bridesCass_txt.condenseWhite = true;
eventsText_txt.condenseWhite = true;
};
var bhrStyles:TextField.StyleSheet = new TextField.StyleSheet();
bhrStyles.onLoad = function():Void {
bridesCass_txt.styleSheet = this;
eventsText_txt.styleSheet = this;
};
bhrStyles.load("bhr.css");

This is the only thing in my .css so I don't see how it should be so difficult.

.body {
font-family: "Univers 45 Light";
font-size: 11pt;
color: #808080;
}
.bodyital {
font-family: "Univers 45 Light";
font-size: 11pt;
font-style: italic;
color: #808080;
}
.head {
font-family: "Univers 65 Bold";
font-size: 12pt;
color: #84ABDB;
text-align: left;
}
Text

One last thing... do you still set up HTML documents as you do with .txt
documents where you put the &eventsinfo=string?

0 new messages