A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamic text in movie clip

  1. #1
    Say Hello to my little friend. pimpjacksmack's Avatar
    Join Date
    Apr 2002
    Posts
    95

    Dynamic text in movie clip

    I have a dynamic text box inside a movie clip. Where do I need to call the variable to get it to load properly?

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    depends how you do it.You can create the variable on the root level and refer to it as _root.varName

    and then set the text by:

    _root.movieClipName.textFieldName.text = _root.varName
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Not really Fat... or a Cat ^_^
    Join Date
    Feb 2006
    Posts
    63
    If you are using Flash 6 or above, don't use a variable name, use an instance name.

    Name the textfield in the propieties panel and you can target it from anywhere in the script, no matter if is nested inside other MC, just be sure to get the path right (_root.parent_mc.textfield) when calling it.

    Hope this helps

    ---Ganbare!
    Last edited by FatCat; 02-28-2006 at 06:49 PM.
    What are you going to do about it?... There's gotta be people for everything --Joan Manoel Serrat

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