![]() ![]() encode ( bmd ) //Creates a ByteArray of the BitmapData, encoded as PNG draw ( board ) //Draws the board MovieClip into a BitmapImage in the BitmapData Var bmd : BitmapData = new BitmapData ( 600, 290 ) //Creates a new BitmapData with the board sizeīmd. The save option handled by the saveButton will make use of the Adobe's PNGEnconder Class to save the artwork as a PNG file. This one was easy, remember that you can change the size and color using the shapeSize and the Colors MovieClips. * Create a new TextField Object, this way we won't replace older instances */ Private function writeText ( e : MouseEvent ) : void Private function TextTool ( e : MouseEvent ) : voidīoard. The Text Tool has only two functions one in charge of setting it to active, and the other one for handling the text writing. MOUSE_MOVE, drawEraserTool ) Īs you can see, the code is the same except for the White color changes. ![]() lineTo ( mouseX, mouseY ) įunction stopEraserTool ( e : MouseEvent ) : voidīoard. Private function drawEraserTool ( e : MouseEvent ) : void Private function startEraserTool ( e : MouseEvent ) : void Private function EraserTool ( e : MouseEvent ) : voidīoard. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |