# Drawing API in AS3 \[whiteboard\]

**URL:** https://forum.kirupa.com/t/drawing-api-in-as3-whiteboard/232498
**Category:** flash
**Created:** [July 14, 2007, 4:23pm UTC](https://forum.kirupa.com/t/drawing-api-in-as3-whiteboard/232498 "2007-07-14T16:23:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Raziel](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@Raziel](https://forum.kirupa.com/u/Raziel)
#### Post date: [July 14, 2007, 4:23pm UTC](https://forum.kirupa.com/t/drawing-api-in-as3-whiteboard/232498/1 "2007-07-14T16:23:19Z")

</div>

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

```auto
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?
