[flexcoders] Re: Anyone reading Paul Williams blogging about Presentation Patterns?

2007-10-15 Thread aduston1976
One other detail about our implementation: Because there is no dependency injection in AS3 (that I know of), I have an Abstract Factory generate the View components. This way I can just swap out my Abstract Factory with one that generates Mock Views for testing by altering a Boolean constant in

[flexcoders] Mock objects in AS3

2007-10-16 Thread aduston1976
lus I see a number of places on the web where the idea is mentioned, e.g. http://www.herrodius.com/blog/?m=200704 . However I cannot find any mock frameworks for AS3. This evening I spent some time trying to mock one up on my own (ok, sorry for the pun!) but I ran into troubles. Is anyone

[flexcoders] Re: Mock objects in AS3

2007-10-18 Thread aduston1976
, TestInterface ); prior to your cast attempt. regards, Bjorn On 17/10/2007, at 1:06 PM, aduston1976 wrote: lus I see a number of places on the web where the idea is mentioned, e.g. http://www.herrodius.com/blog/?m=200704 . However I cannot find any mock

[flexcoders] subtopics vs destinations

2007-11-05 Thread aduston1976
Hi, easy question here. I have a Java application that sends different messages out to different flex clients. I do this from Java using flex.messaging.messages.AsyncMessage. I can either dynamically create a new destination for each flex client, or I can have them all use the same destination but

[flexcoders] Re: Traverse List of All Children

2007-11-05 Thread aduston1976
Why does it get complex with nested sets of child components? Why can't you just use a recursive function? function doSomethingToAllDescendants(component : DisplayObjectContainer) : void { for (var i : int = 0; i component.numChildren; i++) {

[flexcoders] Re: Sizing and layout of UI components with respect to parent containers

2007-12-09 Thread aduston1976
Yarin, I am struggling with the same issue you report here: Essentially when I give a Container inheritor percentHeight=100, the Container will resize itself to fit its children when they become larger than the Container's parent. This really sucks. Is it true that nobody ever replied to your

[flexcoders] Re: Mock objects in AS3

2007-12-25 Thread aduston1976
better off hand-coding my mocks! Is there any solution to this problem? Is there any way to get the Flex runtime to believe that a flash.utils.Proxy subclass also implements a particular interface? Adam --- In flexcoders@yahoogroups.com, aduston1976 [EMAIL PROTECTED] wrote: Bjorn, I think

[flexcoders] Re: Mock objects in AS3

2007-12-26 Thread aduston1976
Jens: Indeed, we need Proxy#newProxyInstance in AS. This is how EasyMock creates its mocks. There is an equivalent mechanism in c# that is used by Rhino Mocks, which is similar to EasyMock insofar as it uses the record/replay metaphor. Cristophe: I would love to talk about this offline. Do you

[flexcoders] Re: Mock objects in AS3

2007-12-30 Thread aduston1976
. Are there any as3 bytecode enthusiasts out there who want to work on this with me? I believe it would really be useful to a lot of people. I guess I should post to the hxasm list as well. Adam --- In flexcoders@yahoogroups.com, aduston1976 [EMAIL PROTECTED] wrote: Jens: Indeed, we need Proxy

[flexcoders] Re: Mock objects in AS3

2008-01-05 Thread aduston1976
Hi, Sorry for being out of the conversation for a few days. I ran into a problem while trying to do this using hxasm. If I write out the bytecode for a class definition to a ByteArray, and the class inherits from a custom class that is part of my swf rather than a standard class like Object, then

[flexcoders] Flex Modules and LCDS FlexSessions

2008-02-13 Thread aduston1976
Hi, I am creating a Flex/LCDS app that uses an RTMP channel for both RPC and messaging. I noticed after modularizing my app (i.e. dividing it into mx.modules.Modules) that, on the server, FlexContext.getUserPrincipal would frequently return null during an RPC call after

[flexcoders] Re: Simulating Flex Client requests using Java?

2008-02-14 Thread aduston1976
Hi Robert, I came across your posts while searching the lists for a solution to the FlexSession problem I recently posted. I think I'm a bit late, but will post this anyway in case it helps. When we are testing with external dependencies, we stub or mock them out. Why don't you do that? On a daily

[flexcoders] Re: Has anyone made the transition from FDS 2 to BlazeDS?

2008-02-14 Thread aduston1976
If your app is pushing data to clients, then keep in mind that BlazeDS uses blocking I/O, meaning one dedicated thread per client, meaning your machine will start smoking and fall over as soon as you get above a couple hundred simultaneous clients on a single CPU. A blogger at Farata Systems who

[flexcoders] Re: Flex Modules and LCDS FlexSessions

2008-02-14 Thread aduston1976
)).getConnection().getId() (java.lang.String) D972CAB4-2208-CD3E-641B-108E830BDDCF Is there any way to trick LCDS into believing that there is only one RTMPFlexSession for a modularized app? Thank you, Adam --- In flexcoders@yahoogroups.com, aduston1976 [EMAIL PROTECTED] wrote: Hi, I am creating

