Re: [flexcoders] Re: Flex alternatives

2012-01-13 Thread Richard Rodseth
I very much enjoyed my time as a Flex developer, and wish the Apache project well. Some of the criticism of Adobe seems misplaced. The writing was on the wall when the most popular mobile platform (iOS) didn't allow browser plug-ins. I'm not painting Apple as a villain either. It's just business.

Re: [flexcoders] Re: Flex alternatives

2012-01-13 Thread Richard Rodseth
I meant to say prospect of a cross-platform mobile app framework that doesn't depend on a proprietary runtime On Fri, Jan 13, 2012 at 9:17 AM, Richard Rodseth rrods...@gmail.com wrote: I very much enjoyed my time as a Flex developer, and wish the Apache project well. Some of the criticism

Re: [flexcoders] Re: Flex alternatives

2012-01-13 Thread Richard Rodseth
Apache FlashKit ! On Fri, Jan 13, 2012 at 11:17 AM, Alex Harui aha...@adobe.com wrote: ** Open-sourcing AIR would be an awesome thing, but the Apache project has to assume it won’t happen. On 1/13/12 9:19 AM, Richard Rodseth rrods...@gmail.com wrote: I meant to say prospect

[flexcoders] Reading barcodes

2011-09-27 Thread Richard Rodseth
Can anyone recommend a good strategy for reading barcodes on an AIR 3 mobile app? The as3 port of the zxing library does not appear to have been updated since 2009, but may work well, for all I know. But it occurs to me, that this could also be a good opportunity for a native extension. Any

Re: [flexcoders] Reading barcodes

2011-09-27 Thread Richard Rodseth
at 12:37 AM, Richard Rodseth rrods...@gmail.comwrote: ** Can anyone recommend a good strategy for reading barcodes on an AIR 3 mobile app? The as3 port of the zxing library does not appear to have been updated since 2009, but may work well, for all I know. But it occurs to me

Re: [flexcoders] Flex 3.5 to 4.1

2010-10-12 Thread Richard Rodseth
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Monday, October 11, 2010 10:09 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex 3.5 to 4.1 Can anyone give me a sense for how big an effort it is to port from Flex 3.6 to Flex 4 SDK

[flexcoders] No openItems property on ADG?

2010-09-08 Thread Richard Rodseth
Just when I had it working so nicely on Tree, bound to a presentation model. Is there anything equivalent for an ADG with a hierarchical data provider.

[flexcoders] Module-friendly modals

2010-09-07 Thread Richard Rodseth
Someone on the Mate forums advocated a way to treat a modal popup as a state of a view, where the presentation model has a modalShown property, and the view observes it using bindSetter. This has the nice effect of avoiding the need to pass in Application.application to createPopUp, but it's

Re: [flexcoders] Tree - itemClose and change

2010-09-03 Thread Richard Rodseth
thought there was already a bug on that. Do you get a valueCommit? On 9/2/10 4:23 PM, Richard Rodseth rrods...@gmail.com wrote: It appears that when you close a node in a tree control, the selection (of a contained node) is lost, but no change event is fired. Does this sound like a bug

Re: [flexcoders] Tree - itemClose and change

2010-09-03 Thread Richard Rodseth
-initiated changes to selection. The binding system listens to both. The change of selection on close is currently seen as programmatic since the user didn’t directly do it, but I think there is already a bug that argues that change should fire as well. On 9/3/10 11:12 AM, Richard Rodseth

[flexcoders] Tree - itemClose and change

2010-09-02 Thread Richard Rodseth
It appears that when you close a node in a tree control, the selection (of a contained node) is lost, but no change event is fired. Does this sound like a bug? I'm trying to restore tree state (selection and open nodes) across a service call. I've got the open nodes working pretty well and the

[flexcoders] Flex 3.5 - 4 upgrade risk

