this code allows you to make your credits through AS, I never finished it though, what I really need done is someone to add a script that will make them hope elastically to a higher position and then continue scrolling
(needs to be implented where trace(this._y+this._name);
//this.speed=0;
this.triggered = true; is)
please someone help ;) this can be pretty cool
(chars going up, tweening elastically into their positions and then if you could add twinning coolly out that could also rock, one mod at a time)
imagine that, a very leet credits script.
the chars are already broken into characters and not strings :)
function toChars(s:String):Array {
s = s.toUpperCase(); //remove to disable all caps
var a = new Array();
var i;
for (i=0; i<s.length; i++) {
a.push(s.charAt(i));
}
return a;
}
function formatBg():Void {
if (_root.container == undefined) {
_root.createEmptyMovieClip("container", 2000);
}
_root.container.createEmptyMovieClip("draw
ing", 20);
_root.container.drawing._y = 0-_root.container._y;
_root.container.drawing.lineStyle(5, 0x000000, 100);
_root.container.drawing.lineTo(550, 0);
_root.container.drawing.beginFill(0x000000
, 100);
_root.container.drawing.lineTo(550, 400);
_root.container.drawing.lineTo(0, 400);
_root.container.drawing.lineTo(0, 0);
_root.container.drawing.endFill();
}
function toClips(a:Array, lineNum:Number):Void {
//gets only 1 line
var i;
var my_fmt;
if (_root.container == undefined) {
_root.createEmptyMovieClip("container", 2000);
}
if (_root.container.lastOffset == undefined) {
_root.container.lastOffset = 0;
}
var baseoffset = (550/2)-((a.length)/2)*12;
my_fmt = new TextFormat();
my_fmt.font = "Impact";
my_fmt.size = 20;
my_fmt.color = 0xFFFFFF;
for (i=_root.container.lastOffset; i<a.length+_root.container.lastOffset; i++) {
_root.container.createEmptyMovieClip("cont
"+i, 1000+i*10);
_root.container["cont"+i].createTextField(
"char"+i, 109, (i-_root.container.lastOffset)*14+baseoffs
et, lineNum*20, 50, 50);
if (a[i-_root.container.lastOffset] == 'I') {
baseoffset -= 5;
} else if (a[i-_root.container.lastOffset] == 'J') {
baseoffset -= 3;
} else if (a[i-_root.container.lastOffset] == 'L') {
baseoffset -= 2;
}
_root.container["cont"+i]["char"+i].text = a[i-_root.container.lastOffset];
_root.container["cont"+i]["char"+i].setTex
tFormat(my_fmt);
_root.container["cont"+i].triggered = false;
_root.container["cont"+i].i=i;
_root.container["cont"+i].onEnterFrame = function() {
if (this.triggered) {
this._y-=speed;
this.speed++;
} else {
this._y -= 4;
if (((this._y+this["char"+this.i]._y)<=-50) && (this.triggered == false)) {
trace(this._y+this._name);
//this.speed=0;
this.triggered = true;
}
}
};
}
_root.container.lastOffset = i;
}
s = new Array(
"Hello Dudes I like Pie",
"Credits:",
"Maker:",
"Inglor",
"AS:",
"Inglor",
"Scams:",
"MoFuckZone ;)",
"Copying from: Juice Tin",
"(He actually cheated)",
"LMNOPQR",
"STUVWXYZ"
);
_root.createEmptyMovieClip("container", 2000);
_root.container._y = 400;
formatBg();
for (i=0; i<s.length; i++) {
d = toChars(s[i]);
toClips(d, i);
}
sorry for the APL account use, I said I'll minimize it and I meant it... I just need to get FOSS a jumpstart... won't post any AS:/FOSS: thread with an APL account again.