Re: [flexcoders] I need a recommendation of an actionscript 3 book for Flex

2010-02-13 Thread Erik de Bruin
Hi Fred,

I would start with 'Essential ActionScript 3.0' from (Colin Moock, O'Reilly)
and follow that up with 'Advanced ActionScript 3.0 with Design Patterns
(Joey Lott and Danny Patterson, Adobe Press).

These should put you solidly on the road to AS3 greatness :-)

Regards,

EdB

On Sat, Feb 13, 2010 at 8:43 AM, fred44455  wrote:

>
>
> All the books that I checked are AS3 books for Flash. Where can I find a
> book for AS3 for Flex 3(4). Or maybe all the Flex 3 books explain AS3 and I
> don't need them? But I would like to know AS3 very well as most Flex 3 books
> don't spend much time going into details about AS3. What are your
> recommendations to learn AS3 for Flex?
>
> Thank you for your time guys.
>
> Fred.
>
>  
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] Re: apply style in newly created component

2010-01-15 Thread Erik de Bruin
Hi,

I think he's trying to set a named CSS style ("myStyle") on the Button using
setStyle(). I don't think that's possible?

EdB

On Fri, Jan 15, 2010 at 3:02 PM, valdhor wrote:

>
>
> I don't understand. Once you use the "new" operator, the button is
> instantiated. You can apply all sorts of styles to it before adding it to
> the displayList. For example, this works for me...
>
> var button:Button = new Button;
> button.label = "My Fancy New Button";
> button.setStyle("cornerRadius", 9);
> button.setStyle("fontSize", 24);
> button.setStyle("themeColor", '#00FF00');
> button.setStyle("fillColors", ['#6699ff', '#6699ff',
> '#6699ff', '#6699ff']);
> button.setStyle("fillAlphas", [1, 1, 1, 1]);
> this.addChild(button);
>
>
>
> --- In flexcoders@yahoogroups.com, "hworke"  wrote:
> >
> >
> >
> > Hi I am trying to apply style in a newly created component
> > but since it is not instantiated it gives me error message.
> >
> > My code is like this:
> >
> > var button:Button = new Button;
> > button.setStyle("styleName", "myStyle");
> > canvas.addChild(button);
> > I need to create the component dynamically and also need
> > to apply the style dynamically. How can I do that?
> >
> > Regards,
> >
>  
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] Re: AIR architectural pointers for a Flex developer

2009-07-17 Thread Erik de Bruin
I managed to find a link in my bookmarks that will serve as an
excelent starting point:

http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html

EdB

On Thu, Jul 16, 2009 at 10:40 PM, simonjpalmer wrote:
>
>
> Thanks for the link. I have been through most of them - quite a few are
> duplicates of links on other aggregated lists - and spent a considerable
> amount of time on the Adobe web site prior to posting here. The trouble is
> that none of these examples actually cover the single thing that I don't
> understand adequately, namely the relationship between a "traditional" Flex
> swf app running in the browser and an AIR app with an identical user
> interface running on the desktop.
>
> Most of the samples I have downloaded and picked apart so far are either
> examples of how you can create pure desktop apps with AIR, with varying
> degrees of sophistication, or tutorials for JS/HTML programmers to tempt
> them into the AIR runtime so their apps can have access to the user's file
> system.
>
> What I need is an example of an app where the user starts in the web and is
> provided the option of going offline, at which point an AIR app is installed
> for them and they can continue to work in an identical environment without
> being connected. Following that I'd like to see a practical example of how
> data synchronisation is managed when they re-connect to the web.
>
> This would seem to be an obvious lifecycle and at the heart of AIR's unique
> proposition, but I am not really seeing how it fits together. As I said at
> the beginning I must be missing something simple, basic and obvious and I
> was hoping I could get a pointer from AIR tutorials. No luck so far... any
> ideas?
>
> --- In flexcoders@yahoogroups.com, "grenma"  wrote:
>>
>> Beside Adobe, you could probably start here:
>>
>>
>> http://www.smashingapps.com/2009/03/06/25-excellent-and-useful-adobe-air-tutorials-resources.html
>>
>>
>> RG
>>
>> --- In flexcoders@yahoogroups.com, "simonjpalmer"  wrote:
>> >
>> > I have built quite a few apps with Flex 2 over the last few years and
>> > have been using using a Java (JBoss) back end. I have a new requirement for
>> > an app which needs to be able to run on- and off-line and deliver an
>> > identical user experience. My limited understanding of AIR is that this is
>> > what it was intended to do, so I got FlexBuilder 3.
>> >
>> > I have done all the sort of startup stuff that you would expect, like
>> > building an app from scratch and reading a collection of tutorials on the
>> > web and downloading a few sample apps, but I haven't yet come across a good
>> > resource for giving me the start I need.
>> >
>> > (Naively) I was expecting to be able to build a regular web-based flex
>> > app and then "deploy" it to AIR, with maybe some additional features in the
>> > AIR version to take advantage of it running on the desktop. Alternatively I
>> > was expecting to be able to take the AIR app and "deploy" it to the web as
>> > an SWF.
>> >
>> > I'm obviously missing some basic element of the AIR philosophy because I
>> > can't really see how to do either of these things. I suspect I just need
>> > some really obvious thing pointed out to me.
>> >
>> > Does anyone know of a good resource to introduce the AIR architecture
>> > and philosophy to Flex programmers?
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] Re: AIR architectural pointers for a Flex developer

