[flexcoders] Re: Flex Weirdness: Verify Errors and E4X

2008-05-04 Thread Paul Whitelock
> Verify errors generally mean that you fooled the compiler somehow. > Sometimes, name collisions can fool the compiler. Hmmm, odd. I wasn't doing anything out of the ordinary. What I did to fix the problem in two of the cases was to move the code that creates the new event outside of the dispatch

RE: [flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-05-04 Thread Jim Hayes
I've not really had those problems myself Tink. I don't dispatch any standard cairngorm events, instead I have events that extend it and are (usually!) fairly well named to reflect what's happening. Maybe that's because for me they normally carry some data, and I like that data to be as strongly

[flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-05-04 Thread Bjorn Schultheiss
ServiceFacade.getInstance().loadCats(); public function loadCats():void { var handlers : IResponder = new mx.rpc.Responder(onResults_loadCatalog,fault); getDelegate(handlers).loadCatalog(); } Looks like a terrible solution. I agree with your comments regarding the Co

RE: [flexcoders] Flex Weirdness: Verify Errors and E4X

2008-05-04 Thread Alex Harui
Verify errors generally mean that you fooled the compiler somehow. Sometimes, name collisions can fool the compiler. As far as E4x goes, the code you showed may mean that XMLDataItem3 may not be in the default namespace. From: flexcoders@yahoogroups.com [ma

RE: [flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-04 Thread Jim Hayes
just call responder.result or reponder.fault directly from your delegate : so lets say you need to sum 2 integers ( 1+ 1), and for your remote version you have a call to do that, say it's sum(int1:int, int2:int) you remote delegate would have a method looking rather like this : (assume integerP

[flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-04 Thread chigwell23
Appreciate any clarification on the following - am converting my previously non -service embedded functions to Cairngorm. Command + Delegate works by the responder calling "result" or "fauLt" in Command. Responder is added to Service, right? So in my banal example of "add 1 + 1", where does the res

[flexcoders] Flex Weirdness: Verify Errors and E4X

2008-05-04 Thread Paul Whitelock
For some reason I've been seeing a lot of verify errors on a project I'm working on. The error always seems to be: VerifyError: Error #1025: An invalid register 5 was accessed. It seems to be related to constructing an event within a dispatchEvent call, but I've done this countless times and have

RE: [flexcoders] [Bindable] variables

2008-05-04 Thread Steve Good
Cool, thanks! ~Steve http://lanctr.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Sunday, May 04, 2008 8:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] [Bindable] variables Nope, only visually different. DK On 5/3/08

Re: [flexcoders] [Bindable] variables

2008-05-04 Thread Douglas Knudsen
Nope, only visually different. DK On 5/3/08, Steve Good <[EMAIL PROTECTED]> wrote: > While doing the examples out of my Flex 3 book I had a question that, as far > as I can tell, isn't covered by the book. Is there any difference between > the following two declarations? > > > > [Bindable] > >

[flexcoders] [Bindable] variables

2008-05-04 Thread Steve Good
While doing the examples out of my Flex 3 book I had a question that, as far as I can tell, isn't covered by the book. Is there any difference between the following two declarations? [Bindable] private var foo:String; OR [Bindable] private var foo:String; Thanks! ~Steve ht

Re: [flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-05-04 Thread Stephen Downs
I have to agree with MichNiu here. The CairngormEventDispatcher obsfucates the code. i.e. you come back to a project 6 months down the line, its difficult to find in the view where your CairngormEvents are dispatch. What is the difference of the view knowing what event it has to dispatch

[flexcoders] CartesianDataCanvas not drawing where expected

2008-05-04 Thread Aaron Miller
Hello, I've been playing around with the Flex charting components, and I seem to be running into an issue when I try to plot (draw) a line on the graph. I am using the CartesianDataCanvas.moveTo and lineTo functions and it seems to work ok for the Y axis, but not the X. I posted an example with v