A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: rotation of dynamic text field

  1. #1
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124

    rotation of dynamic text field

    Is there any way to have a dynamic text field on the stage rotated at an angle (45 for example) and then populate it with text from an xml document?

    Thanks.

  2. #2
    Member
    Join Date
    Apr 2008
    Posts
    97
    um ... embed the font in the dynamic text field, set the rotation and then process the xml

  3. #3
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    Thanks for the reply but that won't work as we have to have the ability in the XML to add different fonts and languages, so the fonts can't be embedded.

    Any more ideas?

  4. #4
    Member
    Join Date
    Apr 2008
    Posts
    97
    Yeah I thought that was a little too easy for you. You have to have the font embedded if you want to rotate / animate it.

    //Shot in the dark
    What about having a fonts swf that the main movie can load the specified font as needed?

  5. #5
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    Interesting prospect.

    How would you go about doing that, I've never done anything like that.

  6. #6
    Member
    Join Date
    Apr 2008
    Posts
    97
    Embeding Fonts in a swf

    in any given branch on the xml file give the attribute font, and when processing your xml
    Code:
    switch (branchName.attribute("font").toString())
    {
          case "verdanaEng":
                       //load and process font as described in the tutorial above
                      break;
            case "arialEng":
                       //load and process font as described in the tutorial above
                      break;
    
    ...... and so on
    }

  7. #7
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Perhaps a series of swfs with just a text field and the embedded font...then you can load whichever you need? Or you could gut the text parser out of five3D and use the raw vector data...but thats probably overkill :P

  8. #8
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    Thanks, I'll have to give that a go.

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