[flexcoders] Re: Simulating Flex Client requests using Java?

2008-02-15 Thread aduston1976
Yes it does. But using flex unit for a purpose like this cannot really be properly called a unit test but rather an integration test. I typically find that the cost-to-benefit ratio of testing -- which can become arbitrarily high -- is lower when I am testing my java code and my as3 code

[flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread aduston1976
1. Use LocalConnection -- see the API doc at http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html 2. Use ExternalInterface to write your xml string to a variable attached to javascript window -- see

[flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread aduston1976
to the other page and read values again with external interface; but actually i did not like it (wish it works) but any other solution? by the way, aduston, thanks. aduston1976 wrote On 02/15/2008 04:22 PM: 1. Use LocalConnection -- see the API doc at http

[flexcoders] Stupid question regarding Alex Harui's Modules PPT

2008-03-04 Thread aduston1976
In Alex Harui's Modules powerpoint (http://blogs.adobe.com/aharui/360Flex2007/Modules.ppt/Modules.ppt) he explains the problem that can result when classes are defined in a module and then accessed from another module. In Slide 20 he shows one solution for shared code between modules: load the

[flexcoders] Re: Sizing and layout of UI components with respect to parent containers

2008-04-22 Thread aduston1976
@yahoogroups.com, aduston1976 aduston@ wrote: Yarin, I am struggling with the same issue you report here: Essentially when I give a Container inheritor percentHeight=100, the Container will resize itself to fit its children when they become larger than the Container's parent

[flexcoders] Non-Blocking IO and BlazeDS Streaming

2008-06-13 Thread aduston1976
I need to push data to Flex clients, and I need more than 400 clients to connect to each host. Even though I'm using BlazeDS for RPC, I was thinking of using the XIFF XMPP library with a jabber server for pushing data to clients, since streaming in BlazeDS uses blocking IO. But, looking at the

[flexcoders] Re: Non-Blocking IO and BlazeDS Streaming

2008-06-13 Thread aduston1976
posted, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aduston1976 Sent: Friday, June 13, 2008 9:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Non-Blocking IO and BlazeDS Streaming I need to push data to Flex clients, and I need more than

[flexcoders] Re: Non-Blocking IO and BlazeDS Streaming

2008-06-13 Thread aduston1976
and provide application support for common tasks and robustness/QoS. You can mail me directly at atartakovskyatfaratasystemsdotcom id you have any questions Sincerely, Anatole Tartakovsky On Fri, Jun 13, 2008 at 2:41 PM, aduston1976 [EMAIL PROTECTED] wrote: Seth, Thank you very much

[flexcoders] Stupid question regarding sizing of mxml components

2008-07-12 Thread aduston1976
Hi, here is an easy one: mx:VBox width=200 height=300 mx:VBox minHeight=0 ... lots of stuff ... /mx:VBox mx:VBox ... lots of stuff ... /mx:VBox /mx:VBox When lots of

[flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-12 Thread aduston1976
, give them an id so we can be sure which is being refered to. This might be helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_4.html Paul - Original Message - From: aduston1976 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 13

[flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-12 Thread aduston1976
be helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_4.html Paul - Original Message - From: aduston1976 aduston@ To: flexcoders@yahoogroups.com Sent: Sunday, July 13, 2008 12:17 AM Subject: [flexcoders] Stupid question regarding sizing

[flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-13 Thread aduston1976
PROTECTED] On Behalf Of aduston1976 Sent: Saturday, July 12, 2008 6:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stupid question regarding sizing of mxml components Hi dbronk, I need the top vbox to scroll but not the bottom one. Assuming that your sdk is sufficiently

[flexcoders] Re: Non-Blocking IO and BlazeDS Streaming

2008-07-15 Thread aduston1976
On Fri, Jun 13, 2008 at 5:11 PM, aduston1976 [EMAIL PROTECTED] wrote: Anatole, thank you sincerely for your message. I've always admired the Farata Systems blog posts and I will email you offline. Has anyone else taken a stab at this? Does anyone else have any thoughts about

[flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-15 Thread aduston1976
... /mx:VBox -Josh On Sun, Jul 13, 2008 at 4:01 PM, aduston1976 [EMAIL PROTECTED] wrote: Hi Alex, Thank you for your reply. then minHeight=0 should allow for scrollbars on the top. That's what I would think too, but it is incorrect. I am using build 477 of Flex 3 SDK version 3.0.0. Here

[flexcoders] Mxmlc link report dependency tool

2008-07-18 Thread aduston1976
Have you ever created a modularized app, accidentally introduced a dependency between one module and another, and then had to spend way too much time looking through the link report generated by mxmlc to find where the dependency got introduced? I wrote an extremely short program to do this

[flexcoders] Re: Mxmlc link report dependency tool

2008-07-18 Thread aduston1976
Oops, think I got the link wrong. Try http://8planes.com/MxmlcDep.tar.gz --- In flexcoders@yahoogroups.com, aduston1976 [EMAIL PROTECTED] wrote: Have you ever created a modularized app, accidentally introduced a dependency between one module and another, and then had to spend way too much