Star Wars intro text effect with fp10 in 14 lines of code
Wednesday, November 12th, 2008I finally installed flash CS4, and the first thing I had to do was recreate "the intro". This is practically guaranteed to make you cry 25 years from now! I once again I proclaim my absolute joy of having the 3d features in as3
If you see nada, it's not because I'm lying about this superhuman feat of engineering
but because you don't gots teh flash player 10. It's interesting to see the flicker once you let the sucker scroll for a while... I guess some mask or so might sort that out...
-
var rotated_holder:Sprite=new Sprite();
-
rotated_holder.y=360;
-
rotated_holder.rotationX=-70;
-
var text_field:TextField=new TextField();
-
text_field.width=480;
-
text_field.multiline=true;
-
text_field.wordWrap=true;
-
text_field.autoSize=TextFieldAutoSize.LEFT;
-
var text_format:TextFormat=new TextFormat("Arial",42,0xE3EF7D,true,null,null,null,null,TextFormatAlign.JUSTIFY);
-
text_field.text="It is a period of civil war. Rebel [REST OF TEXT HERE]....";
-
text_field.setTextFormat(text_format);
-
rotated_holder.addChild(text_field);
-
addChild(rotated_holder);
-
addEventListener(Event.ENTER_FRAME,function(e:Event):void{text_field.y-=1;});
nifty no? About 6 lines into this though, I realized it could be even quicker done just by plain old motion tweening
(which I incidentally also find cool, you know, that that's possible).

