Terr0909
17.11.2009, 21:11
Всем привет.
Подскажите , где ошибка? В XML текст заключенн в теги HTML-ные. во флеше этот текст не отображается.
вот код
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;
}
// }
};
Подскажите , где ошибка? В XML текст заключенн в теги HTML-ные. во флеше этот текст не отображается.
вот код
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;
}
// }
};