DisplayBox.removeItemImage

Availability

Flash Player 7.

Usage

DisplayBox.removeItemImage(ID,ImageName)

Parameters

ID The ID of the row you want to remove an image for.

ImageName The name identifier you assigned to the image on the specified row when you added the image using DisplayBox.addItemImage().

Returns

None.

Description

Function; Removes the specified image associated with the specified row.

Example

In this example, we add a new row and image. When the user clicks on the image, the ImageClick Event is fired passing back which row and the name of the image that was clicked. We then modify the database or anything else that you are using the control for. Next we remove the clicked image, and set it to the next image. This example shows how to use the images as a pseudo checkbox in the control, therefore allowing multiple checkboxes, or multi-state symbols per row.

myDisplayBox.ImageClick=function(ID,ImageName) 
{
//Code to update your database or anything else that needs to be updated
myDisplayBox.removeItemImage(ID,ImageName);
if (ImageName==”UnChecked”)
{
myDisplayBox.addItemImage(ID,"Checked","imgCheckBoxSet",0,0,true,"Click here to change to user mode") ;
}
else
{
myDisplayBox.addItemImage(ID,"UnChecked","imgCheckBoxEmpty",0,0,true,"Click here to change to administrative mode") ;
}
}
nID=myDisplayBox.addListItem();
myDisplayBox.addItemImage(nID,"UnChecked","imgCheckBoxEmpty",0,0,true,"Click here to change to administrative mode") ;
Author

Telsim, Inc.