2010-08-20 Thread Richard Rodseth
My colleagues in QA are having better results with Selenium + FlexMonkium than with FlexMonkey + 3.5. But FlexMonkium apparently only supports Flex 4. I have been cautious/wary about proposing an upgrade to Flex 4 at this time, particularly since I encountered a ComboBox bug introduced in 3.5

[flexcoders] Image artifact

2010-08-19 Thread Richard Rodseth
I'm trying to do a HDividedBox where one of the segments is collapsible. But in the open state, an artifact of the expand icon image appears at top left even though its container is invisible in that state, and it's normal position is halfway down the screen. Code is something like the following.

[flexcoders] ComboBox fiasco

2010-08-03 Thread Richard Rodseth
Back in ComboBox hell, and finally read this: https://bugs.adobe.com/jira/browse/SDK-25705 I've always had problems with comboboxes and binding, but didn't realize this particular bug was *introduced* in 3.5, rather than having been there all along. Of course I updated our application to use 3.5

Re: [flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-08-03 Thread Richard Rodseth
{ super.dataProvider = value; if (dropdown) { dropdown.dataProvider = value; } } } On Thu, Jul 29, 2010 at 4:25 PM, Richard Rodseth rrods...@gmail.com wrote: Yes, that was my plan, but I've since discovered that I misspoke and my

