[flexcoders] Problem with TileLIst RowCount
After adding a tilelist using addchild, I'm trying to resize it's container, a canvas, to fit the tilelist based on the rowcount * rowheight. Strangely it always return rowCount = 2 - even though there is 1 or 3 rows ? How can I force a recount ?? Or is there another way to get the actual size of the content of the tileList. The problem is that I dont know the number of items that the tilelist will display, or how many tilelists there will be. So I need to be able to dynamically resize the container. The tilelist dont have a rowCount property set explicitly, percentheight=100. Hope that someone else has solved this issue. Thanks for your help. Mark
RE: [flexcoders] Problem with TileLIst RowCount
After an addChild, a whole validation sequence must happen before the TL is layed out. There is an updateComplete event when finished, or you can force it with validateNow(), but that can be expensive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oneproofdk Sent: Tuesday, November 20, 2007 12:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with TileLIst RowCount After adding a tilelist using addchild, I'm trying to resize it's container, a canvas, to fit the tilelist based on the rowcount * rowheight. Strangely it always return rowCount = 2 - even though there is 1 or 3 rows ? How can I force a recount ?? Or is there another way to get the actual size of the content of the tileList. The problem is that I dont know the number of items that the tilelist will display, or how many tilelists there will be. So I need to be able to dynamically resize the container. The tilelist dont have a rowCount property set explicitly, percentheight=100. Hope that someone else has solved this issue. Thanks for your help. Mark
[flexcoders] Problem With TileList...
All: I am having a major problem with a tilelist.. Here is a simple explanation of what is happening: I have a tilelist that is using a cellrenderer.. I have 14 total rows (or more according to dynamic data) I have room for 11 rows at once... The 1st row and the 12th row are mysteriously LINKED together... though they have different static labels, etc. anything dynamic that I change about them is changed on both of them... Does this make sense? Anyone have had this problem? Thanks. sj Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hdj1beo/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123119414/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics. Click and talk back!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Problem With TileList...
Well the 12th row is the first one that comes from offscreen right? So the TileList is re-using the cells from the 1st row and redrawing the data for the 12th row. Maybe your setvalue method isnt updating everything that it should in the cell renderer? If you shorten the TileList to only show 5 rows Im guessing that the 1st and the 6th would have the same problem? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sir_janksalot Sent: Wednesday, August 03, 2005 4:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem With TileList... All: I am having a major problem with a tilelist.. Here is a simple explanation of what is happening: I have a tilelist that is using a cellrenderer.. I have 14 total rows (or more according to dynamic data) I have room for 11 rows at once... The 1st row and the 12th row are mysteriously LINKED together... though they have different static labels, etc. anything dynamic that I change about them is changed on both of them... Does this make sense? Anyone have had this problem? Thanks. sj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] problem with TileList
Hi, iamstudying the Foto viewer example.I have a problem loading images in a TileList, seems like no image loads. If i use cellRenderer and dataProvider of TileList everything's ok.Here is the source code: Application intialize function initApp() {albumSrv.send(); } function albumSrvResult(event) {album=albumSrv.result.album;photoCount=album.photo.length;list.selectedIndex=0;currentPhoto=album.photo[list.selectedIndex];var thumb:Thumbnail; for (var i=0; iphotoCount; i++) {thumb=new Thumbnail();thumb.setValue(i, album.photo[i]); list.addItem(thumb); //the TileList }} ?xml version="1.0" encoding="utf-8"? Thumbnail.mxml mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" vScrollPolicy="off" hScrollPolicy="off" borderStyle="none" horizontalAlign="center" mx:Script var data: Object; function setValue(str: String, item: Object) { if (data == item) return; if (item==undefined) { visible = false; return; } else { img.visible = false; data="">img.load=data.thumb;img.visible=true; visible=true;mx.core.Application.alert("data thumb :" +data.thumb); } }function setWidth(width: Number) {//mx.core.Application.alert("testProperty :" +width);img.width=width; } /mx:Script mx:Image id="img" / /mx:VBox Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005
RE: [flexcoders] problem with TileList
Duccio, I think the problem is this line: img.load=data.thumb; You are using "load" as if it were a settable property, but it is actually a method of the the Image class and would therefore be used with the following syntax: img.load(data.thumb) Alternately, you could set the "source" property of the img object to achieve the same result: img.source = data.thumb Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of DuccioSent: Friday, April 15, 2005 8:01 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] problem with TileList Hi, iamstudying the Foto viewer example.I have a problem loading images in a TileList, seems like no image loads. If i use cellRenderer and dataProvider of TileList everything's ok.Here is the source code: Application intialize function initApp() {albumSrv.send(); } function albumSrvResult(event) {album=albumSrv.result.album;photoCount=album.photo.length;list.selectedIndex=0;currentPhoto=album.photo[list.selectedIndex];var thumb:Thumbnail; for (var i=0; iphotoCount; i++) {thumb=new Thumbnail();thumb.setValue(i, album.photo[i]); list.addItem(thumb); //the TileList }} ?xml version="1.0" encoding="utf-8"? Thumbnail.mxml mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" vScrollPolicy="off" hScrollPolicy="off" borderStyle="none" horizontalAlign="center" mx:Script var data: Object; function setValue(str: String, item: Object) { if (data == item) return; if (item==undefined) { visible = false; return; } else { img.visible = false; data="">img.load=data.thumb;img.visible=true; visible=true;mx.core.Application.alert("data thumb :" +data.thumb); } }function setWidth(width: Number) {//mx.core.Application.alert("testProperty :" +width);img.width=width; } /mx:Script mx:Image id="img" / /mx:VBox Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] problem with TileList
Thanks Kristopher, iwas tryingwith img.source so i did that mistake. I have already done the correction but the problem is that i don't see images yet. I see the items added to TileList and they're selectable but with no image in it. If i use cellRenderer and dataProvider of TileList everything's ok. Duccio - Original Message - From: Kristopher Schultz To: flexcoders@yahoogroups.com Sent: Friday, April 15, 2005 5:09 PM Subject: RE: [flexcoders] problem with TileList Duccio, I think the problem is this line: img.load=data.thumb; You are using "load" as if it were a settable property, but it is actually a method of the the Image class and would therefore be used with the following syntax: img.load(data.thumb) Alternately, you could set the "source" property of the img object to achieve the same result: img.source = data.thumb Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of DuccioSent: Friday, April 15, 2005 8:01 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] problem with TileList Hi, iamstudying the Foto viewer example.I have a problem loading images in a TileList, seems like no image loads. If i use cellRenderer and dataProvider of TileList everything's ok.Here is the source code: Application intialize function initApp() {albumSrv.send(); } function albumSrvResult(event) {album=albumSrv.result.album;photoCount=album.photo.length;list.selectedIndex=0;currentPhoto=album.photo[list.selectedIndex];var thumb:Thumbnail; for (var i=0; iphotoCount; i++) {thumb=new Thumbnail();thumb.setValue(i, album.photo[i]); list.addItem(thumb); //the TileList }} ?xml version="1.0" encoding="utf-8"? Thumbnail.mxml mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" vScrollPolicy="off" hScrollPolicy="off" borderStyle="none" horizontalAlign="center" mx:Script var data: Object; function setValue(str: String, item: Object) { if (data == item) return; if (item==undefined) { visible = false; return; } else { img.visible = false; data="">img.load=data.thumb;img.visible=true; visible=true;mx.core.Application.alert("data thumb :" +data.thumb); } }function setWidth(width: Number) {//mx.core.Application.alert("testProperty :" +width);img.width=width; } /mx:Script mx:Image id="img" / /mx:VBox No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005 Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005
RE: [flexcoders] problem with TileList
You cant do new Thumbnail() because its a visual component. You would need to do something like createChild. However with a TileList the proper way of doing this is the cellRenderer, so thats what Id do. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Friday, April 15, 2005 8:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] problem with TileList Thanks Kristopher, iwas tryingwith img.source so i did that mistake. I have already done the correction but the problem is that i don't see images yet. I see the items added to TileList and they're selectable but with no image in it. If i use cellRenderer and dataProvider of TileList everything's ok. Duccio - Original Message - From: Kristopher Schultz To: flexcoders@yahoogroups.com Sent: Friday, April 15, 2005 5:09 PM Subject: RE: [flexcoders] problem with TileList Duccio, I think the problem is this line: img.load=data.thumb; You are using load as if it were a settable property, but it is actually a method of the the Image class and would therefore be used with the following syntax: img.load(data.thumb) Alternately, you could set the source property of the img object to achieve the same result: img.source = data.thumb Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Duccio Sent: Friday, April 15, 2005 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with TileList Hi, iamstudying the Foto viewer example.I have a problem loading images in a TileList, seems like no image loads. If i use cellRenderer and dataProvider of TileList everything's ok.Here is the source code: Application intialize function initApp() { albumSrv.send(); } function albumSrvResult(event) { album=albumSrv.result.album; photoCount=album.photo.length; list.selectedIndex=0; currentPhoto=album.photo[list.selectedIndex]; var thumb:Thumbnail; for (var i=0; iphotoCount; i++) { thumb=new Thumbnail(); thumb.setValue(i, album.photo[i]); list.addItem(thumb); //the TileList } } ?xml version=1.0 encoding=utf-8? Thumbnail.mxml mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml vScrollPolicy=off hScrollPolicy=off borderStyle=none horizontalAlign=center mx:Script var data: Object; function setValue(str: String, item: Object) { if (data == item) return; if (item==undefined) { visible = false; return; } else { img.visible = false; data=""> img.load=data.thumb; img.visible=true; visible=true; mx.core.Application.alert(data thumb : +data.thumb); } } function setWidth(width: Number) { //mx.core.Application.alert(testProperty : +width); img.width=width; } /mx:Script mx:Image id=img / /mx:VBox No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005 Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.