Re: [flexcoders] Re: Flex alternatives

2012-01-13 Thread Richard Rodseth
Apache FlashKit ! On Fri, Jan 13, 2012 at 11:17 AM, Alex Harui 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" wrote: > > > > &

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 wrote: > I very much enjoyed my time as a Flex developer, and wish the Apache > project well. Some of the cri

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] Reading barcodes

2011-09-27 Thread Richard Rodseth
, Sep 28, 2011 at 12:37 AM, Richard Rodseth wrote: > >> ** >> >> >> 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 m

[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 exper

Re: [flexcoders] Flex 3.5 to 4.1

2010-10-12 Thread Richard Rodseth
t’s worth the effort (well what > little effort the change actually needs) > > > > > > if you have any trouble please feel free to email me off forum and we’ll > help all we can. > > > > all the best > > > > glenn > > > > > > tiny*lion* development

[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 obv

Re: [flexcoders] Tree - itemClose and change

2010-09-03 Thread Richard Rodseth
nly for user-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. > > > > O

Re: [flexcoders] Tree - itemClose and change

2010-09-03 Thread Richard Rodseth
there was already a bug on that. Do you get a valueCommit? > > > > On 9/2/10 4:23 PM, "Richard Rodseth" 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 f

[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 re

[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 when

[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. N

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

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

[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-07-29 Thread Richard Rodseth
Yes, that was my plan, but I've since discovered that I misspoke and my item renderer has a PopUpButton rather than a ComboBox (sorry!) Looking into other possible mistakes in my binding. On Thu, Jul 29, 2010 at 3:31 PM, Amy wrote: > > > > > --- In flexcoders@yahoo

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 wrote: > > > Add a high priority mouseDown handler and record the selectedIndex then. > > > > On 7/2/10 2:34 PM, "Richard Rodseth" wrote: > > > > > > > We have a datagri

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 wrote: > Good to know. Of course, in the real world, we can't update on a whim, s

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-28 Thread Richard Rodseth
gt; nightly build on the 3.x branch. > > > > On 7/28/10 9:23 AM, "Richard Rodseth" wrote: > > > > > > > True - it's given me many headaches. > > Any ideas for a workaround? A judiciously-placed callLater ? Some > combination of invalidat

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-28 Thread Richard Rodseth
ons.source = []; conditions.source = source; conditionList.invalidateList(); On Tue, Jul 27, 2010 at 10:12 PM, Alex Harui wrote: > > > Flex 3.5 has some issues with ComboBox updating. > > > > On 7/27/10 4:22 PM, "Richard Rodseth" wrote: > >

Re: [flexcoders] Refresh list with itemRenderer/ComboBox

2010-07-27 Thread Richard Rodseth
> then its not going to work because of the way binding works. If you haven't > done it already, try this: > > oldArr.removeAll(); > > for(var i:int=0; i oldArr.addItem(newArr.getItemAt(i)); > } > > Good luck! > Amanda > > On Tue, Jul 27, 2010 at 7

[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 Array

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

2010-07-24 Thread Richard Rodseth
ot;. On Fri, Jul 23, 2010 at 3:46 PM, Alex Harui wrote: > > > You could write your set functions to be write-once. > > > > On 7/23/10 11:35 AM, "Richard Rodseth" wrote: > > > > > > > Getting a little off-topic, but in case anyone's inte

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

2010-07-23 Thread Richard Rodseth
antiate 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 wrote: > Y

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" wrote: > > > > > > > Interesting. I haven't used

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-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 examp

[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 wrote: > Is there a simple way to set up a button

[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

Re: [flexcoders] DateTimeAxis labels

2010-07-14 Thread Richard Rodseth
Brendan > > > > On Wed, Jul 14, 2010 at 4:56 PM, Richard Rodseth wrote: > >> >> >> 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

[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 t

[flexcoders] Re: Flashbuilder 4.0.1 debugger issue?

2010-07-12 Thread Richard Rodseth
, Jul 12, 2010 at 2:41 PM, Richard Rodseth 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 > r

[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 exp

[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] 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 wrote: > This is happening again this morning, and I don't remember how I got past > it before. > > Flashbuilder hangs at the start

[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?

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

2010-07-02 Thread Richard Rodseth
has 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 , Richard > Rodseth wrote: > > > > The map shouldn't interact with th

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

2010-07-02 Thread Richard Rodseth
56 PM, turbo_vb 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 , Richard > Rodseth wrote: > > > > Design question for any ot

[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

[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 pr

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 p

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 wrote: > > > You can load it with JavaScript synchronously, ExternalInterface is also > synchronous, however, it is possibl

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 wrote: > > > I don’t know of any way to block for async network calls. > > > > On 6/2/10 6:59 PM, "Richard Rodseth" wrote: > > > > > > > I k

[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 block

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
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 locati

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 evaluate(dat

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 = {

[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) and have both nodes match if query.b is null.

Re: [flexcoders] Re: Security sandbox violation

2010-05-26 Thread Richard Rodseth
cess the local file with a local URL? > > > --- In flexcoders@yahoogroups.com , Richard > Rodseth wrote: > > > > Thanks. That's good to know about. > > It seems, though, that one has to choose between allowing local access or > > network access. > >

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
annot access 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. > > >

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 wrote: > > > OK, it's like this: > SWF launched in standalone player can interact with the system

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
server running > (Which I do) the you can set your run/debug 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 , Richar

Re: [flexcoders] Re: Security sandbox violation

2010-05-25 Thread Richard Rodseth
nt SWF for the second scenario (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 wrote: > I'm not sure we're all t

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 wrote: > > > > >

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 wrote: > > > No, it is diff

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
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 wrote: > > > When you click

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 wrote: > > > Not sure I get it, ho

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 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 the desktop

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 wrote: > > > Sorry, are

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 wrote: > > > Please correct me if I'm wrong, but I think that if you launch it in > standalone player, you shouldn't

[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] Re: TabNavigator

2010-05-21 Thread Richard Rodseth
t; -TH > > > --- In flexcoders@yahoogroups.com , Richard > Rodseth 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). > > > > >

[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] 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

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
e="application1_creationCompleteHandler(event)" > On Tue, May 18, 2010 at 12:24 PM, Richard Rodseth wrote: > My bad (at least in this example). The selectedItems getter is incorrect. > > > On Tue, May 18, 2010 at 12:15 PM, Richard Rodseth wrote: > >>

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 wrote: > I've attempted to create a one-file test case, and while it doesn't exhibit > the script timeout, the selection restoration does not wor

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-18 Thread Richard Rodseth
http://www.adobe.com/2006/mxml"; layout="vertical" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)" > On Tue, May 18, 2010 at 9

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" wrote: > > > > > > > I think I

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 wrote: > 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 wrote: > >> &

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-17 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 wrote: > > > Set a breakpoint on setSelectionDataLoop. See how often it gets called. > > > > On 5/17/10 4:49 PM, "Richard Rodseth" wrote:

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 breakp

Re: [flexcoders] Script timeout binding selection in Tree

2010-05-17 Thread Richard Rodseth
refresh. Navigation 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 wrote: > 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. 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

[flexcoders] Script timeout binding selection in Tree

2010-05-16 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 mx.controls.treeClasses::HierarchicalViewCursor/moveNext()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\treeClasses\Hi

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 wrote: > Though I strive to avoid subclassing the standard components, the code I > inherited a

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 wrote: > No, this is dragging items from a datagrid to a tree. > > > On Wed, May 12, 2010

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 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
renderer. > > > > On 5/12/10 9:50 AM, "Richard Rodseth" 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); >

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

2010-05-12 Thread Richard Rodseth
node? 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 wrote: > I'm maintaining some code which has a dragEnter handler which sets > selectedIndex in order

[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 items

[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 does the compiler know that this is not a bindable property, or does it add unnessary listeners?

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: wrote: > > > > > --- In flexcoders@yahoogroups.com , Wally > Kolcz wrote: > > > > I love and am a big advocate for Mate. Simple to le

Re: [flexcoders] Bindable metadata tag & event name

2010-05-01 Thread Richard Rodseth
> > > [Bindable("myEvent")] > private var txt:String = "HI"; > > // is this not possible if I use custom events? > > I've always used plain bindable tags but I'd like to know whether I can > achieve the same auto-updation functionality when

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

[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.

Re: [flexcoders] Re: Binding and square brackets

2010-04-30 Thread Richard Rodseth
"without introducing an ArrayCollection" The data is an array and always changes atomically. Wrapping it in an ArrayCollection is certainly one option. On Fri, Apr 30, 2010 at 8:15 AM, Amy wrote: > > > > > --- In flexcoders@yahoogroups.com , Richard > Rodseth wrot

[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 (pe

[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 t

Re: [flexcoders] Drag and drop vs scrolling

2010-04-21 Thread Richard Rodseth
enderer 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" wrote: > > >

[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 a

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 wrote: > > > The majority of my flex work revolves around graphing data. If for some > reason a user

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

2010-04-13 Thread Richard Rodseth
as I > think that's exactly what I'm looking 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@yahoo

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: 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 Excerpt of presentation model: [Bindable(event

[flexcoders] Variable-height popup

2010-04-12 Thread Richard Rodseth
In the context of: 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] Flash Builder Subversive

2010-03-25 Thread Richard Rodseth
_builder_4.html On Thu, Mar 25, 2010 at 10:40 AM, Julien Nicoulaud wrote: > > > 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 > > >> >> I

[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] Re: Framework Choice

2010-03-24 Thread Richard Rodseth
y of them. The time to learn them outweighed any > benefit I could foresee. We on-boarded a new developer that learned both > Flex and our code architecture and had written and deployed a new > non-trivial module within two months including back end PHP code with > WebORB. > >

  1   2   3   4   5   6   7   >