![]() |
|
||||||||||
|
|
|
|||||
|
освежите память.
как мы объявляем стили, присваеваем к полям и используем. |
|
|||||
|
для освежения памяти я хелп читаю...
__________________
Best regards, Boris Petrov |
|
|||||
|
уже дан.
Трал с объявлением... <spбan class=\"myclass\">? |
|
|||||
|
// Create a new style sheet object
var style_sheet = new TextField.StyleSheet(); // Location of CSS file that defines styles var css_url = "html_styles.css"; // Create some HTML text to display var storyText:String = "<p class='headline'>Flash Player now supports Cascading Style Sheets!</p><p><span class='byline'>San Francisco, CA</span>--Macromedia Inc. announced today a new version of Flash Player that supports Cascading Style Sheet (CSS) text styles. For more information, visit the <a href='http://www.macromedia.com'>Macromedia Flash web site.</a></p>"; // Load CSS file and define onLoad handler: style_sheet.load(css_url); style_sheet.onLoad = function(ok) { if (ok) { // If the style sheet loaded without error, // then assign it to the text object, // and assign the HTML text to the text field. news_txt.styleSheet = style_sheet; news_txt.text = storyText; } }; |
|
|||||
|
story = new XML();
story.ignoreWhite = true; story.load(""+_parent.htmlUrl+""); story.onLoad = function() { var ss = new TextField.StyleSheet(); ss.load("DATA/style.css"); tField.styleSheet = ss; tField.htmlText = story; tField.multiline = true; tField.wordWrap = true; tField.html = true; };
__________________
Best regards, Boris Petrov |
|
|||||
|
Не. У меня банальный Html )
|
![]() |
![]() |
Часовой пояс GMT +4, время: 13:08. |
|
|
« Предыдущая тема | Следующая тема » |
|
|