2009-07-17 Thread Erik de Bruin
Hi,

We are currently building an on-/offline application with a shared
codebase. In (very) short: what you need to do is start 3 (!) projects
in Flex Builder: one Flex, one AIR and one library. The library wil
contain most of your code (all of the code that can be shared by both
platforms), while the two others contain only the code specific to
either platform. All code that is NOT shared between the two versions
should be accessed via a Factory method (Google: Design Patterns
Factory) which returns an instance of the platform specific object
containing that code (both on- and offline specific objects should
implement the same interface in order to make them "compatible").

I'm sorry I don't have time for an example, I hope this gives you some
pointers to get started.

EdB

On Thu, Jul 16, 2009 at 10:40 PM, simonjpalmer wrote:
>
>
> Thanks for the link. I have been through most of them - quite a few are
> duplicates of links on other aggregated lists - and spent a considerable
> amount of time on the Adobe web site prior to posting here. The trouble is
> that none of these examples actually cover the single thing that I don't
> understand adequately, namely the relationship between a "traditional" Flex
> swf app running in the browser and an AIR app with an identical user
> interface running on the desktop.
>
> Most of the samples I have downloaded and picked apart so far are either
> examples of how you can create pure desktop apps with AIR, with varying
> degrees of sophistication, or tutorials for JS/HTML programmers to tempt
> them into the AIR runtime so their apps can have access to the user's file
> system.
>
> What I need is an example of an app where the user starts in the web and is
> provided the option of going offline, at which point an AIR app is installed
> for them and they can continue to work in an identical environment without
> being connected. Following that I'd like to see a practical example of how
> data synchronisation is managed when they re-connect to the web.
>
> This would seem to be an obvious lifecycle and at the heart of AIR's unique
> proposition, but I am not really seeing how it fits together. As I said at
> the beginning I must be missing something simple, basic and obvious and I
> was hoping I could get a pointer from AIR tutorials. No luck so far... any
> ideas?
>
> --- In flexcoders@yahoogroups.com, "grenma"  wrote:
>>
>> Beside Adobe, you could probably start here:
>>
>>
>> http://www.smashingapps.com/2009/03/06/25-excellent-and-useful-adobe-air-tutorials-resources.html
>>
>>
>> RG
>>
>> --- In flexcoders@yahoogroups.com, "simonjpalmer"  wrote:
>> >
>> > I have built quite a few apps with Flex 2 over the last few years and
>> > have been using using a Java (JBoss) back end. I have a new requirement for
>> > an app which needs to be able to run on- and off-line and deliver an
>> > identical user experience. My limited understanding of AIR is that this is
>> > what it was intended to do, so I got FlexBuilder 3.
>> >
>> > I have done all the sort of startup stuff that you would expect, like
>> > building an app from scratch and reading a collection of tutorials on the
>> > web and downloading a few sample apps, but I haven't yet come across a good
>> > resource for giving me the start I need.
>> >
>> > (Naively) I was expecting to be able to build a regular web-based flex
>> > app and then "deploy" it to AIR, with maybe some additional features in the
>> > AIR version to take advantage of it running on the desktop. Alternatively I
>> > was expecting to be able to take the AIR app and "deploy" it to the web as
>> > an SWF.
>> >
>> > I'm obviously missing some basic element of the AIR philosophy because I
>> > can't really see how to do either of these things. I suspect I just need
>> > some really obvious thing pointed out to me.
>> >
>> > Does anyone know of a good resource to introduce the AIR architecture
>> > and philosophy to Flex programmers?
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-14 Thread Erik de Bruin
Alex,

The local variables in methods "on the stack", by which I presume you
mean "have been called recently", are mostly counters and such, as
well as references to properties of other objects, to avoid too much
lookup (myVarRef instead of repeatedly calling
Controller.instance.myList.myVar).

2 questions:
- can I somehow increase the size of the stack for the AIR player on
MacOSX? (Google tells me "probably not", but I have to ask);
- where can I learn more about the "stack" and how to "debug" it, so I
can stop bothering you with these questions?

Thanks,

EdB

On Wed, Jul 15, 2009 at 1:33 AM, Alex Harui wrote:
>
>
> I'm not sure you can try/catch a stack overflow, and adding "try" does
> change the stackframe. I think you're just running out of stack. The stacks
> have different sizes on different platforms. What kinds of local variables
> are in each method on the stack?
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Erik de Bruin
> Sent: Tuesday, July 14, 2009 3:01 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
> Alex,
>
> Well, that's the thing. The code in that method doesn't seem to be the
> problem. If I put the seemingly offending line in a try...catch block,
> it runs without triggering the catch. And weirder still, the
> "undefined" exception happens somewhere a little further in the
> flow...
>
> This happens only when I play the piece in AIR on a Mac. AIR on
> windows doesn't show this problem and it also doesn't happen when the
> code runs in the Flash plugin in a browser (on both platforms). Are
> there any known issues that might relate to this?
>
> Thanks again,
>
> EdB
>
> On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui wrote:
>>
>>
>> Or show the code in that method.  If you blow up the stack, you can't
>> guarantee you'll get correct information in the stacktrace.
>>
>>
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc.
>>
>> Blog: http://blogs.adobe.com/aharui
>>
>>
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of valdhor
>> Sent: Friday, July 10, 2009 9:03 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
>> overflow (2nd try)
>>
>>
>>
>>
>> Possibly completely unrelated to the Stack Overflow error (Or maybe the
>> change is now showing where the original error came from.
>>
>> I would try debugging at or around line 114 of SheetItem.as.
>>
>> --- In flexcoders@yahoogroups.com, "erikdebruin_nl" 
>> wrote:
>>>
>>> Steve,
>>>
>>> No luck :-(
>>>
>>> The stack trace look like this:
>>>
>>> 
>>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>>> undefined
>>> at
>>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>>> em.as:114]
>>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>>> at flash.data::SQLStatement/internalExecute()
>>> at flash.data::SQLStatement/execute()
>>> >>
>>> Any ideas or suggestions as to what might cause the "undefined"?
>>>
>>> Regards,
>>>
>>> EdB
>>>
>>> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>>> >
>>> > A co-worker had the same error the other day (In the web application
>>> though, not in AIR): Stack Overflow.
>>> >
>>> > In his case it turned out to be "rampant" events. He made sure to use
>>> event.stopImmediatePropagation() when the event was no longer required
>>> to bubble and the error went away.
>>> >
>>> > This may not fix your problem but it is well worth doing.
>>> >
>>> >
>>> > HTH.
>>> >
>>> >
>>> > Steve
>>> >
>>> >
>>> >
>>> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>>> >> > >
>>> > > Hi,
>>> > >
>>> > > I've Googled me senseless, but I can't find a clue to my latest
>>> problem:
>>> > >

Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-14 Thread Erik de Bruin
Thomas,

Can you elaborate? I'm seeing this problem when I run the code in AIR
on a Mac with a US MacOS Leopard.

Thanks,

EdB

On Fri, Jul 10, 2009 at 9:33 PM, thomas
parquier wrote:
>
>
> I think "undefined" can come from a problem of error string localization.
>
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@web-attitude.fr
> softphone : sip:webattit...@ekiga.net
> téléphone portable : +33601 822 056
>
>
> 2009/7/9 erikdebruin_nl 
>>
>>
>> Hi Thomas,
>>
>> Thanks for your patience.
>>
>> I wasn't clear about the "undefined": it is not a regular trace() line
>> (which show up in black in the Console), it is the word "undefined" in RED
>> and it shows up as the top line of the stack trace dump after the crash,
>> like this:
>>
>> 
>> SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>>     at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetItem.as:114]
>>     at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>>     at flash.data::SQLStatement/internalExecute()
>>     at flash.data::SQLStatement/execute()
>> etc.
>> 
>>
>> EdB
>>
>> --- In flexcoders@yahoogroups.com, thomas parquier 
>> wrote:
>> >
>> > I would say the "undefined" trace matches a simple "trace(one_var);" in
>> > a
>> > file which is particular to your offline project (not in shared libs).
>> >
>> > To talk again about events based stack overflow, I would put two
>> > surrounding
>> > "trace" in event handlers to see stacked functions :
>> >
>> > > function handlerFunction(e:event):void {
>> > > trace('handlerFunction for', e.type);
>> > > // code goes here
>> > > trace('/handlerFunction for',e.type);
>> > > }
>> >
>> >
>> >
>> > thomas
>> > ---
>> > http://www.web-attitude.fr/
>> > msn : thomas.parqu...@...
>> > softphone : sip:webattit...@... > > téléphone portable : +33601 822 056
>> >
>> >
>> > 2009/7/8 Erik de Bruin erikdebr...@...
>> >
>> > >
>> > >
>> > > Hi,
>> > >
>> > > Thanks for your swift reply.
>> > >
>> > > I did a check to see if what you suggest might be the case, by
>> > > inserting a trace() in all the event dispatch and handler functions,
>> > > but nowhere in the chain does this type of recursion occur.
>> > >
>> > > I do however see that the entire chain is run dozens of times, while
>> > > the data structure is build from the data in the database. But this is
>> > > expected behavior, and the case remains that this code functions
>> > > flawlessly in the online version (again, build from the same
>> > > codebase).
>> > >
>> > > Any suggestions on how to proceed with debugging, as well as why the
>> > > stack trace shows a single final line with only the word "undefined"
>> > > in it, are much apreciated.
>> > >
>> > > Regards,
>> > >
>> > > EdB
>> > >
>> > >
>> > > On Wed, Jul 8, 2009 at 5:44 PM, thomas
>> > > parquiermailingli...@... >
>> > > wrote:
>> > > >
>> > > >
>> > > > You may have one type of event (A) handled in a function which
>> > > > dispatches
>> > > > another type of event (B) handled in a function which dispatches an
>> > > > event
>> > > of
>> > > > type A. If dispatching occurs before handler functions return you
>> > > > may get
>> > > a
>> > > > stack overflow.
>> > > >
>> > > > thomas
>> > > > ---
>> > > > http://www.web-attitude.fr/
>> > >
>> > > > msn : thomas.parqu...@...
>> > > > softphone : sip:webattit...@... 
>> > > > téléphone portable : +33601 822 056
>> > > >
>> > > >
>> > > > 2009/7/8 erikdebruin_nl
>> > > > 
>> > > >
>> > > >>
>> > > >>
>> > > >> Hi,
>> > > >>
>> > > >> I've Googled me senseless, but I can't find a clue to my latest
>> > > >> problem:
>> > >

Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-14 Thread Erik de Bruin
Alex,

