# Actionscript & dynamic text

**URL:** <https://forum.kirupa.com/t/actionscript-dynamic-text/111630>\
**Category:** Uncategorized\
**Created:** [May 29, 2004, 3:28am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630 "2004-05-29T03:28:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![feiticeria](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@feiticeria](https://forum.kirupa.com/u/feiticeria)\
**Post date:** [May 29, 2004, 3:28am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/1 "2004-05-29T03:28:51Z")

</div>

I’ve hit a small snafu…is there anyway I can read from a dynamic text and use it as a name to control one of the movieclips?

ie: I have a dymanic text called “dText”, where I set “kirupa” as the comment within. I also have a movieclip, which I named “kirupa”, is there anyway I can take the comment in the dynamic text and use it in the actionscript? I’m trying to hide the movieclip, so far I’ve tried:  
[\_root.dText].\_visible = true;  
(\_root.dText).\_visible = true; &  
“(\_root.dText)”.\_visible = true;

None has worked, is there any other way? is this even possible?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 3:39am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/2 "2004-05-29T03:39:09Z")

</div>

\_root[dtext].\_visible=true

\_root[dtext].\_visible=false

should work 😉  
Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 3:51am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/3 "2004-05-29T03:51:16Z")

</div>

hmm…doesn’t work for me :puzzle:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 3:53am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/4 "2004-05-29T03:53:38Z")

</div>

> [@feiticeria](#):
>
> hmm…doesn’t work for me :puzzle:

works fine for me…unless I’m misunderstading your issue.

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 9:13am UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/5 "2004-05-29T09:13:57Z")

</div>

I don’t get what you’re trying to do :\*(  
Can you post us a fla?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 10:45pm UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/6 "2004-05-29T22:45:41Z")

</div>

I’m just trying to figure out how I can use the comments within the dynamic text as a instance name in the actionscript…Adam pretty much did what I was looking for, but for some reason its not working for me, I might be doing something wrong…

oh yea, thanks again Adam for the help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 11:56pm UTC](https://forum.kirupa.com/t/actionscript-dynamic-text/111630/7 "2004-05-29T23:56:25Z")

</div>

I’ve modified Adam’s attachment to what my exact situation is like…  
the dynamic text object is on the main scene, the movieclip is within a number of other movieclips. I have a button on the same movieclip as the “kirupa” movieclip, but I can’t seem to control the “kirupa” movieclip using the button.

I have kept the actionscript I used to try to control it, maybe I’m making some small mistake, but I really don’t know why its not working.
