Can we create run time image in flash lite 2.0 ............
Can we create run time image in flash lite 2.0 ............
Depends on what you mean with "run time image", exactly? Are you talking about a bitmap or vector graphics image, or somehting else?
Like he says, run time images means ??
U can create graphics in run time (ie by use of code using createEmptyMovieClip and then u gotta add shapes to it or dynamically add files from the Library onto the stage)
Manikantan, Petrib is asking a valid question here. In later versions of Actionscript it is possible to programmatically create images from bytearrays.
The simple answer is that Flash can be used to programmatically draw shapes. Here is an example of drawing a rectangle.
height = 20;
width = 100;
rect = this.createEmptyMovieClip("", this.getNextHighestDepth());
rect.clear();
rect.beginFill(0x000000);e");
rect.moveTo(0,0);
rect.lineTo(0,height);
rect.lineTo(width,height);
rect.lineTo(width,0);
rect.endFill();
trace("width: " + rect._width);
trace("height: " + rect._height);
This is a really good introduction to drawing with Flash:
http://www.informit.com/articles/article.aspx?p=729513
Mark
Mark Doherty
Developer Evangelist
Adobe Systems, Mobile and Devices EMEA