Mathew Easow Jacob’s Blog–India

a enthusiast…developer…on technology,RIA,flex,web,startup….

Archive for the ‘Drawing APIs’ Category

About Flash drawing APIs

Difference between Flexsprite and Sprite

Posted by easow83 on March 12, 2008

The Sprite class is a basic display list building block: a display list node that can display graphics and can also contain children.
A Sprite object is similar to a movie clip, but does not have a timeline. Sprite is an appropriate base class for objects that do not require timelines. For example, Sprite would be a logical base class for user interface (UI) components that typically do not use the timeline.

The Sprite class is new in ActionScript 3.0. It provides an alternative to the functionality of the MovieClip class, which retains all the functionality of previous ActionScript releases to provide backward compatibility.

Inheritance: Sprite -> DisplayObjectContainer  ->InteractiveObject->  DisplayObject->  EventDispatcher->  Object
FlexSprite is a subclass of the Player’s Sprite class and the superclass of UIComponent. It overrides the toString() method to return a string indicating the location of the object within the hierarchy of DisplayObjects in the application. This string, such as “MyApp0.HBox5.Button17″, is built by the displayObjectToString() method of the mx.utils.NameUtils class from the name property of the object and its ancestors.
 
Inheritance :FlexSprite -> Sprite -> DisplayObjectContainer -> InteractiveObject -> DisplayObject -> EventDispatcher -> Object

Posted in Drawing APIs, Flex | Leave a Comment »

How to draw

Posted by easow83 on February 27, 2008

This is a sample application where you can start with drawing APIs in flex…its source code is also avilablehttp://www.jamesward.org/wordpress/2006/08/16/flex-paint-flex-display

Posted in Drawing APIs | Tagged: | Leave a Comment »

Erase individual drawn objects

Posted by easow83 on February 18, 2008

I am working with an application uses Flash drawing APIs…..there i was trying to create a drawing area..where i can draw..and i need a functionality where i can erase individual drawn objects..i can clear all drawn objects using ‘graphics.clear()’…so individual made some probs…after that i found i can mae each drawn objects as a UIComponents and make an eventlistner for that and i have to get the bjects using getChild by giving the name and clear that object

Posted in Drawing APIs | Tagged: | 1 Comment »