# Dynamic graphics on movieclip

**URL:** <https://forum.kirupa.com/t/dynamic-graphics-on-movieclip/260304>\
**Category:** Uncategorized\
**Created:** [May 14, 2008, 10:42am UTC](https://forum.kirupa.com/t/dynamic-graphics-on-movieclip/260304 "2008-05-14T10:42:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankeedoodles](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yankeedoodles/32/812_2.png) [@yankeedoodles](https://forum.kirupa.com/u/yankeedoodles)\
**Post date:** [May 14, 2008, 10:42am UTC](https://forum.kirupa.com/t/dynamic-graphics-on-movieclip/260304/1 "2008-05-14T10:42:54Z")

</div>

Here is another issue i am facing  
Say i have 2 movie clip  
contentmc (which is part of a template)  
page1.swf  
so i make contentmc load a page1.swf.  
After the thing is loaded, the fla that has contentmc also has 2 options , painting mode and normal mode…  
if the user clicks on painting mode, the user cant interact with page1.swf, if he is in normal mode, he can interact with the interactive elements in page1.swf such as movieclip buttons whatever…  
but i realise that after i go into painting mode once, i cant seem to interact even if go back to normal mode.  
currently i am using the following to control the paint:

function init():void {  
paintSize=1;  
paintColor=0x000000;  
paintAlpha=1;  
mc.graphics.lineStyle(paintSize,paintColor,paintAlpha);  
contentmc.addEventListener(MouseEvent.MOUSE\_DOWN, paintonMousedown);  
contentmc.addEventListener(MouseEvent.MOUSE\_UP, paintonMouseup);  
contentmc.addChild(mc);  
contentmc.mouseChildren=false;  
return;  
}  
function paintonMouseup(e:MouseEvent):void {  
contentmc.removeEventListener(MouseEvent.MOUSE\_MOVE, paintonMousemove);  
return;  
}  
function paintonMousedown(e:MouseEvent):void {  
mc.graphics.moveTo(contentmc.mouseX, contentmc.mouseY);  
contentmc.addEventListener(MouseEvent.MOUSE\_MOVE, paintonMousemove);  
return;  
}  
function paintonMousemove(e:MouseEvent):void {  
mc.graphics.lineTo(contentmc.mouseX, contentmc.mouseY);  
return;  
}

is there anyway i can “re-interact” with the page1.swf without losing the paint?

thanks  
Murtaza
