Skip to main content
Inspiring
November 10, 2008
Question

User photos in AS 2 blog

  • November 10, 2008
  • 2 replies
  • 403 views
Hi, I'm trying to use a DataGrid component to create a blog in AS2. The problem lies when I try to visualize the user's photo in the DataGrid. I'm using a cellrenderer script that visulizes icons in a DataGrid, but it only works if the images are in the library and have a linkage name. It doesn't work if I try to load an external JPG or GIF. Does anyone know how to solve this problem? Thank you!
This topic has been closed for replies.

2 replies

tatiana1Author
Inspiring
November 11, 2008
Hi, I read the tutorial but it doesn't really explain how I can use AS2 to load external images in a DataGrid component. I need to load an image from a path like http://www.mysite.com/images/myimage.jpg. Is it at all possible?
Inspiring
November 11, 2008
You can download the Source file for that Sample Over here.

http://www.flash-db.com/Tutorials/download.php?id=167

Extract that zip file and open the IconCellRenderer class

on that you can see setValue function. do your loading over there....

i hope this is more than enough to reach your goal
Inspiring
November 10, 2008
If you are using default "iconField" property it will attach that icon from library.
if you would like to use External File. Create your own CellRenderer.

Read the below Tutorial, i hope this will help you.

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