[flexcoders] New to FlexBuilder Development Tool
Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo.quietlyscheming.com/ChartSampler/app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
Re: [flexcoders] New to FlexBuilder Development Tool
Follow up on this. When I click on the Proceed button, when the message Error exist in required project(s): appears when I try to run the application, the application opens up in the browser but no control or components seems to be loading up. I would appreciate some help on this. Thanks. Regards, Angelo From: Angelo Anolin angelo_ano...@yahoo.com To: flexcoders@yahoogroups.com Sent: Friday, 2 October, 2009 14:52:00 Subject: [flexcoders] New to FlexBuilder Development Tool Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo. quietlyscheming. com/ChartSampler /app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
[flexcoders] Re: Flash Builder 4 project structure
Maybe this will help: http://code.google.com/p/antennae/
[flexcoders] Re: New to FlexBuilder Development Tool
Hi, I would suggest you first try http://www.adobe.com/devnet/flex/?view=gettingstarted --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Follow up on this. When I click on the Proceed button, when the message Error exist in required project(s): appears when I try to run the application, the application opens up in the browser but no control or components seems to be loading up. I would appreciate some help on this. Thanks. Regards, Angelo From: Angelo Anolin angelo_ano...@... To: flexcoders@yahoogroups.com Sent: Friday, 2 October, 2009 14:52:00 Subject: [flexcoders] New to FlexBuilder Development Tool Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo. quietlyscheming. com/ChartSampler /app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
[flexcoders] Re: DateChooser Calendar pop up
We have a limited amount of space in our app, so the DateChooser calendar pop up is probably our best option right now. We want to allow the user to select number of days and change the date based upon the number of days the user selected. I was trying to figure out a way to include this functionality inside the calendar that pops up in order to save a little more real estate on the page (and make my own component for it). --- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: What type of modifications do you want? There is some localization customization of the DateChooser, with monthNames, monthSymbol, and I think a few other properties. I think there is a dayNames property too. I've been building a Calendar component as part of ongoing The Flex Show video series ( http://www.theflexshow.com/blog/index.cfm/Fifteen-Minutes-With-Flex ) and a more advanced version just went up for prerelease sale at Flextras.com . If you think something like that would suit your needs, I'd love to learn more and possibly get you on our beta program and discuss your needs further. GarethA wrote: Just wondering if anyone knows a way to modify the DateChooser calendar that pops up. I looked through the file but didn't see any reference to any kind of factory or renderer that would accept a new calendar. If not, anyone have any other potential solutions? Thanks. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Re: DateChooser Calendar pop up
There are too things that crop to mind. First, if you just want the user to select the number of days, isn't that an integer in a TextInput? I'm assuming that is the wrong path, so... You might be describing allowMultipleSelection which can allow the user to select multiple days in the DateChooser. Additionally, check out allowDisjointSelection, selectedRange, and selectedRanges http://livedocs.adobe.com/flex/3/langref/mx/controls/DateChooser.html#allowMultipleSelection http://livedocs.adobe.com/flex/3/langref/mx/controls/DateChooser.html#allowDisjointSelection http://livedocs.adobe.com/flex/3/langref/mx/controls/DateChooser.html#selectableRange http://livedocs.adobe.com/flex/3/langref/mx/controls/DateChooser.html#selectedRanges GarethA wrote: We have a limited amount of space in our app, so the DateChooser calendar pop up is probably our best option right now. We want to allow the user to select number of days and change the date based upon the number of days the user selected. I was trying to figure out a way to include this functionality inside the calendar that pops up in order to save a little more real estate on the page (and make my own component for it). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jeffry Houser j...@... wrote: What type of modifications do you want? There is some localization customization of the DateChooser, with monthNames, monthSymbol, and I think a few other properties. I think there is a dayNames property too. I've been building a Calendar component as part of ongoing The Flex Show video series ( http://www.theflexshow.com/blog/index.cfm/Fifteen-Minutes-With-Flex http://www.theflexshow.com/blog/index.cfm/Fifteen-Minutes-With-Flex ) and a more advanced version just went up for prerelease sale at Flextras.com . If you think something like that would suit your needs, I'd love to learn more and possibly get you on our beta program and discuss your needs further. GarethA wrote: Just wondering if anyone knows a way to modify the DateChooser calendar that pops up. I looked through the file but didn't see any reference to any kind of factory or renderer that would accept a new calendar. If not, anyone have any other potential solutions? Thanks. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://tinyurl.com/684b5h http://www.twitter.com/reboog711 http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.theflexshow.com http://www.jeffryhouser.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Send a file by Email
Hello, How to send a joined file with an email from a flex application ? Thank you, Christopher,
RE: [flexcoders] Send a file by Email
Use backend technology such as ColdFusion, .NET, PHP, etc. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christophe Sent: Friday, October 02, 2009 10:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Send a file by Email Hello, How to send a joined file with an email from a flex application ? Thank you, Christopher,
[flexcoders] Resizing transparent png
Hi All, I am trying to apply a roll over/out resize or zoom effect on a Button with graphical skins. When the mouse is over the image I want it to grow and shrink on exit(currently using roll over/out events). My png skins are transparent and have round shapes, when I resize/zoom up or down the image quality is poor and shows pixelization on the round edges. I have tried swapping the images (large vs small) when the effects end but it feels clunky. I have tried using a straight image vs a button component but get the same result. I also tried just specifying the large image as the over, down skins and applying a resize effect to the button but it also is clunky. Cache as bitmap, smoothing, maintain aspect ratio, scale content seem to have no effect on my resizing of these transparent pngs. Not sure what I am doing wrong, any help is much appreciated. Thanks, Greg
[flexcoders] Re: FileReference.save optional
--- In flexcoders@yahoogroups.com, markdemich d...@... wrote: --- In flexcoders@yahoogroups.com, droponrcll amyblankenship@ wrote: --- In flexcoders@yahoogroups.com, markdemich demi@ wrote: A lot of my customer base still uses Flash 9. Was trying to determine that if Flash 10 was loaded I would conditionally provide a feature in my app to save something to a file. I tried faking out the compiler by doing something like this. if (isFlash10) { var f:Object = new FileReference(); f.save(xyz,null); } but I get an error when I run it in Flash 10. Everything I found leads me to believe that I need to compile for Flash 10. However, I fear that will mess up my Flash 9 users. Does anyone have any advice on making a SWF that will work in 9, but optionally use Flash 10 features. Try/catch. Try/catch won't help since it doesn't work, period. Do you mean to tell me that if you attempt to instantiate a new FileReference, that try/catch won't allow you to determine that the attempt failed and do something based on that failure? Can you post your code that didn't work? -Amy
[flexcoders] different context menus for rows, columns and cells of a datagrid
I have a custom datagrid and I want to have it such that the context menu has different menu items based on what part of the grid is clicked. If a column header is clicked, show Insert column... The first column of the grid is a read-only, row id column. If one of the row headers is clicked, show Insert row If one of the cells in the grid is clicked show another menu. I see the DataGrid has a contextMenu property but this would apply to any area clicked. Not sure if I should (or how to) dynamically change the menu based on what area is clicked. For the column header, I see there is a DataGridHeader class that has a contextMenu property. I can get to the columns of the datagrid but not clear on how to get to the DataGridHeader for the columns. Any ideas how to approach this? Thanks, Phil
[flexcoders] Re: Resizing transparent png
Smoothing should solve your problem. I have done a very similar thing and by smoothing the images it fixed the pixelization. You may have to create a new Bitmap from the image and set that Bitmap's smoothing to true. I do not believe you can directly smooth a .png image I think smoothing only applies to bitmaps. --- In flexcoders@yahoogroups.com, Greg Hess flexeff...@... wrote: Hi All, I am trying to apply a roll over/out resize or zoom effect on a Button with graphical skins. When the mouse is over the image I want it to grow and shrink on exit(currently using roll over/out events). My png skins are transparent and have round shapes, when I resize/zoom up or down the image quality is poor and shows pixelization on the round edges. I have tried swapping the images (large vs small) when the effects end but it feels clunky. I have tried using a straight image vs a button component but get the same result. I also tried just specifying the large image as the over, down skins and applying a resize effect to the button but it also is clunky. Cache as bitmap, smoothing, maintain aspect ratio, scale content seem to have no effect on my resizing of these transparent pngs. Not sure what I am doing wrong, any help is much appreciated. Thanks, Greg
[flexcoders] Re: variableRowHeight
OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick
[flexcoders] Re: New to FlexBuilder Development Tool
Not sure if that demo uses the Flex charting components, but another thing to be aware of is that charting is only available in Flex Builder Professional. I think you get a 30 or 60 day demo so if you just installed that shouldn't be the problem. --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo.quietlyscheming.com/ChartSampler/app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
Re: [flexcoders] Re: Resizing transparent png
Thanks very much for your reply. I suspected smoothing too and tried using a SmothImage class we use for resizing external JPG's, however it did not help. If I understand correctly the smoothing of the PNG would need to be performed when creating the graphic, not at runtime in Flash, is this correct? On Fri, Oct 2, 2009 at 1:04 PM, ag_rcuren robert.vancuren...@gmail.comwrote: Smoothing should solve your problem. I have done a very similar thing and by smoothing the images it fixed the pixelization. You may have to create a new Bitmap from the image and set that Bitmap's smoothing to true. I do not believe you can directly smooth a .png image I think smoothing only applies to bitmaps. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Greg Hess flexeff...@... wrote: Hi All, I am trying to apply a roll over/out resize or zoom effect on a Button with graphical skins. When the mouse is over the image I want it to grow and shrink on exit(currently using roll over/out events). My png skins are transparent and have round shapes, when I resize/zoom up or down the image quality is poor and shows pixelization on the round edges. I have tried swapping the images (large vs small) when the effects end but it feels clunky. I have tried using a straight image vs a button component but get the same result. I also tried just specifying the large image as the over, down skins and applying a resize effect to the button but it also is clunky. Cache as bitmap, smoothing, maintain aspect ratio, scale content seem to have no effect on my resizing of these transparent pngs. Not sure what I am doing wrong, any help is much appreciated. Thanks, Greg
[flexcoders] If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?
If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?
[flexcoders] Change Default ContextMenu Color
Hi, Does anyone know a way to change the Color of the ContextMenu provided in flex ? Funny it seems I cannot find a way to change the colors... I'm using Flex 3 and the application is not a Air App. -- Rgd, :) Chathuraka
[flexcoders] Re: New to FlexBuilder Development Tool
Angelo You picked a pretty big project to start with. Here is what I did to get it running (Dirty Hack): 1. Extracted the zip file on my computer (And deleted the .svn directory) 2. Created a new project in Flex Builder named ChartSampler. 3. In Windows Explorer, deleted the ChartSampler.mxml file then copied the unzipped files into the src directory. 4. In the examples/styling/MXMLStyles.mxml file, commented out the s:Selector stuff (There is no Selector class there) 5. Copied the arial.ttf font from my fonts directory into the src directory. 6. Run the app.mxml file or the ChartSeriesStyles.mxml files. They should both work. This kind of thing happens quite a lot with downloaded examples. You have to figure out where the errors are and fix them. HTH Steve --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo.quietlyscheming.com/ChartSampler/app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
[flexcoders] Re: Resizing transparent png
No you can do it at runtime but you must make a bitmap from the png first. Take a look at the code below or see a live example here http://www.chill-mode.com/flex_examples/smoothing/Smoothing.html view source is enabled. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=zoomer.play([image]); mx:Script ![CDATA[ private function smoothImage(event:Event):void { //Create a new bitmap with smoothing from the original image var smoothData:BitmapData = new BitmapData(image.width, image.height, true, 0x00FF); smoothData.draw(image.content as Bitmap); var smoothImage:Bitmap = new Bitmap(smoothData, auto, true); image.source = smoothImage; } ]] /mx:Script mx:Sequence id=zoomer repeatCount=0 mx:Zoom zoomHeightFrom=1.0 zoomHeightTo=2.0 zoomWidthFrom=1.0 zoomWidthTo=2.0 duration=3000/ mx:Zoom zoomHeightFrom=2.0 zoomHeightTo=1.0 zoomWidthFrom=2.0 zoomWidthTo=1.0 duration=3000/ /mx:Sequence mx:Button label=smooth image click=smoothImage(event); / mx:Image id=image source=@Embed(source='tranparent.png') x=319.5 y=173/ /mx:Application --- In flexcoders@yahoogroups.com, Greg Hess flexeff...@... wrote: Thanks very much for your reply. I suspected smoothing too and tried using a SmothImage class we use for resizing external JPG's, however it did not help. If I understand correctly the smoothing of the PNG would need to be performed when creating the graphic, not at runtime in Flash, is this correct? On Fri, Oct 2, 2009 at 1:04 PM, ag_rcuren robert.vancuren...@...wrote: Smoothing should solve your problem. I have done a very similar thing and by smoothing the images it fixed the pixelization. You may have to create a new Bitmap from the image and set that Bitmap's smoothing to true. I do not believe you can directly smooth a .png image I think smoothing only applies to bitmaps. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Greg Hess flexeffect@ wrote: Hi All, I am trying to apply a roll over/out resize or zoom effect on a Button with graphical skins. When the mouse is over the image I want it to grow and shrink on exit(currently using roll over/out events). My png skins are transparent and have round shapes, when I resize/zoom up or down the image quality is poor and shows pixelization on the round edges. I have tried swapping the images (large vs small) when the effects end but it feels clunky. I have tried using a straight image vs a button component but get the same result. I also tried just specifying the large image as the over, down skins and applying a resize effect to the button but it also is clunky. Cache as bitmap, smoothing, maintain aspect ratio, scale content seem to have no effect on my resizing of these transparent pngs. Not sure what I am doing wrong, any help is much appreciated. Thanks, Greg
[flexcoders] Re: A Potential Beginner
Hi Primo411, Thanks for your response it is helpful. Julie --- In flexcoders@yahoogroups.com, primo411 primo...@... wrote: Hi Julie ! Nice to see motivated people :) From my little experience, I'd say focusing on a technology is not the smart approach. The standards always change, and they change very fast in the web field. Silverlight and Flex are just concurrent technologies to do basically the same thing: Rich Internet Applications. If you want to create yourself a background in RIAs, you should just play with available technos and understand by yourself with Flex is better in some cases or not. So, to answer your question with my approach: Yes, I think there are lots of things to do with RIAs ;) 2009/9/29 Snoopy fireplace_...@... Hi Everyone, I hope this is the correct place to post this question. I like web development and currently deciding which track to take (Linux\PHP, Windows\.NET, or the more creative Adobe\ActionScript\Flex). I am leaning towards the more creative given my background in music. My question for you folks is this: What's it like in the real world doing ActionScript\Flex for a living? Are there a lot of jobs in it? What's the typical job like? Do you have to be a fantastic designer? What does the future look like for this field? Thanks a Bunch! Julie 13 years and running IT Support Specialist
[flexcoders] streaming amf doesn't work with Trader desktop sample using blazeds
Hello all, I am trying to evaluate flex. I tested the Trader desktop and it works great when I use my-polling-amf, but when I select my-streaming-amf I am not getting any updates in the frontend. I am adding the code related to subscription: private function subscribe(symbol:String):void { var consumer:Consumer = new Consumer(); consumer.destination = market-data-feed; consumer.subtopic = symbol; consumer.channelSet = new ChannelSet([channels.selectedItem]); consumer.addEventListener(MessageEvent.MESSAGE, messageHandler); consumer.subscribe(); consumers[symbol] = consumer; } messaging channel configuration destination id=market-data-feed properties server allow-subtopicstrue/allow-subtopics subtopic-separator./subtopic-separators /server /properties channels channel ref=my-polling-amf/ channel ref=my-streaming-amf/ channel ref=per-client-qos-polling-amf/ /channels /destination There are no errors in the tomcat backend. Is this a known problem with blazeds? I don't have a debug version of flash. Is there any log file where I can check errors? Thanks!!
[flexcoders] Lazy Loading AdvancedDataGrid
Hello, We have a large data set that we would like to lazy load in the ADG. In the tree, I was successfully able to display a expand icon with overloading the isBranch method in my custom dataDescriptor. Is there a similar feature in the ADG? I would like to display the grid with an XMLCollection. If the XML object has children on the server, we set a flag in the XML Object that there is more. Now I am trying to figure out a class or method to overload that informs the ADG to display the triangle(to expand for more) Any suggestions? thanks Wayne Vetrone _ Insert movie times and more without leaving HotmailĀ®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
[flexcoders] Re: Text lines
You can use a \n for a new line or add the text as htmlText with a p tag. I.e.: instance.text = My name is\n Jason Michael Perry \n; or isntance.htmlText = my Name is br pJason Michael Perry/p; -Jason __ Jason Michael Perry ja...@jasonmperry.com www.jasonmperry.com tel: 504-383-FLEX --- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote: Anyone know how to get each individual line of text in a textarea or text?? For example if you have some block of text like this is there a way to get each individual line?? There is the getTextLineMetirics which tells you the dimensions, but I guess that's it??
[flexcoders] Blazeds backend server restart stops the flex frontend updates
Hello again, I am testing the Trader desktop sample with blazeds backend. when I use the polling amf, I am able to see the stock updates. while the flex frontend is running, if I restart the backend after 5 minutes, then the frontend no longer gets the updates. If I refresh the web page, then it works again. If I restart teh backend server quickly (lets say 10 seconds), then it works. It looks like if the flex client cannot connect to backend server, it tries to reconnect few times, once it cannot connect after many tries it gives up. where can I change the settings about how often to retry? Thanks Ben
RE: [flexcoders] If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?
The rule is roughly: If something only affects display and not size, then updateDisplayList. If it affects size, then measure(). If both or other then commitProperties Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Friday, October 02, 2009 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()? If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?
RE: [flexcoders] Re: variableRowHeight
The list always remeasures the renderers. It assigns the .data property, sets explicitWidth then calls measure(), then checks for explicitHeight then measuredHeight, and that's the height it uses. But if you can only see three renderers, it will probably create a new one for the one just off-screen, but it will re-use the first renderer for the fifth row assuming the first row is now off-screen. If that renderer still thinks it is in the expanded state when it is not representing row 5 which is not expanded, then scrolling will be off. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, October 02, 2009 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: variableRowHeight OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick