State of Flex?

2014-11-06 Thread DavidM
Hello fellow Flex users, I have a few questions about the state of Flex and Flash browser plugins. Background: We have a flex application in production since 2011 - running perfectly fine, without any problems. It is a desktop trading application, and is never used on mobile or tablet platforms.

Re: State of Flex?

2014-11-06 Thread DavidM
Justin, OmPrakash, Ronny, thanks so much for the replies. I tend to agree with you. At the time of Adobe's announcements re Flex, I was fairly certain that it would continue to be maintained. A plugin with a presence in hundreds of millions of browsers just can't disappear that easily. Certainly

Parsley 3.0, Data Binding and IOC

2014-11-06 Thread DavidM
Hi, we have an existing Flex app, described in a prior posting, which uses Parsley mainly for Data Binding, and also for IOC. We are currently using Parsley 2.4, though Parsley 3.0 seems to be the latest release. The project appears to be dormant. My question is this: 1) Are there any problems

Firebase and Flex

2014-11-06 Thread DavidM
Hi, we have a real-time Flex application communicating with a NodeJS backend via the javascript-actionscript bridge and the Faye javascript client library. This has worked perfectly for the past several years, falling back seamlessly from websockets to long polling, etc., as needed. We're now us

Flash Builder 4.7 view designer?

2014-11-06 Thread DavidM
Coming back to Flex after a 3 year hiatus. Just noticed that FB 4.7 doesn't have a view designer! When did that happen? Is there an alternative? Without a view designer, seems like Intellij is the way to go, no? I currently use it for java, groovy, scala, javascript, coffeescript, typescript, et

Re: Parsley 3.0, Data Binding and IOC

2014-11-06 Thread DavidM
Thanks Ronny, though I really like data binding, and Parsley was very well designed. My reason for Databinding is that I don't like my models, (or any other non-view objects) to hold any references to views in any framework I use. My general reason is that I think that it breaks MVVM pattern. M

Re: Firebase and Flex

2014-11-06 Thread DavidM
Thanks Stacey, it's an awesome stack, I agree, hence my surprise in finding no native actionscript library. I'm getting back into Flex, hoping to contribute to it's continuing success. Dave -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Firebase-and-Flex-tp8

Re: Flash Builder 4.7 view designer?

2014-11-07 Thread DavidM
Wow Sacha, radii8 looks amazing, thanks for that link. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flash-Builder-4-7-view-designer-tp8625p8643.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Flash Builder 4.7 view designer?

2014-11-07 Thread DavidM
@Tom, Mark, We're using OSX, FlashDevelop is windoze only, no? -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flash-Builder-4-7-view-designer-tp8625p8642.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Flash Builder 4.7 view designer?

2014-11-07 Thread DavidM
I've had bad experiences with Crossover on OSX before, I find that VirtualBox or VM Fusion work better for me. I've noticed that Intellij's ADT viewer crashes every time I try to run it. Seemed to be more stable 3 years ago when last I looked at it. Is it known to be stable ? -- View this mes

Flash Player Debugger location on Yosemite ?

2014-11-12 Thread DavidM
Hi, I'm trying to debug a flex application on OSX Yosemite, using IntelliJ. I installed Flash Player content debugger 15.0 The install seemed to go fine, and seemed to end successfully. However, I cannot find where the player is located, so that I can't set it's location in the IntelliJ run/debug

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks Piotr, I'm not sure what you mean by "IntelliJ Configuration" ? David -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flash-Player-Debugger-location-on-Yosemite-tp8708p8712.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks will take a look at that shortly. For now I decided to just go back to vanilla Flash Builder 4.7 with it's default SDK and debugger. Reason is that: a) I don't need any functionality beyond the 4.6 SDK, and b) I want to support the 11.1 player and above. i.e: the same platform as my curr

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks Piotr, I really appreciate that, and agree about bug fixes. In addition to not being able to get the debugger working in IJ, I also couldn't figure out how to make the Flex 4.13 SDK target 11.1 using either IJ or FB's configuration interfaces. It might be that I develop the app in FB 4.7,

Error #2032: Stream Error