Re: [flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-07-29 Thread Richard Rodseth
@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Hmm. I did a diff on the 3.x and 3.5 versions of ComboBase and ComboBox, and didn't see anything that seemed relevant - just some stuff about tweening. Richard, have you considered subclassing and just fixing

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-28 Thread Richard Rodseth
= []; conditions.source = source; conditionList.invalidateList(); On Tue, Jul 27, 2010 at 10:12 PM, Alex Harui aha...@adobe.com wrote: Flex 3.5 has some issues with ComboBox updating. On 7/27/10 4:22 PM, Richard Rodseth rrods...@gmail.com wrote: I have two scenarios

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-28 Thread Richard Rodseth
be nightly build on the 3.x branch. On 7/28/10 9:23 AM, Richard Rodseth rrods...@gmail.com wrote: True - it's given me many headaches. Any ideas for a workaround? A judiciously-placed callLater ? Some combination of invalidateXX ? Even something like this doesn't work

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-28 Thread Richard Rodseth
Hmm. I did a diff on the 3.x and 3.5 versions of ComboBase and ComboBox, and didn't see anything that seemed relevant - just some stuff about tweening. On Wed, Jul 28, 2010 at 10:09 AM, Richard Rodseth rrods...@gmail.comwrote: Good to know. Of course, in the real world, we can't update

Re: [flexcoders] Tree click vs change

2010-07-28 Thread Richard Rodseth
Thanks. This worked well. On Fri, Jul 2, 2010 at 2:43 PM, Alex Harui aha...@adobe.com wrote: Add a high priority mouseDown handler and record the selectedIndex then. On 7/2/10 2:34 PM, Richard Rodseth rrods...@gmail.com wrote: We have a datagrid that gets updated when the user

[flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-27 Thread Richard Rodseth
I have two scenarios where I have to refresh rows of a list or datagrid because the contents are computed, and one of the inputs to the computation (some meta-information) has changed. In the first (a DataGrid) I just have a labelFunction for one of the columns, and calling refresh() on the

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-27 Thread Richard Rodseth
because of the way binding works. If you haven't done it already, try this: oldArr.removeAll(); for(var i:int=0; inewArr.length; i++){ oldArr.addItem(newArr.getItemAt(i)); } Good luck! Amanda On Tue, Jul 27, 2010 at 7:22 PM, Richard Rodseth rrods...@gmail.comwrote: I have two

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-24 Thread Richard Rodseth
, 2010 at 3:46 PM, Alex Harui aha...@adobe.com wrote: You could write your set functions to be write-once. On 7/23/10 11:35 AM, Richard Rodseth rrods...@gmail.com wrote: Getting a little off-topic, but in case anyone's interested: http://www.developer.com/lang/other/article.php

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
Interesting. I haven't used that one either. The docs emphasize the addEventListener capability, which I guess distinguishes this from plain old Object, which can also hold arbitrary properties. http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html As an aside, I would love to have

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
Yes, obviously. But not the same thing. If you write your VO’s to have only get functions, they are effectively immutable. On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote: Interesting. I haven't used that one either. The docs emphasize the addEventListener

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
it in MXML. And in AS3, you can't have mutliple constructors. I'm not sure, but I imagine some of the serialization libraries for JSON etc might have issues too if you don't have the zero-argument constructor. On Fri, Jul 23, 2010 at 11:25 AM, Richard Rodseth rrods...@gmail.comwrote: Yes, obviously

[flexcoders] Button with tooltip but no overskin

2010-07-22 Thread Richard Rodseth
Is there a simple way to set up a button so that it's appearance doesn't change on rollOver, but the tooltip does appear? I am simulating a menu bar of sorts using a horizontal layout of PopUpButtons and Buttons. The Buttons are just filler that need to follow the style of the others, but have no

[flexcoders] Re: Button with tooltip but no overskin

2010-07-22 Thread Richard Rodseth
I should have noted that this is for Flex 3. I created a subclass of ButtonSkin which overrides name() to return upSkin. If anyone has a more elegant solution please let me know. On Thu, Jul 22, 2010 at 12:35 PM, Richard Rodseth rrods...@gmail.com wrote: Is there a simple way to set up

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-22 Thread Richard Rodseth
Hi Mark In the fairly large applications I've worked on, I've not had occasion to use Proxy, if you mean this: http://livedocs.adobe.com/flex/3/langref/flash/utils/Proxy.html Basically it lets you create an object that poses as something else, possibly supplementing it. For example, in the

[flexcoders] DateTimeAxis labels

2010-07-14 Thread Richard Rodseth
My stakeholders almost always seem to want something for DateTimeAxis labels that I can't give them out of the box. Example: I have a weeks worth of data in 15-minute increments, and would like the labels at 12AM and 12PM. Or if only one per day, at 12PM rather than 12AM. But if I set labelUnits

Re: [flexcoders] DateTimeAxis labels

2010-07-14 Thread Richard Rodseth
, 2010 at 4:56 PM, Richard Rodseth rrods...@gmail.comwrote: My stakeholders almost always seem to want something for DateTimeAxis labels that I can't give them out of the box. Example: I have a weeks worth of data in 15-minute increments, and would like the labels at 12AM and 12PM. Or if only

[flexcoders] Flashbuilder 4.0.1 debugger issue?

2010-07-12 Thread Richard Rodseth
A colleague is experiencing a problem where our app hangs the browser when run in the debugger, but not when launched in non-debug mode (from Flashbuilder). He's the only one on the team who started Flex work since the release of 4.0.1 so I'm wondering if there are any known problems that could

[flexcoders] Re: Flashbuilder 4.0.1 debugger issue?

2010-07-12 Thread Richard Rodseth
12, 2010 at 2:41 PM, Richard Rodseth rrods...@gmail.com wrote: A colleague is experiencing a problem where our app hangs the browser when run in the debugger, but not when launched in non-debug mode (from Flashbuilder). He's the only one on the team who started Flex work since the release

[flexcoders] Flashbuilder hang loading workbench

2010-07-09 Thread Richard Rodseth
This is happening again this morning, and I don't remember how I got past it before. Flashbuilder hangs at the start up splash screen (before workspace selection even) while displaying Loading workbench. OS X spinning beachball. Must force quit. Launching with -clean didn't help. Anyone else?

[flexcoders] Re: Flashbuilder hang loading workbench

2010-07-09 Thread Richard Rodseth
Deleting the .snap file mentioned here did the trick: http://www.michaellabieniec.com/?p=51 On Fri, Jul 9, 2010 at 10:08 AM, Richard Rodseth rrods...@gmail.com wrote: This is happening again this morning, and I don't remember how I got past it before. Flashbuilder hangs at the start up

[flexcoders] DateTimeAxis - day + hour:minute

2010-07-09 Thread Richard Rodseth
I have a Flex 3 LineChart which displays data for one day or one week, in 15-minute increments. In the week version I need the axis labels to include day name (not specific date) + hour:minute, or perhaps someway to indicate the day only on the 0:00 hour:minute label. Thanks for any suggestions.

[flexcoders] Mate: listener injector vs manager/PM binding

2010-07-02 Thread Richard Rodseth
Design question for any other Mate users out there. Will cross-post to Mate forum. I use Mate with the Manager + Presentation Model pattern. i.e. presentation model dispatches bubbling events. Mate event map invokes services calls, sets result on manager. Properties are injected from manager to

[flexcoders] Tree click vs change

2010-07-02 Thread Richard Rodseth
We have a datagrid that gets updated when the user clicks a node in a tree (or moves through it using arrow keys). We're handling the change event in the tree to issue the update request. A request has come in that clicking an already selected node should do a refresh. We tried having both change

Re: [flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread Richard Rodseth
timh...@aol.com wrote: I usually use (b). For the error, you can call a public method in the PM from the faultHandler in the map; as one alternative. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Design question for any other Mate

Re: [flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread Richard Rodseth
an advantage with the Mediate metadata. In that case the PM method can just listens for an event; which can be dispatched on fault. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: The map shouldn't interact with the PM (other than

Re: [flexcoders] Bug in Flex Chart in Flash Builder?

2010-06-10 Thread Richard Rodseth
Funny you should mention this. I just encountered an issue where the axis would scale to 100 after a resize (in my case the chart is being re-parented in a different layout with more space). I worked around it by computing the maximum myself in my presentation model, and binding the axis maximum

Re: [flexcoders] Blocking

2010-06-03 Thread Richard Rodseth
I was able to make an adjustment to the surrounding code, so this is no longer an issue for me, but thanks for the information. On Thu, Jun 3, 2010 at 3:55 AM, Oleg Sivokon olegsivo...@gmail.com wrote: You can load it with JavaScript synchronously, ExternalInterface is also synchronous,

[flexcoders] Blocking

2010-06-02 Thread Richard Rodseth
I know this sounds terrible, but is there a way to wrap an asynchronous call in one which blocks while waiting for it to complete? I'm loading XML via URLLoader to configure a mock API implementation and am limited in what I can change in the main application architecture. So I need a way to

Re: [flexcoders] Blocking

2010-06-02 Thread Richard Rodseth
Thanks. I guess it makes sense now that I think about it. On Wed, Jun 2, 2010 at 9:05 PM, Alex Harui aha...@adobe.com wrote: I don’t know of any way to block for async network calls. On 6/2/10 6:59 PM, Richard Rodseth rrods...@gmail.com wrote: I know this sounds terrible

Re: [flexcoders] AS3/MXML Display list

2010-05-31 Thread Richard Rodseth
I'm not an old-school Flash developer, so I'm sure you'll get better-informed replies, but I would just note that if all you care about is back-end connection, HttpService, Binding etc. can be all instantiated in AS3, with no markup required. Also, this in the script block is going to refer to a

Re: [flexcoders] E4X wildcard/dynamic query

2010-05-29 Thread Richard Rodseth
Thanks. I'll explore those techniques, but if that's what it takes, I think I'd be inclined to just return xml.nodes and iterate in code. Or perhaps result = xml.node.(matches(???)) assuming there's a way to refer to the current node in place of ??? I was hoping there was something like q = {

Re: [flexcoders] E4X wildcard/dynamic query

2010-05-29 Thread Richard Rodseth
Thanks Oleg. I got something similar working. The requirement is just to get the most specific result set with a variable number of supplied query parameters. The following seems to do the trick, but I'm still surprised if there isn't something more native. private function

Re: [flexcoders] E4X wildcard/dynamic query

2010-05-29 Thread Richard Rodseth
Not sure where you got the idea that I'm validating. I'm actually loading a node to use for configuration information for a mock api (where the mock api has parameters which may or may not have non-null values). If the configurer chooses to specify a configuration for a specific company and

[flexcoders] E4X wildcard/dynamic query

2010-05-28 Thread Richard Rodseth
Does attribute matching in E4X include some kind of wildcard value? I'd like to be able to do something like: nodes.node.(attribute( a) == query.a attribute(b) == query.b) nodes node a=1 /node node a=1 b=2 /node nodes and have both nodes match if query.b is null.

Re: [flexcoders] Re: Security sandbox violation

2010-05-26 Thread Richard Rodseth
on and access the local file with a local URL? mx:HttpService url=test.xml ... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Thanks. That's good to know about. It seems, though, that one has to choose between allowing local access

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
I'm not sure we're all talking about the same thing, but there must be zillions of SWFs accessing external XML configurations without any user intervention. I haven't tested on a web server yet, but this -use-network=false seems appropriate. On Tue, May 25, 2010 at 8:49 AM, Amy

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
(unzipping a folder and opening the wrapper html locally. I just tried again, launching the debugger, even without setting -use-network to false, and this time it worked. On Tue, May 25, 2010 at 11:08 AM, Richard Rodseth rrods...@gmail.comwrote: I'm not sure we're all talking about the same thing

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
settings to open the html file on your local server. ie. http://127.0.0.1/myproject/bin-debug/myproject.html. In this case, you would need a crossdomain.xml file. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Not sure I follow that page

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
Thanks. That sounds like a no for supporting my two use cases, unless the customer adds a trusted location or opens the SWF in the standalone player. On Tue, May 25, 2010 at 12:45 PM, Oleg Sivokon olegsivo...@gmail.comwrote: OK, it's like this: SWF launched in standalone player can interact

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
the network. If you build a SWF to access the network, it cannot access the local files unless trusted. Even if trusted, you may run into issues using certain file paths. Be sure to use relative paths to subfolders of the trusted folder. On 5/25/10 2:42 PM, Richard Rodseth rrods...@gmail.com wrote

[flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
I'm creating a demo swf that won't attach to a server and may be hosted, or launched from the desktop. I wish to externalize some data in a separate xml or text file that will live beside the SWF rather than being embedded in it (actually I may need both). What's the best approach here? In using

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
Yes, that's what I'm seeing with both URLLoader and HTTPService. So I guess my question becomes: How do you debug this stuff in FB ? On Mon, May 24, 2010 at 12:18 PM, Oleg Sivokon olegsivo...@gmail.comwrote: Please correct me if I'm wrong, but I think that if you launch it in standalone

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
Potentially both. The client wishes to host it on a web server (with no app server/db access) but it could also get run from the desktop, unless we provide the wrapper as part of our solution. The browser version is required. On Mon, May 24, 2010 at 12:48 PM, Oleg Sivokon

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
And both seem to work when I'm launching from the desktop, but not from the debugger. On Mon, May 24, 2010 at 1:19 PM, Richard Rodseth rrods...@gmail.com wrote: Potentially both. The client wishes to host it on a web server (with no app server/db access) but it could also get run from

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
It's possible I have multiple players on my system, and FB is using a different one. By launch, I just meant using the Run/Launch button within FB as opposed to finding the wrapper html in the Finder and opening it. On Mon, May 24, 2010 at 2:04 PM, Oleg Sivokon olegsivo...@gmail.com wrote:

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
Standard behavior in FB is to launch in browser (the html-wrapper folder gets copied to bin-debug with template items filled in. I'm guessing you aren't an FB user - I'm not away of any other way to launch from within FB. On Mon, May 24, 2010 at 3:14 PM, Oleg Sivokon olegsivo...@gmail.com wrote:

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
Uh oh. So there appears to be a Safari/Firefox difference. I was launching Safari when opening the html file in the Finder, and Firefox in Eclipse. Whichever way I launch (fb or Finder), I get the security error in Firefox, and not in Safari. Sorry for the confusion. So now I'm back to wondering

Re: [flexcoders] Security sandbox violation

2010-05-24 Thread Richard Rodseth
Not sure I follow that page, but it appears that the -use-network=false compiler flag may be helpful for this scenario. If only FB allowed you to set different compiler options for different applications within a project. On Mon, May 24, 2010 at 4:11 PM, Oleg Sivokon olegsivo...@gmail.com wrote:

[flexcoders] TabNavigator

2010-05-21 Thread Richard Rodseth
Is there an event dispatched by TabNavigator when the *user* switches tabs? change is dispatched when the selected change happens programmatically (eg. because selectedChild is bound).

Re: [flexcoders] Re: TabNavigator

2010-05-21 Thread Richard Rodseth
@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Is there an event dispatched by TabNavigator when the *user* switches tabs? change is dispatched when the selected change happens programmatically (eg. because selectedChild is bound).

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
I think I already mentioned it was called twice. I can double-check tomorrow. On Mon, May 17, 2010 at 9:35 PM, Alex Harui aha...@adobe.com wrote: Set a breakpoint on setSelectionDataLoop. See how often it gets called. On 5/17/10 4:49 PM, Richard Rodseth rrods...@gmail.com wrote

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
Two or three times. Then I get the spinning beach ball. On Mon, May 17, 2010 at 11:12 PM, Richard Rodseth rrods...@gmail.comwrote: I think I already mentioned it was called twice. I can double-check tomorrow. On Mon, May 17, 2010 at 9:35 PM, Alex Harui aha...@adobe.com wrote: Set

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
: If that’s true, on the second invocation, step through it. It might be hung up in moveNext() not advancing to the next item, maybe because you’ve run out of items. On 5/17/10 11:12 PM, Richard Rodseth rrods...@gmail.com wrote: I think I already mentioned it was called twice. I can double-check

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
=restoreSelection()/ /mx:Application On Tue, May 18, 2010 at 9:23 AM, Richard Rodseth rrods...@gmail.com wrote: That sounds about right. moveNext() does appear in the stack sometimes, and I am changing the data provider contents. I may have to put the restoreselection code somewhere other than

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
My bad (at least in this example). The selectedItems getter is incorrect. On Tue, May 18, 2010 at 12:15 PM, Richard Rodseth rrods...@gmail.comwrote: I've attempted to create a one-file test case, and while it doesn't exhibit the script timeout, the selection restoration does not work as part

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
, May 18, 2010 at 12:24 PM, Richard Rodseth rrods...@gmail.comwrote: My bad (at least in this example). The selectedItems getter is incorrect. On Tue, May 18, 2010 at 12:15 PM, Richard Rodseth rrods...@gmail.comwrote: I've attempted to create a one-file test case, and while it doesn't exhibit

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
Thanks for testing. At this point, I consider this a bug, that the tree does not display its selection, when it is updated via binding of selectedItems, where the property bound to is updated in response to a RESET of the data provider collection. My workaround might interest some people. It is

[flexcoders] Script timeout binding selection in Tree

2010-05-17 Thread Richard Rodseth
I'm getting the following error: Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at ?() at

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-17 Thread Richard Rodseth
Thanks. Without the binding the timeout does not occur, since that's what causes the rather complex method ListBase.setSelectionDataLoop to be called. I suspect that it might have to do with looking for a selected object that is not part of the data provider collection, but that's only a temporary

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-17 Thread Richard Rodseth
state change works fine if I don't do the selection restoration. The two together, not so much. On Mon, May 17, 2010 at 11:09 AM, Richard Rodseth rrods...@gmail.comwrote: Thanks. Without the binding the timeout does not occur, since that's what causes the rather complex method

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-17 Thread Richard Rodseth
Thanks for trying. No, the presentation model has an array collection whose .source gets changed after an HTTPService call returns (although I should mention that I am using my mock service layer at the moment). I added a a collection change listener to the collection reference. I have set a

[flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
? Recommendations or examples appreciated.I feel sure someone must have used a tree to represent a folder hierarchy. Thanks. On Tue, May 11, 2010 at 3:40 PM, Richard Rodseth rrods...@gmail.com wrote: I'm maintaining some code which has a dragEnter handler which sets selectedIndex in order

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
renderer. On 5/12/10 9:50 AM, Richard Rodseth rrods...@gmail.com wrote: I'm now aware of dropIndicatorSkin and found an example that customized the skin to do this: g.beginFill(0xa1bde2, 0.5); g.drawRect(-5, -1, w, 23); which is obviously a bit, er, hard-coded. The location

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
No, this is dragging items from a datagrid to a tree. On Wed, May 12, 2010 at 10:43 AM, Baz li...@thinkloop.com wrote: Doesn't the node already highlight because you are rolling over it?

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
the renderer's dragEnter handler: MyTreeSubclass(this.listData.owner).highlightItem(this, true); Seems to be working OK. On Wed, May 12, 2010 at 10:56 AM, Richard Rodseth rrods...@gmail.comwrote: No, this is dragging items from a datagrid to a tree. On Wed, May 12, 2010 at 10:43

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
And of course I had to add to my renderers dragExit: MyTreeSubclass(this.listData. owner).highlightItem(this,false ); On Wed, May 12, 2010 at 11:10 AM, Richard Rodseth rrods...@gmail.comwrote: Though I strive to avoid subclassing the standard components, the code I inherited

[flexcoders] Folder-style dragOver highlight on tree

2010-05-11 Thread Richard Rodseth
I'm maintaining some code which has a dragEnter handler which sets selectedIndex in order to highlight the destination tree node Can anyone point me at some sample code to do this, or a public method to highlight the item without selecting it? The showDropFeedback method draws a line between

Re: [flexcoders] Re: mvc pattern for flex

2010-05-06 Thread Richard Rodseth
I like Mate, but the lack of type safety in the event map *is* an issue. But I don't find dealing with imports an issue. When entering something like: MethodInvoker generator={ReportsManager} method=receiveData I just delete the last two characters of ReportsManager and press

[flexcoders] Overhead of curly braces :)

2010-05-06 Thread Richard Rodseth
Something I've always wondered. If I wish to use a constant, rather than a literal eg view:DailyView day={Days.MONDAY} / does the compiler know that this is not a bindable property, or does it add unnessary listeners?

Re: [flexcoders] Bindable metadata tag event name

2010-05-02 Thread Richard Rodseth
bindable tags with custom events. Regards, sasuke Richard Rodseth wrote: I've never looked at the implementation. When I do this, I create a custom getter and setter: [Bindable(fooChanged)] public function get foo():Boolean { return _foo; } public function set foo

Re: [flexcoders] Bindable metadata tag event name

2010-05-01 Thread Richard Rodseth
I've never looked at the implementation. When I do this, I create a custom getter and setter: [Bindable(fooChanged)] public function get foo():Boolean { return _foo; } public function set foo(value:Boolean):void { if (value != _foo) { _foo = value; dispatchEvent(new Event(fooChanged))

Re: [flexcoders] Re: Binding and square brackets

2010-04-30 Thread Richard Rodseth
, Richard Rodseth rrods...@... wrote: I'm interested in getting rid of Data binding will not be able to detect changes when using square bracket operator without introducing an ArrayCollection. The view displays data for the seven days of the week. Not using a repeater (though one could

[flexcoders] Flashbuilder hang loading workbench

2010-04-30 Thread Richard Rodseth
Not a good way to end the week. FlashBuilder hangs loading the workbench. Spinning beach ball, must Force Quit. Is there some cache I can delete to get up and running again? I saw a similar post on the flex forums from a few days ago, but no one has responded.

[flexcoders] Binding and square brackets

2010-04-29 Thread Richard Rodseth
I'm interested in getting rid of Data binding will not be able to detect changes when using square bracket operator without introducing an ArrayCollection. The view displays data for the seven days of the week. Not using a repeater (though one could). I invite opinions on the relative merits

[flexcoders] Selection highlighting in Flashbuilder 4

2010-04-28 Thread Richard Rodseth
I just started using FB4 (standalone) for real work, and the selection highlighting in the editor is driving me nuts. Is there some preference I need to change? Basically, I get no highlighting when dragging over text, until I release the mouse. I'm on OS X.

[flexcoders] State of the art JSON

2010-04-22 Thread Richard Rodseth
I've used AS3CoreLib's JSON encoding/decoding in the past, but some code I'm maintaining now has custom JSON handling. Note: we use ISO 8601 for Dates. Looking at the Flashbuilder 4 data wizards (briefy), I see JSON support and references to something call fiber, but am unclear whether this is

Re: [flexcoders] Drag and drop vs scrolling

2010-04-21 Thread Richard Rodseth
the renderer a drop target in order to add different meaning to dropping in folders. In theory it should work, but I think I’d work from the Tree instead, and then I would expect autoscroll to work. On 4/20/10 3:31 PM, Richard Rodseth rrods...@gmail.com wrote: I inherited some code which

[flexcoders] Drag and drop vs scrolling

2010-04-20 Thread Richard Rodseth
I inherited some code which supports drag and drop from a list to a node of a tree. Unfortunately it does not work when the tree is scrolled. Not only does the tree not autoscroll, but even if you scroll the target item into view before beginning the drag, incorrect nodes highlight. I didn't see

Re: [flexcoders] Exceeding Flash's Capabilities?

2010-04-14 Thread Richard Rodseth
How many items are you (and the Excel user) talking about? What sort of Flex charts are you using? Are you using AMF, XML or JSON to retrieve the data? On Wed, Apr 14, 2010 at 3:48 PM, trefalgar trefal...@yahoo.com wrote: The majority of my flex work revolves around graphing data. If for some

Re: [flexcoders] Re: Property values based on Multiple Conditions

2010-04-13 Thread Richard Rodseth
for. I would like to avoid setting up an event listener, but if that's the only way... Thanks again for the help thus far... if anybody has anything else, please let me know! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Rick is correct

[flexcoders] Variable-height popup

2010-04-12 Thread Richard Rodseth
In the context of: mx:PopUpButton mx:popup mx:VBox /mx:VBox /mx:popup /mx:PopUpButton Is there a simple way to give the popup a height of, say, 50% of the current application height, along with a min and max height?

Re: [flexcoders] Property values based on Multiple Conditions

2010-04-12 Thread Richard Rodseth
Rick is correct. You can also use a local binding function like this: s:Button enabled={enableButton(showMe, hideMe)}/ where enableButton is a function in your Script block that takes two boolean parameters. Or, if you have a presentation model, it could have a computed property buttonEnabled

[flexcoders] Flash Builder Subversive

2010-03-25 Thread Richard Rodseth
I'm referring to the Subversion Eclipse plug-in. Has anyone installed it in Flash Builder? I found a blog post about Subclipse, but not Subversive. I *really* wish Flash Builder had subversion support built-in...

Re: [flexcoders] Flash Builder Subversive

2010-03-25 Thread Richard Rodseth
.html On Thu, Mar 25, 2010 at 10:40 AM, Julien Nicoulaud primo...@gmail.comwrote: Of course, Flash Builder is just an Eclipse plugin. I use it with Subversive and many other Eclipse plugins without any conflict. 2010/3/25 Richard Rodseth rrods...@gmail.com I'm referring to the Subversion

Re: [flexcoders] Re: Framework Choice

2010-03-24 Thread Richard Rodseth
I've been pretty happy with Mate and the Presentation Model pattern. My main issue is the lack of type-safety in the event maps, so at some point I should check out Swiz, Parsley etc. On Wed, Mar 24, 2010 at 10:00 AM, Oleg Sivokon olegsivo...@gmail.comwrote: If you know there are Cairngorm

  1   2   3   4   5   6   7   >