# After attachMovie, trying to removeMovieClip? \[flash8 wanting to publish as flash5\]

**URL:** <https://forum.kirupa.com/t/after-attachmovie-trying-to-removemovieclip-flash8-wanting-to-publish-as-flash5/190166>\
**Category:** Uncategorized\
**Created:** [June 9, 2006, 4:59am UTC](https://forum.kirupa.com/t/after-attachmovie-trying-to-removemovieclip-flash8-wanting-to-publish-as-flash5/190166 "2006-06-09T04:59:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sith\_xp](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sith\_xp](https://forum.kirupa.com/u/sith_xp)\
**Post date:** [June 9, 2006, 4:59am UTC](https://forum.kirupa.com/t/after-attachmovie-trying-to-removemovieclip-flash8-wanting-to-publish-as-flash5/190166/1 "2006-06-09T04:59:31Z")

</div>

hi, i’ve attached a movie to the \_root mc using the following script:

[COLOR=PaleTurquoise][COLOR=DarkGreen]onClipEvent (mouseDown) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
\_root.attachMovie(“bigcard1”,“c1”,1);  
c1.\_x=100;  
c1.\_y=50;  
c1.\_xscale=50;  
c1.\_yscale=50;  
this.startDrag();  
}  
}[/COLOR]  
[/COLOR]

1. i’m trying to set the size of the attached movie (which isn’t working)

2. remove this when i release the mouse, or by clicking on the attached movie

i’ve tried placing the following script in the “bigcard1” mc, but it doesn’t get rid of it:  
[COLOR=DarkGreen]  
onClipEvent (mouseDown) {  
if (\_root.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
\_root.removeMovieClip(“bigcard1”);  
this.startDrag();  
}  
}

[COLOR=Black]can anyone help please.

thanks  
[/COLOR][/COLOR]
