| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Jul 2010
Beiträge: 2
| XML umlaute Probleme
Hallo Flashforum bin neu hier und hab direkt mal ein Problem^^ und zwar liegt mein Problem darin das meine Umlaute nicht richtig dargestelt werden (hab auch schon die Suchfunktion verwendet hab die Tipps versucht aber hat bei mir nicht geklappt) Code: <?xml version="1.0" encoding="utf-8"?> <option> <info><![CDATA[<p><BlueTitle>Wir Uber uns</BlueTitle></p><p><NormalText></a>Test ä ö ü Ä Ö Ü </NormalText></p>]]></info> <ImgHeight>250</ImgHeight> <title><![CDATA[<RedTitle>Willkommen Bei Ä Ö Ü ä ö ü</RedTitle>]]></title> </option> und im Browser kommt das raus und hier der 1 Frame Code: function loadXML(loaded)
{
if (loaded)
{
_root.info = this.firstChild.childNodes[0].firstChild.nodeValue;
_root.heights = this.firstChild.childNodes[1].firstChild.nodeValue;
_root.page = this.firstChild.childNodes[2].firstChild.nodeValue;
_css.load("colors.css");
_css.onLoad = function ()
{
main.scroller.styleSheet = _css;
pageTitles.styleSheet = _css;
_level2.preloader_mc.stop();
_level2.preloader_mc._visible = false;
mx.transitions.TransitionManager.start(_root.content_mc, {type: mx.transitions.Wipe, direction: mx.transitions.Transition.IN, duration: 1, easing: mx.transitions.easing.Strong.easeOut, startPoint: 6});
};
pageTitles.styleSheet = _css;
pageTitles.htmlText = _root.page;
pageTitles.html = true;
pageTitles.text = _root.page;
main.scroller.htmlText = _root.info;
main.scroller.html = true;
main.scroller.styleSheet = _css;
main.scroller.autoSize = "left";
main.scroller.text = _root.info;
if (main.scroller._height < mask_mc._height)
{
up_btn._visible = false;
dragger._visible = false;
bar._visible = false;
down_btn._visible = false;
} // end if
bottom = main._y + mask_mc._height - main._height - space - _root.heights;
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
var First = _level2.loadXMLS[_level2.firstMovie];
var _css = new TextField.StyleSheet();
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = loadXML;
if (First != undefined)
{
myXML.load(First);
}
else
{
Txt.text = "No Xml file specified yet..";
} // end else if
var File = _level2.loadXMLS[_level2.currentMovie];
if (File != undefined)
{
myXML.load(File);
}
else
{
Txt.text = "yoyo";
} // end else if
stop ();
space = 0;
friction = 9.000000E-001;
speed = 4;
y = dragger._y;
top = main.scroller._y;
bottom = main._y + mask_mc._height - main._height - space - _root.heights;
dragger.onPress = function ()
{
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y + this._parent.bar._height - this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function ()
{
this.stopDrag();
drag = false;
};
bar.onPress = function ()
{
drag = true;
if (this._parent._ymouse > this._y + this._height - this._parent.dragger._height)
{
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y + this._height - this._parent.dragger._height;
}
else
{
this._parent.dragger._y = this._parent._ymouse;
} // end else if
dragger.scrollEase();
};
bar.onMouseUp = function ()
{
drag = false;
};
moveDragger = function (d)
{
if (dragger._y >= y + bar._height - dragger._height && d == 1 || dragger._y <= y && d == -1)
{
clearInterval(myInterval);
}
else
{
dragger._y = dragger._y + d;
dragger.scrollEase();
updateAfterEvent();
} // end else if
};
up_btn.onPress = function ()
{
myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function ()
{
myInterval = setInterval(moveDragger, 20, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp = function ()
{
clearInterval(myInterval);
};
up_btn.onRollOver = function ()
{
this.gotoAndPlay("over");
};
up_btn.onRollOut = function ()
{
this.gotoAndPlay("out");
};
down_btn.onRollOver = up_btn.onRollOver;
down_btn.onRollOut = up_btn.onRollOut;
up_btn.onPress = function ()
{
myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function ()
{
myInterval = setInterval(moveDragger, 20, 1);
};
up_btn.onReleaseOutside = function ()
{
this.gotoAndPlay("out");
};
down_btn.onReleaseOutside = function ()
{
this.gotoAndPlay("out");
};
MovieClip.prototype.scrollEase = function ()
{
this.onEnterFrame = function ()
{
if (Math.abs(dy) == 0 && drag == false)
{
delete this.onEnterFrame;
} // end if
r = (this._y - y) / (bar._height - this._height);
dy = Math.round((top - (top - bottom) * r - main._y) / speed * friction);
main._y = main._y + dy;
};
}; ich hoffe ihr konnt mir helfen MFG Emir.T PS: an die Mods wenn ich hier im falschen forum bin dann sry (wusst nicht so genau wo hin damit^^) Geändert von Emir.T (22-07-2010 um 14:15 Uhr) |
| | |
| | #2 (permalink) |
| Neuer User Registriert seit: Jul 2010
Beiträge: 2
|
villeicht hillft euch das hier weiter das ist der erste Frame vom ersten Movie Code: function LoadFirstMovie()
{
var _loc2 = _root.btn0._name;
firstMovie = _loc2.substring(3, 5);
loadMovieNum(movies[firstMovie], 3);
} // End of the function
function btnOver()
{
this.gotoAndPlay(2);
} // End of the function
function btnOut()
{
this.gotoAndPlay(11);
} // End of the function
function btnReleased()
{
if (_root.btn0.enabled == false)
{
_root.btn0.gotoAndPlay(10);
_root.btn0.enabled = true;
} // end if
if (Selected_Old)
{
with (Selected_Old)
{
enabled = true;
gotoAndPlay(10);
} // End of with
} // end if
this.enabled = false;
Selected_Old = this;
var currentBtn = this._name;
currentMovie = currentBtn.substring(3, 5);
var myTween1 = new mx.transitions.Tween(_level3, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 5.000000E-001, true);
myTween1.onMotionFinished = function ()
{
_level2.preloader_mc._visible = true;
_level2.preloader_mc.play();
loadMovieNum(movies[currentMovie], 3);
};
} // End of the function
function loadXML(loaded)
{
if (loaded)
{
_root.myLogo = this.firstChild.childNodes[0].childNodes[0].nodeValue;
_root.xPos = this.firstChild.childNodes[1].childNodes[0].nodeValue;
_root.yPos = this.firstChild.childNodes[2].childNodes[0].nodeValue;
logo_mc._x = _root.xPos;
logo_mc._y = _root.yPos;
McLogo.onLoadInit = function (target)
{
CurrentTransition = mx.transitions.TransitionManager.start(logo_mc, {type: mx.transitions.Fly, direction: mx.transitions.Transition.IN, duration: 5.000000E-001, easing: mx.transitions.easing.Strong.easeOut, startPoint: 4});
};
McLogo.loadClip(_root.myLogo, logo_mc);
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function loadAutoplay(loaded)
{
if (loaded)
{
_root.autoplay = this.firstChild.childNodes[0].nodeValue;
sound_ctrl.gotoAndStop(_root.autoplay);
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function loadCopyright(loaded)
{
if (loaded)
{
_root.copyright = this.firstChild.childNodes[0].nodeValue;
copyright_mc.copyright_txt.text = _root.copyright;
}
else
{
content = "Error Loading File";
} // end else if
} // End of the function
function Align(target, position)
{
var Position;
Position = position;
var xPosition = 0;
var yPosition = 0;
target.onEnterFrame = function ()
{
target._x = target._x + (xPosition - target._x);
target._y = target._y + (yPosition - target._y);
if (Position == "center")
{
xPosition = Stage.width / 2;
yPosition = Stage.height / 2;
} // end if
if (Position == "centerXX")
{
xPosition = Stage.width / 2;
yPosition = 230;
} // end if
if (Position == "top left")
{
xPosition = 0 + target._width / 2;
yPosition = 0 + target._height / 2;
} // end if
if (Position == "top right")
{
xPosition = Stage.width - target._width / 2;
yPosition = 0 + target._height / 2;
} // end if
if (Position == "bottom left")
{
xPosition = 0 + target._width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
if (Position == "bottom right")
{
xPosition = Stage.width - target._width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
if (Position == "bottom center")
{
xPosition = Stage.width / 2;
yPosition = Stage.height - target._height / 2;
} // end if
};
} // End of the function
stop ();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Stage.align = "TL";
startPosY = 110;
startPosX = 20;
btnHeightVal = 27;
var firstMovie;
var MainMenuXml = new XML();
MainMenuXml.ignoreWhite = true;
var movies = new Array();
var names = new Array();
var loadXMLS = new Array();
MainMenuXml.onLoad = function (status)
{
if (status)
{
var _loc3 = this.firstChild.childNodes;
len = _loc3.length;
for (i = 0; i < len; i++)
{
names.push(_loc3[i].childNodes[0].firstChild.nodeValue);
movies.push(_loc3[i].childNodes[1].firstChild.nodeValue);
loadXMLS.push(_loc3[i].childNodes[2].firstChild.nodeValue);
_root.attachMovie("button", "btn" + i, _root.getNextHighestDepth());
_root["btn" + i]._y = startPosY;
_root["btn" + i]._x = startPosX;
startPosY = startPosY + btnHeightVal;
_root["btn" + i].txt_btn_mc.nameTxt.text = names[i];
_root["btn" + i].onRollOver = btnOver;
_root["btn" + i].onRollOut = _root["btn" + i].onReleaseOutside = btnOut;
_root["btn" + i].onRelease = btnReleased;
_root.btn0.gotoAndStop(10);
_root.btn0.enabled = false;
mx.transitions.TransitionManager.start(_root["btn" + i], {type: mx.transitions.Fade, direction: mx.transitions.Transition.IN, duration: 7.000000E-001, easing: mx.transitions.easing.Regular.easeOut});
} // end of for
LoadFirstMovie();
}
else
{
errorTxt = "Error Loading Menu";
} // end else if
};
MainMenuXml.load("MAIN/main_menu.xml");
var Selected_Old = null;
var currentMovie;
Stage.scaleMode = "noScale";
Stage.align = "TL";
var McLogo = new MovieClipLoader();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("MAIN/YOUR LOGO.xml");
var mySong = new Sound();
xmlDat = new XML();
xmlDat.ignoreWhite = true;
xmlDat.onLoad = loadAutoplay;
xmlDat.load("MAIN/AUTOPLAY.xml");
sound_ctrl.playSong.onRelease = function ()
{
mySong.loadSound("song.mp3", true);
mySong.play();
};
sound_ctrl.stopSong.onRelease = function ()
{
mySong.stop();
};
xmlD = new XML();
xmlD.ignoreWhite = true;
xmlD.onLoad = loadCopyright;
xmlD.load("MAIN/COPYRIGHT.xml");
fullscreen_btn.onRelease = function ()
{
if (Stage.displayState == "normal")
{
Stage.displayState = "fullScreen";
}
else
{
Stage.displayState = "normal";
} // end else if
};
fullscreen_btn.onRollOver = function ()
{
this.gotoAndPlay("over");
};
fullscreen_btn.onRollOut = fullscreen_btn.onReleaseOutside = function ()
{
this.gotoAndPlay("out");
};
Align(bar, "bottom left");
Align(fullscreen_btn, "bottom center");
Align(copyright_mc, "bottom left");
Align(sound_ctrl, "bottom right");
Align(preloader_mc, "centerXX");
mySong.onSoundComplete = function ()
{
mySong.start();
}; |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| ich habe probleme, mit meinem lokalen flash-player unter VISTA probleme!!?! | Mylander | Flash CS3 Professional | 1 | 26-12-2008 12:51 |
| Umlaute in XML machen Probleme | Arne_Schmidt | Flash 8 | 2 | 22-10-2006 10:56 |
| probleme mit umlaute in xml beim flash mx | Mysteryxxx | Flash MX | 14 | 17-08-2005 11:58 |
| urlformencoded Umlaute UNGLEICH escape(umlaute) | cEdRik! | Flash MX | 1 | 20-10-2003 15:09 |
| Umlaute machen Probleme | wo2001 | ActionScript 1 | 2 | 18-12-2002 16:11 |