Sketch Drawing to specific area (Movie Clip) / For Math Process Visualization

Hi guys.

I’m beginner level in actionscript. And i don’t want to learn it. By the way i want to make a visualization about a math process to show partial function graph.

So what i need and what i want i will explain them.

I think i can make a scene which in 1000x1000 pixels.
I’ll start from top of scene and when i press a button i’ll move camera to second section which i want to do sketch.
But what kind a sketch ? I’ll explain.
I want to make a sketchpad which can draw in a 2 part movieclip. First part is -X section of XY Axis Graph. Second part is +X section of XY Axis Graph. I’ll put image of XY Axis Graph to -X and +X section of XY Axis Graph. So it’ll be seem like one part. And i’ll draw to -X section. After that i’ll skip to second sketchpad with camera. And i’ll make same thing. But for now i’ll draw to +X. And when i press conclusion button camera will skip to bottom of scene and move -X of figure1 and +X of figure2 to bottom. So i can see figure1’s -X section and figure2’s +X section as merged in bottom. So it’ll show to me partial function graph.

But problem is sketchpad is drawing to _root. So i’m unable to move sketch or shapes on XY Axis Graph. But if i can draw that to movie clip i can move it like an object with drawing and merge it like i want.

So i want to make a sketchpad which make drawing in limits of movieclip.

Is it possible ? Or how i can do it ? Also i’m using following code:

import mx.controls.Loader;
// 1. SETTING THINGS
// ----------------
_root.createEmptyMovieClip("line",1);

// 2. EVENTS IN _ROOT:
// ------------------------
_root.onMouseUp = function(){
    line.moveTo(_xmouse,_ymouse);
    line.lineStyle(0,0x000000,100);
    this.onEnterFrame = function(){
        line.lineTo(_xmouse,_ymouse);
    }
}
_root.onMouseDown = function(){
    this.onEnterFrame = null;
}
// 3. BUTTON "ERASE":
// --------------------
buttonErase.onPress = function(){
    _root.line.clear();
}