|
|
|
#1 |
|
Senior Member
Join Date: Jul 2001
Location: Tinley Park, IL
Posts: 702
|
Cascading Style Sheets
Anyone had any success with Style Sheets to display Content Pane HTML content?
__________________
My Sites: Gaming Site Nightshade Studios MyKM Tutorials ![]() -------------------------------------------------- What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Dec 2002
Location: Netherlands
Posts: 1,466
|
What are you trying to accomplish ?
Flash CSS support is pretty limited. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2001
Location: Tinley Park, IL
Posts: 702
|
I've been looking to use style sheets to format text for a news page.
I was trying to use this script: PHP Code:
MY SOURCE OF THIS INFO
__________________
My Sites: Gaming Site Nightshade Studios MyKM Tutorials ![]() -------------------------------------------------- What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Dec 2002
Location: Netherlands
Posts: 1,466
|
The code you posted is AS 2 syntax. You have to convert it to AS 1 in order to use it.
Here's an AS 1 example that uses the stylesheet class. Create a dynamic textfield with 'has html' set to yes. Code:
var css_str = '.heading {font-size: 24px; font-weight: bold; }';
var my_styleSheet = new TextField.StyleSheet();
my_styleSheet.parseCSS(css_str);
txt1.styleSheet = my_styleSheet;
txt1.htmlText = "<p class='heading'>My formatted text</p>";
|
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|