Drawing API in AS3 [whiteboard]

Hi,

I’m to build a whiteboard feature for a future chat client (school project) and i’m trying to use Flex 2 combined with AS3 but it’s throwing me off.

So far i get the general idea for AS3. Import the right functions, for example

import flash.display.MovieClip

create the movie clip, addChild(); And then create the function to draw in the movie clip (correct me if i’m off target).

How, when i created a panel in Flex 2, do i get this functionality into the flex 2 application? Just add it in the <mx:Script> tags?