all groups > macromedia flash flash remoting > june 2006 >
You're in the

macromedia flash flash remoting

group:

Boolean values with Flash


Boolean values with Flash mikpara
6/5/2006 6:44:48 AM
macromedia flash flash remoting: can anyone please help me.

i'm using Flash 8 and have made my connection to a coldfusion database using
components.
There is a section of my project where im calling the database to return a
true or false value into a text box.


My problem is that i want the value to show as a tick or cross. Does anyone
know how to do this. Or even change the value to an image.??

thanks

mik
:confused;
Re: Boolean values with Flash jag57
6/9/2006 6:37:28 PM
I don't know how to put images in a textbox, but if you do find out I think the
code would be something like this:

if (value == true)
{
textbox.text = (code to display tick image);
}
else
{
textbox.text = (code for cross image);
}

I just searched and found an article on putting images in textboxes:

http://www.actionscripts.org/tutorials/intermediate/load_images_via_XML/index.sh
tml
AddThis Social Bookmark Button