# Help out friends, new 2 scripts

**URL:** <https://forum.kirupa.com/t/help-out-friends-new-2-scripts/217034>\
**Category:** flash\
**Created:** [February 22, 2007, 2:04pm UTC](https://forum.kirupa.com/t/help-out-friends-new-2-scripts/217034 "2007-02-22T14:04:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopalsuresh74](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@gopalsuresh74](https://forum.kirupa.com/u/gopalsuresh74)\
**Post date:** [February 22, 2007, 2:04pm UTC](https://forum.kirupa.com/t/help-out-friends-new-2-scripts/217034/1 "2007-02-22T14:04:42Z")

</div>

Dear Friends,  
The below ActionScript is working for the first clip red box, but when we place a image in it the mouse events fails to work, the mouse pointer does not appear over the image, and i am not able to drag as done in the first one, please help me out dears.  
hai from suresh  
The code as below and i have also attached the fla file.

// Creating first Movie Clip  
var square\_mc:MovieClip = createEmptyMovieClip(“square\_mc”, 150);  
square\_mc.lineStyle(1, 0x000000, 0);  
square\_mc.beginFill(0xFF0000, 100);  
square\_mc.moveTo(100, 100);  
square\_mc.lineTo(200, 100);  
square\_mc.lineTo(200, 200);  
square\_mc.lineTo(100, 200);  
square\_mc.lineTo(100, 100);  
square\_mc.endFill();  
// Creating second Movie Clip  
var containerBG:MovieClip = createEmptyMovieClip(“containerBG”, 100);  
var mcLoaderBG:MovieClipLoader = new MovieClipLoader();  
mcLoaderBG.addListener(this);  
//Give any image file name instead of 1.gif  
mcLoaderBG.loadClip(“1.gif”, containerBG);  
//Draging works for this clip  
square\_mc.onPress = function() {  
this.startDrag();  
};  
//Draging works for this clip  
square\_mc.onRelease = function() {  
this.stopDrag();  
};  
//Draging is not working for this clip  
containerBG.onPress = function() {  
this.startDrag();  
};  
//Draging is not working for this clip  
containerBG.onRelease = function() {  
this.stopDrag();  
};
