[flexcoders] Casting down an object

2009-11-02 Thread bnsmeets
Hi all,

I'm wondering if it is possible to 'hack' some sort of downcasting into AS3. 
The context is, that I am using a generated webservice proxy from Flex 3, and 
want to be able to add custom (extra) properties to the generated valueobjects 
without having to adjust the code that parses the wsdl result into objects.

So e.g. the webservice generates the class:

class A
{
  property A;
  property B;
}

I have my own class that is:

class B extends A
{
  property C;
}

When i call the generated webservice get all A's, it will return an array of 
A objects, what I am looking for is to convert that list into B objects. So 
the values of the properties that exist in the A counterpart, filled for a 
new B instance, with an empty C property.

Any ideas? 

Cheers,

Ben



[flexcoders] Image stack flipping thingie

2008-07-22 Thread bnsmeets
Anybody know of a component which stacks up a list of images
(visually) and allows the user to flip through them? It has been used
in the eBay desktop app (Air). It shows the images as being visually
stacked and when clicked animates to the next image by flipping the
top image to the bottom.

Tnx in advance.

Ben



[flexcoders] Linkbar Selectedindex without index. Bug is acknowledged, but any workaround?

2008-04-28 Thread bnsmeets
I've hit a bug in the Linkbar control which seems to be known already
(https://bugs.adobe.com/jira/browse/SDK-9773). To keep it short, the
bug is that you cannot bind the selectedIndex of the linkbar to
something (returning an int) because the enabled state will not be
updated.

I was wondering if anybody has a working workaround for it (the code
example in the bugviewer did nothing for me, broke the whole linkbar
which didn't even show itself anymore).

Any help appreciated.

Cheers, Ben

P.S. I am not using the linkbar in combination with a viewstack...



[flexcoders] Re: Continuous integration woes

2008-04-21 Thread bnsmeets
Try finding the allow-source-overlap parameter for the compiler (don't
know the exact name from where i am now). That will allow you to put
locale in src.

Ben

--- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote:

 Yes, I have suggested we consider using Ant, but I'm working with a
 .NET team with established practices and expertise.
 
 I'm not sure I understand your response. Do you place your locales and
 assets inside src, or as a sibling? Also, we are building libraries
 (swc) and applications (swf). The particular case I was referring to
 involved a library project with locale and src folders. My build guy
 was struggling with compc, if the locale was a sibling of src.
 
 Thanks.
 
 On Sat, Apr 19, 2008 at 1:51 AM, cisnky [EMAIL PROTECTED] wrote:
 
 
  I've always had the source code related to the project in the src
folder.
  Then linked to any library source I may need on my project.
 
  We use Ant and just add the source path to the mxmlc compile task.
 
  Is there any reason why you can't get CruiseControl to launch Ant
build
  files for the Flex part of your project. It can be done and works
from a
  Windows and Unix box.
 
 
  I get a warning from FlexBuilder that a source path is inside another
  source path.
 
  I've had that warning before. If you ignore, your project ends up
getting
  confused.
 
 
 
 
   On Fri, Apr 18, 2008 at 10:37 PM, Richard Rodseth [EMAIL PROTECTED]
  wrote:
  
  
  
  
  
  
   Are there any definitive examples of best practices for project
layout
   of libraries and applications, that works well with Flexbuilder, as
   well as compc/mxmlc (example command-line arguments would help too).
  
   My latest struggle is with locales. I followed an Adobe example, and
   placed locales alongside src, and added
  
   -locale en_US -source-path=../locale/{locale}
  
   to the additional compiler options in FlexBuilder.
  
   My colleague (who is working on the CruiseControl builds, and is new
   to Flex) requested that the locales folder be inside the src folder,
   and I know that I have had problems in the past with assets outside
   the src folder.
  
   So I complied, and changed the options to:
  
   -locale en_US -source-path=locale/{locale}
  
   However, doing it this way, I get a warning from FlexBuilder that a
   source path is inside another source path. Removing the compiler
   option and checking the checkboxes in the Assets tab didn't work.
  
   Unfortunately, Ant or Maven are not options, as we are
integrating with
  MSBuild.
  
 
 





[flexcoders] Re: Continuous integration woes

2008-04-21 Thread bnsmeets
This is the one: 

http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_3.html#158343

-allow-source-path-overlap=true



--- In flexcoders@yahoogroups.com, bnsmeets [EMAIL PROTECTED] wrote:

 Try finding the allow-source-overlap parameter for the compiler (don't
 know the exact name from where i am now). That will allow you to put
 locale in src.
 
 Ben
 
 --- In flexcoders@yahoogroups.com, Richard Rodseth rrodseth@ wrote:
 
  Yes, I have suggested we consider using Ant, but I'm working with a
  .NET team with established practices and expertise.
  
  I'm not sure I understand your response. Do you place your locales and
  assets inside src, or as a sibling? Also, we are building libraries
  (swc) and applications (swf). The particular case I was referring to
  involved a library project with locale and src folders. My build guy
  was struggling with compc, if the locale was a sibling of src.
  
  Thanks.
  
  On Sat, Apr 19, 2008 at 1:51 AM, cisnky cisnky@ wrote:
  
  
   I've always had the source code related to the project in the src
 folder.
   Then linked to any library source I may need on my project.
  
   We use Ant and just add the source path to the mxmlc compile task.
  
   Is there any reason why you can't get CruiseControl to launch Ant
 build
   files for the Flex part of your project. It can be done and works
 from a
   Windows and Unix box.
  
  
   I get a warning from FlexBuilder that a source path is inside
another
   source path.
  
   I've had that warning before. If you ignore, your project ends up
 getting
   confused.
  
  
  
  
On Fri, Apr 18, 2008 at 10:37 PM, Richard Rodseth rrodseth@
   wrote:
   
   
   
   
   
   
Are there any definitive examples of best practices for project
 layout
of libraries and applications, that works well with
Flexbuilder, as
well as compc/mxmlc (example command-line arguments would help
too).
   
My latest struggle is with locales. I followed an Adobe
example, and
placed locales alongside src, and added
   
-locale en_US -source-path=../locale/{locale}
   
to the additional compiler options in FlexBuilder.
   
My colleague (who is working on the CruiseControl builds, and
is new
to Flex) requested that the locales folder be inside the src
folder,
and I know that I have had problems in the past with assets
outside
the src folder.
   
So I complied, and changed the options to:
   
-locale en_US -source-path=locale/{locale}
   
However, doing it this way, I get a warning from FlexBuilder
that a
source path is inside another source path. Removing the compiler
option and checking the checkboxes in the Assets tab didn't work.
   
Unfortunately, Ant or Maven are not options, as we are
 integrating with
   MSBuild.
   
  
  
 





[flexcoders] The ebay image flipper

2007-11-21 Thread bnsmeets
All,

I am curious if anybody has seen the imageflipping effect which is
used in the ebay desktop app somehere in source? 

Cheers,

Ben



[flexcoders] Re: Cairngorm, is this suitable as Cairngorm event

2007-04-27 Thread bnsmeets
Nice, tnx for the input. I think I am starting to get the hang of
it... (Mind the 'starting' ;) ).

Grt, Ben

--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 Imay be a little late here, but no, its not only for calling
backend. Anytime you want encapsulate some UI logic, put it in a
command. Even if it just to manipulate data, update the view or to
call the server-side.
  
 Dimitrios Gianninas
 Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of bnsmeets
 Sent: Wednesday, April 25, 2007 5:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Cairngorm, is this suitable as Cairngorm event
 
 
 
 Hi all,
 
 Wondering if the Cairngorm events are supposed to be only events that
 need backend comunication.
 
 Situation now is that I have a Model, which contains e.g.
 SelectedObject. I use this var to store the selected object by users
 in the interface.
 
 No problems so far. But now I want to be able to let the user clear
 that selectedobject. I am tempted to just use
 AppModel.SelectedObject=null in a view. But the thought is running in
 my head that it might be neater to create a
 SelectedObjectClearedEvent and attach a command to that which
 contains the logic if it is possible to clear it.
 
 Question in the bigger picture is this: Are cairngorm events as is
 supposed to be used only when there is a I want to call backend-
 event? Or are View related events (or any other events in that matter)
 supposed to be Cairngorm events too?
 
 And on top of that, how do you (Cairngorm users out there) give your
 other events a place in your structure?
 
 For example, my model also dispatches a custom event which has nothing
 to do with the backend. I use it to listen to any changes in a
 Collection (Default ArrayCollection events didn't do the trick).
 
 Tx in advance,
 Ben
 
 
 
  
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.





[flexcoders] Re: Cairngorm, is this suitable as Cairngorm event

2007-04-26 Thread bnsmeets
Nice, tnx guys. Great replies. Gonna print them out and see if i can
get it clear for myself. 



[flexcoders] Re: Flex 2, swfLoader with flash 9 (as2) communication

2007-04-25 Thread bnsmeets
Tx, was hoping the Localconnection thingie was absolete now :)


--- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote:

 that is correct.
 AS2 = old VM
 AS3 = new VM
 
 - Original Message - 
 From: bnsmeets [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 24, 2007 11:29 PM
 Subject: [flexcoders] Flex 2, swfLoader with flash 9 (as2) communication
 
 
 Searched, but haven't found this exact answer.
 
 Swf's compiled in Flash 9 but with AS2 as actionscript setting, are
 still run in a seperate virtual machine in Flex right? So still no
 direct communication available. Only if using AS3 as export setting?
 
 Tx, Ben





[flexcoders] Cairngorm, is this suitable as Cairngorm event

2007-04-25 Thread bnsmeets
Hi all,

Wondering if the Cairngorm events are supposed to be only events that
need backend comunication.

Situation now is that I have a Model, which contains e.g.
SelectedObject. I use this var to store the selected object by users
in the interface.

No problems so far. But now I want to be able to let the user clear
that selectedobject. I am tempted to just use
AppModel.SelectedObject=null in a view. But the thought is running in
my head that it might be neater to create a
SelectedObjectClearedEvent and attach a command to that which
contains the logic if it is possible to clear it.

Question in the bigger picture is this: Are cairngorm events as is
supposed to be used only when there is a I want to call backend-
event? Or are View related events (or any other events in that matter)
supposed to be Cairngorm events too?

And on top of that, how do you (Cairngorm users out there) give your
other events a place in your structure?

For example, my model also dispatches a custom event which has nothing
to do with the backend. I use it to listen to any changes in a
Collection (Default ArrayCollection events didn't do the trick).

Tx in advance,
Ben



[flexcoders] Calling Webservice from disk to http

2007-04-11 Thread bnsmeets
Hi All,

Very strange thing happening to me. I have a local based Flex2 swf
which calls a http based webservice.

When i build the app (launches in browser with url like file://etc.)
the webservice is called and results are returned. (isn't this
supposed to be illegal by the sandbox definitions?).

The problem is, that if I mail someone else the entire bin directory
to test sometghing for me, the webservice isn't called :(

Whatever other computer than mine I use for testing, the webservice
stays silent. Only on my own PC it works.

To make it even weirder. If I copy the bin directory from the
building directory to e.g. c:\, the webservice fails if i run the
main.html inside the bin (works when running main.html from original
bin directory ).

I'm flabbergasted, anyone any ideas?

Greets, Ben Smeets



[flexcoders] Re: Calling Webservice from disk to http

2007-04-11 Thread bnsmeets
Both, from the Debug/Run of Flex builder and directly by executing
the html file through file explorer. When the html/swf is in the bin,
it works. Outside or by others it doesn't.

If I share my bin directory over the network and let others execute
the html inside the bin through file sharing, no go either.


--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 Are you launching the application from Flex Builder?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of bnsmeets
 Sent: Wednesday, April 11, 2007 3:51 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Calling Webservice from disk to http
 
 
 
 Hi All,
 
 Very strange thing happening to me. I have a local based Flex2 swf
 which calls a http based webservice.
 
 When i build the app (launches in browser with url like file://etc.)
 the webservice is called and results are returned. (isn't this
 supposed to be illegal by the sandbox definitions?).
 
 The problem is, that if I mail someone else the entire bin directory
 to test sometghing for me, the webservice isn't called :(
 
 Whatever other computer than mine I use for testing, the webservice
 stays silent. Only on my own PC it works.
 
 To make it even weirder. If I copy the bin directory from the
 building directory to e.g. c:\, the webservice fails if i run the
 main.html inside the bin (works when running main.html from original
 bin directory ).
 
 I'm flabbergasted, anyone any ideas?
 
 Greets, Ben Smeets





[flexcoders] Re: Sourcesafe for Flex beta 2 / eclipse 3.1x

2007-01-22 Thread bnsmeets
Hi, I am also desperately trying to get the vss plugin working with
the standalone installation of flex builder 2.0.1 . in plugin mode
everything is working fine, but I get this creeping feeling the plugin
mode is less than the standalone mode. So if anybody got the vss
plugin running in the standalone builder, would be happy to know.

Tx,

Ben

--- In flexcoders@yahoogroups.com, Jonas Windey [EMAIL PROTECTED] wrote:

 Hi,
 
  
 
 I'm trying to use MS Sourcesafe in our flex application (since CVS isn't
 installed on our server), but I'm having some difficulties. 
 
 I found a plugin that should enable Eclipse 3.1 to use VSS here:
 http://sourceforge.net/projects/vssplugin/
 
  
 
 Is anyone using that plugin successfully? When I move it to the
 eclipse/plugins folder, I don't see it in the installed plugins window.
 
  
 
 Jonas