A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: rotation and TextFields

  1. #1
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801

    rotation and TextFields

    I'm not sure what I'm seeing here. I've got a class (Table) that extends Sprite with a mousedown handler which creates a new Sprite (DescBox), adds it, then constructs and adds a TextField to the DescBox. This all works just fine.
    However, if the original Table had a rotation other than 0, the newly added DescBox and TextField would fail to render. It was there, responding to mouse events, just not showing on the screen.

    It's not such a big deal, because I realized I want the text level anyway, so I simply told the DescBox holding the text that its rotation was -1*rotation (of the holding Table), thus cancelling it out. When I did that, things render fine.

    Is this a known bug or pitfall? Did I do something very dumb?

  2. #2
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    You're probably running into the issue that dynamic TextFields won't render their text at any rotation besides zero unless their font is embedded...

  3. #3
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Not that I need to fix it, but is there a consolidated list of this sort of known issue?

  4. #4
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    hehhh...yeah, just grep a google search for AS3 and anything that's not in the f*n manual.

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