Thanks!
--- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote:
you should have your source as a bindable variable then you can just change
that variable when you need to and the source of the image should change.
Good point, but it still should work the way I have it, I think.
I didn't look that closesly at the code... but it also looks like you are
trying to load the same source into the image? If the image already has the
source value set it won't reload the image you'll have to call
unloadAndStop() on the image first
I'm changing the source URL somewhat, by changing the arguments in the query
string. Just to check, though, I tried calling unloadAndStop() on each image
first. No difference in behavior:
protected function updateTables():void
{
//url1.text = urlBase +
?styleIndex=1textColor=%23 + textColor + borderColor=%23 + borderColor;
table1.unloadAndStop();
table1.source = urlBase +
?styleIndex=1textColor=%23 + textColor + borderColor=%23 + borderColor;
url1.text = String(table1.source);
table1.load(String(table1.source));
table3.unloadAndStop();
table3.source = urlBase +
?styleIndex=3textColor=%23 + textColor + borderColor=%23 + borderColor;
table3.load(String(table3.source));
table5.unloadAndStop();
table5.source = urlBase +
?styleIndex=5textColor=%23 + textColor + borderColor=%23 + borderColor;
table5.load(String(table5.source));
}