Forum Topic: Circle Text in flash.

(150 views • 8 replies)

This topic is 1 page long.

<< < > >>
Resigned

Dereks

Reply To Post Reply & Quote

Posted at: 5/18/09 02:07 PM

Dereks LIGHT LEVEL 10

Sign-Up: 06/10/07

Posts: 143

I searched everywhere, but I still dont know how to do a circle text in flash ; Any tips ?

Like that :

Circle Text in flash.

BBS Signature

None

Dugh

Reply To Post Reply & Quote

Posted at: 5/18/09 02:11 PM

Dugh LIGHT LEVEL 20

Sign-Up: 12/06/05

Posts: 2,224

I don't think that's possible in Flash.. Not sure, though.

NEED A ARTIST FOR YOUR PROJECT (GAME, WEBSITE, INTRO, WHATEVER)??
: Only cool people comment to my news-posts. Seriously.

BBS Signature

None

WhoknowsmeaUdiO

Reply To Post Reply & Quote

Posted at: 5/18/09 02:13 PM

WhoknowsmeaUdiO DARK LEVEL 13

Sign-Up: 04/11/07

Posts: 1,170

There should be a better approach, but I always write the text, break it up and arrange the letter manually. But don't do that. It sucks, just like me.

In case you haven't noticed yet, this isn't my main anymore. PM me here.

BBS Signature

None

Dereks

Reply To Post Reply & Quote

Posted at: 5/18/09 02:20 PM

Dereks LIGHT LEVEL 10

Sign-Up: 06/10/07

Posts: 143

At 5/18/09 02:13 PM, WhoknowsmeaUdiO wrote: There should be a better approach, but I always write the text, break it up and arrange the letter manually. But don't do that. It sucks, just like me.

Hmm is there a way to do it using AS ?

BBS Signature

Expressionless

Dereks

Reply To Post Reply & Quote

Posted at: 5/18/09 02:22 PM

Dereks LIGHT LEVEL 10

Sign-Up: 06/10/07

Posts: 143

At 5/18/09 02:11 PM, Dugh wrote: I don't think that's possible in Flash.. Not sure, though.

It is. Take a look at this : http://media.lelombrik.net/21001-21500/2 1446.swf

BBS Signature

None

Dugh

Reply To Post Reply & Quote

Posted at: 5/18/09 02:23 PM

Dugh LIGHT LEVEL 20

Sign-Up: 12/06/05

Posts: 2,224

At 5/18/09 02:22 PM, Dereks wrote:
At 5/18/09 02:11 PM, Dugh wrote: I don't think that's possible in Flash.. Not sure, though.
It is. Take a look at this : http://media.lelombrik.net/21001-21500/2 1446.swf

That's probably done in Photoshop and then imported in Flash

NEED A ARTIST FOR YOUR PROJECT (GAME, WEBSITE, INTRO, WHATEVER)??
: Only cool people comment to my news-posts. Seriously.

BBS Signature

None

Neo-13

Reply To Post Reply & Quote

Posted at: 5/18/09 02:41 PM

Neo-13 LIGHT LEVEL 20

Sign-Up: 06/09/07

Posts: 1,475

Yeah, it can definately be done in photoshop, so just use that if you have it.

BBS Signature

None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 5/18/09 02:51 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030

it can be done in AS, you'd make a separate text box for each letter then place them through code

psuedo-code:

string s = "circle text! "

for(int i = 0; i < s.length(); i++){
    make a new text box T
    t.text = s.charAt(i);
    //calculate position
    angle = 360/s.length * i
    position = center + radius * <sin(angle), cos(angle)>
    addChild(T)
}

None

Denvish

Reply To Post Reply & Quote

Posted at: 5/18/09 02:54 PM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

At 5/18/09 02:20 PM, Dereks wrote: Hmm is there a way to do it using AS ?

Yes.

txt="GUMBOOT MOFO ";														//TEXT TO DISPLAY
circRad=200;																			//RADIUS OF CIRCLE

function CREATECIRCLE(str){												//CREATE CIRCLE
	letterAngle=360/(str.length);												//GRAB ANGLE OF LETTERS
	txtArr=str.split("");															//CONVERT TEXT TO ARRAY
	var c=createEmptyMovieClip("circ",1);								//NEW MC
	c._x=Stage.width/2;c._y=Stage.height/2;							//PLACE CENTRALLY
	var ang=-90;																	//ANGLE OF FIRST LETTER
	for(var i=0;i<txtArr.length;i++){										//LOOP LETTER ARRAY
		var nl=c.attachMovie("letter","l"+i,i);								//CREATE NEW LETTER MC
		nl.t=txtArr[i];																//SET LETTER
		nl._rotation=ang+90;													//SET ROTATION
		nl._x=Math.cos(TRAD(ang))*circRad;							//SET X BASED ON ROTATION/RADIUS
		nl._y=Math.sin(TRAD(ang))*circRad;							//SET Y BASED ON ROTATION/RADIUS
		ang+=letterAngle;															//INCREMENT THE ANGLE
	}																						//
	c.onEnterFrame=function(){this._rotation+=5;}					//ROTATE HOLDER MC
}

function TRAD(xxx){return(xxx*Math.PI/180);} 					//FUNCTION: DEGREES TO RADIANS

CREATECIRCLE(txt);															//DO THE FUNKY THANG

- - Flash - Music - Images - -

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 05:12 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!