# Doubt with Instances

**URL:** https://forum.kirupa.com/t/doubt-with-instances/64290
**Category:** flash
**Created:** [September 14, 2004, 11:24pm UTC](https://forum.kirupa.com/t/doubt-with-instances/64290 "2004-09-14T23:24:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![arturo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arturo/32/761_2.png) [@arturo](https://forum.kirupa.com/u/arturo)
#### Post date: [September 14, 2004, 11:24pm UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/1 "2004-09-14T23:24:21Z")

</div>

[font=Arial]Hi there, maybe this is easy and I’m stupid, but let me try to explain:

I’ve a main movie, for example, this movie has 3 buttons, in each button there’s a MovieClip in the Over area, for example button1 contains a MovieClip with some animation, this clip has an Instance name clip1\_mc, ok, untill this, everything it’s ok, the effect it’s easy to achieve, when I rollover my mouse over that button, the clip called clip1\_mc starts to play, piece of cake, the problem is this, what happens if I call an extrenal .SWF, this .SWF contains a simple button, when I rollover this button I want to play my clip inside in my button in my main Movie, I cannot do this, I was trying with something like this:

on (rollOver) {  
\_parent.clip1\_mc.play();  
}

but this is not working, I’m doing something wrong, but I can’t see what is, any help?, any idea?

thanks [/font]

---

<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: [September 14, 2004, 11:28pm UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/2 "2004-09-14T23:28:49Z")

</div>

hmm that just kind of confused me. could you post an .fla to look at?

---

<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: [September 14, 2004, 11:39pm UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/3 "2004-09-14T23:39:33Z")

</div>

Hi, the file it’s about 300k and I cannot upload that size, do you have an email address?, mine is [arturo.civit@gmail.com](mailto:arturo.civit@gmail.com), thanks 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: [September 15, 2004, 1:05am UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/4 "2004-09-15T01:05:26Z")

</div>

Thanks, anyway, I did two examples, thanks dude…

---

<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: [September 15, 2004, 4:34am UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/5 "2004-09-15T04:34:19Z")

</div>

you can use Movieclip instance instead of Button.  
Eg: you cannot play a movieclip inside a button. like "\_root.button1.mc1.play();

but if you use mc as a button you can use this onRollover ( or any action you like) for the button of the loaded .swf as follows

```auto

on(rollOver){
_root.mc1.play();
}

```

---

<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: [September 15, 2004, 5:00am UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/6 "2004-09-15T05:00:39Z")

</div>

> [@nishanthe](#):
>
> you can use Movieclip instance instead of Button.  
> Eg: you cannot play a movieclip inside a button. like "\_root.button1.mc1.play();
> 
> but if you use mc as a button you can use this onRollover ( or any action you like) for the button of the loaded .swf as follows
> 
> ```auto
> 
> on(rollOver){
> _root.mc1.play();
> }
> 
> ```

ok, thanks, but what happens with the ActionScript I have in that button?, if I change the property from button to movieclip, I’ll lost all the AS I think, now it’s 12.02 am and I’m desperate…

---

<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: [September 15, 2004, 5:41am UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/7 "2004-09-15T05:41:11Z")

</div>

pleasesee the attachment

---

<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: [September 15, 2004, 5:59am UTC](https://forum.kirupa.com/t/doubt-with-instances/64290/8 "2004-09-15T05:59:02Z")

</div>

NOW IT’s WORKING!!!

Thanks Nishanthe, you’re the man!