2014-11-13 Thread DavidM
Getting that weird error intermittently during development. - any pointers to a cure? dave -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Error-2032-Stream-Error-tp8721.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Has anyone found a way to prevent Flash Builder (or IntelliJ) from opening a new browser every time I recompile. i.e: I just want the swf recompiled. I could then have the browser reload itself when the new swf is created, by watching the output directory with the LiveReload server. This patter

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Solved this one, by following these steps: (using OSX and FB 4.7, but should work with other IDE's ) 1) Install the LiveReload server: http://livereload.com/ 2) Set it to watch the bin-debug folder 3) Add this to the index.template.html file: 4) Run the project once 5) Set FB to compile au

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Mark, FB does rebuild the swf automatically on save, but I don't think the page reloads the new swf by itself, does it? I got it to work using the LiveReload server and embedding a script in the HTML page, as in my prior response. Are you saying I shouldn't need to use LiveReload? -- View

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Mark, it's a common pattern in the javascript world, the idea is for the browser to refresh whenever there is a change in a dependency. The steps in my workaround, above, will allow you to just keep one browser tab open, and have it automatically refresh when the swf is recompiled (which happens a

DG (class is not an IEventDispatcher)

2014-12-11 Thread DavidM
Hi, I'm running into a problem with updating a DataGrid.Basically data in an ItemRender won't update, but it will update in a regular column.The Debugger says: "warning: unable to bind to property 'company' on class 'Object' (class is not an IEventDispatcher)"This can best be demonstrated by this g

Re: DG (class is not an IEventDispatcher)

2014-12-11 Thread DavidM
Changes to the 'company' field do update the first column, but not the second. Thoughts? David -- View this message in context: http://apache-flex-users.246.n4.nabble.com/DG-class-is-not-an-IEventDispatcher-tp9124p9125.html Sent from the Apache Flex Users mailing list archive at Nabble.

Re: DG (class is not an IEventDispatcher)

2014-12-12 Thread DavidM
-- View this message in context: http://apache-flex-users.246.n4.nabble.com/DG-class-is-not-an-IEventDispatcher-tp9124p9129.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: DG (class is not an IEventDispatcher)

2014-12-12 Thread DavidM
Olaf, Both my examples above work, even though dataField is not specified. It would appear that the GridItemRenderer triggers on row changes, not data field changes. This makes sense to me because often you want to create a nested structure in a cell that reacts to more than one datafield

Re: AW: DG (class is not an IEventDispatcher)

2014-12-12 Thread DavidM
Alex, thanks for that awesome explanation, I really appreciate it. I tried casting to my model as you suggest {MyModel(data).field} but for some reason FlashBuilder won't resolve the MyModel class, even though it uses the same class elsewhere in the mxml file just fine. For now I'm going wit

Re: AW: DG (class is not an IEventDispatcher)

2014-12-12 Thread DavidM
Nice suggestion Alex, the compiler was ok, but the runtime chocked: TypeError: Error #1034: Type Coercion failed: cannot convert Object@183e1f101 to model.common.Person. Then I realized that the object I'm putting in the array is *not actually typed* !! It's coming in from Firebase in JSON forma

Re: Users of Apache Flex

2014-12-15 Thread DavidM
Hi Michael, We have a Flex-based commodity trading application in use since 2011. Many of our users still use IE8. All are on desktops, none use our application on mobile devices. We've tried the various HTML5 frameworks, none can replace the functionality of Flex on IE8 without significant 'sh

Flex Datagrid: MX vs Spark

2015-01-05 Thread DavidM
Hi, I'm looking at upgrading an old App, build using MX Datagrid (version 4.5). Critical functionality is the ability to 'freeze' 2 columns and 4 rows. Am wondering if there are any advantages to replacing the MX Datagrid with either the Spark Datagrid or the MX:Advanced Grid? Thanks David

Re: Flex Datagrid: MX vs Spark

2015-01-05 Thread DavidM
Looks like Spark Datagrid can't do locked rows or columns, so, I guess it's out. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flex-Datagrid-MX-vs-Spark-tp9314p9315.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
Thanks Mark, if I'm reading those links correctly, you need SDK 4.13 to build that functionality, but only Flash Player 10 to deploy it, correct? I'm currently still using the 4.6 SDK, because I don't want my users to have to upgrade anything beyond Player 11.1. I'll look into 4.13 again, because

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
Wow Justin, that's news to me. I've been avoiding any version > 4.6.0. The notion that I can get all the bug fixes and new features all the way up to 4.13.0, and also not have to increase Player requirements is huge. I wish I'd have known that earlier - is it described anywhere in the document

RE: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
The Spark Datagrid seems to use a canvas to scroll and is much, much, more responsive that the MX Datagrid. I wish there was more documentation on this, I suspect that in 4.13 you probably shouldn't be using ANY mx components (i.e: I'm guessing that if the Spark Datagrid component has exceeded the

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
BTW, I'm using 50 columns, and 100 rows, with 2 locked columns, and 4 locked rows. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flex-Datagrid-MX-vs-Spark-tp9314p9327.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
Hmm, not sure what to make of the Spark Datagrid. Initially it was much faster than the MX Datagrid, even without the useVirtualLayout='true' property being set. (and mx Datagrid 4.13 didn't seem any different than 4.6). Now the page has become unresponsive and Chrome's memory has exploded, so, I

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
Thanks Justin. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flex-Datagrid-MX-vs-Spark-tp9314p9328.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
Getting some weird and unexpected behavior. With useVirtualLayout='false' then the grid takes up the whole screen (expected). With useVirtualLayout='true' then the grid takes up half the screen (unexpected). Here is the code: http://ns.adobe.com/mxml/2009"; xmln

Re: Flex Datagrid: MX vs Spark

2015-01-06 Thread DavidM
can't honestly say that I see any real difference between useVirtualLayout='true' vs 'false. could be that my table is just too small, or that my machine fairly powerful (quad core macbook pro retina with 16 Gb ram). Looking at the activity monitor, I do see slightly greater CPU usage with useVirt

SDK 4.14 installer

2015-01-06 Thread DavidM
Hi, I see in the release notes that sdk 4.14 has been released. The current installer is at 4.13 - any timeframe for when it will be updated to 4.14? The new flatspark skin looks like something worth trying out. David -- View this message in context: http://apache-flex-users.246.n4.nabble

Best way to blink a Spark Datagrid cell

2015-01-06 Thread DavidM
I'm wondering how best to blink a cell's background in a Spark Datagrid when data changes, i.e like in a real-time stock chart. I've seen a couple of methods, both seem specific to MX not Spark: a) From: https://code.google.com/p/jpragma-utils/source/browse/trunk/JPragmaFlexUtils/src/com/jpragm

Re: Best way to blink a Spark Datagrid cell

2015-01-06 Thread DavidM
Thanks Alex, but DataGridItemRenderer is an MX component, and I'm using a Spark Datagrid. The Spark GridItemRenderer doesn't have the validateNow() function. I've tried various other functions, but, honestly, I don't know that the component's lifecycle is, so it's a bit confusing. Do you have the

Re: Best way to blink a Spark Datagrid cell

2015-01-06 Thread DavidM
The second version actually works, except that it also flashes every cell in a any row or column that is scrolled into view, which looks awful. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Best-way-to-blink-a-Spark-Datagrid-cell-tp9334p9338.html Sent from th

Re: Best way to blink a Spark Datagrid cell

2015-01-06 Thread DavidM
Found a good article on ItemRenderers: http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html Unfortunately, it's also specific to MX not Spark. Interesting advice, to use a canvas and keep 2 versions of a label per cell, then switch them out, rather than databinding to styles (which

Re: Best way to blink a Spark Datagrid cell

2015-01-07 Thread DavidM
Alex, I got it working with Spark Datagrid, sort of. The cells blink, just like in the animation version (#2 above). Additionally, it certainly seems way less resource intensive. The problem (just like #2 above), is that all the cells change color when they are first brought into view. I'm not su

Spark Datagrid horizontalScrollPosition

2015-01-07 Thread DavidM
2 questions regarding Spark Datagrid: 1) is there an equivalent of the MX Datagrid's horizontalScrollPosition? i.e: is there a way to manually set the visible column? 2) what's the best way to tell if a spark datagrid is currently scrolling? Thanks David -- View this message in context: h

Re: Spark Datagrid horizontalScrollPosition

2015-01-07 Thread DavidM
Figured out the first one: grid.ensureCellIsVisible(row, col) -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Spark-Datagrid-horizontalScrollPosition-tp9342p9343.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Best way to blink a Spark Datagrid cell

2015-01-07 Thread DavidM
Thanks, but not sure what you mean. This is the logic that change the background: if (labelDisplay.uid == lastUID) { if (lastText != labelDisplay.text) { needBlink = true;

Re: Best way to blink a Spark Datagrid cell

2015-01-07 Thread DavidM
Evyatar - you get the gold medal. If I cache the last row index and last col index, then check that these haven't changed, then it seems to work, I can scroll without it causing the recycled itemrenderers to trigger (azeh yofie). Here is what I have (I wish I knew why it works): http://ns.adobe

Re: Best way to blink a Spark Datagrid cell

2015-01-07 Thread DavidM
Piotr - the problem is with turning off the blinking after some period, because at that later time, the renderer may be showing data belonging to a DIFFERENT cell. e.g. if you scroll the datagrid, the renderer will be recycled and will now be attached to a completely different cell. Alternativel

Re: Flex Datagrid: MX vs Spark

2015-01-07 Thread DavidM
Thanks, the reason for putting it on the layout is because useVirtualLayout is not exposed as a public property on Spark Datagrid. Your answer explains why I didn't see any performance difference, however, isn't it still a bug for a layout not not respect height="100%" when useVirtualLayout='true'

upgrading old application - expressInstall.swf vs playerProductInstall.swf

2015-01-08 Thread DavidM
Hi, I've been upgrading an old (2011) flex app and, as an experiment, decided to generate a new application with Flash Builder 4.7 and compare with that generated in 2011 using Flash Builder 4.5. This is what I discovered: identical: index.template.html completely different: swfobject.js add

Re: SDK 4.14 installer

2015-01-08 Thread DavidM
is there a link on how to use Font Awesome with flex? -- View this message in context: http://apache-flex-users.246.n4.nabble.com/SDK-4-14-installer-tp9331p9358.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SDK 4.14 installer

2015-01-08 Thread DavidM
or, for that matter, using FlatSpark with 4.13? seems like it isn't a 'theme' so using it, for example in Flash Builder 4.7 isn't straight forward? -- View this message in context: http://apache-flex-users.246.n4.nabble.com/SDK-4-14-installer-tp9331p9359.html Sent from the Apache Flex Us

Re: Best way to blink a Spark Datagrid cell

2015-01-08 Thread DavidM
Thanks Evyatar, below is the code I'm going to use. The problem of the 'moving GridItemRenderer' remains. That is: the effect starts on one cell of the data grid, but if you scroll the data grid such that that GridItemRenderer is recycled, then the effect continues to play out on the same gridIte

Databinding with SparkGrid and locked headers/columns seems broken

2015-01-08 Thread DavidM
Seeing very strange behavior with Spark Datagrid when adding / removing items. As best I can tell, the cells in a locked column don't reliably update either when items are added/removed from an ArrayCollection and when the data for a bindable cell in a locked column is changed. I've been trying t

Re: Databinding with SparkGrid and locked headers/columns seems broken

2015-01-08 Thread DavidM
Replaced Spark Datagrid with Mx Datagrid, left everything else the same, and data binding problems disappeared. So, I'm convinced that Spark Datagrid has issues with databinding. These definitely seem broken: 1) Cells in locked columns don't always update, both in the case when a whole dataitem

Re: Databinding with SparkGrid and locked headers/columns seems broken

2015-01-09 Thread DavidM
@Prashast: yes I used [Bindable], and, as I pointed out, the same code works fine with MX Datagrid. :) BTW, both the ArrayCollection and the array items use [Bindable] @Mark: yes I used ArrayCollection (Array would not have worked with either Spark or MX, and it does work with MX DataGrid) :) @

RE: Databinding with SparkGrid and locked headers/columns seems broken

2015-01-09 Thread DavidM
Thanks Mark, will do once I've got BindingManager to work, just to be sure that it's not a databinding issue rather than a grid rendering issue. David -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Databinding-with-SparkGrid-and-locked-headers-columns-seems-br

MX Datagrid horizontal scroll column into view

2015-06-07 Thread DavidM
Hi, I'm trying to figure out how to programmatically scroll an MxDatagrid column into view. i.e: if I update a cell, I'd like to make sure it's in view (actually I just need the column in view) I've done this before, so I know it's doable. Thanks Dave -- View this message in context: htt

Odd behavior in ArrayCollection

2015-06-07 Thread DavidM
Hi, I'm seeing odd behaviour when updating a single property of an item in an arraycollection. Given an ArrayCollection: [Bindable] public var arr:ArrayCollection = new ArrayCollection() which contains objects like this: [Bindable] public class ClassA{ public var prop1:String; public var

Re: MX Datagrid horizontal scroll column into view

2015-06-08 Thread DavidM
Thanks, that worked. On Jun 7, 2015 11:25 PM, "Alex Harui [via Apache Flex Users]" < ml-node+s246n10528...@n4.nabble.com> wrote: > horizontalScrollPolicy and horizontalScrollPosition? > > On 6/7/15, 3:50 PM, "DavidM" <[hidden email] > <http://