PDA

View Full Version : cellrenderer with an Image Loader


vasdefrn
09-02-2007, 10:05 AM
I'm hoping you guys can help me. I have been scouring the net for help but I haven't come across an adequate answer that I understand.

Basically, I have a single column DataGrid which is happily displaying the text of an image url, and I would like it to actually display the image.

I understand the logic - I need to build a cellrenderer class which tells the DataGrid to put a loader in each cell, but for the life of me, I can't figure out how. Can someone point me in the direction of a tutorial that takes me step by step through the process (and doesn't assume knowledge), and is clearly written. I've tried Chris Bizzel's, and one over at sepiroth and many others - and even the usually excellent Joey Lott.

Many thanks, this has really been making my head ache for days now.

jaspers_cool
09-03-2007, 02:06 PM
Try this one, it has an example file.

http://www.flash-db.com/Tutorials/cellrenderer/

vasdefrn
09-03-2007, 05:26 PM
Thanks for that jasper, but I've already looked at that one, and I can't extract from it what I need.

If someone could post a link, or the actual class script for a cellrenderer that places a loader in a datagrid column, that would be amazing. I could use the one on the livedocs page, but I don't then know how to call it from the swf itself.

It seems that I have or know the logic of each bit of what I need to do, but I am flummoxed as to how to make it all work together.

So, to recap - I have placed a datagrid on the stage (not with script), and populated it with xml data. The single colum displays the url text very happily.

Can someone point me in the direction of a cellrenderer class tutorial that specifically places a loader in the datagrid, and also gives me the actionscript code to place in the swf?

Thanks.

vasdefrn
09-04-2007, 01:54 AM
Having exhausted my own patience looking for an answer to this, I had a moment of clarity, and wondered if the ScrollPane was a better way to go, which I think it is - now all I have to do is figure out how to data bind the scroll pane to a data set - any thoughts?

Thanks