# \_root problem

**URL:** https://forum.kirupa.com/t/-root-problem/35459
**Category:** flash
**Created:** [November 14, 2003, 6:15am UTC](https://forum.kirupa.com/t/-root-problem/35459 "2003-11-14T06:15:55Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![barge](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@barge](https://forum.kirupa.com/u/barge)
#### Post date: [November 14, 2003, 6:15am UTC](https://forum.kirupa.com/t/-root-problem/35459/1 "2003-11-14T06:15:55Z")

</div>

Ok I have the common .swf loading up externally into another .swf. The problem is that all the \_root stuff is getting screwed up because it is getting itself mixed up. how do I staighten the \_root out? With levels? For example I have text that follows the cursor when over a button, but when I go to a scroller in the external movie, then back to the button, it shows the text over the scroller. Please help. I have tried putting \_level1\_root. but can’t get it. Thanks so much in advance.

---

<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: [November 14, 2003, 10:53am UTC](https://forum.kirupa.com/t/-root-problem/35459/2 "2003-11-14T10:53:23Z")

</div>

When you load an external swf containing \_root reference into another swf then the \_root references no reference to \_root of that container swf.

See if replacing _\_root_ with _this_ solves the problem.  
Change  
[AS]  
\_root.myMC.something…  
[/AS]  
into  
[AS]  
this.myMC.something…  
[/AS]

If that doesn’t help could you post a fla so I can have a look?

---

<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: [November 14, 2003, 2:43pm UTC](https://forum.kirupa.com/t/-root-problem/35459/3 "2003-11-14T14:43:57Z")

</div>

ok so for every \_root I have in a external movie I have to put .container after it? Container is the instance name of the empty movie clip I have in the main .swf. Then if the \_root is in a movieClip inside the original external .swf, would it be like \_root.container.movieClip=. Someone please 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: [November 14, 2003, 3:01pm UTC](https://forum.kirupa.com/t/-root-problem/35459/4 "2003-11-14T15:01:10Z")

</div>

check out the .flas, you have to put a k where the \* is in the URL, it’s a cuse word.

[http://glidefx.org/hitchcoc\*/desktop.zip](http://glidefx.org/hitchcoc*/desktop.zip)

Ok first export the two .swfs. one as alayout and teh other as board. Then open up the alayout .swf, and go to “board”, play with the scroller, then go back to the buttons to the left. After I learn how to fix the problems with that I will be able to fix the problems with teh board. Thanks.

---

<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: [November 14, 2003, 7:50pm UTC](https://forum.kirupa.com/t/-root-problem/35459/5 "2003-11-14T19:50:00Z")

</div>

how come no one helps me? :ch:

---

<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: [November 15, 2003, 12:54am UTC](https://forum.kirupa.com/t/-root-problem/35459/6 "2003-11-15T00:54:04Z")

</div>

because you cross posted and it has only been a few hours since your last post…

---

<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: [November 15, 2003, 1:09am UTC](https://forum.kirupa.com/t/-root-problem/35459/7 "2003-11-15T01:09:48Z")

</div>

What is your problem btw?? if it is the scrollbar than there is nothing wrong it is just that there is no text to scroll…

---

<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: [November 15, 2003, 2:51am UTC](https://forum.kirupa.com/t/-root-problem/35459/8 "2003-11-15T02:51:05Z")

</div>

Load the alayout.swf, go to board, play around with the draging piece of the scroller, then go back to the buttons on the left. The text that follows the mouse when over those buttons is now locked onto the scroller. it is confusing I know. Thanks though

---

<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: [November 15, 2003, 4:57am UTC](https://forum.kirupa.com/t/-root-problem/35459/9 "2003-11-15T04:57:17Z")

</div>

> 

_originally posted by blah-de-blah:_  
because you cross posted and it has only been a few hours since your last post…

add to that list: Your link doesn’t work ([http://glidefx.org/hitchcoc\*/desktop.zip](http://glidefx.org/hitchcoc*/desktop.zip))

---

<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: [November 15, 2003, 10:44am UTC](https://forum.kirupa.com/t/-root-problem/35459/10 "2003-11-15T10:44:56Z")

</div>

ok, first let me also state: please don’t cross post. it’s quite annoying if you try to help someone to find out later that somebody else already answered the question in another thread.

But now that Sen took care of you’re other thread, here’s what I did.

On your main timeline you have  
[AS]  
startDrag(this.caption, true);  
[/AS]  
When debugged your movie notice the \_dropTarget property of the caption mc which gets set to the scrollbar. That’s why it sticks to it when going back to the menu.

So I removed this line and instead put this on the caption mc:  
[AS]  
onClipEvent (enterFrame) {  
if (\_level0\_root.gem == 1) {  
\_level0\_root.gem\_alpha = 60;  
}  
else {  
\_level0\_root.gem\_alpha = 0;  
}  
this.\_x = \_root.\_xmouse;  
this.\_y = \_root.\_ymouse;  
}  
[/AS]  
p.s. Notice I also made a small change to your if-statement.

Seems everything is working fine now.

---

<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: [November 15, 2003, 3:02pm UTC](https://forum.kirupa.com/t/-root-problem/35459/11 "2003-11-15T15:02:12Z")

</div>

I said before you had to change the \* to a “k” because that word is bad and won’t let me type it or have it in a link. I am terribly sorry for the cross posting business. Thanks for the help though, I will check it out.
