# Problem with actionscript and linking movie clips

**URL:** https://forum.kirupa.com/t/problem-with-actionscript-and-linking-movie-clips/184858
**Category:** Uncategorized
**Created:** [April 8, 2006, 3:52pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-and-linking-movie-clips/184858 "2006-04-08T15:52:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tamsky](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@tamsky](https://forum.kirupa.com/u/tamsky)
#### Post date: [April 8, 2006, 3:52pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-and-linking-movie-clips/184858/1 "2006-04-08T15:52:20Z")

</div>

I am new to Flash and took this on as a work assignment… a little over my head. I got a template so I thought everything would be fine, but I can’t get a new movie clip to load when I hit next.  
I got it to work once, but when I did it applied the same thing to the previous symbol… eventhough i had a different actionscript for it!! help!

this is what i have for it right now  
on (rollOver) {  
this.gotoAndPlay(“s1”);  
}  
on (releaseOutside, rollOut) {  
this.gotoAndPlay(\_totalframes-\_currentframe);  
}  
on (release) {  
\_parent.parent.icons.play(gal1.swf, gal1);  
}

---

<div class="post-metadata">

### Author: ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)
#### Post date: [April 8, 2006, 5:34pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-and-linking-movie-clips/184858/2 "2006-04-08T17:34:36Z")

</div>

This does nothing as far as I can tell.  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]parent[/COLOR].[COLOR=#000080]icons[/COLOR].[COLOR=#0000FF]play[/COLOR][COLOR=#000000]([/COLOR]gal1.[COLOR=#000080]swf[/COLOR], gal1[COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

First, the second parent needs an underscore, ie: \_parent.\_parent. Or otherwise you telling a child movieclip called icons inside a movieClip called parent to play.

Or, you telling a movieClip called icons that is two levels up to play 2 things. One which it cant do. Play is used tell a timeline to play, not a swf. And gal1 is nothing. If your trying to tell it to goto and play a frame label, then gal1 needs to be in quotes “gal1” .

---

<div class="post-metadata">

### Author: ![tamsky](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@tamsky](https://forum.kirupa.com/u/tamsky)
#### Post date: [April 8, 2006, 8:01pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-and-linking-movie-clips/184858/3 "2006-04-08T20:01:15Z")

</div>

Thanks…I had the second \_parent…anyway…I got it figured out for now…still not exactly what i want, but I’m getting the kinks worked out slowly.
