Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
alex-party #1
TileList redraw bug?
Hi folks,
Is there any known bug with the TileList component?
Basically, I display thumbnails in the TileList component with custom
itemRenderer and It seems like after updating ArrayCollection with new values,
it receives values OK, but wont update the actual images.
Thank you in advance,
Alex
alex-party Guest
-
TileList Paging
Hi everyone, I could not able to find the code for how to do TileList paging. If you have the code. Then please kindly post it. So that I can use... -
Tilelist itemRenderer
Hi, I'm creating a thumb photo gallery and I'm using a tilelist component as the itemrederer of the list, for itemrender I'm using a mxml... -
Help! Help! Help! TileList Problem
Hello, I am trying to get my TileList to show the image in my catalog site. I am using an XML that contains the images and an itemRenderer to... -
Problem with TileList
I have written code where the user selects a directory and all the contents of the directory are displayed in a TileList. At least that is what I... -
TileList oddities
I have found TileList to be very problematic when resized with effects and when using hPosition/vPosition in conjunction with states. For... -
pashe #2
Re: TileList redraw bug?
I'm having this problem as well. I have a bunch of thumbnails in TileList that
when i update the array and select a new set of thumbnails they do not refresh
with the correct set (the old thumbnails remain) but if I click on one of the
result thumbnails i do get the details for the updated (correct) image.
So like above it seems to receive all values ok but the thumbnail set does not
update.
Anyone know what might be causing this?
Thanks in advance
Paul
pashe Guest
-
alex-party #3
Re: TileList redraw bug?
To reproduce the mentioned above problem, here is short example:
<mx:Application ... creationComplete="srv.send()">
<mx:Script>
<![CDATA[
[Bindable] public var imgs:ArrayCollection;
[Bindable] public var _url:String="vars.php";
private function srv_result(evt:ResultEvent):void {
var obj:Object=evt.result;
imgs=obj.start.imgs.image;
}
######### 1. lets say user pressed a button and invoked this function, which
populates new values into IMGS array.
######### 2. values received from srv_result() function are OK, but images
won't update in TileList component
public function xgo(name:String):void{ function.
srv.url=_url+'?name='+name; srv.send();
}
]]>
</mx:Script>
<mx:HTTPService id="srv" url="{_url}" result="srv_result(event)"/>
<mx:TileList dataProvider="{imgs}" itemRenderer="views.xImg" />
</mx:Application>
alex-party Guest
-
alex-party #4
Re: TileList redraw bug?
After digging more into code, I've found, that my itemRenderer component have
been loading images on "initialize" event once, then when ArrayCollection
changes, there is no "initialize" event happening anymore, that's why images
are not updating, so is there any way I could add event listener on TileList or
itemRenderer to trigger initialize event once more or force redraw it after
ArrayCollection changed?
=========== itemRenderer component ================
<mx:Canvas initialize="init()">
<mx:Script>
<


Reply With Quote

