-
Senior Member
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.
-
um ... embed the font in the dynamic text field, set the rotation and then process the xml
-
Senior Member
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?
-
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?
-
Senior Member
Interesting prospect.
How would you go about doing that, I've never done anything like that.
-
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
}
-
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
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|