PDA

View Full Version : [AS2] Dynamic 3D Isometric Text



Gazurt
September 19th, 2007, 01:52 PM
I think this my last projet of AS2 :) It is so simple :azn:

You can look it from here (http://www.flasherblog.com/#/calisma=612) ;)

First write your name in to input text then click the "Uygula" button.Then you will see the stuff :crazy:.If you want to write another word just click the "Tekrar" button...

Thanks...

FlawlessDog
September 19th, 2007, 02:57 PM
Wow, cool stuff
thanks :)

prototype
September 20th, 2007, 09:17 AM
Thanks for sharing your source code. Nice effect!

Gazurt
September 20th, 2007, 10:30 AM
Thanks guys :P

Templarian
September 20th, 2007, 10:36 AM
Very cool man. Clean simple and could probably save someone a large headache.

Gazurt
September 21st, 2007, 10:21 AM
Very cool man. Clean simple and could probably save someone a large headache.

Thanks man :D

dec27
September 21st, 2007, 06:39 PM
hey! it reminds me Mathieu Badimon...

http://lab.mathieu-badimon.com/

:)

joran420
September 21st, 2007, 09:20 PM
thats awesome....how does it work? I cant download the fla atm

Gazurt
September 23rd, 2007, 04:16 PM
I know that site and it is super :)

I can't tell how it is working :D When you open the FLA you can see...

Thanks for comments :)

tpspoons
September 25th, 2007, 05:24 PM
Great stuff! I created a little (as3) class that creates a 3d textfield based on your example, if anyone is interested. I'm not sure how well its coded though...

Anyway here it is:


package {

import flash.display.Sprite;
import flash.text.*;
import flash.events.Event;

public class TextField3D extends Sprite {

public var format:Object = new Object ();

private var frontTextField:TextField = new TextField ();
private var backTextField:TextField = new TextField ();
private var backTextFieldContainer:Sprite = new Sprite ();

public function TextField3D () {
addChild (frontTextField);
addChild (backTextFieldContainer);
}

public function render () : void {
removeChild (frontTextField);
removeChild (backTextFieldContainer);

frontTextField = null;
backTextFieldContainer = null;

var textFormat:TextFormat = new TextFormat (format.font, format.size, format.color1, format.bold, format.italic, format.underline);
frontTextField = new TextField ();
frontTextField.defaultTextFormat = textFormat;
frontTextField.text = format.text;
frontTextField.embedFonts = format.embedFonts;
frontTextField.selectable = format.selectable;
frontTextField.autoSize = format.autoSize;

textFormat.color = format.color2;
backTextFieldContainer = new Sprite ();

for (var i:int = 0; i < format.depth; i++) {
backTextField = new TextField;
backTextField.defaultTextFormat = textFormat;
backTextField.text = format.text;
backTextField.embedFonts = format.embedFonts;
backTextField.selectable = format.selectable;
backTextField.autoSize = 'left';
backTextField.x = i * Math.cos (format.angle * (Math.PI / 180));
backTextField.y = i * Math.sin (format.angle * (Math.PI / 180));;

backTextFieldContainer.addChild (backTextField);
}

addChild (backTextFieldContainer);
addChild (frontTextField);
}
}
}

and here is an quick example usage:


var textField3D:TextField3D = new TextField3D ();

textField3D.format.text = 'Hello!';
textField3D.format.font = 'Verdana';
textField3D.format.color1 = 0xD9CEB2;
textField3D.format.color2 = 0;
textField3D.format.bold = true;
textField3D.format.size = 50;
textField3D.format.depth = 10;
textField3D.format.angle = 310;

textField3D.render ();

addChild (textField3D);

EXAMPLE (http://boshpk.co.uk/TextField3D_example.html)

Gazurt
October 11th, 2007, 04:18 PM
Woww thanks :)

A5HTON
October 19th, 2008, 08:52 PM
hey man, would love to see the effect, but I can't download the file.

Could you please re-upload the FLA to anotherlocation, because the current one isn't working. Thanks.

mlk
October 27th, 2008, 08:26 AM
403

Gazurt
October 27th, 2008, 04:13 PM
Here is the new link (http://www.flasherblog.com/#/calisma=612):

To download just press "Calismayi Indir" button.