A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: input text reverting its format

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Location
    Worcester Ma
    Posts
    161

    input text reverting its format

    I have a dynamically created input texfield. Its been formatted dymanically. Nothing heavy duty going on and it works fine, except when I add this feature...
    If I use Selection.setFocus on it, it becomes preselected and everything seems fine. The format is correct at this point. But once you start typing in the selected field (without using a mouseclick to get into the text) it reverts to a different sized, bold font that looks like Times New Roman, maybe a default format. Any idea why this is happening? How can I stop this from occurring?

    Thank you.

  2. #2
    Confused Game/Cartoon Designer
    Join Date
    May 2005
    Location
    Texas
    Posts
    60
    ive had the same problem with a dynamic text today. I dont know how to do this to a text dynamically created, but if you want a text to stay in the same font, go to the characters button in the propertiaes window while the textfield is selected. once there, select all the options on the top (none of the japanese, chinese...) then click ok. this will embed the font in your movie. if you can figure out how to do the same thing in actionscript, then tyou're set. or if you make a separate textfield to embed the letters with, that might work.
    Last edited by MisterPD; 12-30-2005 at 04:29 PM. Reason: misspelling
    P-Dizzle is in the hizzle.

  3. #3
    Senior Member
    Join Date
    Feb 2004
    Location
    Worcester Ma
    Posts
    161
    Thanks for the reply MR.PD

    I am using...

    Code:
    my_txt.embedFonts;
    ...to dynamically embed the fonts.

    This should have done the trick if that was the issue, but I think the problem lies elsewhere. If I have to, Ill use attachMovie to force a library MC containing an inputBox upon the stage, but I wanted to keep using createEmptyMovie and createTextField like I am.

  4. #4
    Confused Game/Cartoon Designer
    Join Date
    May 2005
    Location
    Texas
    Posts
    60
    another thing to try is making a dynamic/input text (not with AS but by hand) and using the character button i mentioned. make sure your handmade text uses the same font as the one you are worried about.
    P-Dizzle is in the hizzle.

  5. #5
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745

    what version?

    have ye tried swabbin' the decks of that ship with a stylesheet matey? maybe reassign the properties with a my_txt.onSetFocus handler ...

    __azwaldo__

  6. #6
    Senior Member
    Join Date
    Feb 2004
    Location
    Worcester Ma
    Posts
    161
    Its MX 2004. Ill post the code Im using. Thx

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