Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash In Action > Widgets

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2004, 10:30 PM   #1
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default Spiral text

not sure is it the right place to post ?

PHP Code:
var my_fmt:TextFormat = new TextFormat();
//YOU NEED a FONT SYMBOL WHIT LINKAGE NAME "Font 1" IN THE LIBRARY
my_fmt.font "Font 1";
"Hallo This is a Spiral Text and Even Colored :)";
Text = [];
0;
ToCount 0;
for (
a=0a<T.lengtha++) {
    
txt = {step:0alpha:0color:0color2:0text:T.substr(a1)};
    
Text[a] = txt;
}
function 
spiral() {
    
q++;
    if (
q>10) {
        
0;
        if (
ToCount<Text.length-1) {
            
ToCount++;
        }
    }
    for (
count=0count<ToCount+1count++) {
        
txtName "L"+count;
        if (
Text[count].step<1000) {
            if (
Text[count].alpha<100) {
                
Text[count].alpha++;
            }
            if (
Text[count].step>900) {
                
Text[count].alpha -= 2;
            }
            
Text[count].step++;
            
250+(200-Text[count].step/10)*Math.sin((100+Text[count].step)/180*Math.PI);
            
250+(200-Text[count].step/10)*Math.cos((100+Text[count].step)/180*Math.PI);
            if (!eval(
txtName)) {
                
_root.createTextField(txtNamecountxy1010);
            }
            
Text[count].color++;
            if (
Text[count].color>255) {
                
Text[count].color 0;
                
Text[count].color2 += 10000;
            }
            eval(
txtName).wordWrap true;
            eval(
txtName).embedFonts true;
            eval(
txtName).text Text[count].text;
            eval(
txtName).setTextFormat(my_fmt);
            eval(
txtName)._x x;
            eval(
txtName)._y y;
            eval(
txtName).textColor Text[count].color2+Text[count].color;
            eval(
txtName)._alpha Text[count].alpha;
            eval(
txtName)._rotation 80-Text[count].step;
        } else {
            
Text[count].step 0;
            
Text[count].alpha 0;
        }
    }
}
setInterval(spiral1); 
Xeef is offline   Reply With Quote
Old 04-02-2008, 01:54 PM   #2
sim-2000
Registered User
 
Join Date: Apr 2008
Posts: 6
Default spiral

Hi Xeef,

I just bumped into your spiral text script - fantastic.
I've been trying a few things with it, but I can't seem to get the text rotating the other way around - so it starts in the centre and spirals out.
I'd like to have the text adding all the time so the circle gets bigger - it doesn't have to rotate.

Thank you very much for you help!

Sim
sim-2000 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.