{lang: 'de'}
Flashhilfe.de - Flash Community

Umlaute machen Probleme (XML) [Flash CS3]

 


AntwortenRegistrieren Seite1  

Emir.T#1
Benutzerbild von Emir.T
Beiträge: 4
Registriert: Jul 2010

22.07.2010, 22:21

Hallo Flasher bin neu hier und hab direkt mal ein Problem^^(typisch Noob^^)

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)

ActionScript:
1
2
3
4
5
6
7
<?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
http://www.imagebanana.com/img/4v6gzcjj/Unbenannt.png

hier der 1 Frame vom Movie clip

ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
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();
};



und hier der  1 Frame wo der text stehen soll

ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
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 finde einfach den Fehler nicht

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 am 22.07.10 um 22:22 Uhr
Emir.T#2
Benutzerbild von Emir.T
Beiträge: 4
Registriert: Jul 2010

Themenautor/in

23.07.2010, 14:11

Sry leute 
der Fehler war so Simpel das ich mich an meiner dummheit bestätigt gefühlt habe xD^^

hab zuerst den Text mit Unired editiert und auf UTF 8 Gespeichert  da ist ihrgend wie ein fehler aufgetreten

heute habe ich es mit Foxe Edtiert und sieh da es geht xD^^

wenn man bedenkt das ich dafür ganze 3 tage gebraucht habe für denn mist ^^


PS: Thema kann geclosed werden


Edit : danke hab ich gemacht
Geändert von Emir.T am 23.07.10 um 23:24 Uhr
skoda#3
Benutzerbild von skoda
Beiträge: 1189
Wohnort: Boston MA
Registriert: Feb 2006

23.07.2010, 20:31