A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Keyed Dynamic Textfields

  1. #1
    Knowledgable n00b BlueGeek's Avatar
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    137

    [F8] Keyed Dynamic Textfields

    I'm having a tough time setting the text in a dynamic text field that rests inside of a symbol that I'm moving around with key frames. I've tried everything from text_field.text to using the variable tracer. I've used globals, hand offs, just about everything and the result is always the same, a blank field. Oddly enough, when I output textfield.text it says it has the text I want it to.

    Any thoughts?
    "...there were only two good books in the hotel gift shop and I had written both of them."
    -Douglas Adams

  2. #2
    Knowledgable n00b BlueGeek's Avatar
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    137
    nothing? =( comeon, this has to have come up somewhere, i guess I'll search some more but if anyone has a direct answer it would be VERY appreciated
    "...there were only two good books in the hotel gift shop and I had written both of them."
    -Douglas Adams

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Planet Earth
    Posts
    298
    I assume that when you say
    ...moving around with key frames.
    you mean that you have a value that you want to show in different positions in your movie. You want to set that value and have that value be the same no matter what keyframe or position it's in.

    Just set the value as a variable and name the text box that variable, instead of using the textfield object. The textfield object has a text property that must be populated in order for it to display a value. Therefore, each new key frame is a new instance of the text field object that must be populated.

    This will work:
    Code:
    // first frame
    myName = "4sheezy";
    Then draw your textfields with the text tool, set it to dynamic and put "myName" in the Var: field on the property inspector.
    ---
    Thinking outside of the box will get you fired if the "box" is strict budget.

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