A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Dynamic vertical text

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    28

    Dynamic vertical text

    is it possible?

  2. #2
    Resident Shostakovich Scholar
    Join Date
    May 2003
    Location
    Nottingham, UK.
    Posts
    299
    Since the text direction feature disables when you select dynamic or input text, perhaps the only way to do this is use substrings and new lines.

    for (n=0; n < number_of_letters; n++) {
    current_letter = substr.somestring(n, (n+1));
    if (mystring) { //or whatever the code is in AS for checking if a string is present
    mystring = current_letter\n;
    } else {
    mystring = mystring + curent_letter\n;
    }
    }

    This, I reckon, would cycle through the letters and put them in sequence below each other using the \n command. If AS is anything like PHP, there'll be a function to dermine a string's length, so you could make number_of_letters dynamic rather than needing to know how many letters the for loop is expecting.

    Just a guess at how this could be done!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center