[flexcoders] ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Florian
When scrolling my custom item renderer, which inherits from ItemRenderer, i notice significant performance problems, when scrolling the list. It seems like the list's layout is invalidating the component when the list is scrolled. I configured the list's layout with the following parameters:

[flexcoders] Aspects of functional programming in ActionScript

2010-08-09 Thread Florian
I've started swimming in the sea of functional programming languages. As in languages like Scala, immutability is a very important aspect. Since ActionScript offers possibilities to programm in a functional fashion, i'd like to know what kind of impacts to expect consist instead of vars in

Re: [flexcoders] ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Alex Harui
When useVirtualLayout=true, renderers are being recycled so more invalidation does go on. It pretty much has to. You might be able to block some of it, depending on your scenario. On 8/9/10 12:12 AM, Florian florian.saliho...@gmail.com wrote: When scrolling my custom item renderer,

[flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Florian
Yes, i understand this aspect of the component model. But since nothing happens after the renderer references a new data, why is there the invalidation of renderers which have a correct state already? --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: When useVirtualLayout=true,

Re: [flexcoders] Aspects of functional programming in ActionScript

2010-08-09 Thread Oleg Sivokon
Despite this whole FP issue coming back into fashion in the last years, there's really no use for that in ECMAScript-like languages. Every piece of code you can write using nested functions can be rewritten in a way that no nested functions will be used and the program will work better. I'm not

[flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Florian
My thoughts more specifically: - the data property is set - an invalidation should occur. - a renderer is reused - an invalidation should occur. - a renderer is scrolled within the view port - no invalidation should occur, after its size is determined. Or am i wrong? --- In

[flexcoders] Text to Speech API for Flex

2010-08-09 Thread farid wl
Hi Everybody anybody knows about Text to Speech API for Flex? I mean Client Side API , not server side that Flex can use. BR Farid Valipour

[flexcoders] Re: TCPDF and Flex

2010-08-09 Thread valdhor
I assume you mean PDF files. There is no function per se. What I do is use navigateToURL to go to a PHP page that uses TCPDF to generate the PDF file (Either in a new tab or window). The PHP file grabs data from the database and generates the PDF based on the data. --- In

[flexcoders] Re: Flex 4 data management - how do I approach this?

2010-08-09 Thread valdhor
First off, adding this one column datagrid and getting it to line up correctly must be a pain. I wouldn't do that. Just add another column to the datagrid for the quantity. You can add as many columns to the datagrid as you want - they do not have to match the dataprovider. I would design my

[flexcoders] Re: Adobe AIR - interimittent online/offline storage (à la Google Gears)

2010-08-09 Thread valdhor
I would set up a function with a try catch block that would try to connect with the server together with a timer that runs the function every few minutes. I would store the data locally in a SQL Lite database. Once you get a connection, sync the data. --- In flexcoders@yahoogroups.com,

[flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread Nini7016 Nini7016
Hello :) I would like to create a type complex which contains one STRING and One INteger .. How can i declare this type please ?? Any idea please ? Thanks :)

Re: [flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread claudiu ursica
Unless I am reading you wrong: package com.whatever { public class Compex { public var stringval:String; public var intval:int; } } C From: Nini7016 Nini7016 nahloulaha...@hotmail.com To: flexcoders@yahoogroups.com Sent: Mon,

Re: [flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread Oleg Sivokon
You cannot really have custom types in AS3 or any other ECMAScript language. I'd go for a class with 2 fields for integer and string.

Re: [flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread dorkie dork from dorktown
With useVirtualLayout set to true the list will create a set number of renderers. As you scroll the list will recycle these item renderers. In this scenario you are never guaranteed that the renderer associated with your data will remain with that data. If you want to guarantee that the renderer

Re: [flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread Johannes Nel
wel you could use the variant type var p:* but this is not very neat, nice or efficient to be honest On Mon, Aug 9, 2010 at 2:52 PM, Oleg Sivokon olegsivo...@gmail.com wrote: You cannot really have custom types in AS3 or any other ECMAScript language. I'd go for a class with 2 fields for

[flexcoders] Re: Adobe AIR - interimittent online/offline storage (à la Google Gears)

2010-08-09 Thread seanmcmonahan
I have a similar setup for an app that needs to pull data from a server at certain times. This is not generally critical so the server stuff needs to fail silently and allow the app to continue about it's business. To do this I wrote a ServerMonitor class that wraps air.net.URLMonitor.

[flexcoders] Re: How can we get the list separator value of the windows system?

2010-08-09 Thread tudor_a
Hi Alex and thanks for your post. I no need to create a locale but only to get the existent list separator and I did'nt find how to do it reading globalization.LocaleID. If you have a sample to show me I will apreciate a lot. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: See

RE: [flexcoders] Browse And Image File

2010-08-09 Thread Tirso Garcia Ibañez
Try this: var loader:Loader; var file:File = new File(); var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg;*.gif;*.png); file.browseForOpen(Open file, [imagesFilter]); file.addEventListener(Event.SELECT, imgSelected); function imgSelected(event:Event):void { loader =

[flexcoders] Flex 4 breakpoints are never reached when using inline item renderers

2010-08-09 Thread Felix Westphal
Hi, I'm having problems debugging my Flex 4 application, but only when I use inline item renderers. In the following test application I can't step into the init() function although the code is clearly being executed. I'm using Flex SDK version 4.00 build 14159 with IntelliJ IDEA 9.0.3. I

[flexcoders] Setting alignment of a LinkBar

2010-08-09 Thread Alexander
Hello, I have a very newbish question, but just can't find the right attribute in the docs - in a set of 2 LinkBar's, how do you change their alignment? Why do I have the first LinkBar centered, but the 2nd - left-aligned? I tried diff. attributes, like horizontalAlignment etc. Below is my

[flexcoders] Creating blinking glow effect

2010-08-09 Thread Alexander
Hello, does anybody please have an advice on creating a repeatedly blinking Glow effect on a button. Exactly like the example at the Adobe page http://livedocs.adobe.com/flex/3/langref/mx/effects/Glow.html but it should run repeatedly - to draw the user's attention to a particular button. I

Re: [flexcoders] Creating blinking glow effect

2010-08-09 Thread Brendan Meutzner
The solution you suggest is how I'd approach it. Sent from my iPhone On Aug 9, 2010, at 7:50 AM, Alexander alexander.far...@gmail.com wrote: Hello, does anybody please have an advice on creating a repeatedly blinking Glow effect on a button. Exactly like the example at the Adobe page

[flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Florian
No, i'm aware of the component live cycle. What i was not aware of: creating a loop when accessing contentWidth in updateDisplayList... it just hit me right into my face. Just for the record: my observation of the additional invalidation cycles was when the renderer was moved in the viewport

Re: [flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread Alex Harui
Are you saying you are seeing extra invalidation calls when scrolling? If the renderer is using autosizing text controls there can be extra invalidation calls. We are looking at issues related to that right now. Not sure we can always optimize them away. On 8/9/10 1:05 PM, Florian

[flexcoders] Re: Setting alignment of a LinkBar

2010-08-09 Thread Alexander
horizontalAlign=center width=100% - I was missing the width

[flexcoders] Hot Model WallPaper 8:17:23 AM8/10/2010

2010-08-09 Thread Mina Alaki
8:17:23 AM Hot Model Wallpaper Girls Wallpaper +18 - Part8Wallpaper HD Hollywood Best Wallpaper HOT girls 14 Best Hot Wallpaper Hot Pictures 4 Girls +18 - Part 9Wallpaper HOT girls 10 Hot Pictures 8 Girls +18 - Part 10 Wallpaper HOT girls 11 Hot Pictures 6 Girls Wallpaper +18 - Part 11

Re: [flexcoders] Re: How can we get the list separator value of the windows system?

2010-08-09 Thread Alex Harui
Turns out it is not available from Flash. One of our globalization experts noted: Indeed, the list separator is Windows specific. In fact most applications don’t use it at all, and some who use it in fact use it wrong :-) Excel using it as separator in CSV files, breaks one of the basic i18n

[flexcoders] After importing file using FileReference focus is lost

2010-08-09 Thread chinaloveshisiling
When using the keyboard to navigate the UI, focus is lost after importing file using FileReference. Who know how to deal with this issue? Thanks.

[flexcoders] Re: After importing file using FileReference focus is lost

2010-08-09 Thread chinaloveshisiling
After completing a FileReference call, the Flash application appears to lose focus. --- In flexcoders@yahoogroups.com, chinaloveshisiling chinaloveshisil...@... wrote: When using the keyboard to navigate the UI, focus is lost after importing file using FileReference. Who know how to deal