Well, that's the thing. The code in that method doesn't seem to be the
problem. If I put the seemingly offending line in a try...catch block,
it runs without triggering the catch. And weirder still, the
"undefined" exception happens somewhere a little further in the
flow...

This happens only when I play the piece in AIR on a Mac. AIR on
windows doesn't show this problem and it also doesn't happen when the
code runs in the Flash plugin in a browser (on both platforms). Are
there any known issues that might relate to this?

Thanks again,

EdB

On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui wrote:
>
>
> Or show the code in that method.  If you blow up the stack, you can’t
> guarantee you’ll get correct information in the stacktrace.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc.
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of valdhor
> Sent: Friday, July 10, 2009 9:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
>
>
>
> Possibly completely unrelated to the Stack Overflow error (Or maybe the
> change is now showing where the original error came from.
>
> I would try debugging at or around line 114 of SheetItem.as.
>
> --- In flexcoders@yahoogroups.com, "erikdebruin_nl"  wrote:
>>
>> Steve,
>>
>> No luck :-(
>>
>> The stack trace look like this:
>>
>> 
>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>> at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>> em.as:114]
>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>> at flash.data::SQLStatement/internalExecute()
>> at flash.data::SQLStatement/execute()
>> >
>> Any ideas or suggestions as to what might cause the "undefined"?
>>
>> Regards,
>>
>> EdB
>>
>> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>> >
>> > A co-worker had the same error the other day (In the web application
>> though, not in AIR): Stack Overflow.
>> >
>> > In his case it turned out to be "rampant" events. He made sure to use
>> event.stopImmediatePropagation() when the event was no longer required
>> to bubble and the error went away.
>> >
>> > This may not fix your problem but it is well worth doing.
>> >
>> >
>> > HTH.
>> >
>> >
>> > Steve
>> >
>> >
>> >
>> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>> > > >
>> > > Hi,
>> > >
>> > > I've Googled me senseless, but I can't find a clue to my latest
>> problem:
>> > >
>> > > When I run my application in the browser, all is fine. When the same
>> app in AIR (we've build it so the same codebase is shared between on-
>> and offline versions), I get an exception and the last line in the stack
>> trace (as shown in the Console) reads "undefined". The error dialog the
>> player throws up (after clicking on the "Resume (F8)" button in the
>> debug perspective) tells me a "stack overflow" happened.
>> > >
>> > > The "funny" thing is, when I disable the code that seems to be the
>> cause (taking my clues from the stack trace), the problem remains, but
>> the stack trace tells me another line is the problem... and so on and
>> on.
>> > >
>> > > Google tells me that a stack overflow mostly has to do with rampant
>> recursion, but my app doesn't use recursion anywhere. It does however
>> use a lot of event chains. Do these count as "recursion"?
>> > >
>> > > What does it mean that the last line of the stack trace reads
>> "undefined"?
>> > >
>> > > Any suggestions about further debugging my problem are very welcome!
>> > >
>> > > Thanks in advance,
>> > >
>> > > EdB
>> > >
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread Erik de Bruin
Amy, is that you?

AWARE forever!

;-P

EdB

PS. I'm trying your suggestion now, thanks.

On Thu, Jul 9, 2009 at 3:06 PM, Amy wrote:
>
>
> --- In flexcoders@yahoogroups.com, Erik de Bruin  wrote:
>>
>> Hi,
>>
>> Thanks for your swift reply.
>>
>> I did a check to see if what you suggest might be the case, by
>> inserting a trace() in all the event dispatch and handler functions,
>> but nowhere in the chain does this type of recursion occur.
>>
>> I do however see that the entire chain is run dozens of times, while
>> the data structure is build from the data in the database. But this is
>> expected behavior, and the case remains that this code functions
>> flawlessly in the online version (again, build from the same
>> codebase).
>>
>> Any suggestions on how to proceed with debugging, as well as why the
>> stack trace shows a single final line with only the word "undefined"
>> in it, are much apreciated.
>
> Hey, Erik;
>
> You might want to call disableAutoUpdate on the collection, so you just get
> one event at the end (when you call enableAutoUpdate).
>
> If that doesn't help, I'm not sure what else to suggest without looking at
> your code.
>
> HTH;
>
> Amy
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [flexcoders] "undefined" in stack trace (Console), stack overflow

2009-07-08 Thread Erik de Bruin
Hi,

Thanks for your swift reply.

I did a check to see if what you suggest might be the case, by
inserting a trace() in all the event dispatch and handler functions,
but nowhere in the chain does this type of recursion occur.

I do however see that the entire chain is run dozens of times, while
the data structure is build from the data in the database. But this is
expected behavior, and the case remains that this code functions
flawlessly in the online version (again, build from the same
codebase).

Any suggestions on how to proceed with debugging, as well as why the
stack trace shows a single final line with only the word "undefined"
in it, are much apreciated.

Regards,

EdB

On Wed, Jul 8, 2009 at 5:44 PM, thomas
parquier wrote:
>
>
> You may have one type of event (A) handled in a function which dispatches
> another type of event (B) handled in a function which dispatches an event of
> type A. If dispatching occurs before handler functions return you may get a
> stack overflow.
>
> thomas
> ---
> http://www.web-attitude.fr/

> msn : thomas.parqu...@web-attitude.fr
> softphone : sip:webattit...@ekiga.net
> téléphone portable : +33601 822 056
>
>
> 2009/7/8 erikdebruin_nl 
>>
>>
>> Hi,
>>
>> I've Googled me senseless, but I can't find a clue to my latest problem:
>>
>> When I run my application in the browser, all is fine. When the same app
>> in AIR (we've build it so the same codebase is shared between on- and
>> offline versions), I get an exception and the last line in the stack trace
>> (as shown in the Console) reads "undefined". The error dialog the player
>> throws up (after clicking on the "Resume (F8)" button in the debug
>> perspective) tells me a "stack overflow" happened.
>>
>> The "funny" thing is, when I disable the code that seems to be the cause
>> (taking my clues from the stack trace), the problem remains, but the stack
>> trace tells me another line is the problem... and so on and on.
>>
>> Google tells me that a stack overflow mostly has to do with rampant
>> recursion, but my app doesn't use recursion anywhere. It does however use a
>> lot of event chains. Do these count as "recursion"?
>>
>> What does it mean that the last line of the stack trace reads "undefined"?
>>
>> Any suggestions about further debugging my problem are very welcome!
>>
>> Thanks in advance,
>>
>> EdB
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl