# Convert a drawing to actionscript

**URL:** <https://forum.kirupa.com/t/convert-a-drawing-to-actionscript/237345>\
**Category:** flash\
**Created:** [August 29, 2007, 3:56pm UTC](https://forum.kirupa.com/t/convert-a-drawing-to-actionscript/237345 "2007-08-29T15:56:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![project1\_exe](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@project1\_exe](https://forum.kirupa.com/u/project1_exe)\
**Post date:** [August 29, 2007, 3:56pm UTC](https://forum.kirupa.com/t/convert-a-drawing-to-actionscript/237345/1 "2007-08-29T15:56:49Z")

</div>

Hello great people of kirupa 🍺

as for my first post, i was wondering if there is a way where you make a drawing in Flash CS3 ide and say, select that drawing and convert it to actionscript?

for example: i made a rectangle at the stage and then get flash to generate the code for it like a some sort of “copy object as actionscript”

var s:Sprite = new Sprite();  
s.graphics.beginFill(0);  
s.graphics.drawRect(0,0,100,100);

i hope you get the idea.
