Position WebCam (Camera) on the stage? Multi-interaction Application, AS3

Hi all,

making an app where you can drag and drop items onto your own image (webcam)…probably is pretty simple to do but Im having some trouble!

So far, I can get the webcam to display on run-time, butI cant seem to position it to the right side of the app. I have my shapes already positioned on the left, and the webcam display covers the shapes because its also on the left! Anyone give me any ideas how I can position the webcam display? This is a snippet of code that I think will need changing somewhere :slight_smile:

public function CameraExample() {

        stage.scaleMode = StageScaleMode.NO_SCALE;
        stage.align = StageAlign.TOP_LEFT;
        
        var camera:Camera = Camera.getCamera();
        if (camera != null) {
            
            trace ("camera present "+camera.name);
            camera.setMode(400,400,10);
            camera.setMotionLevel(15);
            camera.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
            video = new Video(camera.width, camera.height);
            video.attachCamera(camera);
            addChild(video);

Thanks for reading!