|
using images as nodes
|
|
06-11-2008, 07:05 PM
(This post was last modified: 06-11-2008 07:09 PM by 34all.)
Post: #11
|
|||
|
|||
|
RE: using images as nodes
Hi Protocole,
welcome to FLAP and sorry that you have problems with the demo. And even more sorry, I have no idea why you get this error. As far as I see the necessary import for the EdgeSprite class is included in the demo Code: import flare.vis.data.EdgeSprite;so if you have flare included in your class path it should do. Which IDE are you using? Hope somebody else here can give some hint. Cheers martin |
|||
|
01-12-2008, 06:11 PM
Post: #12
|
|||
|
|||
|
RE: using images as nodes
line 101 visits all edges, maybe you missed something of the code, or deleted some part...i just download it and run here without problem. it's not a code problem.
|
|||
|
22-07-2009, 04:55 PM
Post: #13
|
|||
|
|||
|
RE: using images as nodes
I modified the code, but still, the color of the rectangle (in the getRectSprite() method) sometimes appears and sometime doesn't appear (I mean, the rectangle appears sometimes only) ! It's really random ! I don't know why, any clue ?
I guess it comes from a bad handle of flash of the different layers in the node. Do you have the same problem ? |
|||
|
13-08-2009, 08:04 PM
Post: #14
|
|||
|
|||
RE: using images as nodes
(28-10-2008 02:32 PM)34all Wrote: Good morning, Hi Martin, I'm newbie with flare and I'm trying to use images as nodes, I tried your example and works fine. Thanks for posting it . So, I have a question: I have only 7 different images but lot of nodes. In your example you use a loader per node, and I tried to use 7 loaders and add this 7 loaders to all nodes with addChild...The result i have is that the first node of each type has the right image but the other nodes no. And the question is... if is possible to addChild a loader to diferent nodes?. Or can I do this wthout loading 50 images when much are the same image? ion. Achmed |
|||
|
14-08-2009, 07:10 PM
(This post was last modified: 14-08-2009 07:12 PM by 34all.)
Post: #15
|
|||
|
|||
|
RE: using images as nodes
Hi Achmed,
one way to go is to clone the bitmapdata loaded by the Loader. Check for example the BitmapDataExample at the bottom of http://livedocs.adobe.com/flash/9.0/Acti...pData.html cheers martin |
|||
|
« Next Oldest | Next Newest »
|


Search
Help




. So, I have a question: I have only 7 different images but lot of nodes. In your example you use a loader per node, and I tried to use 7 loaders and add this 7 loaders to all nodes with addChild...