Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   Flash+XML (http://www.flasher.ru/forum/showthread.php?t=132663)

Terr0909 17.11.2009 21:11

Flash+XML
 
Всем привет.
Подскажите , где ошибка? В XML текст заключенн в теги HTML-ные. во флеше этот текст не отображается.
вот код
Код AS1/AS2:

System.useCodepage = true;
a.pole.autoSize = true;
//a.pole.text = '';
 
var XodPolzuna:Number = 120;
 
 
F_createInterface = function () {
with (a.pole) {
 
html = true;
 
 
htmlText = my_xml.childNodes[0].childNodes[0].nodeValue;
}
};
 
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(ok) {
if (ok) {
F_createInterface();
}
};
my_xml.load("texts.xml");
 
_root.onEnterFrame = function() {
        a.pole._y = -((a.pole._height-145)/XodPolzuna*a.drag._y);
};
a.drag.pres = false;
a.drag.onPress = function() {
        if (a.pole._height>150) {
                this.pres = true;
                this.startDrag(false, 154, 0, 154, XodPolzuna);
        }
};//onPress
a.drag.onMouseUp = function() {
        if (this.pres) {
                this.pres = false;
                this.stopDrag();
        }
};//onMouseUp
 
Mouse.addListener(a.pole);
a.pole.onMouseWheel = function(scr:Number):Void {
//        if (Selection.getFocus() == "_level0.a.pole") {
                if ((scr>0) && (a.drag._y>0) && (a.pole._height>150)) {
                        a.drag._y -= 5;
                }
                if ((scr<0) && (a.drag._y<XodPolzuna) && (a.pole._height>150)) {
                        a.drag._y += 5;
                }
//        }
};



Часовой пояс GMT +4, время: 14:49.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.