A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Dynamic Text - Instance Name

  1. #1
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167

    Dynamic Text - Instance Name

    Hi everyone,

    Here's something that's stumping me, perhaps people here can help me. Let me explain the setup:

    There is a dynamic text box called, for example, myText stored inside a movieclip that is called myMovieclip. Now, I simply want to change the text of the dynamic text box within the movieclip. Yes I know:

    PHP Code:
    _root.myMovieclip.myText.text "Hello!"
    The problem that I have however, is that the instance name myText is stored in a variable, lets call it myVariable. So in very simple layout, it looks like this:

    PHP Code:
    myVariable "myText";

    _root.myMovieclip.myVariable.text "Hello!"

    That of course doesn't work. Can anyone enlighten me?

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    well i don;t think that i've understood completely

    are you trying to do something like
    _root.myMovieclip.myVariable.text = myVariable; ?

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