A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Stop flash adding textFormat

  1. #1
    Senior Member
    Join Date
    Feb 2005
    Posts
    237

    Stop flash adding textFormat

    Hello,

    I'm exporting text from an html text box to a .text file. For reasons I won't go into, I have to export it as htmlText. My problem is that flash adds a default text format to the text.

    Is there any way of stopping this or do I have to clean it up with php?

    Thanks

  2. #2
    Member
    Join Date
    Jun 2006
    Location
    Leeds UK
    Posts
    84
    Hi

    I am not 100% sure, but can't you define your textFormat by creating one?

    PHP Code:
    var myFormat:textFormat()= new textFormat();

    myFormat.font="myFont";
    .... 

  3. #3
    Senior Member
    Join Date
    Feb 2005
    Posts
    237
    Hi.

    I don't want my own text format, I want no text format, and it seems like flash automatically applies a default text format to text within an htmlTextfield. I need the text to have no tags at the beginning or end. (It has anchor tags within the text so I can't just export it as text or it will not include these tags).

    I was wondering if there was a way to stop flash applying a default text format.

  4. #4

    destroying Flash's TEXTFORMAT

    Did you ever accomplished this?
    There's nothing wrong with wanting its needing that is the problem.

  5. #5
    Senior Member
    Join Date
    Feb 2005
    Posts
    237
    Hi,

    No I abandoned it. Was trying to use css to formatt an input textfield, but found out the amazingly useless fact that as soon as you apply a stylesheet to a textfield, it locks it and prevents any manual editing.

    Lets pray for some better css support in number 9.

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