# \[Flash8\] Trying to get AS to play from a movie clip

**URL:** <https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117>\
**Category:** flash\
**Created:** [July 4, 2008, 5:20am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117 "2008-07-04T05:20:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 5:20am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/1 "2008-07-04T05:20:35Z")

</div>

Hello, This is my first post.

I am having the hardest time trying to get AS to play from within a MC called “content\_002”.

Please remember that this AS is an XML-Driven sub-menu that successfully works on it’s own. When I tie it into a MC, it doesn’t like to work with my shifting main-menu.

For this post, I’ll first send the “combined” .fla file then I will post them apart to see if anyone can find a better way.

Any assistance would be greatly appreciated.

Thanks!  
Finkster

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 5:21am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/2 "2008-07-04T05:21:50Z")

</div>

Here are the origionals separated.

Thanks again!

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [July 4, 2008, 8:06am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/3 "2008-07-04T08:06:24Z")

</div>

don’t tell me you have stuck something inside an MC, then don’t understand why it isn’t working

the path is different

\_root. is also a classic, when you place an MC in an MC, you need this.\_parent, or this

\_root will point to whatever is the base container file

…

ideally what you should be doing is have all the code on the base timeline controlling every MC from there as a universal point of reference,

(although I usually don’t)

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 8:13am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/4 "2008-07-04T08:13:27Z")

</div>

ok, thanks for reminding me of that.  
I’m still not sure where to trigger the command.  
Sorry if I seem ignorant.

[quote=randomagain;2353499]don’t tell me you have stuck something inside an MC, then don’t understand why it isn’t working

the path is different

\_root. is also a classic, when you place an MC in an MC, you need this.\_parent, or this

\_root will point to whatever is the base container file[/quote]

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 8:20am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/5 "2008-07-04T08:20:19Z")

</div>

Just a heads up… My “ignorance” here is comming from the code “main-menu” that was previously created by someone else. I’m just trying to fit the “sub-menu” into it to expand the look. I just do not know how to tie the two togather.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [July 4, 2008, 8:29am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/6 "2008-07-04T08:29:25Z")

</div>

you have code

**\_root** [‘bt’+i].\_y += i\*22;

the root is wrong, it should be **this** instead

\*\*this \*\*meaning the MC it is in, in other words “here”

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 5:25pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/7 "2008-07-04T17:25:28Z")

</div>

Note: Quotes used here are not in the code.

In the actions of “content\_002”, I entered “this.” behind the lines that started with “\_root” and nothing changed.

I figured that the play head was already there at this time, so I then replaced “\_root” with “this” and that didn’t work either.

From the “combined” file that I have sent, did it work for you?  
If so, please let me know if I left something out.

Maybe there is a completely different way to go about this???

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 4, 2008, 6:33pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/8 "2008-07-04T18:33:05Z")

</div>

What gets me is that when I am in that scene, I test the scene and it plays fine!  
I just cannot get it to play nice with the sliding menu when it all plays!

Anyone???

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 5, 2008, 5:28am UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/9 "2008-07-05T05:28:27Z")

</div>

Is it just me or is there no way to use two scripts with “i++” in the same file???

-Update: They can be played together. I lined them up on the same timeline and they play fine.

BUT I cannot get the ■■■■ sub-menu to play within the MC of the main-menu!!!

Is this a challenge or what???

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 5, 2008, 8:28pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/10 "2008-07-05T20:28:15Z")

</div>

Does anyone have any ideas???

I don’t mind thinking outside the box as long as I achieve the same effect.  
Files are provided at the beginning of this post.

Desperation is setting in…

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 7, 2008, 7:49pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/11 "2008-07-07T19:49:23Z")

</div>

Thank you randomagain for trying to help.

As for this post, my problem is still not solved.  
I’m about to give up on this look and try something else.

I thought that this would be fairly easy for someone who knows more than I do (which isn’t hard to do).

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [July 7, 2008, 8:21pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/12 "2008-07-07T20:21:16Z")

</div>

strange as it may seem that’s why people get paid for coding things

if you can’t figure it out… pay someone to do it for you.

---

<div class="post-metadata">

**Author:** ![Finkster](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@Finkster](https://forum.kirupa.com/u/Finkster)\
**Post date:** [July 7, 2008, 9:48pm UTC](https://forum.kirupa.com/t/flash8-trying-to-get-as-to-play-from-a-movie-clip/265117/13 "2008-07-07T21:48:03Z")

</div>

I’m at a loss… I guess I cannot get the exact syntax down.

Someone close this post.
