Post Reply 
using images as nodes
28-10-2008, 02:32 PM (This post was last modified: 28-10-2008 07:11 PM by 34all.)
Post: #1
using images as nodes
Good morning,

this demo shows how to use images as nodes. It does this by simply adding a Loader for the respective image to the node while setting the shape attribute null. (you might want to use a shape, an image and a textsprite together also)

The images are appearing in an animated fashion in this demo once the loading process is complete. More important to notice here is that the width and height of an image, if not known beforehand, can only be determined once the image is loaded completely. We use the loading complete event for that matter also to center the image.

Cheers

martin


ps Don't forget to also download the three attached images in order to run the demo (or use your own ones and change the source code accordingly). These images have to be included in the output folder of your IDE.


Attached File(s) Thumbnail(s)
           

.as  ImageNodeDemo.as (Size: 2.8 KB / Downloads: 555)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
using images as nodes - 34all - 28-10-2008 02:32 PM
RE: using images as nodes - misperre - 29-10-2008, 12:45 AM
RE: using images as nodes - 34all - 29-10-2008, 03:43 AM
RE: using images as nodes - misperre - 30-10-2008, 01:29 AM
RE: using images as nodes - 34all - 30-10-2008, 05:16 AM
RE: using images as nodes - misperre - 31-10-2008, 08:52 PM
RE: using images as nodes - 34all - 31-10-2008, 09:45 PM
RE: using images as nodes - misperre - 31-10-2008, 10:28 PM
RE: using images as nodes - misperre - 01-11-2008, 10:24 PM
RE: using images as nodes - protocole - 06-11-2008, 05:12 PM
RE: using images as nodes - 34all - 06-11-2008, 07:05 PM
RE: using images as nodes - carvalhar - 01-12-2008, 06:11 PM
RE: using images as nodes - binklee - 22-07-2009, 04:55 PM
RE: using images as nodes - Achmed - 13-08-2009, 08:04 PM
RE: using images as nodes - 34all - 14-08-2009, 07:10 PM

Forum Jump: