OK...here goes...are you guys ready.
For scene1: I used;
onClipEvent(load) {
this.loadVariables("hi.txt");
startXpos=550;
startYpos =130;
enterTime = 0;
elapsedTime = 0;
nextX=0;
i = 0;
}
onClipEvent (data) {
newLetters = new Array();
newLetters = dataString.split("");
}
onClipEvent (enterFrame){
if (elapsedTime >100){
enterTime = getTimer();
if(i< this.newLetters.length){
_root.attachMovie("wow","wow"+i,i);
_root["wow"+i].cool.text =
newLetters[i];
_root["wow"+i]._x = nextX;
_root["wow"+i]._y = startYpos;
nextX = _root
["wow"+i]._X+_root
["wow"+i].cool.textWidth;
++i;
elapsedTime =0;
}
}else{
elapsedTime = getTimer() - enterTime;
}
}
For scene 2: I used the above code on the main timeline and changed the followings; "hi.txt", cool, "wow", "wow"+i
//I ran into lots of problems using these codes. If I used the above code for scene 1 and do a basic tween on the main timeline of the 2nd scene w/o the above code, when I test movie, scene 2 played only...it seemed like scene2 override scene 1.
And if I used the above code for both scenes, when i tested movie, both scenes played at the same time.
I REALLY DON'T KNOW HOW FLASH WORK AT ALL !!!!
I'll catch you guys later...ThankYou!
-ltt
|