
13.05.2009, 22:22
|
|
Регистрация: Sep 2001
Адрес: Russia, Обнинск, учусь в Электростали
Сообщений: 87
|
Цитата:
Сообщение от KiL33
Убегает текст, потому что реализовано всё криво..
 Код AS1/AS2:
// Создаем текстовый блок и задаем его параметры
this.createTextField("txt", 1, 0, 0, 575, 400);
txt.border = true;
txt.autoSize = true;
txt.multiline = true;
txt.wordWrap = true;
txt.borderColor = 0x333333;
txt.html = true;
// Создаем объект StyleSheet для хранения таблицы стилей
var myStyle = new TextField.StyleSheet();
// Определение обработчика onLoad
myStyle.onLoad = function(success){
if(success){
txt.styleSheet = myStyle;
txt.text = "<p class = 'title'>Creating an efficient walk cycle</p><p class = 'main'>You can see an example of him moving</p><p class = 'main2'>Of course, when two designers get together, easy options always go out of the <br/>window...(etc).<a href = 'http:www.someURL.ru'>someURL</a><img src='u.png'></p>";
}
};
// Загрузка внешней таблицы стилей
myStyle.load("myExternalCSS.css");

|
Чувак!!!Ты гений!!!!Спасибо 
__________________
Влад
|