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
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
,
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
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
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++) {
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
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
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
. 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
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
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
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
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
)).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
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
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
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
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
@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
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
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
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
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
, 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
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
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
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
...
/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
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
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
30 matches
Mail list logo