Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-14-2004, 12:38 PM   #1
Senior Member
Join Date: Nov 2003
Location: michigan
Posts: 382
Default .css with dyn. text box in flash??

okay, i stumbled apon this code somewhere.... (the .css part) and am trying to apply it to text i'm loading from an .asp page.

anyone have experience with .css and flash? I want to either take the line breaks out and make them "soft-returns" (i don't know the real term) so I don't have a huge ammount of space between lines of type in flash....

here's the code i'm trying to use.... maybe it's AS 2.0 and I can't use it with Mx (what I have) anyhow, any feedback help is greatly appreciated...

if (myData.status == "good") {
        day_txt.Text = myData.day;
        specials_txt.Text = myData.specials;
} else {
        specials_txt.Text = myData.errorMsg;
var format = new TextField.StyleSheet();
var path = "thestackflash.css";
format.onLoad = function(loaded) {
        if (loaded) {
                specials_txt.styleSheet = format;
        } else {
                specials_txt.text = "Error loading CSS file!";
natronp is offline   Reply With Quote
Old 07-14-2004, 01:09 PM   #2
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666


I do not understand what you are trying to do...

You cannot get any help on CSS if you use FMX, period... FMX does not understand what the CSS is...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 07-14-2004, 01:14 PM   #3
Senior Member
Join Date: Nov 2003
Location: michigan
Posts: 382

Snap! I thought that was maybe the problem... only in mx2004 huh?
thanks for the reply Cyan!
natronp is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:10 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.