[flexcoders] Re: Displaying Flash 9 symbols in Flex - Looking for an elegant solution

2006-08-29 Thread ben.clinkinbeard
This might help:
http://www.jessewarden.com/archives/2006/08/flash_9_button.html

Can I ask why you're building your game in Flex though? Doesn't seem
like it would provide (m)any advantages over straight up Flash.

HTH,
Ben

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

 I've been trying to find an elegant way to display MovieClip symbols 
 from a Flash 9 swf in a Flex app. I am rewriting my old game 
 ChipWits (google it) and have a bunch of graphics which I need to 
 repeat for walls, floors... All the graphics are in Symbols with 
 auto-generated classes (coffee class for the coffee symbol).
 
 I have it working in a very inelegant manner by putting named 
 instances of each of the Symbols on the stage. In Flex I call a 
 function in the swf's Document class that moves the symbol to 0,0 
 and makes it visible in the swf:
 
 private var mc_Item:MovieClip = null;
 
 public function showInstanceInSWF(itemName:String):void {
 // If it has the property draw it
 if( this.hasOwnProperty(itemName) ) {
 // Get rid of any old instance in the SWF
 if(this.mc_Item != null) {
 this.mc_Item.visible = false;
 this.mc_Item = null;
 }
 // Point mc_Item to the MovieClip on stage named itemName
 this.mc_Item = this[itemName];
 if(this.mc_Item != null) {
 this.mc_Item.x = 0;
 this.mc_Item.y = 0;
 this.mc_Item.alpha = 100; // They are alpha=0 in Flash
 this.mc_Item.visible = true;
 }
 } 
 }
 
 This means that for every piece of floor, wall, etc. onstage I need 
 to load another SWF.
 
 What I'd like to do is something like:
 
 public function returnSymbolFromClass( className:String ):MovieClip {
 var mc:Object = null;
 try {
 var ClassReference:Class = getDefinitionByName(className) as Class;
 mc = new ClassReference();
 }
 catch(e:ReferenceError) {
 trace(e);
 } 
 return MovieClip(mc);
 } 
 
 and then to take the MovieClip and addChild it in my app outside the 
 loaded SWF.
 
 This has me pulling my hair out. I am breaking my swf's up so there 
 is one symbol in each, but again this is very kludgy.
 
 Any help will be grovellingly appreciated.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Weird namespace/compiler error in FB2

2006-08-29 Thread ben.clinkinbeard
The namespace should be constructed as if you were in the root of your
application. As in, it should always look the same, regardless of
where you're 'including' it from.

HTH,
Ben

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

 Still no solution...








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Cairngorm 2 - Web Service event handlers

2006-08-23 Thread ben.clinkinbeard
I've been using this method ever since I started with Cairngorm.
http://www.darronschall.com/weblog/archives/000234.cfm

It makes a lot of sense and just feels more natural to me to have the
commands handle the results and faults since they are the ones
requesting the calls anyway.

HTH,
Ben
http://www.returnundefined.com/

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

 I have a cairngorm 2 app that uses multiple delegates to call 
 different methods of a single web service.  The problem is, each 
 delegate adds it's own onResult and onFault events, so that when 
 the web service operation is called, *ALL* of the onResult functions 
 are called instead of just the one associated with the calling 
 delegate.
 
 For example, one delegate has the following code:
 
 this.service = ServiceLocator.getInstance().getService
 (sym_security_standard) as WebService;
 
 service.addEventListener(ResultEvent.RESULT, 
 sym_security_sp_login_search_onResult);
 
 service.addEventListener(FaultEvent.FAULT, 
 sym_security_sp_login_search_onFault);
 
 
 Another delegate has the following (similar) code:
 
 this.service = ServiceLocator.getInstance().getService
 (sym_security_standard) as WebService;
 
 service.addEventListener(ResultEvent.RESULT, 
 sym_security_sp_group_search_onResult);
 
 service.addEventListener(FaultEvent.FAULT, 
 sym_security_sp_group_search_onFault);
 
 
 
 Since there's only one instance of the ServiceLocator, each delegate 
 is registering onResult / onFault events to the *same* object 
 instance, and therefore the onResult event triggers the onResult 
 function of multiple delegates instead of the single/target delegate.
 
 Any ideas on how to avoid this?
 
 Thanks in advance!








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: WebService - What's wrong with this code?

2006-08-21 Thread ben.clinkinbeard
Samuel, I am not sure why you're comparing FDS and web services so
closely. They are 2 different technologies meant to do 2 different
things. That is, 2 different ways of getting data to your clients.

As for your statement that web services are fully implemented in Flex,
that is certainly not the case. I would encourage you to follow the
links that Franck, Kaleb and myself posted a few messages ago. Adobe
themselves have readily admitted that there are some issues with the
existing implementation.

Ben


--- In flexcoders@yahoogroups.com, Samuel D. Colak [EMAIL PROTECTED]
wrote:

 Is it thus by implication that FDS become some form of flash
Hibernate ?
 
 Because personally id like to know if that were the case. In terms of
 data-sync, this is not part of any webservice specification and as for
 poll-less server push - well that's just against the whole notion of
 webservices in the first place and should be relegated to the area of
 messaging services - not data-services.
 
 By the way - it becomes more interesting that the Date format issue is
 cropping up quite a bit now (even in the PHP world) - Is there per
chance a
 specific way of pushing this for implementation?
 
 Being honest, String, Integer, Date, Boolean are standard datatypes
which
 should all be accessible via webservices - any reason why date isnt
fully
 supported yet?
 
 Sorry if this sounds like a gripe but it is actually in a few cases,
a deal
 breaker.
 
 Samuel
 
 On 21/8/06 10:29, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Sunday 20 August 2006 16:55, Samuel D. Colak wrote:
  why - Its obvious that actionscript has taken a significant leap in
  development, so why is everyone here talking about a 3rd product
(FDS) to
  do what you can really easily achieve under AS.
  
  There are some use cases, where what FDS gives you (data sync and
poll-less
  server push) is usefull, and a pain to have to write yourself.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Problem in opening the CSV file as Excel file in the browser

2006-08-21 Thread ben.clinkinbeard
All the sources I found via Google show the header as
application/vnd.ms-excel

HTH,
Ben


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

 I had a problem with flex.

   The problem is that I have .CSV file, which I want to display as
Excel file in the new browser on clicking a button.

   I tried with the following code.

   function button_click()
   {
  var filePath = C:\test.csv;
 var objLoadVars:LoadVars = new LoadVars();

 objLoadVars.contentType = application/x-msexcel;

 objLoadVars.send(filePath, _blank, POST);
   }


   It is displaying as plane text file instead of Excel file.

   Can anyone please help me?

   Thanks and Regards,
   Yasu.
 
   
 -
 Do you Yahoo!?
  Everyone is raving about the  all-new Yahoo! Mail Beta.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Problems interpolating a BarChart

2006-08-21 Thread ben.clinkinbeard
I have a BarChart that is displaying its data correctly. I also have a
combobox that, upon its change event, calls a function that
repopulates the BarChart's dataProvider. The BarChart updates its
display as expected, but if I try to set the showDataEffect attribute
of any of the child BarSeries components (which I am successfully
using on a ColumnChart elsewhere), I get an RTE with the infamous
Error #1009: Cannot access a property or method of a null object
reference. message. The debugger opens and selects a
mx.charts.chartClasses.CartesianTransform instance, but other than
that I get no feedback on what the actual problem is. At first I
thought that maybe it was having trouble scaling some of the BarSeries
items to a value of 0, but the more I investigate, the less it seems
like that is the issue.

So my question is a basic one: does anyone have any ideas what could
be causing this or suggestions of where I should further investigate?

Thanks,
Ben






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Getting started with Cairngorm

2006-08-21 Thread ben.clinkinbeard
This is what mine looks like:

[Bindable]
public class ModelLocator implements
com.adobe.cairngorm.model.ModelLocator
{
protected static var
modelLocator:com.domain.projects.PSA.model.ModelLocator;

And then my getInstance() method:

public static function
getInstance():com.fmr.projects.PSA.model.ModelLocator
{
if(modelLocator == null)
{
modelLocator = new com.fmr.projects.PSA.model.ModelLocator();
modelLocator.arr_selectedPlans = new ArrayCollection([]);
}

return modelLocator;
}

HTH,
Ben

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

 hi list,
 
 i'm trying to use Cairngorm in a flex project (1st attempt), i have a
 ModelLocator class that implements the
 com.adobe.cairngorm.model.ModelLocator interface, my ModelLocator
 class is in a package (org.something.myapp.model), each time i try to
 use it i get this error
 Circular type reference was detected in ModelLocator -- should i
 name it differently?
 
 thanks for the help








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: WebService - What's wrong with this code?

2006-08-20 Thread ben.clinkinbeard
 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: WebService - What's wrong with this code?
 
 And my personal favorite:
 
 http://groups.yahoo.com/group/flexcoders/message/47493
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Friday, August 18, 2006 10:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WebService - What's wrong with this code?
 
 Here are a couple.
 

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1m=evar=1
 tidx=1

http://groups.yahoo.com/group/flexcoders/messages/46548?threaded=1m=evar=1
 tidx=1
 
 I can confirm that I am working with an Adobe engineer to try and
 resolve both issues (our company has a support contract with Adobe),
 so they are listening and interested in fixing issues people are
 having. I think thats a good sign.
 
 Ben
 
 
 --- In flexcoders@yahoogroups.com, Samuel D. Colak sam.colak@
 wrote:
 
  Umm ­ Franck ­ what issues with webservices?
  
  
  On 15/8/06 20:00, Franck de Bruijn franck.de.bruijn@ wrote:
  



   
   That¹s exactly what Ben is hammering at.

   It¹s too hard to get webservices up and running in a production-like
   application easy. It¹s true that Adobe is focussing more on FDS
 than on the
   support for webservices, which is truely a pity. Let¹s hope it¹ll
 change in
   the (near) future. I already saw a good sign of an Adobe engineer
 trying to
   look into our problems.

   Cheers,
   Franck

   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf
   Of Samuel D. Colak
   Sent: Tuesday, August 15, 2006 10:22 AM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Re: WebService - What's wrong with this
 code?

   
   
   Hold on VS buggy ?? My god, that¹s amazing news ­ there was I
 thinking for a
   moment that M$oft had got it right at least once - Œfraid to say
 im most
   disappointed ­ my world has surely shattered ­ frankly I would
 advise everyone
   that can to use the Eclipse plugin rather than the IDE under
 Windows. I have
   experienced far fewer issues with Eclipse ;) But I have
 experienced SOME !
   
   Im working with both VS.Net 2005 and Eclipse/Flex ­ cant say that
 there have
   been any issues with WebServices AT-ALL categorically using
 actionscript. I
   must admit it wasn¹t easy but its a tad different getting use to
 asyncronous
   webservice calling though Flex¹s event model but I finally managed
 to make
   something very elegant and scalable. Obviously this isnt for the
 fainthearted
   and you might have to unlearn somethings from the VS world (as I
 did) to deal
   with the Flex logic.
   
   If anyone is stuck, give me a shout..
   Samuel
   
   
   On 15/8/06 10:02, sinatosk sinatosk@ wrote:
   
   


   
   ah white spaces. convert that URL using urlencode can't
 remember the
   function/method name but it's around
   
   thats might do the trick :p
   
   On 14/08/06, Tom Lee design@ wrote:
   


   
   Thanks, Ben -
   
   Your code works fine.  My code, even after I manually edited to
 make it
   identical to yours, does not.  I can only conclude that Flex
 Builder is on
   crack.  Seriously, I went over it line by line...  No differences
 except
   whitespace.  I hope this is not going to become a behavioral
 pattern in
   Builder... I work with Visual Studio, and there's no room for
 more than one
   buggy IDE in my life.
   
   Thanks again,
   
   -tom
   
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   [mailto: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ]
   On
   Behalf Of ben.clinkinbeard
   Sent: Friday, August 11, 2006 10:01 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: WebService - What's wrong with this code?
   
Does it compile for you without errors?
   
   Yep, this exact code works for me.
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute creationComplete=init()
   mx:Script
   ![CDATA[
   import mx.rpc.soap.LoadEvent;
   import mx.rpc.soap.WebService;
   
   private function init():void
   {
   var myWebService:WebService;
   myWebService = new WebService();
   
   
  

myWebService.loadWSDL(http://webservices.amazon.com/AWSECommerceService/AWS
   ECommerceService.wsdl);
   myWebService.addEventListener(load,
   loadComplete);
   }
   
   private function loadComplete(event:LoadEvent):void
   {
   trace(ALL GOOD);
   }
   ]]
   /mx:Script
   /mx:Application
   

-Original Message-
From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   [mailto: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ]
   On
Behalf Of ben.clinkinbeard
Sent: Friday, August 11, 2006 12:42 PM
To: flexcoders@yahoogroups.com
 mailto:flexcoders

[flexcoders] Re: Best way to find item in ComboBox?

2006-08-20 Thread ben.clinkinbeard
cb.selectedItem = strToSearchFor;

Ben


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

 I have a ComboBox with Strings in it.  I want to be able to select an
 item in the ComboBox that matches a specific String.  In the past I have
 written loops that try to find the item by comparing values, but it
 seems to me that there should be an easier way.  Anyone know how this
 can be done?
 
 Thanks in advance.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: WebService - What's wrong with this code?

2006-08-18 Thread ben.clinkinbeard
Here are a couple.

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1m=evar=1tidx=1
http://groups.yahoo.com/group/flexcoders/messages/46548?threaded=1m=evar=1tidx=1

I can confirm that I am working with an Adobe engineer to try and
resolve both issues (our company has a support contract with Adobe),
so they are listening and interested in fixing issues people are
having. I think thats a good sign.

Ben


--- In flexcoders@yahoogroups.com, Samuel D. Colak [EMAIL PROTECTED]
wrote:

 Umm ­ Franck ­ what issues with webservices?
 
 
 On 15/8/06 20:00, Franck de Bruijn [EMAIL PROTECTED] wrote:
 
   
   
   
  
  That¹s exactly what Ben is hammering at.
   
  It¹s too hard to get webservices up and running in a production-like
  application easy. It¹s true that Adobe is focussing more on FDS
than on the
  support for webservices, which is truely a pity. Let¹s hope it¹ll
change in
  the (near) future. I already saw a good sign of an Adobe engineer
trying to
  look into our problems.
   
  Cheers,
  Franck
   
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
  Of Samuel D. Colak
  Sent: Tuesday, August 15, 2006 10:22 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Re: WebService - What's wrong with this
code?
   
  
  
  Hold on VS buggy ?? My god, that¹s amazing news ­ there was I
thinking for a
  moment that M$oft had got it right at least once - Œfraid to say
im most
  disappointed ­ my world has surely shattered ­ frankly I would
advise everyone
  that can to use the Eclipse plugin rather than the IDE under
Windows. I have
  experienced far fewer issues with Eclipse ;) But I have
experienced SOME !
  
  Im working with both VS.Net 2005 and Eclipse/Flex ­ cant say that
there have
  been any issues with WebServices AT-ALL categorically using
actionscript. I
  must admit it wasn¹t easy but its a tad different getting use to
asyncronous
  webservice calling though Flex¹s event model but I finally managed
to make
  something very elegant and scalable. Obviously this isnt for the
fainthearted
  and you might have to unlearn somethings from the VS world (as I
did) to deal
  with the Flex logic.
  
  If anyone is stuck, give me a shout..
  Samuel
  
  
  On 15/8/06 10:02, sinatosk [EMAIL PROTECTED] wrote:
  
  
   
   
  
  ah white spaces. convert that URL using urlencode can't
remember the
  function/method name but it's around
  
  thats might do the trick :p
  
  On 14/08/06, Tom Lee [EMAIL PROTECTED] wrote:
  
   
   
  
  Thanks, Ben -
  
  Your code works fine.  My code, even after I manually edited to
make it
  identical to yours, does not.  I can only conclude that Flex
Builder is on
  crack.  Seriously, I went over it line by line...  No differences
except
  whitespace.  I hope this is not going to become a behavioral
pattern in
  Builder... I work with Visual Studio, and there's no room for
more than one
  buggy IDE in my life.
  
  Thanks again,
  
  -tom
  
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ]
  On
  Behalf Of ben.clinkinbeard
  Sent: Friday, August 11, 2006 10:01 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: WebService - What's wrong with this code?
  
   Does it compile for you without errors?
  
  Yep, this exact code works for me.
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=init()
  mx:Script
  ![CDATA[
  import mx.rpc.soap.LoadEvent;
  import mx.rpc.soap.WebService;
  
  private function init():void
  {
  var myWebService:WebService;
  myWebService = new WebService();
  
  
 
myWebService.loadWSDL(http://webservices.amazon.com/AWSECommerceService/AWS
  ECommerceService.wsdl);
  myWebService.addEventListener(load,
  loadComplete);
  }
  
  private function loadComplete(event:LoadEvent):void
  {
  trace(ALL GOOD);
  }
  ]]
  /mx:Script
  /mx:Application
  
   
   -Original Message-
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ]
  On
   Behalf Of ben.clinkinbeard
   Sent: Friday, August 11, 2006 12:42 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: WebService - What's wrong with this
code?
   
   For your second example, if you wrap the lines other than the
import
   inside of a function it should work.
   
   HTH,
   Ben
   
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ,
  Tom Lee design@ wrote:
   
I can't figure this out for the life of me - I'm following
other
   people's
examples, but still getting errors.  This must be something
obvious.
   Here's
my code (I've removed the actual WSDL url):

 

?xml version=1.0 encoding=utf-8

[flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-18 Thread ben.clinkinbeard
Can we assume this will be corrected in a future release? Either by
changing when the LoadEvent fires or by adding a separate event to
listen for?

Thanks,
Ben

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

 Hi Kaleb,
 
  
 
 Thanks for providing your WSDL/XSD/service code. We've identified and
 fixed the issue internally. The problem was that WSDL parsing dispatches
 the load event after the WSDL is loaded and parsed, but without properly
 waiting for schema imports to be fetched over the network and parsed.
 The simplest workaround is to avoid schema imports :-) If that isn't an
 option, catch the 'Element not resolvable' error and retry your call
 using a Timer on a short delay.
 
  
 
 Thanks again for your help closing out this bug,
 
 Seth
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of kaleb_pederson
 Sent: Tuesday, August 15, 2006 12:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent
 doesn't imply service ready
 
  
 
 Hello all,
 
 I have provided Bill at Adobe with a copy of the WSDL and XSD for 
 the test service. I haven't received a response but assume that he 
 received them. The WSDL and XSD need not be large. For testing 
 purposes, I created a service that had only a single function that I 
 was able to use to reproduce this problem. I also offered to 
 provide that sample service to them.
 
 I'll take a look at www.xmethods.net and see if the error reproduces 
 on some of their publically available services. I'll post back once 
 I know whether or not it reproduces.
 
 Thanks.
 
 --Kaleb
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Franck de Bruijn 
 franck.de.bruijn@ wrote:
 
  Hi Bill,
  
  
  
  Great to see that someone from Adobe is looking into this. I hope 
 Kaleb is
  reading this post and can provide you with the WSDL. I personally 
 did not
  encounter this error myself, but it looks thoroughly investigated 
 by Kaleb.
  
  
  
  If Kaleb is not responding, it's maybe an idea to create a huge 
 WSDL, then
  load it and immediately after the LoadEvent try to call an 
 operation. It
  should fail. If you need help with creating this WSDL I can try. 
 Let me
  know.
  
  
  
  Cheers,
  
  Franck
  
  
  
  _ 
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Bill Sahlas
  Sent: Wednesday, August 09, 2006 2:48 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable = 
 LoadEvent
  doesn't imply service ready
  
  
  
  Howdy, 
  
  
  
  I'd like to reproduce this internally here in the FDS QA lab using 
 some of
  your examples. Can someone on this list forward me a link to a 
 WSDL that is
  publicly accessible with sample code to execute?
  
  
  
  Thanks, Bill
  
  
  
  FDS QA - Adobe Systems Inc.
  
  
  
  _ 
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Franck de Bruijn
  Sent: Tuesday, August 08, 2006 1:59 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable = 
 LoadEvent
  doesn't imply service ready
  
  
  
  Hi Kaleb,
  
  
  
  Cool! Great stuff..
  
  
  
  My guess is that the delay is machine dependent, but not 
 necessarily network
  dependent. I do believe that the LOAD event does indicate that the 
 WSDL
  actually has loaded successfully. Flex will not need any more 
 access to the
  network in order to initialize the web service.
  
  
  
  Anyway, it's a little bit sloppy that the LOAD event does not 
 indicate that
  the webservice is actually ready for use. I consider this a bug if 
 you ask
  me. So, maybe this is something we can put on the wish list???
  
  
  
  Thanks,
  
  Franck
  
  
  
  _ 
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of kaleb_pederson
  Sent: Tuesday, August 08, 2006 7:18 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: WSDLError:Element not resolvable = 
 LoadEvent
  doesn't imply service ready
  
  
  
  Frank,
  
  I did a bit more research into this. I don't need nearly a second 
  for the WebService to be ready after the load event. I just put 
 the 
  whole process in a loop to see what kind of delay I need to make 
 it 
  work on my box (with the service running on my box). 
 Unfortunately, 
  the delay is probably machine and network dependent and, 
 therefore, 
  would have to be different on other machines.
  
  My results were:
  
  res[delay in ms] = # 

[flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-18 Thread ben.clinkinbeard
Very cool, any ideas on this one? :)

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1m=evar=1tidx=1

Ben

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

 Yes, this is fixed internally and the fix will be included in the next
 public release. The LoadEvent won't fire until all remote imports (WSDL
 and Schema) have been fully loaded.
 
  
 
 Best,
 Seth
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Friday, August 18, 2006 10:24 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent
 doesn't imply service ready
 
  
 
 Can we assume this will be corrected in a future release? Either by
 changing when the LoadEvent fires or by adding a separate event to
 listen for?
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Seth Hodgson shodgson@ wrote:
 
  Hi Kaleb,
  
  
  
  Thanks for providing your WSDL/XSD/service code. We've identified and
  fixed the issue internally. The problem was that WSDL parsing
 dispatches
  the load event after the WSDL is loaded and parsed, but without
 properly
  waiting for schema imports to be fetched over the network and parsed.
  The simplest workaround is to avoid schema imports :-) If that isn't
 an
  option, catch the 'Element not resolvable' error and retry your call
  using a Timer on a short delay.
  
  
  
  Thanks again for your help closing out this bug,
  
  Seth
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of kaleb_pederson
  Sent: Tuesday, August 15, 2006 12:28 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: WSDLError:Element not resolvable =
 LoadEvent
  doesn't imply service ready
  
  
  
  Hello all,
  
  I have provided Bill at Adobe with a copy of the WSDL and XSD for 
  the test service. I haven't received a response but assume that he 
  received them. The WSDL and XSD need not be large. For testing 
  purposes, I created a service that had only a single function that I 
  was able to use to reproduce this problem. I also offered to 
  provide that sample service to them.
  
  I'll take a look at www.xmethods.net and see if the error reproduces 
  on some of their publically available services. I'll post back once 
  I know whether or not it reproduces.
  
  Thanks.
  
  --Kaleb
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Franck de Bruijn 
  franck.de.bruijn@ wrote:
  
   Hi Bill,
   
   
   
   Great to see that someone from Adobe is looking into this. I hope 
  Kaleb is
   reading this post and can provide you with the WSDL. I personally 
  did not
   encounter this error myself, but it looks thoroughly investigated 
  by Kaleb.
   
   
   
   If Kaleb is not responding, it's maybe an idea to create a huge 
  WSDL, then
   load it and immediately after the LoadEvent try to call an 
  operation. It
   should fail. If you need help with creating this WSDL I can try. 
  Let me
   know.
   
   
   
   Cheers,
   
   Franck
   
   
   
   _ 
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Bill Sahlas
   Sent: Wednesday, August 09, 2006 2:48 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable = 
  LoadEvent
   doesn't imply service ready
   
   
   
   Howdy, 
   
   
   
   I'd like to reproduce this internally here in the FDS QA lab using 
  some of
   your examples. Can someone on this list forward me a link to a 
  WSDL that is
   publicly accessible with sample code to execute?
   
   
   
   Thanks, Bill
   
   
   
   FDS QA - Adobe Systems Inc.
   
   
   
   _ 
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Franck de Bruijn
   Sent: Tuesday, August 08, 2006 1:59 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable = 
  LoadEvent
   doesn't imply service ready
   
   
   
   Hi Kaleb,
   
   
   
   Cool! Great stuff..
   
   
   
   My guess is that the delay is machine dependent, but not 
  necessarily network
   dependent. I do believe that the LOAD event does indicate that the 
  WSDL

[flexcoders] Re: ComplexType in WSDL with webservice not sending arguments

2006-08-18 Thread ben.clinkinbeard
I get the same result- an empty request that successfully returns an
empty result. Do you have to use the XSD? I am not familiar with these
at all, so I don't understand exactly what purpose it may serve, but I
would not be surprised at all if the WebService library did not
support things like this.

Ben


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

 Hello all,
 
 My webservice has one function, sendStrings(), which takes a 
 sequence of arg0 values, each of which are strings.  Despite the 
 simplicity of the request, I cannot get the web service to send 
 anything but an empty request across (other than variation 9 in 
 which I send XML across).  I have tried every variation that I could 
 think of and have included them below:
 
 I'm hoping that one of you can try this and figure out if this is a 
 bug or if I'm just completely missing something.
 
 Feel free to hit this service as many times as needed to help with 
 this issue:
 
 WSDL: http://kibab.homeip.net:8080/myserv/myserv?wsdl
 XSD: http://kibab.homeip.net:8080/myserv/myserv?xsd=1
 (The crossdomain.xml file is setup to allow everyone access)
 
 If I send Array(One,Two,Three,...) across, the expected result 
 would be: Array([0]One,[1]Two,[2]Three,...).
 
 Here are the different variations I've tried:
 
 /* NOTE: I fully re-initialize the web service each time:
 
 var ws:WebService = new mx.rpc.soap.mxml.WebService();
 ws.addEventListener(LoadEvent.LOAD,loadHandler);
 ws.addEventListener(FaultEvent.FAULT,faultHandler);
 ws.loadWSDL(http://kibab.homeip.net:8080/myserv/myserv?wsdl;);
 // then after the load has completed perform the test
 
 */
 
 trace(variation1);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.arguments = new Array(variation,one);
 op.send();
 
 trace(variation2);
 ws.sendStrings.arguments = new Array(variation,two);
 ws.sendStrings.send();
 
 trace(variation3);
 ws.sendStrings.send(new Array(variation,three));
 
 trace(variation4);
 ws.sendStrings.send(variation,four);
 
 trace(variation5);
 ws.sendStrings(variation,five);
 
 // this function results in a fault event:
 // Unexpected parameter sendStrings found in input arguments.
 trace(variation6);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.arguments = {sendStrings:{arg0:new 
Array(variation,six)}};
 op.send();
  
 trace(variation7);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send({sendStrings:{arg0:new Array(variation,six)}});
 
 trace(variation8);
 var xml:XML = new XML(ns1:sendStrings 
 xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; +
   arg0variation/arg0arg0eight/arg0 +
   /ns1:sendStrings);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send(xml);
 
 trace(variation9);
 // this WORKS (but variation 8 does not)
 var xml:XMLDocument = new XMLDocument(ns1:sendStrings 
 xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; +
   arg0variation/arg0arg0nine/arg0 +
   /ns1:sendStrings);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send(xml);
 
 trace(variation10);
 var op:Operation = ws.getOperation(sendStrings) as Operation;
 op.resultFormat = e4x;
 var args:Object = new Object();
 args.arg0 = new Array(variation,ten);
 op.arguments = args;
 ws.sendStrings();
 
 trace(variation11);
 var op:Operation = ws.getOperation(sendStrings) as Operation;
 op.resultFormat = e4x;
 var args:Object = new Object();
 args.sendStrings = new Object();
 args.sendStrings.arg0 = new Array(variation,eleven);
 op.arguments = args;
 ws.sendStrings();
 
 Please let me know if there is any other information that I can 
 provide to help resolve this issue.
 
 Thanks for the help!
 
 --Kaleb








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Some Cairngorm questions

2006-08-18 Thread ben.clinkinbeard
I'm pretty sure they're called ValueObjects for a reason :)

Ben

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

 As for reusing events and commands from different places, most of what
 I could find from the Cairngorm creators suggest that Commands be
 specific use cases and a Command should always know its context.  I
 suppose if the event payload indicates the context, then you're not
 violating this rule.  I hadn't thought about doing this.
 
 I take Steven literally when he says Cairngorm should be a lightweight 
 framework :-)
 
 
 By something else I was referring to something other than a Command
 (say, a model object) consuming the Delegates.  Anything wrong with
this?
 
 So... you're saying that, for instance, a User vo stored in the Model 
 Locator would not only describe User data fields, but also contain
methods 
 with business logic?  Like methods that could create delegates and
deal with 
 the returned results?  It's not OOTB, so I'm not sure it's
Cairngorm but 
 it's not against the laws of the universe either, it could work.  There 
 *are* examples of vo's out there that do things like track and
increment a 
 static emp_id, or populate new vo properties in the vo constructor with 
 values based on some other value stored in the Model Locator, but
I'm not 
 sure I'd put alot of business logic in there for several reasons; 
other 
 developers familiar with Cairngorm wouldn't think to look for that in 
 there... you'd have to change the Front Controller, Commands, and
Delegate 
 around... and you'd also be storing business logic inside your data
model, 
 which to me would make me feel all itchy.
 
 I think limited logic in the vo's, used to intelligently construct
that vo, 
 would be cool, but I'm not sure I'd expect to see much else in there.
 
 Darren
 
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Darren Houle lokka_@ wrote:
  
   Jeremy...
  
  
   First.  I don't see what value the FrontController adds in Flex
apps.
 My initial thought was that it was important to prevent views
from
   coupling to specific commands.
  
   Yes, if you subscribe to the idea of an MVC pattern then yes, you
 need to do
   this.  And if you're not going to do this then you should either
 design a
   better pattern... or don't use one at all... but don't code
 something that's
   only half Cairngorm.  Mostly because if I'm the developer who comes
 after
   you and has to reverse-engineer your code one day I'd like to know
 where
   things are and not have to quess or re-write it all from scratch :-)
  
  
   That really doesn't hold up though,
   because the views are coupled to specifc events
  
   Yes, Views generate events, but they don't have to be specific,
like:
  
  AddPublicUserToManagerList(user)
  
   they can be generic, like:
  
  AddUserToList(user, public, manager)
  
   That way several different Views can re-use an Event and your
 Command can
   figure out what it should do based on the event args.  There's
pros and
   cons, but that's one way to reduce the number of pieces and parts.
  
  
   each of which results in a specific Command being executed.
   Since the FrontController
   maintains a 1-to-1 map of Cairngorm events to Commands
  
   Not necessarily.  Yes, they are normally 1 to 1, but if you want an
 Event to
   trigger two Commands you can also do this in the Front Controller:
  
  addCommand(AppController.EVENT_ONE, SomeCommand);
  addCommand(AppController.EVENT_ONE, AnotherCommand);
  
  
   why don't views just run the commands directly?
  
   You could, and it's not a terrible thing to argue for fewer pieces,
 like for
   instance Delegates are actually optional, but they do help during
 testing
   and development because it's easier to point a simple Delegate at a
 test
   Service than to find and re-point all the occurances of a Service in
 your
   Commands.  So, yes, you could do without the Front Controller but by
 gaining
   simplicity you'd lose some flexability (as well as confusing another
   Caringorm developer who's pulling their hair out trying to find
 where you
   put your Front Controller.)
  
  
   Next, we're moving most of our remote object calls into the model.
   The logic that controls what parts of the model get persisted,
when,
   and in what order is complex, and our Commands had become huge and
   full of logic.  As a reuslt of the changes, lots of the classes
in the
   model now make remote calls and implement IResponder.  I'm
trying to
   get back to the model of Command kicks off the feature and
then gets
   out of the way.  Is there any rule with Cairngorm that says that
   Commands must do the remote calls?  Is it common to use something
   other than a Command to make remote calls?
  
   Do you mean something else making the call to the Service as in a
   Delegate, or do you mean some other class (maybe a subclass of
Command)
   handling that?  As far as vanilla Cairngorm goes there's really just
   

[flexcoders] Re: Dynamically set method result from Web Service

2006-08-17 Thread ben.clinkinbeard
If you use the IResponder interface you can do this very easily.
IResponder requires you to implement 2 methods.

public function result(data:Object):void
public function fault(info:Object):void

So what you can do is create however many classes you want that
implement the interface, and then call your method like this:

var call:AsyncToken = GroupWS.GetMembers.send();
call.addResponder(implementerOne);
call.addResponder(implementerTwo);

For handling web service calls, you'll be receiving ResultEvent and
FaultEvent objects, so you can do this inside the methods:

var event:ResultEvent = data as ResultEvent;
var event:FaultEvent = info as FaultEvent;

HTH,
Ben
http://www.returnundefined.com/


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

 
 Hi all,
 
 Just a small question, I've been playing around with - is it possible to
 set the result of a method dynamically?  Depending on whose calling the
 method?  I'd like to use one method to populate two different datagrids.
 
 i.e.
 
 private function CurrentUsers():void {
  //Current Users
  MemberTypeId = 0;
  Group = 2;
  HistoricalMembership = false;
  GroupWS.GetMembers.send();
 
//set result method here..??
 }
 
 
 mx:WebService id=GroupWS
 wsdl=http://localhost/Group.asmx?WSDL http://GroupWS.asmx?WSDL 
  useProxy=false
 showBusyCursor=true
 fault=Alert.show(event.toString())
 
mx:operation name=GetMembers result=can this be set
 dynamically?
 mx:request
  MembershipTypeID{GroupMemberTypeId}/MemberTypeID
  HistoricalMembership{HistoricalMembership}/HistoricalMembership
  Group{Group}/Group
 /mx:request
/mx:operation
 
   /mx:WebService








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Some Cairngorm questions

2006-08-17 Thread ben.clinkinbeard
While I am sure there are others, the first thing that comes to mind
concerning your first question is something I did just the other day.
Say you've got a command that you want to execute when you receive
data back from a remote call. For debugging or other purposes, you now
want to be able to execute that command manually, by clicking a
button. Using FrontController and the traditional Cairngorm approach,
all you have to do is dispatch the event in the click handler. Without
FrontController you have to import, instantiate and call execute() on
your Command class. Not to mention you now have instances of your
Command class scattered about.

Or what if you decide that a Command that is called in various places
should be named differently or changed in some other way? Using
FrontController you greatly minimize the places in which you need to
edit your code. I suppose if you never need to execute the same
Command in response to more than one type of event (generally
speaking, not Event), then your approach would be fine.

As I understand it, Cairngorm generally advocates making remote calls
from your delegate classes, not commands. Again, the main advantage I
see here is code centralization. You might have five different
commands that all need to call the same remote method. If something
changes and you need to call that method with different arguments or
need to call a different method altogether, using a delegate means you
change your code once instead of five times.

I am still a relative newcomer to Flex and Cairngorm but the main
advantages I've seen and loved so far are the things I've mentioned
here; code centralization, defined responsibilities and clear
separation of duties for the pieces of your app. Most of the time when
I do question a methodology put forth by Cairngorm I simply fall back
on the thought that its developers are way smarter and more
experienced than myself so they probably have a good reason for
whatever they did :)

Sorry to ramble, HTH.
Ben

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

 Hi,
 
 I've got a couple of questions on my mind that I'm hoping to get some
 opinions on...
 
 First.  I don't see what value the FrontController adds in Flex apps.
  My initial thought was that it was important to prevent views from
 coupling to specific commands.  That really doesn't hold up though,
 because the views are coupled to specifc events, each of which results
 in a specific Command being executed.  Since the FrontController
 maintains a 1-to-1 map of Cairngorm events to Commands, why don't
 views just run the commands directly?
 
 Next, we're moving most of our remote object calls into the model. 
 The logic that controls what parts of the model get persisted, when,
 and in what order is complex, and our Commands had become huge and
 full of logic.  As a reuslt of the changes, lots of the classes in the
 model now make remote calls and implement IResponder.  I'm trying to
 get back to the model of Command kicks off the feature and then gets
 out of the way.  Is there any rule with Cairngorm that says that
 Commands must do the remote calls?  Is it common to use something
 other than a Command to make remote calls?
 
 
 thanks
 
 Jeremy








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-16 Thread ben.clinkinbeard
There is a decent chance I am wrong about this but I think when you
use RemoteObject with FDS you set up some sort of Java - AS class
mapping in a config file.

Ben


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

 Thanks Ben  Franck for your help. Like you Franck I couldn't see why
 it would work to cast one completely unrelated thing to another but
 this is the way it appeared to be being done in the samples.
 
 Of course, what I hadn't got to grips with is that the two samples
 that I was studying are both using RemoteObject rather than WebService
  calls and consequently are returning something that can be cast...
 
 Thanks...
 
 Graham
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Nothing definitive here but I do have a couple of suggestions. Any
  time I see ObjectProxy mentioned in an error description, I
  immediately wonder if makeObjectsBindable is at fault. Try setting it
  to false on your WS and see what happens.
  
  Personally, I always use e4x as my resultFormat (for various reasons),
  so I don't have experience casting to a custom object but if you do
  end up needing to use Franck's suggested methodology I would certainly
  recommend creating a factory that will accept the SOAP return values
  and return an instance of your custom object.
  
  HTH,
  Ben
  
  
  --- In flexcoders@yahoogroups.com, grahampengelly graham@ wrote:
  
   I am just getting up to speed with the Cairngorm architecture
and have
   been struggling with this problem for a while. I have got to the
point
   where I am getting a response from my web service call that has
 the data
   in that I expect but I cannot seem to get it to deserialize into the
   object that I need.
   
   The code (I have used IResponder rather than the cairngorm Responder
   here as suggested during an earlier post here 
   http://groups.yahoo.com/group/flexcoders/message/47366  )
   
public function result( data:Object ):void
{
 var event:ResultEvent = data as ResultEvent;
   
 var testString:String = ;
 for each(var thing:Object in event.result)
 {
 testString +=   + thing +  ;
 }
 //test alert 1
 Alert.show(testString);
 //test alert 2
 Alert.show(event.result.Id =  + event.result.Id + ,
   event.result.Name =  + event.result.Name);
   
 var tObj:TestObj = event.result as TestObj;
 Alert.show(TestObj.Id =  + tObj.Id);
   
}
   The test alerts print out:
test 1: Graham 1
test 2: event.result.Id = 1, event.result.Name = Graham
   
   The subsequent line throws an exception:
   
   TypeError: Error #1034: Type Coercion failed: cannot convert
   mx.utils::[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj.
   
   The object that I am trying to create from the results looks like
 this:
   
public class TestObj implements ValueObject
{
   
public var Id:int;
public var Name:String;
public function TestObj()
{
Id = 0;
Name = ;
}
}
   
   
   I have tried various implementations and can't get the web service
   response to cast to TestObj. To be honest, I wouldn't have thought
 that
   it should cast to TestObj but I have followed all of the code
samples
   for Cairngorm and they all do it like this.
   
   I am using .NET for the web service which may be an issue as the
 samples
   don't. It is returning the following SOAP in event.result.body
   
  ?xml  version=1.0 encoding=utf-8 ?   - # 
 soap:Envelope
   xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   soap:Body  - #  GetTesterResponse xmlns=   - #
   GetTesterResult Id1/Id
   NameGraham/Name/GetTesterResult  
   /GetTesterResponse   /soap:Body   /soap:Envelope
   I know I could manually populate the object with the values but the
   objects I will be deserializing in the application are much more
 complex
   than this which would make a manual approach a pain.
   
   Thanks in advance...
   
   Graham
  
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Operation.arguments is populated but nulls are sent

2006-08-16 Thread ben.clinkinbeard
Cleaning the project did not work but I have stumbled onto something
that looks promising. It looks to be some sort of weird timing issue.

First a little background on my app: I am using Cairngorm and have 2
main delegates, lets call them ClientDelegate and DocumentDelegate,
each mapping to a single web service (ClientWS and DocumentWS). When
my app starts up, I call ClientWS.methodA() via ClientDelegate. After
a couple of selections are made, I call DocumentWS.myMethod() via
DocumentDelegate, and in the result handler for that call, I call
ClientWS.methodA() via ClientDelegate again, but this time with a
completely different set of arguments.

So ClientWS.methodA() gets called (for the second time in the app) as
soon as DocumentWS.myMethod() returns. The odd 'fix' that I have
discovered is to put a trace() call just before invoking
DocumentWS.myMethod(). It doesn't work if I simply trace out a string
literal (trace(weirdness);), but if I trace a property or object,
something that might take a couple of milliseconds to process,
everything works perfectly. Currently I have this:

var op:mx.rpc.soap.Operation = service.getOperation(GetDocument) as
Operation;
op.resultFormat = e4x;
trace(op.service.requestTimeout);

Very very strange. I would love to understand what is going on here,
can anyone clarify or venture a guess?

Thanks,
Ben


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

 I mean do a Project  Clean to rebuild the SWF from scratch.
 Flashlog.txt would be in c:\documents and
 settings\account\flashlog.txt by default, though you may not have it
 if it's not configured.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 15, 2006 9:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Operation.arguments is populated but nulls are
 sent
 
  
 
 This was built from scratch in Flex 2, never even had 1.5 installed.
 Not sure what you mean by 'build clean'. Where would flashlog.txt be?
 I will try clearing the bin folder tomorrow and see what happens.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  Maybe it's some odd timing problem? Any profiler settings from Flex
 1.5
  turned on? Have you looked to see if you have a flashlog.txt file that
  has any info in it? Running in the debugger (even with no breakpoints)
  would also let you see the output and if there's anything there.
 You've
  built clean I assume. Delete everything in the bin folder anyway (with
  FB closed) and see if that changes anything?
  
  
  
  Sounds strange,
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Tuesday, August 15, 2006 11:54 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Operation.arguments is populated but nulls
 are
  sent
  
  
  
  OK, the issue seems to be isolated to my machine. The error began
  happening again, so I sent a coworker the link to the file on my
  machine. He can run the app successfully with no issues whatsoever,
  while I still cannot. I have tried clearing my cache, closing Flex
  Builder and restarting my machine but nothing seems to help. It seems
  like this has to be related to something getting screwed up on my
  machine because it also usually goes away by the time I come in the
  next day.
  
  Is there anything else I can try clearing or resetting? This has to be
  'a bug', no?
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   You should be calling op.send(), if you call GetDataByGrouping()
  you're
   ignoring the arguments.
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of ben.clinkinbeard
   Sent: Monday, August 14, 2006 2:14 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Operation.arguments is populated but nulls are
   sent
   
   
   
   I am having a very odd error, and it only happens sometimes. I am
   creating an object structure and then assigning that to the
 arguments
   property of my mx.rpc.soap.Operation object like this:
   
   op.arguments = args;
   
   I then call the SOAP method like this:
   
   var call:AsyncToken = service.GetDataByGrouping();
   call.addResponder(responder);
   
   Sometimes (I've not figured out a pattern

[flexcoders] SOLVED: Operation.arguments is populated but nulls are sent

2006-08-16 Thread ben.clinkinbeard
OK, its definitely a timing issue. Rather than dispatching the next
CairngormEvent (that triggers the new call) right in my result
handler, I moved the event dispatch to another function, and am
calling that with a Timer set to a 1 millisecond delay. Works perfectly.

So I am not sure what exactly the issue is, but its definitely related
to timing. Very odd because my arguments object was always correctly
populated (so its not a matter of vars not being ready), but the XML
request that Flex generates was all fubar.

Thanks,
Ben

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

 I mean do a Project  Clean to rebuild the SWF from scratch.
 Flashlog.txt would be in c:\documents and
 settings\account\flashlog.txt by default, though you may not have it
 if it's not configured.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 15, 2006 9:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Operation.arguments is populated but nulls are
 sent
 
  
 
 This was built from scratch in Flex 2, never even had 1.5 installed.
 Not sure what you mean by 'build clean'. Where would flashlog.txt be?
 I will try clearing the bin folder tomorrow and see what happens.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  Maybe it's some odd timing problem? Any profiler settings from Flex
 1.5
  turned on? Have you looked to see if you have a flashlog.txt file that
  has any info in it? Running in the debugger (even with no breakpoints)
  would also let you see the output and if there's anything there.
 You've
  built clean I assume. Delete everything in the bin folder anyway (with
  FB closed) and see if that changes anything?
  
  
  
  Sounds strange,
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Tuesday, August 15, 2006 11:54 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Operation.arguments is populated but nulls
 are
  sent
  
  
  
  OK, the issue seems to be isolated to my machine. The error began
  happening again, so I sent a coworker the link to the file on my
  machine. He can run the app successfully with no issues whatsoever,
  while I still cannot. I have tried clearing my cache, closing Flex
  Builder and restarting my machine but nothing seems to help. It seems
  like this has to be related to something getting screwed up on my
  machine because it also usually goes away by the time I come in the
  next day.
  
  Is there anything else I can try clearing or resetting? This has to be
  'a bug', no?
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   You should be calling op.send(), if you call GetDataByGrouping()
  you're
   ignoring the arguments.
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of ben.clinkinbeard
   Sent: Monday, August 14, 2006 2:14 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Operation.arguments is populated but nulls are
   sent
   
   
   
   I am having a very odd error, and it only happens sometimes. I am
   creating an object structure and then assigning that to the
 arguments
   property of my mx.rpc.soap.Operation object like this:
   
   op.arguments = args;
   
   I then call the SOAP method like this:
   
   var call:AsyncToken = service.GetDataByGrouping();
   call.addResponder(responder);
   
   Sometimes (I've not figured out a pattern), Flex somehow loses all
 of
   the contents of the arguments property and sends nulls. It is
 sending
   the same number of nulls as there were properties though, so I am
   super confused. The Operation.arguments object is still populated
 with
   the correct data, but none of it gets sent. Does anyone have any
 idea
   what is going on here? I am pasting the entire method from my
 delegate
   below. 
   
   // in the delegate constructor
   service = ServiceLocator.getInstance().getService(cmws) as
  WebService;
   
   // in the method called by my command class
   var op:Operation = service.getOperation(GetDataByGrouping) as
   Operation;
   op.resultFormat = e4x;
   // temp object to store arguments
   var args:Object = new Object();
   args.groupingRequests = new Object

[flexcoders] Re: SOLVED: Operation.arguments is populated but nulls are sent

2006-08-16 Thread ben.clinkinbeard
Spoke too soon. This fixes the issue in the debug files that FB
generates, but if I view the non-debug files in IE I still get the
same problem. Works fine in FF.

Ben


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

 OK, its definitely a timing issue. Rather than dispatching the next
 CairngormEvent (that triggers the new call) right in my result
 handler, I moved the event dispatch to another function, and am
 calling that with a Timer set to a 1 millisecond delay. Works perfectly.
 
 So I am not sure what exactly the issue is, but its definitely related
 to timing. Very odd because my arguments object was always correctly
 populated (so its not a matter of vars not being ready), but the XML
 request that Flex generates was all fubar.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  I mean do a Project  Clean to rebuild the SWF from scratch.
  Flashlog.txt would be in c:\documents and
  settings\account\flashlog.txt by default, though you may not have it
  if it's not configured.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of ben.clinkinbeard
  Sent: Tuesday, August 15, 2006 9:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Operation.arguments is populated but
nulls are
  sent
  
   
  
  This was built from scratch in Flex 2, never even had 1.5 installed.
  Not sure what you mean by 'build clean'. Where would flashlog.txt be?
  I will try clearing the bin folder tomorrow and see what happens.
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   Maybe it's some odd timing problem? Any profiler settings from Flex
  1.5
   turned on? Have you looked to see if you have a flashlog.txt
file that
   has any info in it? Running in the debugger (even with no
breakpoints)
   would also let you see the output and if there's anything there.
  You've
   built clean I assume. Delete everything in the bin folder anyway
(with
   FB closed) and see if that changes anything?
   
   
   
   Sounds strange,
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of ben.clinkinbeard
   Sent: Tuesday, August 15, 2006 11:54 AM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Operation.arguments is populated but nulls
  are
   sent
   
   
   
   OK, the issue seems to be isolated to my machine. The error began
   happening again, so I sent a coworker the link to the file on my
   machine. He can run the app successfully with no issues whatsoever,
   while I still cannot. I have tried clearing my cache, closing Flex
   Builder and restarting my machine but nothing seems to help. It
seems
   like this has to be related to something getting screwed up on my
   machine because it also usually goes away by the time I come in the
   next day.
   
   Is there anything else I can try clearing or resetting? This has
to be
   'a bug', no?
   
   Thanks,
   Ben
   
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , Matt Chotin mchotin@ wrote:
   
You should be calling op.send(), if you call GetDataByGrouping()
   you're
ignoring the arguments.



Matt





From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   ] On
Behalf Of ben.clinkinbeard
Sent: Monday, August 14, 2006 2:14 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Operation.arguments is populated but
nulls are
sent



I am having a very odd error, and it only happens sometimes. I am
creating an object structure and then assigning that to the
  arguments
property of my mx.rpc.soap.Operation object like this:

op.arguments = args;

I then call the SOAP method like this:

var call:AsyncToken = service.GetDataByGrouping();
call.addResponder(responder);

Sometimes (I've not figured out a pattern), Flex somehow loses all
  of
the contents of the arguments property and sends nulls. It is
  sending
the same number of nulls as there were properties though, so I am
super confused. The Operation.arguments object is still populated
  with
the correct data, but none of it gets sent. Does anyone have any
  idea
what is going on here? I am pasting the entire method from my
  delegate
below

[flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread ben.clinkinbeard
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/

Ben
http://www.returnundefined.com/

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

 Hi everyone,
 
  
 
 I am having some difficulty parsing .Net web service results.  The
problem
 lies in the fact that Flex's XML parser doesn't like un-typed xmlns
 declarations of the type found by default in .Net web services.  Try the
 following:
 
  
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 creationComplete=doIt()
 
 mx:Script
 
 ![CDATA[
 
 function doIt(){
 
 var myXML:XML =
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 
  
 soap:Body
 
  
 a xmlns:soap=http://tempuri.org/ 
 
  
 bHi/b
 
  
 /a
 
  
 /soap:Body
 
  
 /soap:Envelope
 
 trace(Node B from
myXML:
 +myXML.descendants(b));
 
 
 
 var myXML2:XML =
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 
  
 soap:Body
 
  
 a xmlns=http://tempuri.org/ 
 
  
 bHi/b
 
  
 /a
 
  
 /soap:Body
 
  
 /soap:Envelope
 
 trace(Node B from
myXML2:
 +myXML2.descendants(b));
 
 }
 
 ]]
 
 /mx:Script
 
 /mx:Application
 
  
 
  
 
  
 
 This code results in the following traces:
 
  
 
 Node B from myXML: Hi
 
 Node B from myXML2:
 
  
 
 As you can see, the only difference between the two blocks of XML is
that
 the successful one uses xmlns:soap= while the unsuccessful one uses
 xmlns=.  While I am no SOAP expert, I don't believe the 2nd one is
invalid
 syntax, so there should be no reason for the XML parser to ignore
it, right?
 
  
 
 Anyone have a workaround for me that doesn't require modifying the web
 services? (I don't have administrative access to them).
 
  
 
 Thanks!
 
  
 
 -tom








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread ben.clinkinbeard
Hi Tom,

Sorry, I've not used the descendants method before and I just assumed
the approach I use would work. If you use .. instead it will work as
expected.

namespace temp = http://tempuri.org/;;
use namespace temp;
trace(Node B from myXML2:  + myXML2..b);

HTH,
Ben


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

 Thanks, Ben - I've seen this before (I believe you directed me to
this page
 on a previous issue).  However, I don't understand how it applies to my
 particular problem - how would you fix my example using the namespace
 directive?
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, August 16, 2006 12:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
 

http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
 ex-2as3/
 
 Ben
 http://www.returnundefined.com/
 
 --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
 
  Hi everyone,
  
   
  
  I am having some difficulty parsing .Net web service results.  The
 problem
  lies in the fact that Flex's XML parser doesn't like un-typed xmlns
  declarations of the type found by default in .Net web services. 
Try the
  following:
  
   
  
   
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  creationComplete=doIt()
  
  mx:Script
  
  ![CDATA[
  
  function doIt(){
  
  var myXML:XML =
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  
   
  soap:Body
  
   
  a xmlns:soap=http://tempuri.org/ 
  
   
  bHi/b
  
   
  /a
  
   
  /soap:Body
  
   
  /soap:Envelope
  
  trace(Node B from
 myXML:
  +myXML.descendants(b));
  
  
  
  var myXML2:XML =
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  
   
  soap:Body
  
   
  a xmlns=http://tempuri.org/ 
  
   
  bHi/b
  
   
  /a
  
   
  /soap:Body
  
   
  /soap:Envelope
  
  trace(Node B from
 myXML2:
  +myXML2.descendants(b));
  
  }
  
  ]]
  
  /mx:Script
  
  /mx:Application
  
   
  
   
  
   
  
  This code results in the following traces:
  
   
  
  Node B from myXML: Hi
  
  Node B from myXML2:
  
   
  
  As you can see, the only difference between the two blocks of XML is
 that
  the successful one uses xmlns:soap= while the unsuccessful one uses
  xmlns=.  While I am no SOAP expert, I don't believe the 2nd one is
 invalid
  syntax, so there should be no reason for the XML parser to ignore
 it, right?
  
   
  
  Anyone have a workaround for me that doesn't require modifying the web
  services? (I don't have administrative access to them).
  
   
  
  Thanks!
  
   
  
  -tom
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Web services or FDS: which are you using?

2006-08-16 Thread ben.clinkinbeard
Well, I don't have anything to miss since I've not used FDS and don't
have experience with Java or CF. I am currently working in a .NET
shop, so WS are really the only viable choice (barring WebOrb or
whatever).

My app pulls in reams of data from the web services, and I like that I
can receive it as XML. The .. operator is a godsend when you're
dealing with data that might be 15 levels deep in the return 'object'.

Ben


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

 this is actually a topic I've wondered about.  I'm using
RemoteObjects with
 CF/Java as it is just uber kewl to have this serialisation of
 AS-Java/CFC.  Using webservices you lose this kewlness, but is it
really a
 missed thing for you all using web services?  Or maybe its the
application
 type that can drive this, eh?  A phat Flex app with some really
large forms
 and complex data model my scream for Remote Objects, but a Flex app
doing
 more display of data may not.  ???
 
 DK
 
 On 8/16/06, Dave Wolf [EMAIL PROTECTED] wrote:
 
  Ben,
 
  We have been huge proponents of using Web Services with Flex for
  nearly two years now.  The majority of the applications we develop for
  folks use either SOAP or REST styled web services.
 
  Some of our clients do use CF and / or RemoteObject back-ends and we
  work into their infrastructures, but left to our own devices, our
  reccomendation has always been Web Services.
 
  --
  Dave Wolf
  Cynergy Systems, Inc.
  Adobe Flex Alliance Partner
  http://www.cynergysystems.com
  http://www.cynergysystems.com/blogs
 
  Email:  [EMAIL PROTECTED]
  Office: 866-CYNERGY
 
 
  --- In flexcoders@yahoogroups.com, ben.clinkinbeard
  ben.clinkinbeard@ wrote:
  
   In my ongoing crusade to increase the attention given by Adobe
to web
   service support in Flex, I decided to do a little impromptu
survey. My
   feeling is that its a mistake to focus so heavily on FDS in
regards to
   articles, tutorials and the like when such a small percentage of
   organizations will actually deploy the technology.
  
   So, which are you using? I am more interested in actual production
   apps, rather than personal projects used for learning or
   experimentation purposes.
  
   Personally, I am evaluating Flex as the front end for an application
   that relies heavily on .NET web services.
  
   Ben
   http://www.returnundefined.com/
  
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread ben.clinkinbeard
Don't get me started on default namespaces in Flex/AS3... :)

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

 Awesome!  That's got it!  Thanks so much.  Seems odd that we have to
 manually declare these namespaces just to parse a little XML,
doesn't it?
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, August 16, 2006 2:31 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
 
 Hi Tom,
 
 Sorry, I've not used the descendants method before and I just assumed
 the approach I use would work. If you use .. instead it will work as
 expected.
 
 namespace temp = http://tempuri.org/;;
 use namespace temp;
 trace(Node B from myXML2:  + myXML2..b);
 
 HTH,
 Ben
 
 
 --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
 
  Thanks, Ben - I've seen this before (I believe you directed me to
 this page
  on a previous issue).  However, I don't understand how it applies
to my
  particular problem - how would you fix my example using the namespace
  directive?
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of ben.clinkinbeard
  Sent: Wednesday, August 16, 2006 12:46 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
  
 

http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
  ex-2as3/
  
  Ben
  http://www.returnundefined.com/
  
  --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
  
   Hi everyone,
   

   
   I am having some difficulty parsing .Net web service results.  The
  problem
   lies in the fact that Flex's XML parser doesn't like un-typed xmlns
   declarations of the type found by default in .Net web services. 
 Try the
   following:
   

   

   
   ?xml version=1.0 encoding=utf-8?
   
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
   creationComplete=doIt()
   
   mx:Script
   
   ![CDATA[
   
   function doIt(){
   
   var myXML:XML =
   soap:Envelope
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   

   soap:Body
   

   a xmlns:soap=http://tempuri.org/ 
   

   bHi/b
   

   /a
   

   /soap:Body
   

   /soap:Envelope
   
   trace(Node B from
  myXML:
   +myXML.descendants(b));
   
   
   
   var myXML2:XML =
   soap:Envelope
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   

   soap:Body
   

   a xmlns=http://tempuri.org/ 
   

   bHi/b
   

   /a
   

   /soap:Body
   

   /soap:Envelope
   
   trace(Node B from
  myXML2:
   +myXML2.descendants(b));
   
   }
   
   ]]
   
   /mx:Script
   
   /mx:Application
   

   

   

   
   This code results in the following traces:
   

   
   Node B from myXML: Hi
   
   Node B from myXML2:
   

   
   As you can see, the only difference between the two blocks of XML is
  that
   the successful one uses xmlns:soap= while the unsuccessful one
uses
   xmlns=.  While I am no SOAP expert, I don't believe the 2nd one is
  invalid
   syntax, so there should be no reason for the XML parser to ignore
  it, right?
   

   
   Anyone have a workaround for me that doesn't require modifying
the web
   services? (I don't have administrative access to them).
   

   
   Thanks!
   

   
   -tom
  
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: SOLVED: Operation.arguments is populated but nulls are sent

2006-08-16 Thread ben.clinkinbeard
OK, this is ridiculous. All of a sudden, out of nowhere, the problem
is back in full force. No amount of delay resolves the problem anymore.

This is insane.

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

 OK, its definitely a timing issue. Rather than dispatching the next
 CairngormEvent (that triggers the new call) right in my result
 handler, I moved the event dispatch to another function, and am
 calling that with a Timer set to a 1 millisecond delay. Works perfectly.
 
 So I am not sure what exactly the issue is, but its definitely related
 to timing. Very odd because my arguments object was always correctly
 populated (so its not a matter of vars not being ready), but the XML
 request that Flex generates was all fubar.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  I mean do a Project  Clean to rebuild the SWF from scratch.
  Flashlog.txt would be in c:\documents and
  settings\account\flashlog.txt by default, though you may not have it
  if it's not configured.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of ben.clinkinbeard
  Sent: Tuesday, August 15, 2006 9:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Operation.arguments is populated but
nulls are
  sent
  
   
  
  This was built from scratch in Flex 2, never even had 1.5 installed.
  Not sure what you mean by 'build clean'. Where would flashlog.txt be?
  I will try clearing the bin folder tomorrow and see what happens.
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   Maybe it's some odd timing problem? Any profiler settings from Flex
  1.5
   turned on? Have you looked to see if you have a flashlog.txt
file that
   has any info in it? Running in the debugger (even with no
breakpoints)
   would also let you see the output and if there's anything there.
  You've
   built clean I assume. Delete everything in the bin folder anyway
(with
   FB closed) and see if that changes anything?
   
   
   
   Sounds strange,
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of ben.clinkinbeard
   Sent: Tuesday, August 15, 2006 11:54 AM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Operation.arguments is populated but nulls
  are
   sent
   
   
   
   OK, the issue seems to be isolated to my machine. The error began
   happening again, so I sent a coworker the link to the file on my
   machine. He can run the app successfully with no issues whatsoever,
   while I still cannot. I have tried clearing my cache, closing Flex
   Builder and restarting my machine but nothing seems to help. It
seems
   like this has to be related to something getting screwed up on my
   machine because it also usually goes away by the time I come in the
   next day.
   
   Is there anything else I can try clearing or resetting? This has
to be
   'a bug', no?
   
   Thanks,
   Ben
   
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , Matt Chotin mchotin@ wrote:
   
You should be calling op.send(), if you call GetDataByGrouping()
   you're
ignoring the arguments.



Matt





From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   ] On
Behalf Of ben.clinkinbeard
Sent: Monday, August 14, 2006 2:14 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Operation.arguments is populated but
nulls are
sent



I am having a very odd error, and it only happens sometimes. I am
creating an object structure and then assigning that to the
  arguments
property of my mx.rpc.soap.Operation object like this:

op.arguments = args;

I then call the SOAP method like this:

var call:AsyncToken = service.GetDataByGrouping();
call.addResponder(responder);

Sometimes (I've not figured out a pattern), Flex somehow loses all
  of
the contents of the arguments property and sends nulls. It is
  sending
the same number of nulls as there were properties though, so I am
super confused. The Operation.arguments object is still populated
  with
the correct data, but none of it gets sent. Does anyone have any
  idea
what is going on here? I am pasting the entire method from my
  delegate
below. 

// in the delegate

[flexcoders] Re: Operation.arguments is populated but nulls are sent

2006-08-15 Thread ben.clinkinbeard
 if you call GetDataByGrouping() you're ignoring the arguments.
I don't think that is the case. That is how I call all of my SOAP
methods and all but the one in question work every time, and even this
one usually works.

I tried op.send() and it produces the exact same result as before. I
really need to get this figured out. I am doing a presentation on Flex
to some senior people in our group on Friday to tout its abilities and
a web service intermittently failing is not going to help my cause.

Any help is greatly appreciated.

Thanks,
Ben


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

 You should be calling op.send(), if you call GetDataByGrouping() you're
 ignoring the arguments.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 14, 2006 2:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Operation.arguments is populated but nulls are
 sent
 
  
 
 I am having a very odd error, and it only happens sometimes. I am
 creating an object structure and then assigning that to the arguments
 property of my mx.rpc.soap.Operation object like this:
 
 op.arguments = args;
 
 I then call the SOAP method like this:
 
 var call:AsyncToken = service.GetDataByGrouping();
 call.addResponder(responder);
 
 Sometimes (I've not figured out a pattern), Flex somehow loses all of
 the contents of the arguments property and sends nulls. It is sending
 the same number of nulls as there were properties though, so I am
 super confused. The Operation.arguments object is still populated with
 the correct data, but none of it gets sent. Does anyone have any idea
 what is going on here? I am pasting the entire method from my delegate
 below. 
 
 // in the delegate constructor
 service = ServiceLocator.getInstance().getService(cmws) as WebService;
 
 // in the method called by my command class
 var op:Operation = service.getOperation(GetDataByGrouping) as
 Operation;
 op.resultFormat = e4x;
 // temp object to store arguments
 var args:Object = new Object();
 args.groupingRequests = new Object();
 args.groupingRequests.GroupName = RPRTool;
 args.groupingRequests.Parameters = new Array();
 ... populate Parameters array ...
 op.arguments = args; 
 var call:AsyncToken = service.GetDataByGrouping();
 call.addResponder(responder);
 
 // results in sendign an object like this
 ns1:groupingRequests
 xmlns:ns1=http://fmr.com/BackOffice/ClientMeasures
 http://fmr.com/BackOffice/ClientMeasures 
 ns1:DataGroupingRequest/
 ns1:DataGroupingRequest/
 ns1:DataGroupingRequest/
 
 Ben








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Operation.arguments is populated but nulls are sent

2006-08-15 Thread ben.clinkinbeard
Yes, I actually just finished about a 20 minute 'step into' session
where I tried to monitor every step along the way (there are TONS).
Unfortunately, it was near impossible to follow the flow of control
and figure out where they're getting lost. op.arguments retains the
correct data even after the call, so something is happening during the
encoding that is not copying the values correctly. The values do not
seem to get passed into the AsyncToken even. Below is a piece I copied
from the debugger that shows the args object (which gets assigned to
op.arguments) correctly populated but the token with empty nodes in
its body property. I am at a complete loss.


pc = Operation.as$39.OperationPendingCall (@23b2a61)
args = Object (@235b881)
groupingRequests = Object (@235b781)
GroupName = RPRTool
Parameters = Array (@2350df1)
[0] = Object (@235b701)
Name = PLAN_N1
Value = 78167
[1] = Object (@235b6e1)
[2] = Object (@235b6c1)
[3] = Object (@235b741)
[4] = Object (@235b441)
[5] = Object (@235b181)
[6] = Object (@235b261)
[7] = Object (@235b681)
[8] = Object (@235bf01)
[9] = Object (@235bea1)
[10] = Object (@235b521)
[11] = Object (@235be41)
[12] = Object (@235bca1)
length = 13 [0xd]
headers = Array (@2357821)
token = mx.rpc.AsyncToken (@2129f61)
message = mx.messaging.messages.SOAPMessage (@2050c59)
body = ?xml version=1.0 
encoding=utf-8?\nSOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;SOAP-ENV:BodyGetDataByGrouping
xmlns=http://fmr.com/BackOffice/ClientMeasures;ns1:groupingRequests
xmlns:ns1=http://server.com/BackOffice/ClientMeasures;ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
/ns1:DataGroupingRequest /ns1:DataGroupingRequest
//ns1:groupingRequests/GetDataByGrouping/SOAP-ENV:Body/SOAP-ENV:Envelope
clientId = DirectHTTPChannel0
contentType = text/xml; charset=utf-8
destination = DefaultHTTP
headers = Object (@2259ba1)
DSEndpoint = direct_http_channel
httpHeaders = Object (@23b2921)
SOAPAction =
http://server.com/BackOffice/ClientMeasures/GetDataByGrouping;
messageId = D3441EA6-EBB1-4117-ACA6-11FE678DDBFA
method = POST
recordHeaders = false
timestamp = 0 [0x0]
timeToLive = 0 [0x0]
url = http://server/Webservices/ClientMeasures.asmx;
responders = null
result = null



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

 have you tried using the debugger to see when and where these args
turn up
 null?
 
 DK
 
 On 8/15/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
   if you call GetDataByGrouping() you're ignoring the arguments.
  I don't think that is the case. That is how I call all of my SOAP
  methods and all but the one in question work every time, and even this
  one usually works.
 
  I tried op.send() and it produces the exact same result as before. I
  really need to get this figured out. I am doing a presentation on Flex
  to some senior people in our group on Friday to tout its abilities and
  a web service intermittently failing is not going to help my cause.
 
  Any help is greatly appreciated.
 
  Thanks,
  Ben
 
 
  --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
  
   You should be calling op.send(), if you call GetDataByGrouping()
you're
   ignoring the arguments.
  
  
  
   Matt
  
  
  
   
  
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
   Behalf Of ben.clinkinbeard
   Sent: Monday, August 14, 2006 2:14 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Operation.arguments is populated but nulls are
   sent
  
  
  
   I am having a very odd error, and it only happens sometimes. I am
   creating an object structure and then assigning

[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-15 Thread ben.clinkinbeard
That results in this structure being created and sent:

SelectedPlans xmlns=
   item xmlns=78167/item
   item xmlns=78173/item
/SelectedPlans

Arrays do not seem to have their names preserved consistently. I am
assuming this is affected by the WSDL. Please, get some clarification
into the community on these issues. If my experience is
representative, companies evaluating Flex for web service-based
applications are going to be very discouraged by the lack of
documentation and may once again disregard it as a viable solution. I
would love nothing more than to convince my superiors to use Flex but
with the issues I have been running into it is making it very hard for
me to stand behind it as a solid platform for development that is
heavily reliant on web services.

Ben


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

 Shouldn't you have another array, PlanNumber hanging off the object (not
 array) SelectedPlans and be pushing your numbers into that?
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 14, 2006 6:11 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 Hi Matt,
 
 My current problem and questions are concerning serialization, not
 deserialization. Flex is creating SOAP requests differently for 2
 methods of the same service, even though the AS is virtually
 identical. My only guess is that its due to the WSDL. Here is a recap
 from my previous posts.
 
 // SERIALIZES AS EXPECTED AND WORKS CORRECTLY
 args.ContainersToRetrieve = new Array();
 args.ContainersToRetrieve.push(Client);
 args.ContainersToRetrieve.push(IndustryTrends);
 
 // RESULTING SOAP CALL
 ContainersToRetrieve
 ContainerTypeClient/ContainerType
 ContainerTypeIndustryTrends/ContainerType
 
 // CORRESPONDING PIECE OF WSDL
 s:element minOccurs=0 maxOccurs=unbounded name=ContainerType
 type=tns:ContainerType/
 (tns:ContainerType maps to an enum collection)
 
 // 
 
 // DOES NOT SERIALIZE AS EXPECTED, CAUSING AN ERROR IN THE WEB SERVICE
 args.RPRSelections = new Object();
 args.RPRSelections.SelectedPlans = new Array();
 for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
 {
 args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
 }
 
 // RESULTING SOAP CALL
 // ignores the SelectedPlans array that was created.
 RPRSelections
 item78167/item
 item78173/item
 
 // WHAT IT SHOULD LOOK LIKE
 RPRSelections
 SelectedPlans
 PlanNumber78167/PlanNumber
 PlanNumber78173/PlanNumber
 SelectedPlans
 /RPRSelections
 
 // CORRESPONDING PIECE OF WSDL
 s:element minOccurs=0 maxOccurs=1 name=SelectedPlans
 type=tns:ArrayOfString/
 
 s:complexType name=ArrayOfString
 s:sequence
 s:element minOccurs=0 maxOccurs=unbounded name=PlanNumber
 nillable=true type=s:string/
 /s:sequence
 /s:complexType
 
 I would LOVE to know how to fix this as right now its a total deal
 breaker for my project.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  I'm not sure how WSDL structure would affect deserialization. We have
  mappings of the standard types into ActionScript versions. There's not
  a huge number of those types so we map as best as possible. Are you
  looking for those exact details? As far as RPC vs. doc-literal, I
  believe that the WSDL for a doc-lit generally provides less
 information
  that we can use so we're less likely to be able serialize or
 deserialize
  with as much accuracy as we attempt in RPC. If you use
  resultFormat=xml or e4x of course the doc-lit services will work
 fine,
  though I've seen serialization work fine with doc-lit too.
  
  
  
  Sorry, not sure if that is very helpful. If you have a more specific
  issue I might be able to forward that in, though the engineer who
 really
  knows our library at this point is on vacation. 
  
  
  
  Matt
  
  
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Friday, August 11, 2006 10:48 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Clarification needed on how WSDL affects
  conversion of AS objects to SOAP
  
  
  
  Hi Matt,
  
  The types of things I would like to see explained are what I mentioned
  in my previous posts. Stuff like how does
  WSDL structure affect Flex's serialization of objects? (this is a big
  one) and what differences are there in Flex's treatment of Doc/Literal
  vs RPC/Encoded web services?
  
  I would also be more than willing to alpha/beta test any new
  functionality as my entire app revolves around .NET web services.
  
  Thanks,
  Ben
  
  --- In flexcoders

[flexcoders] Web services or FDS: which are you using?

2006-08-15 Thread ben.clinkinbeard
In my ongoing crusade to increase the attention given by Adobe to web
service support in Flex, I decided to do a little impromptu survey. My
feeling is that its a mistake to focus so heavily on FDS in regards to
articles, tutorials and the like when such a small percentage of
organizations will actually deploy the technology.

So, which are you using? I am more interested in actual production
apps, rather than personal projects used for learning or
experimentation purposes.

Personally, I am evaluating Flex as the front end for an application
that relies heavily on .NET web services.

Ben
http://www.returnundefined.com/





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Operation.arguments is populated but nulls are sent

2006-08-15 Thread ben.clinkinbeard
OK, the issue seems to be isolated to my machine. The error began
happening again, so I sent a coworker the link to the file on my
machine. He can run the app successfully with no issues whatsoever,
while I still cannot. I have tried clearing my cache, closing Flex
Builder and restarting my machine but nothing seems to help. It seems
like this has to be related to something getting screwed up on my
machine because it also usually goes away by the time I come in the
next day.

Is there anything else I can try clearing or resetting? This has to be
'a bug', no?

Thanks,
Ben


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

 You should be calling op.send(), if you call GetDataByGrouping() you're
 ignoring the arguments.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 14, 2006 2:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Operation.arguments is populated but nulls are
 sent
 
  
 
 I am having a very odd error, and it only happens sometimes. I am
 creating an object structure and then assigning that to the arguments
 property of my mx.rpc.soap.Operation object like this:
 
 op.arguments = args;
 
 I then call the SOAP method like this:
 
 var call:AsyncToken = service.GetDataByGrouping();
 call.addResponder(responder);
 
 Sometimes (I've not figured out a pattern), Flex somehow loses all of
 the contents of the arguments property and sends nulls. It is sending
 the same number of nulls as there were properties though, so I am
 super confused. The Operation.arguments object is still populated with
 the correct data, but none of it gets sent. Does anyone have any idea
 what is going on here? I am pasting the entire method from my delegate
 below. 
 
 // in the delegate constructor
 service = ServiceLocator.getInstance().getService(cmws) as WebService;
 
 // in the method called by my command class
 var op:Operation = service.getOperation(GetDataByGrouping) as
 Operation;
 op.resultFormat = e4x;
 // temp object to store arguments
 var args:Object = new Object();
 args.groupingRequests = new Object();
 args.groupingRequests.GroupName = RPRTool;
 args.groupingRequests.Parameters = new Array();
 ... populate Parameters array ...
 op.arguments = args; 
 var call:AsyncToken = service.GetDataByGrouping();
 call.addResponder(responder);
 
 // results in sendign an object like this
 ns1:groupingRequests
 xmlns:ns1=http://fmr.com/BackOffice/ClientMeasures
 http://fmr.com/BackOffice/ClientMeasures 
 ns1:DataGroupingRequest/
 ns1:DataGroupingRequest/
 ns1:DataGroupingRequest/
 
 Ben







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Operation.arguments is populated but nulls are sent

2006-08-15 Thread ben.clinkinbeard
This was built from scratch in Flex 2, never even had 1.5 installed.
Not sure what you mean by 'build clean'. Where would flashlog.txt be?
I will try clearing the bin folder tomorrow and see what happens.

Thanks,
Ben

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

 Maybe it's some odd timing problem?  Any profiler settings from Flex 1.5
 turned on?  Have you looked to see if you have a flashlog.txt file that
 has any info in it?  Running in the debugger (even with no breakpoints)
 would also let you see the output and if there's anything there.  You've
 built clean I assume.  Delete everything in the bin folder anyway (with
 FB closed) and see if that changes anything?
 
  
 
 Sounds strange,
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 15, 2006 11:54 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Operation.arguments is populated but nulls are
 sent
 
  
 
 OK, the issue seems to be isolated to my machine. The error began
 happening again, so I sent a coworker the link to the file on my
 machine. He can run the app successfully with no issues whatsoever,
 while I still cannot. I have tried clearing my cache, closing Flex
 Builder and restarting my machine but nothing seems to help. It seems
 like this has to be related to something getting screwed up on my
 machine because it also usually goes away by the time I come in the
 next day.
 
 Is there anything else I can try clearing or resetting? This has to be
 'a bug', no?
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  You should be calling op.send(), if you call GetDataByGrouping()
 you're
  ignoring the arguments.
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Monday, August 14, 2006 2:14 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Operation.arguments is populated but nulls are
  sent
  
  
  
  I am having a very odd error, and it only happens sometimes. I am
  creating an object structure and then assigning that to the arguments
  property of my mx.rpc.soap.Operation object like this:
  
  op.arguments = args;
  
  I then call the SOAP method like this:
  
  var call:AsyncToken = service.GetDataByGrouping();
  call.addResponder(responder);
  
  Sometimes (I've not figured out a pattern), Flex somehow loses all of
  the contents of the arguments property and sends nulls. It is sending
  the same number of nulls as there were properties though, so I am
  super confused. The Operation.arguments object is still populated with
  the correct data, but none of it gets sent. Does anyone have any idea
  what is going on here? I am pasting the entire method from my delegate
  below. 
  
  // in the delegate constructor
  service = ServiceLocator.getInstance().getService(cmws) as
 WebService;
  
  // in the method called by my command class
  var op:Operation = service.getOperation(GetDataByGrouping) as
  Operation;
  op.resultFormat = e4x;
  // temp object to store arguments
  var args:Object = new Object();
  args.groupingRequests = new Object();
  args.groupingRequests.GroupName = RPRTool;
  args.groupingRequests.Parameters = new Array();
  ... populate Parameters array ...
  op.arguments = args; 
  var call:AsyncToken = service.GetDataByGrouping();
  call.addResponder(responder);
  
  // results in sendign an object like this
  ns1:groupingRequests
  xmlns:ns1=http://fmr.com/BackOffice/ClientMeasures
 http://fmr.com/BackOffice/ClientMeasures 
  http://fmr.com/BackOffice/ClientMeasures
 http://fmr.com/BackOffice/ClientMeasures  
  ns1:DataGroupingRequest/
  ns1:DataGroupingRequest/
  ns1:DataGroupingRequest/
  
  Ben
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-15 Thread ben.clinkinbeard
The app uses internal web services that are not accessible outside of
our network. I will email you the WSDL tomorrow though and hopefully
they can glean some info from it.

Thanks,
Ben

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

 OK, I remember seeing issues like this in 1.5 that I thought we fixed in
 2.0.  If you have the WSDL and an app that can demonstrate the problem I
 can ask the team to look into it.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 15, 2006 7:48 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 That results in this structure being created and sent:
 
 SelectedPlans xmlns=
 item xmlns=78167/item
 item xmlns=78173/item
 /SelectedPlans
 
 Arrays do not seem to have their names preserved consistently. I am
 assuming this is affected by the WSDL. Please, get some clarification
 into the community on these issues. If my experience is
 representative, companies evaluating Flex for web service-based
 applications are going to be very discouraged by the lack of
 documentation and may once again disregard it as a viable solution. I
 would love nothing more than to convince my superiors to use Flex but
 with the issues I have been running into it is making it very hard for
 me to stand behind it as a solid platform for development that is
 heavily reliant on web services.
 
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  Shouldn't you have another array, PlanNumber hanging off the object
 (not
  array) SelectedPlans and be pushing your numbers into that?
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Monday, August 14, 2006 6:11 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Clarification needed on how WSDL affects
  conversion of AS objects to SOAP
  
  
  
  Hi Matt,
  
  My current problem and questions are concerning serialization, not
  deserialization. Flex is creating SOAP requests differently for 2
  methods of the same service, even though the AS is virtually
  identical. My only guess is that its due to the WSDL. Here is a recap
  from my previous posts.
  
  // SERIALIZES AS EXPECTED AND WORKS CORRECTLY
  args.ContainersToRetrieve = new Array();
  args.ContainersToRetrieve.push(Client);
  args.ContainersToRetrieve.push(IndustryTrends);
  
  // RESULTING SOAP CALL
  ContainersToRetrieve
  ContainerTypeClient/ContainerType
  ContainerTypeIndustryTrends/ContainerType
  
  // CORRESPONDING PIECE OF WSDL
  s:element minOccurs=0 maxOccurs=unbounded name=ContainerType
  type=tns:ContainerType/
  (tns:ContainerType maps to an enum collection)
  
  // 
  
  // DOES NOT SERIALIZE AS EXPECTED, CAUSING AN ERROR IN THE WEB SERVICE
  args.RPRSelections = new Object();
  args.RPRSelections.SelectedPlans = new Array();
  for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
  {
  args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
  }
  
  // RESULTING SOAP CALL
  // ignores the SelectedPlans array that was created.
  RPRSelections
  item78167/item
  item78173/item
  
  // WHAT IT SHOULD LOOK LIKE
  RPRSelections
  SelectedPlans
  PlanNumber78167/PlanNumber
  PlanNumber78173/PlanNumber
  SelectedPlans
  /RPRSelections
  
  // CORRESPONDING PIECE OF WSDL
  s:element minOccurs=0 maxOccurs=1 name=SelectedPlans
  type=tns:ArrayOfString/
  
  s:complexType name=ArrayOfString
  s:sequence
  s:element minOccurs=0 maxOccurs=unbounded name=PlanNumber
  nillable=true type=s:string/
  /s:sequence
  /s:complexType
  
  I would LOVE to know how to fix this as right now its a total deal
  breaker for my project.
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   I'm not sure how WSDL structure would affect deserialization. We
 have
   mappings of the standard types into ActionScript versions. There's
 not
   a huge number of those types so we map as best as possible. Are you
   looking for those exact details? As far as RPC vs. doc-literal, I
   believe that the WSDL for a doc-lit generally provides less
  information
   that we can use so we're less likely to be able serialize or
  deserialize
   with as much accuracy as we attempt in RPC. If you use
   resultFormat=xml or e4x of course the doc-lit services will work
  fine,
   though I've seen serialization work fine with doc-lit too.
   
   
   
   Sorry, not sure if that is very helpful. If you have a more specific
   issue I

[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-14 Thread ben.clinkinbeard
Hi Matt,

My current problem and questions are concerning serialization, not
deserialization. Flex is creating SOAP requests differently for 2
methods of the same service, even though the AS is virtually
identical. My only guess is that its due to the WSDL. Here is a recap
from my previous posts.

// SERIALIZES AS EXPECTED AND WORKS CORRECTLY
args.ContainersToRetrieve = new Array();
args.ContainersToRetrieve.push(Client);
args.ContainersToRetrieve.push(IndustryTrends);

// RESULTING SOAP CALL
ContainersToRetrieve
ContainerTypeClient/ContainerType
ContainerTypeIndustryTrends/ContainerType

// CORRESPONDING PIECE OF WSDL
s:element minOccurs=0 maxOccurs=unbounded name=ContainerType
type=tns:ContainerType/
(tns:ContainerType maps to an enum collection)

// 

// DOES NOT SERIALIZE AS EXPECTED, CAUSING AN ERROR IN THE WEB SERVICE
args.RPRSelections = new Object();
args.RPRSelections.SelectedPlans = new Array();
for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
{
   args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
}

// RESULTING SOAP CALL
// ignores the SelectedPlans array that was created.
RPRSelections
item78167/item
item78173/item

// WHAT IT SHOULD LOOK LIKE
RPRSelections
   SelectedPlans
  PlanNumber78167/PlanNumber
  PlanNumber78173/PlanNumber
   SelectedPlans
/RPRSelections

// CORRESPONDING PIECE OF WSDL
s:element minOccurs=0 maxOccurs=1 name=SelectedPlans
type=tns:ArrayOfString/

s:complexType name=ArrayOfString
   s:sequence
  s:element minOccurs=0 maxOccurs=unbounded name=PlanNumber
nillable=true type=s:string/
   /s:sequence
/s:complexType


I would LOVE to know how to fix this as right now its a total deal
breaker for my project.

Thanks,
Ben


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

 I'm not sure how WSDL structure would affect deserialization.  We have
 mappings of the standard types into ActionScript versions.  There's not
 a huge number of those types so we map as best as possible.  Are you
 looking for those exact details?  As far as RPC vs. doc-literal, I
 believe that the WSDL for a doc-lit generally provides less information
 that we can use so we're less likely to be able serialize or deserialize
 with as much accuracy as we attempt in RPC.  If you use
 resultFormat=xml or e4x of course the doc-lit services will work fine,
 though I've seen serialization work fine with doc-lit too.
 
  
 
 Sorry, not sure if that is very helpful.  If you have a more specific
 issue I might be able to forward that in, though the engineer who really
 knows our library at this point is on vacation. 
 
  
 
 Matt
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Friday, August 11, 2006 10:48 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 Hi Matt,
 
 The types of things I would like to see explained are what I mentioned
 in my previous posts. Stuff like how does
 WSDL structure affect Flex's serialization of objects? (this is a big
 one) and what differences are there in Flex's treatment of Doc/Literal
 vs RPC/Encoded web services?
 
 I would also be more than willing to alpha/beta test any new
 functionality as my entire app revolves around .NET web services.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  We have folks working on a complete rewrite of the web service library
  in an attempt to really bring it up to snuff. However it won't be
  available until the next major release. I believe we do have some web
  service articles in the works. If you have suggestions for what you'd
  like to see as far as tutorials or articles on the subject let me know
  offlist.
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Wednesday, August 09, 2006 5:56 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Clarification needed on how WSDL affects
  conversion of AS objects to SOAP
  
  
  
  Hi Franck,
  
  I am also impressed at how powerful Flex + web services seem like they
  could be and I don't think my issue is related to a bug. My complaint
  is that, as far as I know, there are zero Adobe sponsored articles or
  tutorials about using web services in anything but the most basic and
  mundane ways. As both of us have said, web services are the mechanism
  that will allow the widest adoption and impact of Flex (I also work in
  an environment where money is not the deciding factor), yet they have
  seemingly ignored the topic in their communications to developers

[flexcoders] Re: Variations of sending arguments to a WebService in AS

2006-08-14 Thread ben.clinkinbeard
I didn't read through all of your code but here is the method I have
been using with success.

var op:Operation = service.getOperation(GetDataByGrouping) as Operation;
op.resultFormat = e4x;
// temp object to store arguments
var args:Object = new Object();
args.groupingRequests = new Object();
args.groupingRequests.GroupName = RPRToolStaticData;

op.arguments = args;
service.GetDataByGrouping();

HTH,
Ben

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

 Hello,
 
 I'm trying to send some arguments to a webservice, but every 
 variation I have tried other than generating the XML from scratch 
 keeps failing (eg. sends an empty message body).  Relevant parts of 
 the WSDL are as follows:
 
   message name=sendStrings
 part element=tns:sendStrings name=parameters/part
   /message
   message name=sendStringsResponse
 part element=tns:sendStringsResponse 
 name=parameters/part
   /message
 ...
operation name=sendStrings
   input message=tns:sendStrings/input
   output message=tns:sendStringsResponse/output
 /operation
 
 And from the XSD:
 
   xs:element 
 xmlns:ns3=http://server.webservices.tutorials.wakaleo.com/; 
 type=ns3:sendStrings name=sendStrings/xs:element
 
   xs:complexType name=sendStrings
 xs:sequence
   xs:element type=xs:string minOccurs=0 name=arg0 
 maxOccurs=unbounded/xs:element
 /xs:sequence
   /xs:complexType
 
   xs:element 
 xmlns:ns4=http://server.webservices.tutorials.wakaleo.com/; 
 type=ns4:sendStringsResponse 
 name=sendStringsResponse/xs:element
 
   xs:complexType name=sendStringsResponse
 xs:sequence
   xs:element type=xs:string minOccurs=0 name=return 
 maxOccurs=unbounded/xs:element
 /xs:sequence
   /xs:complexType
 
 Based on everything that I have been able to find in the 
 documentation and on flexcoders, there are a number of different 
 ways to send requests to the web service, so I tried each of the 
 ones that I could find.
 
 However, only one of them succeeds -- specifically, the case where I 
 build an XMLDocument from scratch and send it.  All the other cases 
 fail -- that is, they do not pass *any* arguments to the web 
 service.
 
 The following TestCase (which is kind of long) shows the different 
 variations that have been tried.  The main things of interest are 
 the variationN functions in the beginning of the class as these test 
 the different ways to call the web service.  If TestCase had an 
 asyncSetup function the sample case could be quite a bit shorter... 
 (but perhaps I'll work on that next):
 
 package code
 {
   import flash.events.Event;
   import flexunit.framework.TestCase;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import mx.rpc.soap.LoadEvent;
   import mx.rpc.soap.mxml.WebService;
   import flash.utils.describeType;
   import mx.rpc.events.AbstractEvent;
   import mx.rpc.AbstractOperation;
   import flash.xml.XMLDocument;
   import flash.xml.XMLNode;
   
   
   public class TestSendStrings extends TestCase
   {
 private var ws:WebService;
 private static const SERVICE_TIMEOUT:Number = 2000;
 private var wsdlUrl:String 
 = http://192.168.1.108:8080/stockquotes/stock_quote?wsdl;;
 private var responseHandler:String;
 private var sendStringsFunc:String;
 
 // these are the different variations that I have tried. Of 
 these
 // different variations, variation9 succeeds because I have hand
 // crafted a valid message body (NOTE that variation 8 fails and
 // that the only difference is XML vs. XMLDocument).  variation6
 // generates a fault, so it fails for a different reason than
 // some of the others
 private function variation1():void {
   trace('variation1');
   var op:AbstractOperation = ws.getOperation('sendStrings');
   op.arguments = new Array('variation','one');
   op.send();
 }
 
 private function variation2():void {
   trace('variation2');
   ws.sendStrings.arguments = new Array('variation','two');
   ws.sendStrings.send();
 }
 
 private function variation3():void {
   trace('variation3');
   ws.sendStrings.send(new Array('variation','three'));
 }
 
 private function variation4():void {
   trace('variation4');
   ws.sendStrings.send('variation','four');
 }
 
 private function variation5():void {
   trace('variation5');
   ws.sendStrings('variation','five');
 }
 
 private function variation6():void {
   // this function results in a fault event:
   // Unexpected parameter 'sendStrings' found in input 
 arguments.
   trace('variation6');
   var op:AbstractOperation = ws.getOperation('sendStrings');
   op.arguments = {sendStrings:{arg0:new 
 Array('variation','six')}};
   op.send();
 }
 
 private function variation7():void {
   trace('variation7');
   var op:AbstractOperation = ws.getOperation('sendStrings');
   

[flexcoders] Operation.arguments is populated but nulls are sent

2006-08-14 Thread ben.clinkinbeard
I am having a very odd error, and it only happens sometimes. I am
creating an object structure and then assigning that to the arguments
property of my mx.rpc.soap.Operation object like this:

op.arguments = args;

I then call the SOAP method like this:

var call:AsyncToken = service.GetDataByGrouping();
call.addResponder(responder);

Sometimes (I've not figured out a pattern), Flex somehow loses all of
the contents of the arguments property and sends nulls. It is sending
the same number of nulls as there were properties though, so I am
super confused. The Operation.arguments object is still populated with
the correct data, but none of it gets sent. Does anyone have any idea
what is going on here? I am pasting the entire method from my delegate
below. 

// in the delegate constructor
service = ServiceLocator.getInstance().getService(cmws) as WebService;

// in the method called by my command class
var op:Operation = service.getOperation(GetDataByGrouping) as Operation;
op.resultFormat = e4x;
// temp object to store arguments
var args:Object = new Object();
args.groupingRequests = new Object();
args.groupingRequests.GroupName = RPRTool;
args.groupingRequests.Parameters = new Array();
... populate Parameters array ...
op.arguments = args;
var call:AsyncToken = service.GetDataByGrouping();
call.addResponder(responder);

// results in sendign an object like this
ns1:groupingRequests
xmlns:ns1=http://fmr.com/BackOffice/ClientMeasures;
   ns1:DataGroupingRequest/
   ns1:DataGroupingRequest/
   ns1:DataGroupingRequest/

Ben






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Best way to reference items in a parent MXML component?

2006-08-14 Thread ben.clinkinbeard
I am assuming that will require casting, correct? I think I tried that
and by default parent or parentDocument (can't remember which I tried)
returns a DisplayObject or something. So I guess I would need
something like this?

AnalysisStack(parentDocument).someMethod();

Thanks,
Ben

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

  How would a child call a function in the parent though?
 
  
 
 parentDocument.someMethod();
 
  
 
 - Gordon
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Saturday, August 12, 2006 3:12 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Best way to reference items in a parent MXML
 component?
 
  
 
 How would a child call a function in the parent though? Events don't
 seem (semantically) like the right thing because I basically just want
 to use a utility function defined in the parent. Like I have a
 function that I am using to format the dataTips of my charts in the
 child components, but dispatching an event every time I roll over a
 chart item seems a bit tedious and extreme.
 
 Is there a better way or do I just need to get used to using events? I
 come from a Flash background and have not used events very much.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Sergey Kovalyov
 skovalyov.flexcoders@ wrote:
 
  Events must be used here. Your child elements should dispatch custom
  events and container that holds them should listen to that events.
  Event listener will handle the child via target property of event
  object.
  
  On 8/12/06, ben.clinkinbeard ben.clinkinbeard@ wrote:
   I have a ViewStack whose child elements each contain a graph. I
 would
   like to define some things in the file that holds the ViewStack so
   that all of the child charts can use them, but am not sure of the
 best
   way to reference and call these things. Ideally I would like to
   somehow pass in a reference to the containing object so that I don't
   have to pass several items into each child, but have yet to figure
 out
   a way to do that. I know there has to be a better way than what I
 have
   now:
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Best way to reference items in a parent MXML component?

2006-08-12 Thread ben.clinkinbeard
How would a child call a function in the parent though? Events don't
seem (semantically) like the right thing because I basically just want
to use a utility function defined in the parent. Like I have a
function that I am using to format the dataTips of my charts in the
child components, but dispatching an event every time I roll over a
chart item seems a bit tedious and extreme.

Is there a better way or do I just need to get used to using events? I
come from a Flash background and have not used events very much.

Thanks,
Ben


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

 Events must be used here. Your child elements should dispatch custom
 events and container that holds them should listen to that events.
 Event listener will handle the child via target property of event
 object.
 
 On 8/12/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
  I have a ViewStack whose child elements each contain a graph. I would
  like to define some things in the file that holds the ViewStack so
  that all of the child charts can use them, but am not sure of the best
  way to reference and call these things. Ideally I would like to
  somehow pass in a reference to the containing object so that I don't
  have to pass several items into each child, but have yet to figure out
  a way to do that. I know there has to be a better way than what I have
  now:







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Intermittent #2032: Stream Error errors

2006-08-11 Thread ben.clinkinbeard
Hi Mark,

Thanks for your reply. I actually thought maybe you were on the right
track but taking a similar approach didn't solve my issue. Rather than
being in the wrong order, my parameters are all showing as null when
in ServiceCapture. I have set breakpoints to confirm that the request
is correctly populated and formatted when I call send(), but something
is messing it up. The weird thing is that calling the exact same
service in a different environment (different url, stored procs and
db) seems to work flawlessly.

I think I may start a new thread for this as the 2032 errors seem to
be caused by my requests being fubar.

Thanks,
Ben


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

 I had this issue for a long time.
 I'm hoping this is a webservice call you're trying to make, and that
it has
 arguments that are needed.  Say the arguments are arg1 and arg2 and they
 both take string values.  Also assume the function is called func1.
 Here's
 what I would suggest...
 
 var func1:Operation = webserviceObject.func1;
 func1.arguments = {arg1:value1, arg2:value2};
 func1.send();
 
 The issue is that the argument list for webservices (and possibly http
 requests) are hash tables.  Hash tables don't guarantee order, so
you need
 to create an object and specifically assign a value to a property.
 
 After I implemented this, I pretty much got rid of all of my stream
errors.
 
 Mark
 
 
 On 8/10/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
 I am getting these errors every now and then and I've not been
able to
  even begin to understand why. I saw in another thread that someone had
  traced a similar issue to HTTP cache control header issues, but that
  was only happening in IE. Mine happen in Firefox as well. It usually
  fixes it to close the session and republish, but not always. Is this
  basically saying it can't find the URL? Has anyone else experienced,
  or better yet, solved this? Below is a sample fault message.
 
  [FaultEvent fault=[RPC Fault faultString=HTTP request error
  faultCode=Server.Error.Request
  faultDetail=Error: [IOErrorEvent type=ioError bubbles=false
  cancelable=false eventPhase=2
  text=Error #2032: Stream Error. URL:
  http://fescov151win/Webservices/ClientMeasures.asmx;]. URL:
  http://fescov151win/Webservices/ClientMeasures.asmx;]
  messageId=A1575198-9334-D65B-AB26-F9C801601784 type=fault
  bubbles=false cancelable=true eventPhase=2]
 
  
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: WebService - What's wrong with this code?

2006-08-11 Thread ben.clinkinbeard
For your second example, if you wrap the lines other than the import
inside of a function it should work.

HTH,
Ben

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

 I can't figure this out for the life of me - I'm following other
people's
 examples, but still getting errors.  This must be something obvious.
Here's
 my code (I've removed the actual WSDL url):
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 
 mx:Script
 
 ![CDATA[
 
 import mx.rpc.soap.WebService;
 
 var myWebService:WebService;
 
 function initWS(){
 
 myWebService = new
 WebService();
 
  
 myWebService.loadWSDL(**);
 
 }
 
 ]]
 
 /mx:Script
 
 /mx:Application
 
  
 
  
 
 And here's my error:
 
  
 
 1061: Call to a possibly undefined method loadWSDL through a
reference with
 static type WebService.   (Line 9)
 
  
 
 I've tried a bunch of different stuff - here's another variation, which
 throws different errors:
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 
 mx:Script
 
 ![CDATA[
 
 import mx.rpc.soap.WebService;
 
 var myWebService:WebService;
 
 
 
 myWebService = new WebService();
 
  
 myWebService.loadWSDL(**);
 
 
 
 ]]
 
 /mx:Script
 
 /mx:Application
 
  
 
 And the errors:
 
  
 
 1120: Access of undefined property myWebService.  (Lines 8  9)
 
  
 
 Thanks!
 
  
 
 - tom







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-11 Thread ben.clinkinbeard
Hi Matt,

The types of things I would like to see explained are what I mentioned
in my previous posts. Stuff like how does
WSDL structure affect Flex's serialization of objects? (this is a big
one) and what differences are there in Flex's treatment of Doc/Literal
vs RPC/Encoded web services?

I would also be more than willing to alpha/beta test any new
functionality as my entire app revolves around .NET web services.

Thanks,
Ben

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

 We have folks working on a complete rewrite of the web service library
 in an attempt to really bring it up to snuff.  However it won't be
 available until the next major release.  I believe we do have some web
 service articles in the works.  If you have suggestions for what you'd
 like to see as far as tutorials or articles on the subject let me know
 offlist.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, August 09, 2006 5:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 Hi Franck,
 
 I am also impressed at how powerful Flex + web services seem like they
 could be and I don't think my issue is related to a bug. My complaint
 is that, as far as I know, there are zero Adobe sponsored articles or
 tutorials about using web services in anything but the most basic and
 mundane ways. As both of us have said, web services are the mechanism
 that will allow the widest adoption and impact of Flex (I also work in
 an environment where money is not the deciding factor), yet they have
 seemingly ignored the topic in their communications to developers, in
 favor FDS at every turn.
 
 Like FDS, web services are a very complex topic, but we have virtually
 no information on the finer points of their implementation. How does
 WSDL structure affect Flex's serialization of objects (my current
 issue)? What differences are there in Flex's treatment of Doc/Literal
 vs RPC/Encoded web services? Those kinds of things. Without Jesse's
 sample app on how to use web services with Flex 2 + Cairngorm 2 we'd
 really be screwed.
 
 All I am saying is that the focus on FDS seems unrealistic and
 counter-productive to the overarching goal of massive Flex adoption. I
 would venture to guess that the overwhelming majority of organizations
 (90%+) will not deploy FDS. Whether it be due to financial, platform
 or other infrastructure reasons, it simply doesn't fit into most
 stacks. That being said, you would think they could give some more
 detailed info on how to implement the pieces of the framework that the
 rest of us are going to use. Like I said, I think Flex is great.
 Really great. I just don't want to see them blow the adoption
 challenge. Again.
 
 Ben
 
 PS - I am using Doc/literal web services
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Franck de Bruijn
 franck.de.bruijn@ wrote:
 
  Hi Ben,
  
  
  
  Let's try not to be too pessimistic, although you might be right that
  Adobe's focus is more on the FDS part than the webservices part. It
 must be
  a hell of a complicated module and indeed, more money to be gained.
  
  
  
  I have quite some experience now with webservices, and they are
 extremely
  difficult to work with. And I don't believe that the first release of
 a
  product can be error free. So far, I am quite impressed with the
 support of
  Flex for webservices, but there will be bugs. It's up to us to
 signal them.
  
  
  
  I agree with you though that webservices is actually the only
 interesting
  way of communication with a back-end. For the near future, I don't
 expect to
  use any of the FDS features for the applications that I wish to
 build (and
  that is for large corporations that could afford the investment of
 an FDS
  module). Although webservices are a pain-in-the-neck, they are the
 only hope
  for a full heterogeneous world of clients and servers.
  
  
  
  How are you exposing your webservice? Doc/Literal or RPC/Encoded?
  
  
  
  Cheers,
  
  Franck
  
  
  
  
  
  
  
  
  
  _ 
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of ben.clinkinbeard
  Sent: Tuesday, August 08, 2006 8:59 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Clarification needed on how WSDL affects
  conversion of AS objects to SOAP
  
  
  
  Hi Franck,
  
  I am pretty sure this is all related to types and the fact that Flex
  will serialize primitive types differently than complex ones. The C#
  code that creates the WS looks like this for the correctly functioning
  elements:
  
  [XmlArray(ContainersToRetrieve)]
  [XmlArrayItem(ContainerType, typeof(ContainerType))]
  ContainerType

[flexcoders] Re: WebService - What's wrong with this code?

2006-08-11 Thread ben.clinkinbeard
 Does it compile for you without errors?

Yep, this exact code works for me.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()
mx:Script
![CDATA[
import mx.rpc.soap.LoadEvent;
import mx.rpc.soap.WebService;

private function init():void
{
var myWebService:WebService;
myWebService = new WebService();


myWebService.loadWSDL(http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl;);
myWebService.addEventListener(load, 
loadComplete);
}

private function loadComplete(event:LoadEvent):void
{
trace(ALL GOOD);
}
]]
/mx:Script
/mx:Application


 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Friday, August 11, 2006 12:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WebService - What's wrong with this code?
 
 For your second example, if you wrap the lines other than the import
 inside of a function it should work.
 
 HTH,
 Ben
 
 --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
 
  I can't figure this out for the life of me - I'm following other
 people's
  examples, but still getting errors.  This must be something obvious.
 Here's
  my code (I've removed the actual WSDL url):
  
   
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  
  mx:Script
  
  ![CDATA[
  
  import mx.rpc.soap.WebService;
  
  var myWebService:WebService;
  
  function initWS(){
  
  myWebService = new
  WebService();
  
   
  myWebService.loadWSDL(**);
  
  }
  
  ]]
  
  /mx:Script
  
  /mx:Application
  
   
  
   
  
  And here's my error:
  
   
  
  1061: Call to a possibly undefined method loadWSDL through a
 reference with
  static type WebService.   (Line 9)
  
   
  
  I've tried a bunch of different stuff - here's another variation,
which
  throws different errors:
  
   
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  
  mx:Script
  
  ![CDATA[
  
  import mx.rpc.soap.WebService;
  
  var myWebService:WebService;
  
  
  
  myWebService = new WebService();
  
   
  myWebService.loadWSDL(**);
  
  
  
  ]]
  
  /mx:Script
  
  /mx:Application
  
   
  
  And the errors:
  
   
  
  1120: Access of undefined property myWebService.  (Lines 8  9)
  
   
  
  Thanks!
  
   
  
  - tom
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: ComboBox doesn't update display unless 'activated' first

2006-08-10 Thread ben.clinkinbeard
Neither of those suggestions work :( Guess I have to stick with what
I've got.

Ben

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

 On Wednesday 09 August 2006 17:26, ben.clinkinbeard wrote:
  // WITHOUT THIS LINE, COMBOBOX WILL NOT UPDATE ITS DISPLAY
  ModelLocator.getInstance().arr_selectedPlans.source = arr.toArray();
 
  Should I really have to do this? I thought ArrayCollection was
  supposed to have all these magical capabilities... :)
 
 It does, yes.
 I assume your control has dataProvider set to model.arr_selectedPlans ?
 
 Maybe it would be better to do:
 ModelLocator.getInstance().arr_selectedPlans = arr
 should save a few ArrayCollection-Array CPU cycles too :-)
 
 Alternatively:
 private var model=ModelLocator.getInstance();
 ...
 var arr:ArrayCollection = model.arr_selectedPlans;
 if(evt.cb.selected)
 {
 // prevent dupes
 if(!arr.contains(evt.cb.label))
 {
 model.arr_selectedPlans.addItem(evt.cb.label);
 }
 }
 else
 {

model.arr_selectedPlans.removeItemAt(arr.getItemIndex(evt.cb.label));
 }
 
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Intermittent #2032: Stream Error errors

2006-08-10 Thread ben.clinkinbeard
I am getting these errors every now and then and I've not been able to
even begin to understand why. I saw in another thread that someone had
traced a similar issue to HTTP cache control header issues, but that
was only happening in IE. Mine happen in Firefox as well. It usually
fixes it to close the session and republish, but not always. Is this
basically saying it can't find the URL? Has anyone else experienced,
or better yet, solved this? Below is a sample fault message.

[FaultEvent fault=[RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request 
faultDetail=Error: [IOErrorEvent type=ioError bubbles=false
cancelable=false eventPhase=2 
text=Error #2032: Stream Error. URL:
http://fescov151win/Webservices/ClientMeasures.asmx;]. URL:
http://fescov151win/Webservices/ClientMeasures.asmx;]
messageId=A1575198-9334-D65B-AB26-F9C801601784 type=fault
bubbles=false cancelable=true eventPhase=2]






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Debugging Web Service call

2006-08-10 Thread ben.clinkinbeard
I've not had not resolvable issues, but I did have some other
significant issues with namespaces in .NET web services, especially
default namespaces. I documented my solutions on my site.

http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/

HTH,
Ben

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

 Exactly what I was looking for, James!  Thanks so much...  The
request was
 not being sent at all, so I stepped into the debugger.  It turns out
I have
 a WSDL error - looks like the WSDLParser is choking on a namespace,
saying
 it's not resolvable.  It's one of those ASP.Net default tempuri.org
 namespaces.  Anyone ever have trouble with ASP.Net web service
namespaces?
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of james_dhap
 Sent: Thursday, August 10, 2006 3:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Debugging Web Service call
 
 Hi Tom,
 There are two places I would recommend starting with.  The first is to
  see if any data is actually being sent out by the player to the
 WebService.  The easiest way to do this is to use an HTTP request
 debugger to sniff the outgoing/incoming data.  There are a lot of
 options out there but I prefer Tamper Data (see my previous post),
 mainly because it intergrates with Firefox:
 
 https://addons.mozilla.org/firefox/966/
 
 What you want to do with this app (or any other debugger) is to see if
 the request is being sent out to the service by the player.  If you
 don't see a request being sent out then you know that there is some
 problem in your Flex code or a conflict in the Flex Framework. If the
 data never leaves I would set a breakpoint on the send method and
 start stepping into the Framework code and see where it goes wrong.
 
 If you see the request is being sent but nothing is being returned
 then you can pursue the service and verify that its not hanging or
 doing something wrong.
 
 It's kind of hard to recommend other ideas without seeing your code,
 but I totally understand why you can't post it.
 
 -- James
 
 
 --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
 
  Yeah, I hate generic questions too, sorry about that.  Problem is, I
 can't
  show you the web services due to company policy, and can't show you
 my code
  because it would expose the web services.  I can tell you that I've
  connected successfully to other web services using the same syntax,
 so I'm
  pretty sure my code's not at fault.
  
  What I'm really after are general tips on debugging web service calls.
  Usually you'd look at the fault message when a call fails, but this
 failure
  isn't generating a fault.  Also, it prevents subsequent function
 calls from
  executing, which I find odd:
  
  function doIt():void{
  myWebService.myMethod.send();
  //The following will not fire:
  Alert.show(Call made to webservice);
  }
  
  Sorry I can't post my code.  I appreciate anything you might be
able to
  offer despite that fact.
  
  -tom
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of flexnadobe
  Sent: Thursday, August 10, 2006 12:29 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Debugging Web Service call
  
  Hi Tom,
  
  If you want try to post some code so we can see what you are doing?
  There are alot of cool bro's on this site that will help but we will
  need a starting point.
  
  cya,
  
  Rich
  
  --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote:
  
   Hi guys,
   

   
   I'm having some trouble with a WebService call and can't seem to
  pinpoint
   the trouble.  The WSDL loads fine, but any calls to the web service
  result
   in nothing.  No fault, no result, not even the busy cursor (even
  though I've
   got showBusyCursor=true).  Anyone have any suggestions for how I
 might
   debug this?  Are there any low-level status events I can hook into?
   

   
   I have better luck with the MXNA web services, so I know my syntax
  is right.
   

   
   Thanks!
   

   
   -tom
  
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL 

[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-09 Thread ben.clinkinbeard
Hi Franck,

I am also impressed at how powerful Flex + web services seem like they
could be and I don't think my issue is related to a bug. My complaint
is that, as far as I know, there are zero Adobe sponsored articles or
tutorials about using web services in anything but the most basic and
mundane ways. As both of us have said, web services are the mechanism
that will allow the widest adoption and impact of Flex (I also work in
an environment where money is not the deciding factor), yet they have
seemingly ignored the topic in their communications to developers, in
favor FDS at every turn.

Like FDS, web services are a very complex topic, but we have virtually
no information on the finer points of their implementation. How does
WSDL structure affect Flex's serialization of objects (my current
issue)? What differences are there in Flex's treatment of Doc/Literal
vs RPC/Encoded web services? Those kinds of things. Without Jesse's
sample app on how to use web services with Flex 2 + Cairngorm 2 we'd
really be screwed.

All I am saying is that the focus on FDS seems unrealistic and
counter-productive to the overarching goal of massive Flex adoption. I
would venture to guess that the overwhelming majority of organizations
(90%+) will not deploy FDS. Whether it be due to financial, platform
or other infrastructure reasons, it simply doesn't fit into most
stacks. That being said, you would think they could give some more
detailed info on how to implement the pieces of the framework that the
rest of us are going to use. Like I said, I think Flex is great.
Really great. I just don't want to see them blow the adoption
challenge. Again.

Ben

PS - I am using Doc/literal web services

--- In flexcoders@yahoogroups.com, Franck de Bruijn
[EMAIL PROTECTED] wrote:

 Hi Ben,
 
  
 
 Let's try not to be too pessimistic, although you might be right that
 Adobe's focus is more on the FDS part than the webservices part. It
must be
 a hell of a complicated module and indeed, more money to be gained.
 
  
 
 I have quite some experience now with webservices, and they are
extremely
 difficult to work with. And I don't believe that the first release of a
 product can be error free. So far, I am quite impressed with the
support of
 Flex for webservices, but there will be bugs. It's up to us to
signal them.
 
  
 
 I agree with you though that webservices is actually the only
interesting
 way of communication with a back-end. For the near future, I don't
expect to
 use any of the FDS features for the applications that I wish to
build (and
 that is for large corporations that could afford the investment of
an FDS
 module). Although webservices are a pain-in-the-neck, they are the
only hope
 for a full heterogeneous world of clients and servers.
 
  
 
 How are you exposing your webservice? Doc/Literal or RPC/Encoded?
 
  
 
 Cheers,
 
 Franck
 
  
 
  
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 08, 2006 8:59 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 Hi Franck,
 
 I am pretty sure this is all related to types and the fact that Flex
 will serialize primitive types differently than complex ones. The C#
 code that creates the WS looks like this for the correctly functioning
 elements:
 
 [XmlArray(ContainersToRetrieve)]
 [XmlArrayItem(ContainerType, typeof(ContainerType))]
 ContainerType[] containersToRetrieve,
 
 and like this for the incorrect ones:
 
 [XmlArray(SelectedPlans)]
 [XmlArrayItem(PlanNumber)]
 string[] SelectedPlans
 
 I think the only way to fix this would be to have SelectedPlans be an
 array of complex objects rather than an array of strings.
 Unfortunately, I don't believe this is an option as there is other
 code that relies on this WS.
 
 Sigh. I really wish there was more focus on, documentation of and
 support for web services in Flex. The apparent concentration on FDS
 seems misguided to me as I don't see is as being a viable option for
 nearly as many organizations as web services are. I suppose I
 understand that FDS deployments are where the real money would be for
 Adobe, but it rings of the unrealistic and arguably unsuccessful model
 upon which Flex 1 and 1.5 were based on.
 
 Ben
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Franck de Bruijn
 franck.de.bruijn@ wrote:
 
  Hi Ben,
  
  
  
  I'm not sure if I'm following you, but I'll try :).
  
  
  
  I don't have answers, just questions. Let me put them to you:
  
  * Could it maybe be the type=s:string part? Is 's' pointing to the
  right xsd namespace?
  * I'm curious what is exactly making the 'ContainerType' element in
  your SOAP-message. Is it the name attribute or the type attribute?
 If it is
  the type attribute, then for sure in the PlanNumber element it'll
 not work
  ...
  * Could the nesting be a problem? What I see

[flexcoders] ComboBox doesn't update display unless 'activated' first

2006-08-09 Thread ben.clinkinbeard
Hello, I have a ComboBox that is bound to an ArrayCollection. The
problem is that if I programmatically remove the item that is
currently being displayed in the CB from the source ArrayCollection,
the CB doesn't update its display. It removes the item from the list
so that its not there if I open it, but it displays the old value
until then. However, if I click the CB to 'activate' it before
removing the item, it will properly refresh its display and change the
current item as soon as the underlying data changes.

I have tried all kinds of things to do this programmatically with no
luck. I've tried calling invalidateDisplay(), invalidateProperties()
and a few others on the CB after updating the AC.

I know this has to be something simple. What am I missing here?

Thanks in advance,
Ben





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: ComboBox doesn't update display unless 'activated' first

2006-08-09 Thread ben.clinkinbeard
SOLVED: This is weird, but I've got it working.

// shortcut var
var arr:ArrayCollection = ModelLocator.getInstance().arr_selectedPlans;
// if ComboBox is selected, add its label to the AC
// if not selected, remove its label from AC
if(evt.cb.selected)
{
// prevent dupes
if(!arr.contains(evt.cb.label))
{
arr.addItem(evt.cb.label);
}
}
else
{
arr.removeItemAt(arr.getItemIndex(evt.cb.label));
}
// WITHOUT THIS LINE, COMBOBOX WILL NOT UPDATE ITS DISPLAY
ModelLocator.getInstance().arr_selectedPlans.source = arr.toArray();

Should I really have to do this? I thought ArrayCollection was
supposed to have all these magical capabilities... :)

Ben
http://www.returnundefined.com/


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

 Hello, I have a ComboBox that is bound to an ArrayCollection. The
 problem is that if I programmatically remove the item that is
 currently being displayed in the CB from the source ArrayCollection,
 the CB doesn't update its display. It removes the item from the list
 so that its not there if I open it, but it displays the old value
 until then. However, if I click the CB to 'activate' it before
 removing the item, it will properly refresh its display and change the
 current item as soon as the underlying data changes.
 
 I have tried all kinds of things to do this programmatically with no
 luck. I've tried calling invalidateDisplay(), invalidateProperties()
 and a few others on the CB after updating the AC.
 
 I know this has to be something simple. What am I missing here?
 
 Thanks in advance,
 Ben








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-08 Thread ben.clinkinbeard
In one part of my app, I am creating my Operation.arguments object
like this:

args.ContainersToRetrieve = new Array();
args.ContainersToRetrieve.push(Client);   
args.ContainersToRetrieve.push(IndustryTrends);

which, as expected, results in a SOAP call like this:

ContainersToRetrieve
   ContainerTypeClient/ContainerType
   ContainerTypeIndustryTrends/ContainerType

In a different spot, I am constructing a call in the same manner:
args.RPRSelections = new Object();
args.RPRSelections.SelectedPlans = new Array();
for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
   {
  args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
   }

but that produces the following output, seemingly ignoring the
SelectedPlans array that was created.

RPRSelections
   item78167/item
   item78173/item





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-08 Thread ben.clinkinbeard
I meant to hit preview... here is the rest of my post.

The pieces of the WSDL that correspond are:

s:element minOccurs=0 maxOccurs=unbounded name=ContainerType
type=tns:ContainerType/ (works correctly)

and 

s:element minOccurs=0 maxOccurs=unbounded name=PlanNumber
nillable=true type=s:string/ (array is disregarded)

Is nillable=true causing a problem here? What changes need to be
made to make Flex treat arrays just like objects, like it does in the
first operation?

Thanks,
Ben

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

 In one part of my app, I am creating my Operation.arguments object
 like this:
 
 args.ContainersToRetrieve = new Array();
 args.ContainersToRetrieve.push(Client); 
 args.ContainersToRetrieve.push(IndustryTrends);
 
 which, as expected, results in a SOAP call like this:
 
 ContainersToRetrieve
ContainerTypeClient/ContainerType
ContainerTypeIndustryTrends/ContainerType
 
 In a different spot, I am constructing a call in the same manner:
 args.RPRSelections = new Object();
 args.RPRSelections.SelectedPlans = new Array();
 for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
{
   args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
}
 
 but that produces the following output, seemingly ignoring the
 SelectedPlans array that was created.
 
 RPRSelections
item78167/item
item78173/item








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-08 Thread ben.clinkinbeard
Hi Franck,

I am pretty sure this is all related to types and the fact that Flex
will serialize primitive types differently than complex ones. The C#
code that creates the WS looks like this for the correctly functioning
elements:

[XmlArray(ContainersToRetrieve)]
[XmlArrayItem(ContainerType, typeof(ContainerType))]
ContainerType[] containersToRetrieve,

and like this for the incorrect ones:

[XmlArray(SelectedPlans)]
[XmlArrayItem(PlanNumber)]
string[] SelectedPlans

I think the only way to fix this would be to have SelectedPlans be an
array of complex objects rather than an array of strings.
Unfortunately, I don't believe this is an option as there is other
code that relies on this WS.

Sigh. I really wish there was more focus on, documentation of and
support for web services in Flex. The apparent concentration on FDS
seems misguided to me as I don't see is as being a viable option for
nearly as many organizations as web services are. I suppose I
understand that FDS deployments are where the real money would be for
Adobe, but it rings of the unrealistic and arguably unsuccessful model
upon which Flex 1 and 1.5 were based on.

Ben


--- In flexcoders@yahoogroups.com, Franck de Bruijn
[EMAIL PROTECTED] wrote:

 Hi Ben,
 
  
 
 I'm not sure if I'm following you, but I'll try :).
 
  
 
 I don't have answers, just questions. Let me put them to you:
 
 * Could it maybe be the type=s:string part? Is 's' pointing to the
 right xsd namespace?
 * I'm curious what is exactly making the 'ContainerType' element in
 your SOAP-message. Is it the name attribute or the type attribute?
If it is
 the type attribute, then for sure in the PlanNumber element it'll
not work
 ...
 * Could the nesting be a problem? What I see from your code example,
 is that the PlanNumber elements are one level deeper than the
ContainerType
 elements. Maybe it's an idea to test a webservice operation that takes
 straight PlanNumber elements?
 
  
 
 Good luck!
 
 Franck
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 08, 2006 7:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
  
 
 I meant to hit preview... here is the rest of my post.
 
 The pieces of the WSDL that correspond are:
 
 s:element minOccurs=0 maxOccurs=unbounded name=ContainerType
 type=tns:ContainerType/ (works correctly)
 
 and 
 
 s:element minOccurs=0 maxOccurs=unbounded name=PlanNumber
 nillable=true type=s:string/ (array is disregarded)
 
 Is nillable=true causing a problem here? What changes need to be
 made to make Flex treat arrays just like objects, like it does in the
 first operation?
 
 Thanks,
 Ben
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  In one part of my app, I am creating my Operation.arguments object
  like this:
  
  args.ContainersToRetrieve = new Array();
  args.ContainersToRetrieve.push(Client); 
  args.ContainersToRetrieve.push(IndustryTrends);
  
  which, as expected, results in a SOAP call like this:
  
  ContainersToRetrieve
  ContainerTypeClient/ContainerType
  ContainerTypeIndustryTrends/ContainerType
  
  In a different spot, I am constructing a call in the same manner:
  args.RPRSelections = new Object();
  args.RPRSelections.SelectedPlans = new Array();
  for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
  {
  args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
  }
  
  but that produces the following output, seemingly ignoring the
  SelectedPlans array that was created.
  
  RPRSelections
  item78167/item
  item78173/item
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Cairngorm 2 - Operation.arguments not clearing after call

2006-08-08 Thread ben.clinkinbeard
I did, actually. Turned out my WSDLs were being loaded multiple times
and that was the problem.

HTH,
Ben
http://www.returnundefined.com/


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

 hey ben,
 
 did you get a solution here, I am running into the same problem.
 
 Thanks.
 ]--- In flexcoders@yahoogroups.com, 
 ben.clinkinbeard ben.clinkinbeard@ wrote:
 
  Hello all, this post is a bit long but I have tried to organize it 
 to
  accomodate easy reading. I have modified my ServiceLocator so that 
 my
  services are defined in AS, and am calling loadWSDL() from the
  constructor of my delegates. The problem is that if I call an
  operation more than once in my app, the arguments property never 
 seems
  to get cleared, it just ends up with multiple copies of the the
  current set of arguments in it.  These are some snippets of my code:
  
  bServices.mxml (inside a Script tag obviously)/b
  // *** CLIENT MEASURES WEB SERVICE ***
  cmws = new mx.rpc.soap.WebService();
  cmws.useProxy = cmws.makeObjectsBindable = false;
  
  bClientMeasuresDelegate.as/b
  public function ClientMeasuresDelegate(callingCommand:IResponder) 
   {
  responder = callingCommand;
  service = ServiceLocator.getInstance().getService(cmws) as
  WebService;

  

service.loadWSDL(ModelLocator.getInstance()[EMAIL PROTECTED]
  + ?WSDL);
}
  
  public function loadClientMeasures():void
{
  var op:Operation = service.getOperation(GetDataByGrouping) as
  Operation;
  op.resultFormat = e4x;
  op.arguments.groupingRequests = new Object();
  op.arguments.groupingRequests.GroupName = RPRTool;
  ...
  }
  
  bLoadClientMeasuresCommand.as/b
  public function execute(event:CairngormEvent):void
  {
  var delegate:ClientMeasuresDelegate = new 
 ClientMeasuresDelegate(this);
  delegate.loadClientMeasures();
  }
  
  The second time I call loadClientMeasures(), there are 2
  groupingRequests objects on the arguments property, the third time
  there are 3, etc, but the contents of each are identical (even 
 though
  other arguments that are not shown here change between calls).
  Shouldn't these be getting cleared since I am
  creating a new instance of ClientMeasuresDelegate each time? Any 
 help
  is appreciated.
  
  Thanks,
  Ben
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread ben.clinkinbeard
Hello, I am sending arguments to my SOAP method, but can't figure out
how to do repeated children in AS. For example, part of my call looks
like this in XML:

SelectedPlans
   PlanNumber12345/PlanNumber
   PlanNumber56789/PlanNumber
/SelectedPlans

I cannot figure out how to create this structure in AS. It seems that
I have to use an Object (args.SelectedPlans = new Object();) in order
for the name to be preserved during the conversion to XML, but objects
obviously can't have 2 properties with the same name.

Does anyone know how to do this?

Thanks,
Ben






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: ArrayUtil.toArray trouble (works in beta 3 not in release)

2006-08-07 Thread ben.clinkinbeard
Hard to say without seeing your code but it may be due to
'makeObjectsBindable' defaulting to true in the final release. It was
false in B3.

Try setting makeObjectsBindable=false on your HTTPService component.

HTH,
Ben

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

 Hi there,
 
 I use to have some httpservice xml result binding to an array using 
 ArrayUtil.toArray method.
 They used has a dataprovider for a combobox.
 In beta 3 all is ok
 Now my combobox only show one ligne of [Object object] seperate with
comas.
 
 I d'ont see anything one change on this method here : 

http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm
 
 So is there an explaination ?
 
 -- 
 Flapflap[at]sans-facon.net --
 DevBlog : http://www.kilooctet.net








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread ben.clinkinbeard
Hi Franck,

Thanks for the response. I am still having the same problem though,
which is that I end up with a generic 'item' tag or property being
created somewhere along the way. I am beginning to think that this
structure cannot be created in AS as it seems like I would need an
object with 2 properties named PlanNumber.

I tried using an object with a PlanNumber property of type Array, and
then stuffing the values into that, but that turns into

SelectedPlans xmlns=
   item xmlns=78167/item
   item xmlns=78173/item
/SelectedPlans

Is there a way to create a default property of an object or something?
Does valueOf() still exist?

Ben

--- In flexcoders@yahoogroups.com, Franck de Bruijn
[EMAIL PROTECTED] wrote:

 Hi Ben,
 
  
 
 I do the following to achieve this.
 
  
 
 Let's say I have a Customer who can have multiple Address objects.
Compare
 Customer with your SelectedPlans and Address with PlanNumber.
 
  
 
 My Customer AS class looks like this (boring parts omitted)
 
  
 
 package model {
 
  
 
   your imports ...
 
   
 
   public class Customer 
 
   {
 
 your other attributes
 
 public var addresses:Array = new Array();
 
  
 
 and the rest ...
 
  
 
 The Address AS class is nothing more than this:
 
  
 
 package model {
 
  
 
   your imports ...
 
   
 
   public class Address {
 
 public var street:String;
 
 public var houseNumber:int = 0;
 
  
 
 ... you get the idea
 
  
 
 To store multiple Address objects into the Customer object, you just
fill
 the array 'addresses' with Address objects.
 
  
 
 You can now throw the entire Customer object as single argument into
your
 webservice call. Flex will unmarshal the array correctly and
generate the
 XML as you describe below.
 
  
 
 Hope this helps,
 
 Cheers,
 
 Franck
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 07, 2006 3:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Web Service arguments in AS - how do you create
 repeated children?
 
  
 
 Hello, I am sending arguments to my SOAP method, but can't figure out
 how to do repeated children in AS. For example, part of my call looks
 like this in XML:
 
 SelectedPlans
 PlanNumber12345/PlanNumber
 PlanNumber56789/PlanNumber
 /SelectedPlans
 
 I cannot figure out how to create this structure in AS. It seems that
 I have to use an Object (args.SelectedPlans = new Object();) in order
 for the name to be preserved during the conversion to XML, but objects
 obviously can't have 2 properties with the same name.
 
 Does anyone know how to do this?
 
 Thanks,
 Ben








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread ben.clinkinbeard
Would it be acceptable for you if your XML would look like this?
Unfortunately not :(

Does anyone know if there is an explanation anywhere on how the
compiler converts AS structures into SOAP format? Currently, it all
seems pretty mysterious. Anyone from Adobe have any insight?

Thanks,
Ben

--- In flexcoders@yahoogroups.com, Franck de Bruijn
[EMAIL PROTECTED] wrote:

 Hi Ben,
 
  
 
 I think I am starting to understand what you mean. I don't have the
 environment up-and-running to really test ...
 
  
 
 In my case, the XML will probably be something like:
 
 customer
 
   addresses
 
  street1/street
 
  ...
 
   /addresses
 
   addresses
 
  street2/street
 
  ...
 
   /addresses
 
 /customer
 
  
 
 I'm sure that Flex is doing the right thing there, since I am basing
some of
 my webservices on this kind of structures and all is working fine.
 
  
 
 In your case you have a list of simple strings/numbers, while my
list is of
 objects (having their own attributes) ...
 
  
 
 Would it be acceptable for you if your XML would look like this?
 
  
 
 SelectedPlans
   PlanNumber
 
 Value12345/Value
 
   /PlanNumber
   PlanNumber
 
 Value56789/Value
 
   /PlanNumber
 
 /SelectedPlans
 
 
 
 Then, you could make a PlanNumber action script object with a
property Value
 in it. The SelectedPlans object would have an array having PlanNumber
 objects ...
 
  
 
 Cheers,
 
 Franck
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 07, 2006 8:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Web Service arguments in AS - how do you
create
 repeated children?
 
  
 
 Hi Franck,
 
 Thanks for the response. I am still having the same problem though,
 which is that I end up with a generic 'item' tag or property being
 created somewhere along the way. I am beginning to think that this
 structure cannot be created in AS as it seems like I would need an
 object with 2 properties named PlanNumber.
 
 I tried using an object with a PlanNumber property of type Array, and
 then stuffing the values into that, but that turns into
 
 SelectedPlans xmlns=
 item xmlns=78167/item
 item xmlns=78173/item
 /SelectedPlans
 
 Is there a way to create a default property of an object or something?
 Does valueOf() still exist?
 
 Ben
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Franck de Bruijn
 franck.de.bruijn@ wrote:
 
  Hi Ben,
  
  
  
  I do the following to achieve this.
  
  
  
  Let's say I have a Customer who can have multiple Address objects.
 Compare
  Customer with your SelectedPlans and Address with PlanNumber.
  
  
  
  My Customer AS class looks like this (boring parts omitted)
  
  
  
  package model {
  
  
  
  your imports ...
  
  
  
  public class Customer 
  
  {
  
  your other attributes
  
  public var addresses:Array = new Array();
  
  
  
  and the rest ...
  
  
  
  The Address AS class is nothing more than this:
  
  
  
  package model {
  
  
  
  your imports ...
  
  
  
  public class Address {
  
  public var street:String;
  
  public var houseNumber:int = 0;
  
  
  
  ... you get the idea
  
  
  
  To store multiple Address objects into the Customer object, you just
 fill
  the array 'addresses' with Address objects.
  
  
  
  You can now throw the entire Customer object as single argument into
 your
  webservice call. Flex will unmarshal the array correctly and
 generate the
  XML as you describe below.
  
  
  
  Hope this helps,
  
  Cheers,
  
  Franck
  
  
  
  
  
  _ 
  
  From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com
 [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com]
 On
  Behalf Of ben.clinkinbeard
  Sent: Monday, August 07, 2006 3:11 PM
  To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Web Service arguments in AS - how do you create
  repeated children?
  
  
  
  Hello, I am sending arguments to my SOAP method, but can't figure out
  how to do repeated children in AS. For example, part of my call looks
  like this in XML:
  
  SelectedPlans
  PlanNumber12345/PlanNumber
  PlanNumber56789/PlanNumber
  /SelectedPlans
  
  I cannot figure out how to create this structure in AS. It seems that
  I have to use an Object (args.SelectedPlans = new Object();) in order
  for the name to be preserved during the conversion to XML, but objects
  obviously can't have 2 properties with the same name.
  
  Does anyone know how to do this?
  
  Thanks,
  Ben
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject

[flexcoders] Re: Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread ben.clinkinbeard
Well, the part that I dont understand is why I have to create an
Object for it to preserve the name and structure once it gets
converted. My original thought was to do something like this:

args.SelectedPlans = new Array();
args.SelectedPlans.push({PlanNumber: 12345});
args.SelectedPlans.push({PlanNumber: 56789});

but the SelectedPlans name is not preserved in that case. It ends up
as two anonymous objects on the level that the array was created on,
rather than being nested inside of it.

If there is truly no way to accomplish this type of structure it makes
creating WS calls, and especially your ServiceLocator, in AS pretty
pointless.

Adobe, please say it ain't so...

Ben


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

 I'm not sure if this is possible in any language (correct me if I'm
wrong).
 Normally, you would create an array of objects (address object
mentioned in
 Franck's example) or just an array with ID's.
  
 Objects are always translated to collections like HashMap's and
arrays (or
 ArrayCollections) to arrays.
 All those collections are based on unique identifiers (in AS, Java
or .NET).
 Of course, it is possible to create a custom collection that supports
 redundant indentifiers, but internally you still have to use unique
ID's.
 And the SOAP parser falls back to the default collections anyway.
 
   _  
 
 Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Namens
 ben.clinkinbeard
 Verzonden: maandag 7 augustus 2006 22:16
 Aan: flexcoders@yahoogroups.com
 Onderwerp: [flexcoders] Re: Web Service arguments in AS - how do you
create
 repeated children?
 
 
 
 Would it be acceptable for you if your XML would look like this?
 Unfortunately not :(
 
 Does anyone know if there is an explanation anywhere on how the
 compiler converts AS structures into SOAP format? Currently, it all
 seems pretty mysterious. Anyone from Adobe have any insight?
 
 Thanks,
 Ben
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Franck de Bruijn
 franck.de.bruijn@ wrote:
 
  Hi Ben,
  
  
  
  I think I am starting to understand what you mean. I don't have the
  environment up-and-running to really test ...
  
  
  
  In my case, the XML will probably be something like:
  
  customer
  
  addresses
  
  street1/street
  
  ...
  
  /addresses
  
  addresses
  
  street2/street
  
  ...
  
  /addresses
  
  /customer
  
  
  
  I'm sure that Flex is doing the right thing there, since I am basing
 some of
  my webservices on this kind of structures and all is working fine.
  
  
  
  In your case you have a list of simple strings/numbers, while my
 list is of
  objects (having their own attributes) ...
  
  
  
  Would it be acceptable for you if your XML would look like this?
  
  
  
  SelectedPlans
  PlanNumber
  
  Value12345/Value
  
  /PlanNumber
  PlanNumber
  
  Value56789/Value
  
  /PlanNumber
  
  /SelectedPlans
  
  
  
  Then, you could make a PlanNumber action script object with a
 property Value
  in it. The SelectedPlans object would have an array having PlanNumber
  objects ...
  
  
  
  Cheers,
  
  Franck
  
  
  
  _ 
  
  From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com
 [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com]
 On
  Behalf Of ben.clinkinbeard
  Sent: Monday, August 07, 2006 8:30 PM
  To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Web Service arguments in AS - how do you
 create
  repeated children?
  
  
  
  Hi Franck,
  
  Thanks for the response. I am still having the same problem though,
  which is that I end up with a generic 'item' tag or property being
  created somewhere along the way. I am beginning to think that this
  structure cannot be created in AS as it seems like I would need an
  object with 2 properties named PlanNumber.
  
  I tried using an object with a PlanNumber property of type Array, and
  then stuffing the values into that, but that turns into
  
  SelectedPlans xmlns=
  item xmlns=78167/item
  item xmlns=78173/item
  /SelectedPlans
  
  Is there a way to create a default property of an object or something?
  Does valueOf() still exist?
  
  Ben
  
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com,
  Franck de Bruijn
  franck.de.bruijn@ wrote:
  
   Hi Ben,
   
   
   
   I do the following to achieve this.
   
   
   
   Let's say I have a Customer who can have multiple Address objects.
  Compare
   Customer with your SelectedPlans and Address with PlanNumber.
   
   
   
   My Customer AS class looks like this (boring parts omitted)
   
   
   
   package model {
   
   
   
   your imports ...
   
   
   
   public class Customer 
   
   {
   
   your other attributes
   
   public var addresses:Array = new Array();
   
   
   
   and the rest ...
   
   
   
   The Address AS class is nothing more than this:
   
   
   
   package model {
   
   
   
   your imports

[flexcoders] Re: Adding AS3 support to 3rd party editors - legal question

2006-08-04 Thread ben.clinkinbeard
Thanks Matt,

The goal is definitely to have the editor understand the AS3 format,
but in the discussion we had, the problem we saw was the lack of
source for the top-level and flash.* classes. As far as I can tell,
the only source provided with the SDK is the mx.* packages and
classes. Am I missing something?

I don't think the editor's developers (I am not one of them) have any
desire to compete with Flex Builder, they simply want to provide AS3
coding support. As far as I know, they have no plans to integrate MXML
support into the editor.

Thanks again for your replies and I will look forward to any further
clarifications you can provide.

Ben


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

 I see what you're saying now.  I'm not sure that would be the end of the
 world (the lawyer canceled the meeting so I won't get to talk to him
 till next week) but a more traditional approach would be to get your
 editor to understand the AS3 source format.  Since we ship the source in
 the SDK you could just parse that and get all the information you need.
 I think understanding the source format is going to be more flexible
 than manually entering information from livedocs.  Of course the real
 thing to do is understand the bytecode format, but we haven't documented
 that as of yet.
 
  
 
 I have asked legal for help in getting an official answer to What can I
 use from the SDK if I wanted to write my own IDE?.  It will be a few
 days before I can answer that, but I can tell you that the spirit of our
 EULA is not meant to prevent you from doing that.  So we are not trying
 to throw up legal roadblocks to you building an editor.  Which is not to
 say we're actively looking for competitors to start up when we're still
 trying to sell Flex Builder ;-)
 
  
 
 Matt 
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Thursday, August 03, 2006 1:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Adding AS3 support to 3rd party editors -
 legal question
 
  
 
 I see what you mean, I guess I am just confused on why it would matter
 if someone went through the site and manually typed out all the info
 or if they were able to write a script that could do it automatically.
 The information is there, why would it matter who/what accesses it?
 
 Also just to clarify, the way I understand it the files would only
 need to be generated once; the screen scraping would not be something
 the app did as part of its operation.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Adam Dorritie adorritie@ wrote:
 
  On 8/3/06, ben.clinkinbeard ben.clinkinbeard@ wrote:
   Thanks for the reply, Matt. If this is not ok, what would be
   acceptable methods for accomplishing things like code completion in
   third party editors? Obviously, doing this requires knowledge of the
   structure of all AS3 classes and Livedocs seems like the best/only
   'open' and free to the public source of this information. I really
   don't think any serious developer would consider an editor adequate
   without this functionality.
  
  I think that you're confusing 2 separate issues. The first is whether
  you can configure an editor to recognize (highlight, complete,
  whatever) ActionScript code using information obtained from publicly
  available documentation. The answer to this, as far as I know, is
  absolutely. The second issue, and the one which I believe that Matt
  has concerns about, is whether or not you can obtain the data you need
  to enable this feature by screen-scraping Adobe documentation. I can
  see potential issues with that. Manually enter the AS3 information
  into your editor and I would bet that you would be fine.
  
  Adam
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Adding AS3 support to 3rd party editors - legal question

2006-08-03 Thread ben.clinkinbeard
Thanks for the reply, Matt. If this is not ok, what would be
acceptable methods for accomplishing things like code completion in
third party editors? Obviously, doing this requires knowledge of the
structure of all AS3 classes and Livedocs seems like the best/only
'open' and free to the public source of this information. I really
don't think any serious developer would consider an editor adequate
without this functionality.

Thanks,
Ben

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

 I have a phone call with our lawyer tomorrow, I'll ask him.  Offhand I
 don't think scraping the livedocs is kosher, but let me get back to you.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, August 02, 2006 5:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Adding AS3 support to 3rd party editors -
 legal question
 
  
 
 Anyone? Is there a different place I should be asking this?
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Dear Adobe,
  
  I was recently having a discussion about adding AS3 support (code
  completion, type checking, etc) to a 3rd party editor and a
  legal/copyright/license question came up that I am hoping to get a
  definitive answer to. The question is basically whether or not its ok
  to create files required by the editor by scraping the language ref
  pages available on LiveDocs.
  
  It seems to me that this would be fine since (a) the pages are freely
  available to the public and (b) the SDK was released for free to
  encourage adoption and things like code completion are more or less
  requirements for an editor to be considered a legitimate development
  environment.
  
  Is my thinking correct?
  
  Thanks,
  Ben
  http://www.returnundefined.com/ http://www.returnundefined.com/ 
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Firefox + Network debugging + you

2006-08-03 Thread ben.clinkinbeard
ServiceCapture is definitely a great tool but seems to suffer if
you're behind a proxy, as you have to tell your browsers to use
ServiceCapture as their proxy. I've yet to find a configuration that
allows me to use it with both IE and FF without having to adjust
settings somewhere along the way.

Ben

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

 Second to none...  supports AMF, integrates with firefox and IE and it's
 super low priced...
 
 http://kevinlangdon.com/serviceCapture/
 
 
 
 On 8/3/06, james_dhap [EMAIL PROTECTED] wrote:
 
Hey All,
  I found an amazing tool last night that helped us track down an
  issue with a deployment of our app on our testing servers. We were
  getting strange HTTP faults that only occured on the testing server
  and it was impossible to use a http tunneling tool such as NetTools
  to track down the faults. One reason is that we dynamically change
  the server routing depending on where the app is deployed and I
  needed to verify that the calls where being formatted and routed
  correctly but do to time and out build process, putting in extra
  hooks to trap the calls and verify the output was only to be
  considered as a last resort.
 
  After doing some digging I found a Firefox extension called Tamper
  Data, that allows you to catch, hold, read, modify and even cancel
  post/get calls from the browser. Not only that, but it gives you
  timing info on the call back and even has built in charting. This
  tool allowed me to actually verify that I was sending the correct
  information and that the fault was acutally on the server and not
  the app. I highly recommend it because it is super easy to use,
  requires no port juggling (which can break the Flash sandbox on
  servers) and works on remote servers because its intergrated into
  the browser. check it out:
 
  https://addons.mozilla.org/firefox/966/
 
  - james
 
   
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Adding AS3 support to 3rd party editors - legal question

2006-08-02 Thread ben.clinkinbeard
Anyone? Is there a different place I should be asking this?

Thanks,
Ben

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

 Dear Adobe,
 
 I was recently having a discussion about adding AS3 support (code
 completion, type checking, etc) to a 3rd party editor and a
 legal/copyright/license question came up that I am hoping to get a
 definitive answer to. The question is basically whether or not its ok
 to create files required by the editor by scraping the language ref
 pages available on LiveDocs.
 
 It seems to me that this would be fine since (a) the pages are freely
 available to the public and (b) the SDK was released for free to
 encourage adoption and things like code completion are more or less
 requirements for an editor to be considered a legitimate development
 environment.
 
 Is my thinking correct?
 
 Thanks,
 Ben
 http://www.returnundefined.com/








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: DataGrid ItemRenderer

2006-08-01 Thread ben.clinkinbeard
From what I was told in a previous thread, non-visible rows are not
rendered. Basically, it renders however many rows are visible, and
then when you scroll down for instance, it moves them all up one and
moves the top row to the bottom and rerenders its content.

Ben
http://www.returnundefined.com/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Adding AS3 support to 3rd party editors - legal question

2006-08-01 Thread ben.clinkinbeard
Dear Adobe,

I was recently having a discussion about adding AS3 support (code
completion, type checking, etc) to a 3rd party editor and a
legal/copyright/license question came up that I am hoping to get a
definitive answer to. The question is basically whether or not its ok
to create files required by the editor by scraping the language ref
pages available on LiveDocs.

It seems to me that this would be fine since (a) the pages are freely
available to the public and (b) the SDK was released for free to
encourage adoption and things like code completion are more or less
requirements for an editor to be considered a legitimate development
environment.

Is my thinking correct?

Thanks,
Ben
http://www.returnundefined.com/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Educational version

2006-07-31 Thread ben.clinkinbeard
Looks like only North America, France, Germany and UK right now.

http://www.adobe.com/buy/

Ben
http://www.returnundefined.com/

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

 --- In flexcoders@yahoogroups.com, Oriol Gual oriol.gual@ 
 wrote:
 
  Hi,
  
  I've been looking at the Adobe site, and I can't find a place to 
 buy the
  educational version of FB2. I've also called the support center 
 here at
  Spain, and they've told me that there's no educational version of 
 Flex.
  
  Can anyone tell me if there's actually a educational version of 
 FB2, and how
  or where can I buy it?
  
  Thanks!
  
  Oriol.
 
 
 The educational version just showed up on Adobe's education store in 
 the past week, for a cost of $99.00.  Most distributors, such as 
 Ingram Micro have not received them yet.  However, I believe that it 
 is going to be offered for North America only for the time being.
 
  
 
 http://store.adobe.com/store/products/department.jhtml?
 id=deptEducationNR=0keyword=flex_builder_charting
 
  
 
 -Nick Kwiatkowski








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Are the contents of a WSDL document accessible?

2006-07-29 Thread ben.clinkinbeard
Hey guys, thanks for the quick replies. I actually found what I was
looking for in the docs a few minutes after posting (of course). What
I was looking for was how to access the contents of the wsdl once it
has been loaded into your app.

Turns out you can, by capturing the mx.rpc.soap.LoadEvent that is
fired when the wsdl has finished loading. LoadEvent has a 'wsdl'
property that returns a WSDL object (which I so far cannot find in the
docs) and a 'document' property which returns an old school
XMLDocument object.

The reason I was asking is because I am thinking about trying to build
 something like Web Service Studio (http://tinyurl.com/2t8gd) or Soap
UI (http://www.soapui.org/) in Flex. I've only been investigating for
about 15 minutes or so but my initial thoughts? This would be damn
hard :) We'll see how motivated I am to tackle it in the light of day.

Thanks,
Ben
http://www.returnundefined.com/

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

 Title pretty much sums it up. Is there any way to access and work with
 the actual XML contained in the WSDL document?
 
 Thanks,
 Ben
 http://www.returnundefined.com/







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: what is beeing sent via HTTPSerice?

2006-07-28 Thread ben.clinkinbeard
I strongly prefer http://kevinlangdon.com/serviceCapture/

Ben
http://www.returnundefined.com/

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

 Hi!
 
 I'm using HTTPService class to send some form data to my server
 scripts. Is there any way how to find out what exactly (what variables
 and  values) are beeing send via HTTPService?








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: feature or security hole on flash sandBox?

2006-07-27 Thread ben.clinkinbeard
There are no restrictions when running the file on your local system.
Access it through a web server and your calls will fail.

HTH,
Ben
http://www.returnundefined.com/

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

 Hi,
 
 Today I've noticed that I can load images from diferent domains (which
 doesn't have a crossdomain file) without getting a security sandbox
 violation error.
 
 For example, when running the following application from my
fileSystem I'm
 not receiving any error eventhough the domains don't have de crossdomain
 file (I also haven't trusted the file).
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
 mx:Image source=http://www.code4net.com/header/foto2.jpg;
width=800
 height=160/
 mx:Image source=
 http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg;
width=800
 height=160/
 /mx:Application
 
 So is this a new feature on the player or is it a security hole?
 
 I've been reading the document at www.adobe.com/devnet/*flash*player/
 articles/*flash*_player_8_*security*.pdf and the most accurate thing
I've
 found refering to images is: A SWF file from a.com may read from
the server
 at b.com (using the ActionScript XML.load() method, for example) if
 b.comhas a cross-domain policy file that permits access from
 a.com (or from all domains). So if the criteria for loading
external images
 is the same as for .swf...
 
 Any ideas?
 
 Best
 X.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: feature or security hole on flash sandBox?

2006-07-27 Thread ben.clinkinbeard
Hmm, I've not read enough about the newer security models to be sure,
I just assumed it was that way since earlier versions were. One thing
I did notice though was that you said you're reading from the security
whitepaper for FP8. You should be reading about FP9 since that is what
Flex and AS3 target.

HTH,
Ben
http://www.returnundefined.com/

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

 I think you're wrong. It's also working on web server. And from
local system
 you've also restrictions. Just try an application running from the local
 file system and consuming remote data throgh HTTPService, it's going to
 fail. But it's not failing with mx:Image.
 
 X.
 
 On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
  There are no restrictions when running the file on your local system.
  Access it through a web server and your calls will fail.
 
  HTH,
  Ben
  http://www.returnundefined.com/
 
  --- In flexcoders@yahoogroups.com, Xavi Beumala xavi@ wrote:
  
   Hi,
  
   Today I've noticed that I can load images from diferent domains
(which
   doesn't have a crossdomain file) without getting a security sandbox
   violation error.
  
   For example, when running the following application from my
  fileSystem I'm
   not receiving any error eventhough the domains don't have de
crossdomain
   file (I also haven't trusted the file).
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
   mx:Image source=http://www.code4net.com/header/foto2.jpg;
  width=800
   height=160/
   mx:Image source=
   http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg;
  width=800
   height=160/
   /mx:Application
  
   So is this a new feature on the player or is it a security hole?
  
   I've been reading the document at
www.adobe.com/devnet/*flash*player/
   articles/*flash*_player_8_*security*.pdf and the most accurate thing
  I've
   found refering to images is: A SWF file from a.com may read from
  the server
   at b.com (using the ActionScript XML.load() method, for example) if
   b.comhas a cross-domain policy file that permits access from
   a.com (or from all domains). So if the criteria for loading
  external images
   is the same as for .swf...
  
   Any ideas?
  
   Best
   X.
  
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread ben.clinkinbeard
Forgive the dense noob here, but how is the type info lost? I thought
that by subclassing CairngormEvent you get basic checking and then you
can just do a cast or 'event as MyCutomEvent' inside the execute
method. I guess I am just not clear on what the issue is and where the
problem lies. Can someone edumacate me?

Thanks,
Ben
http://www.returnundefined.com/

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

 Well, my events extend CairngormEvent, so I can technically upcast
'em when they get in the Command's execute method.  I know Steven
didn't really dig this idea, but if you case the type, you can compare
to the Event's constant like:
 
 public static const EVENT_DOSOMETHING:String = doSomething;
 
 function execute(event:CairngormEvent)
 {
 switch(event.type)
 {
 case MyEvent.EVENT_DOSOMETHING:
 someMethod ( MyEvent(event).someTypeSafeProp);
 break;
 }
 }
 
 
 - Original Message - 
 From: Ralf Bokelberg 
 To: flexcoders@yahoogroups.com 
 Sent: Thursday, July 27, 2006 4:20 PM
 Subject: Re: [flexcoders] Re: cairngorm Events and data payloads
 
 
 The only typesafe solution i can think of, is to abandon
CairngormEvents and replace them by methods of the FrontController.
Most of the apps i've seen so far don't make use of the runtime
changeability anyways. What do we loose if we do it like that? 
 
 Cheers,
 Ralf. 
 
 
 On 7/27/06, JesterXL [EMAIL PROTECTED] wrote:
   I'm with you.  I've been determing type of event based on the
event.type in the Command's execute method to get my strong-typing back.
 
   - Original Message - 
   From: Ralf Bokelberg 
   To: flexcoders@yahoogroups.com 
   Sent: Thursday, July 27, 2006 12:58 PM
   Subject: Re: [flexcoders] Re: cairngorm Events and data payloads
 
 
   Its really a pity, that we loose all the nice type information
while going all the way through Cairngorm. 
 
   Cheers,
   Ralf. 
 
 
   On 7/27/06, Douglas Knudsen [EMAIL PROTECTED] wrote: 
 ah, righto.  thanks d00ds.  I had this hacked up too much...no
worky good.   If only I can get that damn RO to calm down now and do
what its told!  but that's another thread.
 
 
 DK
 
 
 
 On 7/27/06, thunderstumpgesatwork  [EMAIL PROTECTED] wrote: 
   Hi,
 
   The delegate function thinks you just have a CairngormEvent. I
think
   you just need to check to make sure the event you received is your
   custom event type and then cast it.
 
   so:
 
   if (eventHere is LoadScorecardEvent) 
   {
   del.getScorecard( LoadScorecardEvent(eventHere).scorecardId );
   }
   else
   {
   // do nothing, or raise error, or log warning, or whatever.
   }
 
 
   best of luck,
   Thunder
 
   --- In flexcoders@yahoogroups.com, Douglas Knudsen
   douglasknudsen@ wrote:
   
can someone point me to a example of how to pass data in a
cairngorm
   type
event?  I'm trying the below with 
   
package com.mycompany.events
{
import com.adobe.cairngorm.control.CairngormEvent;
   
public class LoadScorecardEvent extends CairngormEvent
{
public static var EVENT_LOAD_SCORECARD: String = 
'LoadScorecardEvent';
 public var scorecardId:Number;
/**
 * The constructor,
 */
public function LoadScorecardEvent( )
{ 
super( EVENT_LOAD_SCORECARD );
   
}
   
}
   
}
   
then in a view dispatching like so
var devent : LoadScorecardEvent = new LoadScorecardEvent(  ); 
devent.scorecardId = 5;
   
   CairngormEventDispatcher.getInstance().dispatchEvent(
devent );
   
and in the command I have
   
public function execute( eventHere : CairngormEvent ) : void 
   {
  var del : MainDelegate = new MainDelegate( this );
  del.getScorecard( eventHere.scorecardId );
   
   }
   
But this bombs out with a error about scorecardId not in
eventHere. 
   
DK
   
   
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
   
 
 
 
 
 
 
 
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com 
 this is my signature, like it? 
 
 
 
 
   -- 
   Ralf Bokelberg [EMAIL PROTECTED]
 
   Flex  Flash Consultant based in Cologne/Germany 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany








--
Flexcoders Mailing List
FAQ: 

[flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread ben.clinkinbeard
Doesn't execute() accept a CairngromEvent for the sake of polymorphism
though? How could you do things any differently and still preserve
that aspect? Additionally, if you want your Commands to support
multiple types of events isn't it essential that execute() accept a
superclass or common interface? Are you just wishing AS supported
method overloading or is there something I am still not getting?

Thanks,
Ben
http://www.returnundefined.com/

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

 My initial frustration was I'd create this event class, which allowed 
 strong-typing, like so:
 
 package
 {
 import com.adobe.control.CairngormEvent;
 
 public class MyEvent extends CairngormEvent
 {
 public static const ACTION:String = action;
 
 public var someID:int;
 
 public function MyEvent(p_type:String, p_someID:int)
 {
 super(p_type);
 someID = p_someID;
 }
 }
 }
 
 So, my event now has context.  If I need to have my Command get a
person 
 record from the DB for example, this event will contain the payload it 
 needs; the person ID I'm looking for.  However, by the time it gets
to the 
 Command, it's a base class, the CairngormEvent.
 
 package
 {
 public class MyCommand implements AllTheInterfacesEct
 {
 public function execute ( event:CairngormEvent )
 {
 trace(event.someID); // faith based programming
 }
 }
 }
 
 Now, for some, their Events are directly linked to Commands, like so:
 
 LoginEvent will fire LoginCommand which calls LoginDelegate
 GetPersonEvent will fire GetPersonCommand which calls GetPersonDelegate
 
 At a simple level, yes, this'll do.  So, you can acutally make some 
 assumptions in the above; if you play by the default Cairngorm
rules, you 
 KNOW by convention that your MyCommand class will get a MyEvent, so you 
 could risk up-casting, like so:
 
 someDelegateMethod ( MyEvent ( event ) . someID );
 
 ...that's faith, though.  You'll get an exception if for some reason
that's 
 not the real event.  It'd be better if the compiler caught that vs. the 
 runtime, before it's a problem.  For me, I use multiple events inside 
 Commands, so it's exacerbated.  The Controller keeps all of this
under tabs, 
 but again, it'd be nice if MyCommand for example GOT MyEvent in the
execute. 
 I supposed you could make that assumption; not sure if it'd compile. 
 Anyway, convention over strict-typing is ok since a lot of
conventions teams 
 follow can do the above, for example, and assume you'll get what you
need.
 
 
 - Original Message - 
 From: ben.clinkinbeard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:22 PM
 Subject: [flexcoders] Re: cairngorm Events and data payloads
 
 
 Forgive the dense noob here, but how is the type info lost? I thought
 that by subclassing CairngormEvent you get basic checking and then you
 can just do a cast or 'event as MyCutomEvent' inside the execute
 method. I guess I am just not clear on what the issue is and where the
 problem lies. Can someone edumacate me?
 
 Thanks,
 Ben
 http://www.returnundefined.com/
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Well, my events extend CairngormEvent, so I can technically upcast
 'em when they get in the Command's execute method.  I know Steven
 didn't really dig this idea, but if you case the type, you can compare
 to the Event's constant like:
 
  public static const EVENT_DOSOMETHING:String = doSomething;
 
  function execute(event:CairngormEvent)
  {
  switch(event.type)
  {
  case MyEvent.EVENT_DOSOMETHING:
  someMethod ( MyEvent(event).someTypeSafeProp);
  break;
  }
  }
 
 
  - Original Message - 
  From: Ralf Bokelberg
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 4:20 PM
  Subject: Re: [flexcoders] Re: cairngorm Events and data payloads
 
 
  The only typesafe solution i can think of, is to abandon
 CairngormEvents and replace them by methods of the FrontController.
 Most of the apps i've seen so far don't make use of the runtime
 changeability anyways. What do we loose if we do it like that?
 
  Cheers,
  Ralf.
 
 
  On 7/27/06, JesterXL jesterxl@ wrote:
I'm with you.  I've been determing type of event based on the
 event.type in the Command's execute method to get my strong-typing back.
 
- Original Message - 
From: Ralf Bokelberg
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 12:58 PM
Subject: Re: [flexcoders] Re: cairngorm Events and data payloads
 
 
Its really a pity, that we loose all the nice type information
 while going all the way through Cairngorm.
 
Cheers,
Ralf.
 
 
On 7/27/06, Douglas Knudsen douglasknudsen@ wrote:
  ah, righto.  thanks d00ds.  I had this hacked up too much...no
 worky good.   If only I can get that damn RO to calm down now and do
 what

[flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread ben.clinkinbeard
Heh, sorry dood, didn't mean to challenge you while in an
exhaustion-induced haze. I just wanted to make sure there wasn't some
basic concept quietly sailing above my head. :)

Get some sleep.

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

 5 coffee's and 3 RedBull's later, I'm running on fumes, so don't
really have 
 intelligent answers for you, just guesses.
 
 Don't know, I guess you're right.
 
 Find some way to either A) follow the convention a Command will get the 
 event class of a similiar name, and thus feel safe in casting it or
B ) find 
 some way to strongly type that parameter.  You can't up-cast function 
 arguments, though, so it's kind of stuck as CairngormEvent... I think.
 
 For the multiple events, yes, you are correct.  I've definately
taken for 
 granted all my other stuff has worked for that very fact.  Oops.
 
 Actually, at this point, no clue... wtf were you talking about anyway, 
 Bokel?
 
 - Original Message - 
 From: ben.clinkinbeard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:50 PM
 Subject: [flexcoders] Re: cairngorm Events and data payloads
 
 
 Doesn't execute() accept a CairngromEvent for the sake of polymorphism
 though? How could you do things any differently and still preserve
 that aspect? Additionally, if you want your Commands to support
 multiple types of events isn't it essential that execute() accept a
 superclass or common interface? Are you just wishing AS supported
 method overloading or is there something I am still not getting?
 
 Thanks,
 Ben
 http://www.returnundefined.com/
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  My initial frustration was I'd create this event class, which allowed
  strong-typing, like so:
 
  package
  {
  import com.adobe.control.CairngormEvent;
 
  public class MyEvent extends CairngormEvent
  {
  public static const ACTION:String = action;
 
  public var someID:int;
 
  public function MyEvent(p_type:String, p_someID:int)
  {
  super(p_type);
  someID = p_someID;
  }
  }
  }
 
  So, my event now has context.  If I need to have my Command get a
 person
  record from the DB for example, this event will contain the payload it
  needs; the person ID I'm looking for.  However, by the time it gets
 to the
  Command, it's a base class, the CairngormEvent.
 
  package
  {
  public class MyCommand implements AllTheInterfacesEct
  {
  public function execute ( event:CairngormEvent )
  {
  trace(event.someID); // faith based programming
  }
  }
  }
 
  Now, for some, their Events are directly linked to Commands, like so:
 
  LoginEvent will fire LoginCommand which calls LoginDelegate
  GetPersonEvent will fire GetPersonCommand which calls
GetPersonDelegate
 
  At a simple level, yes, this'll do.  So, you can acutally make some
  assumptions in the above; if you play by the default Cairngorm
 rules, you
  KNOW by convention that your MyCommand class will get a MyEvent,
so you
  could risk up-casting, like so:
 
  someDelegateMethod ( MyEvent ( event ) . someID );
 
  ...that's faith, though.  You'll get an exception if for some reason
 that's
  not the real event.  It'd be better if the compiler caught that
vs. the
  runtime, before it's a problem.  For me, I use multiple events inside
  Commands, so it's exacerbated.  The Controller keeps all of this
 under tabs,
  but again, it'd be nice if MyCommand for example GOT MyEvent in the
 execute.
  I supposed you could make that assumption; not sure if it'd compile.
  Anyway, convention over strict-typing is ok since a lot of
 conventions teams
  follow can do the above, for example, and assume you'll get what you
 need.
 
 
  - Original Message - 
  From: ben.clinkinbeard ben.clinkinbeard@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 10:22 PM
  Subject: [flexcoders] Re: cairngorm Events and data payloads
 
 
  Forgive the dense noob here, but how is the type info lost? I thought
  that by subclassing CairngormEvent you get basic checking and then you
  can just do a cast or 'event as MyCutomEvent' inside the execute
  method. I guess I am just not clear on what the issue is and where the
  problem lies. Can someone edumacate me?
 
  Thanks,
  Ben
  http://www.returnundefined.com/
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Well, my events extend CairngormEvent, so I can technically upcast
  'em when they get in the Command's execute method.  I know Steven
  didn't really dig this idea, but if you case the type, you can compare
  to the Event's constant like:
  
   public static const EVENT_DOSOMETHING:String = doSomething;
  
   function execute(event:CairngormEvent)
   {
   switch(event.type)
   {
   case MyEvent.EVENT_DOSOMETHING:
   someMethod ( MyEvent(event).someTypeSafeProp

[flexcoders] Why does Flex insert ns0: and ns1: namespace prefixes?

2006-07-26 Thread ben.clinkinbeard
I keep seeing these prefixes that are completely unnecessary, and I
don't know why or how they're getting inserted. My calls are formatted
like this:

dmws = new WebService();
dmws.useProxy = dmws.makeObjectsBindable = false;
dmws.loadWSDL(myWsdlUrl);

var op:Operation = dmws.getOperation(GetDataByGrouping) as Operation;
op.resultFormat = e4x;
op.arguments.groupingRequests = new Object();
op.arguments.groupingRequests.GroupName = RPRToolStaticData;

Pretty simple and straightforward, but when I view the request xml
that is sent it looks like this:

GetDataByGrouping xmlns=http://site.com/BackOffice/ClientMeasures;
ns0:groupingRequests
xmlns:ns0=http://site.com/BackOffice/ClientMeasures;
ns0:DataGroupingRequest
ns0:GroupNameRPRToolStaticData/ns0:GroupName
/ns0:DataGroupingRequest
/ns0:groupingRequests
/GetDataByGrouping

Why is it redfining the namespace that is already on the
GetDataByGrouping node and muddying up the xml with unnecessary prefixes?

Thanks,
Ben
http://www.returnundefined.com/





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Why does Flex insert ns0: and ns1: namespace prefixes?

2006-07-26 Thread ben.clinkinbeard
Even stranger, it seems to add it to all of the direct child nodes of
the actual request node. Another example:

PseSearch xmlns=http://site.com/BackOffice/PseSearch;
ns0:clientNm xmlns:ns0=http://site.com/BackOffice/PseSearch/
ns0:planNm
xmlns:ns0=http://site.com/BackOffice/PseSearch;78167/ns0:planNm
ns0:RelationshipMgrNm 
xmlns:ns0=http://site.com/BackOffice/PseSearch/
ns0:maxResults
xmlns:ns0=http://site.com/BackOffice/PseSearch;100/ns0:maxResults
/PseSearch

Am I defining something incorrectly?

Thanks,
Ben
http://www.returnundefined.com/


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

 I keep seeing these prefixes that are completely unnecessary, and I
 don't know why or how they're getting inserted. My calls are formatted
 like this:
 
 dmws = new WebService();
 dmws.useProxy = dmws.makeObjectsBindable = false;
 dmws.loadWSDL(myWsdlUrl);
 
 var op:Operation = dmws.getOperation(GetDataByGrouping) as Operation;
 op.resultFormat = e4x;
 op.arguments.groupingRequests = new Object();
 op.arguments.groupingRequests.GroupName = RPRToolStaticData;
 
 Pretty simple and straightforward, but when I view the request xml
 that is sent it looks like this:
 
 GetDataByGrouping xmlns=http://site.com/BackOffice/ClientMeasures;
   ns0:groupingRequests
 xmlns:ns0=http://site.com/BackOffice/ClientMeasures;
   ns0:DataGroupingRequest
   ns0:GroupNameRPRToolStaticData/ns0:GroupName
   /ns0:DataGroupingRequest
   /ns0:groupingRequests
 /GetDataByGrouping
 
 Why is it redfining the namespace that is already on the
 GetDataByGrouping node and muddying up the xml with unnecessary
prefixes?
 
 Thanks,
 Ben
 http://www.returnundefined.com/








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Tools for listing objects

2006-07-26 Thread ben.clinkinbeard
Couldn't you just set a breakpoint and use the debugger in FB?

Ben
http://www.returnundefined.com/

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

 Does any one know of a tool like OptimizeIt! for java, or like List 
 Objects in Flash Studio for finding all objects currently in 
 existance?  We are looking to verify that we have truely cleaned up 
 objects no longer in use, and released them to the GC, but without a 
 tool like this, we cant tell what exists and what doesnt.  Does anyone 
 have any tips?








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Why does Flex insert ns0: and ns1: namespace prefixes?

2006-07-26 Thread ben.clinkinbeard
Anyone?

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

 Even stranger, it seems to add it to all of the direct child nodes of
 the actual request node. Another example:
 
 PseSearch xmlns=http://site.com/BackOffice/PseSearch;
   ns0:clientNm xmlns:ns0=http://site.com/BackOffice/PseSearch/
   ns0:planNm
 xmlns:ns0=http://site.com/BackOffice/PseSearch;78167/ns0:planNm
   ns0:RelationshipMgrNm
xmlns:ns0=http://site.com/BackOffice/PseSearch/
   ns0:maxResults
 xmlns:ns0=http://site.com/BackOffice/PseSearch;100/ns0:maxResults
 /PseSearch
 
 Am I defining something incorrectly?
 
 Thanks,
 Ben
 http://www.returnundefined.com/
 
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  I keep seeing these prefixes that are completely unnecessary, and I
  don't know why or how they're getting inserted. My calls are formatted
  like this:
  
  dmws = new WebService();
  dmws.useProxy = dmws.makeObjectsBindable = false;
  dmws.loadWSDL(myWsdlUrl);
  
  var op:Operation = dmws.getOperation(GetDataByGrouping) as
Operation;
  op.resultFormat = e4x;
  op.arguments.groupingRequests = new Object();
  op.arguments.groupingRequests.GroupName = RPRToolStaticData;
  
  Pretty simple and straightforward, but when I view the request xml
  that is sent it looks like this:
  
  GetDataByGrouping xmlns=http://site.com/BackOffice/ClientMeasures;
  ns0:groupingRequests
  xmlns:ns0=http://site.com/BackOffice/ClientMeasures;
  ns0:DataGroupingRequest
  ns0:GroupNameRPRToolStaticData/ns0:GroupName
  /ns0:DataGroupingRequest
  /ns0:groupingRequests
  /GetDataByGrouping
  
  Why is it redfining the namespace that is already on the
  GetDataByGrouping node and muddying up the xml with unnecessary
 prefixes?
  
  Thanks,
  Ben
  http://www.returnundefined.com/
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: What Other Eclipse Plugs Do You Use?

2006-07-26 Thread ben.clinkinbeard
My favorite added functionality so far is a side effect of having FDT
installed. Just posted about it here:
http://www.returnundefined.com/2006/07/smart-home-functionality-in-flex-builder-2/

Ben
http://www.returnundefined.com/


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

 Since I'm installing plugs into the IDE, as a corollary to the post
I just
 sent, what other Eclipse plugs are you using and recommend?
  
 TIA,
 Kevin








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Best practices for organizing base code library and project specific code

2006-07-25 Thread ben.clinkinbeard
Just wondering how people out there approach this. Obviously, I have
my project neautral, reusable code stored in a structure like
com.mydomain.utils, etc. This is off in a general location. Currently,
I have a structure like com.mydomain.projects.MyCurrentProject inside
the actual Flex project folder, and I link the reusable code's folder
into the project.

Using the com.mydomain.etc structure in my project folders means I
could later integrate all of the code into one location without
editing the packages, so I am wondering if I should just do that to
begin with. If I kept everything in a central place I could just link
my library to each project but I would not have any code held with the
actual Flex files. I think I prefer my current approach but would like
to get some feedback from others and see what other methods people are
using.

Thanks,
Ben
http://www.returnundefined.com/






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Auto-complete list for ComboBox different in AS and MXML - why?

2006-07-25 Thread ben.clinkinbeard
Hello, I have a ComboBox defined in MXML that when I go to add an
attribute to, the auto-complete list includes selectedIndex, but not
selectedItem or selectedLabel. When I address the cb in AS, I get all
3 options as expected.

Sup wit dat?

Thanks,
Ben
http://www.returnundefined.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: QuickDateFormatter - how can I make it MXML enabled?

2006-07-24 Thread ben.clinkinbeard
OK, I've made a modified version more suitable for MXML and would love
to get feedback from everyone. Ideally I would be able to bind a field
or label directly to the formatted output and would not require a
click to 'reset' the field that is bound to the formatted value. How
would I accomplish that? (I tried but was unsuccessful.) Here is the
modified class:

public class QuickDateFormatter extends DateFormatter
{
public var str_dateString:String;
public var str_dateFormat:String;
[Bindable] public var str_formattedDate:String;

public function getFormattedDate():void
{
var f:DateFormatter = new DateFormatter();
f.formatString = str_dateFormat;
str_formattedDate =
f.format(DateFormatter.parseDateString(str_dateString));
}
}

and a sample usage:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:local=*
local:QuickDateFormatter id=qdf str_dateString={d.text}
str_dateFormat={f.text} /
mx:Label text={qdf.str_formattedDate} x=72 y=168/
mx:TextInput x=72 y=117 width=133 id=d/
mx:TextInput x=222 y=117 width=91 id=f/
mx:Label x=72 y=91 text=Date/
mx:Label x=222 y=91 text=Format/
mx:Button x=341 y=117 label=Go click=qdf.getFormattedDate();/
/mx:Application

Thanks,
Ben
http://www.returnundefined.com




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

 All you have to do is add public properties like this:
 
 [Bindable]
 public var str_dateFormat:String;
 [Bindable]
 public var str_dateString:String;
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Yea, what I am looking for is some help on what changes would need to
  be made to the class to allow it to be used in a format similar to
this:
  
  utils:QuickDateFormatter id=qdf str_dateString={model.someDate}
  str_dateFormat=MM/DD/YY /
  mx:Label text={qdf} /
  
  Thanks,
  Ben
 








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: QuickDateFormatter - how can I make it MXML enabled?

2006-07-24 Thread ben.clinkinbeard
OK, I've got it working how I wanted. Would love to hear feedback on
my structure as well as whether or not you find this useful.

Usage:

local:QuickDateFormatter id=qdf date={fieldOne.text}
dateFormat={fieldTwo.text} /
mx:Label text={qdf.output}/

Source class:

package
{
import mx.formatters.DateFormatter;

public class QuickDateFormatter extends DateFormatter
{
private var _str_dateString:String;
private var _str_dateFormat:String;
[Bindable] public var output:String;

public function get date():String
{
return _str_dateString;
}

public function set date(a_str:String):void
{
_str_dateString = a_str;
reformat();
}

public function get dateFormat():String
{
return _str_dateFormat;
}

public function set dateFormat(a_str:String):void
{
_str_dateFormat = a_str;
reformat();
}

private function reformat():void
{
var f:DateFormatter = new DateFormatter();
f.formatString = _str_dateFormat;
output =
f.format(DateFormatter.parseDateString(_str_dateString));
}
}
}

Let me know what you think!
Ben
http://www.returnundefined.com/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Installation of Cairngorm2 - instructions are WRONG!

2006-07-24 Thread ben.clinkinbeard
Not sure if you're just wanting to install the example or make the
files available to other projects, but in case the latter is what
you're after, here goes. Create your project, right click on it in the
navigation pane and go to properties. Go to the library path tab and
click 'add swc'. Navigate to the folder you downloaded Cairngorm into
and select cairngorm.swc. You will then have access to the Cairngorm
classes. They'll not be visible, but you can import and use them by
addressing the com.adobe.cairngorm.whatever package.

HTH,
Ben

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

 I have repeatedly attempted to install the Cairngorm2 files on my 
 system and have failed each time.  The instructions in the 
 README.TXT file are as follow.  These instructions are out of date 
 and do not follow the installation requirements of the final Flex 
 production release.  Does ANYONE have explicit instructions for 
 installing the Cairngorm2 system on the final released Flex system?
 
 
 Installation Using FlexBuilder 2
 
 
 1) Extract the zip file into a local directory on your machine - eg, 
 c:\dev\cairngorm2\. 
 2) Launch Flex Builder 2 and choose New Project from the File 
 menu. Create a new Flex project. 
 3) In answer to Will this project be using Enterprise Services, 
 choose No. 
 4) In the following screen in the new project wizard, give the 
 project name CairngormLogin, set the Project Location 
 to c:\dev\cairngorm2\ and set the Main application file 
 to CairngormLogin.mxml 
 5) Press the Finish button 
 
 You should now have a new Flex project, with CairngormLogin.mxml 
 opened and ready to run. Press the run button on the FlexBuilder 
 toolbar, and the application should compile and launch into your 
 browser. 
 
 The CairngormLogin application is by no means intended to be a 
 showcase for Cairngorm; it is a barebones application that allows 
 you to prove your Cairngorm installation is working, and 
 demonstrates a little of the usage of the API.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: QuickDateFormatter - how can I make it MXML enabled?

2006-07-24 Thread ben.clinkinbeard
Thanks gotgoose, I actually realized a lot of that a while after my
post and hadn't gotten a chance to update this thread. Thanks for
pointing me to that section in the help though, there is some good
info there. Upon further review, you can basically do what I was
attempting with the built-in DateFormatter.

mx:DateFormatter id=df formatString=MM-DD- /
mx:TextInput id=t /
mx:Label id=out text={df.format(t.text)}/

My initial purpose was to create a shorter way of formatting dates in
AS, which I accomplished and can use like this:

QuickDateFormatter.format(myUnformattedString, MM/DD/);

Applying it to MXML just sounded like a good learning exercise. I
guess a little more research would've helped. :) Thanks for your help.

Ben
http://www.returnundefined.com/


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

 First of all, I would read Creating and Extending Flex 2 Components 
 Creating Nonvisual Flex Components  Creating Custom Formatters 
 Creating a custom formatter in the documentation.
 
 The documentation for DateFormatter says that it has a formatString
 variable, so you can get rid of str_dateFormat and just use formatString
 on your tag.  Also, the correct function to override in your custom
 formatter is format() so you can replace getFormattedDate() with:
 
 override public function format(value:Object):String
 {
  return super.format(value);
 }
 
 Then, you can add this public getter function to bind your
 str_formattedDate.
 
 public function get formattedDate():String
 {
  return format(str_dateString);
 }
 
 Then, change {qdf.str_formattedDate} to {qdf.formattedDate}.  I believe
 this should work, report back if you encounter any problems.
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  OK, I've made a modified version more suitable for MXML and would love
  to get feedback from everyone. Ideally I would be able to bind a field
  or label directly to the formatted output and would not require a
  click to 'reset' the field that is bound to the formatted value. How
  would I accomplish that? (I tried but was unsuccessful.) Here is the
  modified class:
 
  public class QuickDateFormatter extends DateFormatter
  {
   public var str_dateString:String;
   public var str_dateFormat:String;
   [Bindable] public var str_formattedDate:String;
 
  public function getFormattedDate():void
  {
  var f:DateFormatter = new DateFormatter();
  f.formatString = str_dateFormat;
  str_formattedDate =
  f.format(DateFormatter.parseDateString(str_dateString));
  }
  }
 
  and a sample usage:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute xmlns:local=*
   local:QuickDateFormatter id=qdf str_dateString={d.text}
  str_dateFormat={f.text} /
   mx:Label text={qdf.str_formattedDate} x=72 y=168/
   mx:TextInput x=72 y=117 width=133 id=d/
   mx:TextInput x=222 y=117 width=91 id=f/
   mx:Label x=72 y=91 text=Date/
   mx:Label x=222 y=91 text=Format/
   mx:Button x=341 y=117 label=Go
 click=qdf.getFormattedDate();/
  /mx:Application
 
  Thanks,
  Ben
  http://www.returnundefined.com
 
 
 
 
  --- In flexcoders@yahoogroups.com, gotgoose09 thegoosmans@ wrote:
  
   All you have to do is add public properties like this:
  
   [Bindable]
   public var str_dateFormat:String;
   [Bindable]
   public var str_dateString:String;
   --- In flexcoders@yahoogroups.com, ben.clinkinbeard
   ben.clinkinbeard@ wrote:
   
Yea, what I am looking for is some help on what changes would need
 to
be made to the class to allow it to be used in a format similar to
  this:
   
utils:QuickDateFormatter id=qdf
 str_dateString={model.someDate}
str_dateFormat=MM/DD/YY /
mx:Label text={qdf} /
   
Thanks,
Ben
   
  
 







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: performance issues

2006-07-21 Thread ben.clinkinbeard
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 comparing against the old value and if it hasn't changed not doing
anything, it may be that it's invalidating too often?

A couple of days ago I discovered that this 'event' fires every time
the row is scrolled into or out of view. So if you are scrolling
quickly, this code could be firing tens of times just over a half
second or whatever. Setting a flag is definitely a good idea. Here is
what my code ended up looking like (itemRenderer was just a checkbox
with a dynamic label):

private var str_label:String;

override public function set data(value:Object):void
{
use namespace DOCUMENT_METADATA_NAMESPACE;
var q:QName = new QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);

super.data = value;

if(super.data[q] != str_label)
{
cb_planNumber.label = str_label = super.data[q];
cb_planNumber.selected = false;
}
}

HTH,
Ben






 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] QuickDateFormatter - how can I make it MXML enabled?

2006-07-21 Thread ben.clinkinbeard
Hello all, I have created and documented a class that greatly
simplifies the process of converting a date string to an alternately
formatted date string. The current incarnation is described here:
http://www.returnundefined.com/2006/07/quickdateformatter-efficient-date-formatting-in-as3/,
but I am wondering how I would go about making a version that is able
to be used in MXML. I know it would involve the creation of some
public properties but beyond that I am pretty clueless. Can someone
point me in the right direction?

Thanks,
Ben






 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: QuickDateFormatter - how can I make it MXML enabled?

2006-07-21 Thread ben.clinkinbeard
Sorry, it attached my comma to the link. Should be
http://www.returnundefined.com/2006/07/quickdateformatter-efficient-date-formatting-in-as3/

Thanks,
Ben





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: QuickDateFormatter - how can I make it MXML enabled?

2006-07-21 Thread ben.clinkinbeard
Yea, what I am looking for is some help on what changes would need to
be made to the class to allow it to be used in a format similar to this:

utils:QuickDateFormatter id=qdf str_dateString={model.someDate}
str_dateFormat=MM/DD/YY /
mx:Label text={qdf} /

Thanks,
Ben






 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Flex Builder flakiness - Smart Home works!!!

2006-07-21 Thread ben.clinkinbeard
Hi Sho and others,

I have discovered an easy way to get 'smart home' behavior in Flex
Builder: having FDT (http://fdt.powerflasher.com) installed. You don't
have to purchase it (I almost forgot I had installed the trial on my
work machine months ago), you just have to install and 'activate' it
by opening an AS file with it. Do an 'Open with -' and then choose
what should be the second item that says 'ActionScript Editor' (the
icon is different than the default FB one). Close the file and thats
it! Open any AS file as usual with double click or whatever and test
it out. Pressing home should now take you to the first non-whitespace
character, respecting whatever indentation is present.

Hopefully others find this as useful as I do. Lack of smart home
functionality is a huge nuissance in my workflow.

Ben
http://www.returnundefined.com/


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

 The issue about not resolving errors upon saving a file is troubling. If
 you can isolate the bug any further, it would help us solve it.
  
 The smart home approach is not something we had time to implement for
 FB 2.0. Sorry!
  
 -Sho
 
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
   Sent: Tuesday, July 18, 2006 1:55 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex Builder flakiness
   
   
 
   FB seems to behave very unpredictably for me. On my machine at
 work it
   will not find or resolve any errors upon saving a file. To do
 either
   of those things I must actually build/launch the app.
   
   On my home machine, FB doesn't use the 'smart home' approach
 where
   pressing the Home key takes you to the first non-whitespace
 character.
   It takes you all the way home, disregarding any existing tabs.
   
   Can anyone tell me how to resolve these issues?
   
   Thanks,
   Ben







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Loading configuration file on runtime

2006-07-20 Thread ben.clinkinbeard
import flash.events.Event;
import flash.net.*;

public function execute():void
{
var XML_URL:String = ../config/config.xml;
var myXMLURL:URLRequest = new URLRequest(XML_URL);
appLoader = new URLLoader(myXMLURL);
appLoader.addEventListener(complete, configLoaded);
}

private function configLoaded(event:Event):void
{ 
appConfigData = new XML(appLoader.data);
}

HTH,
Ben



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

 I'm looking for a way to load a configuration file in flex that is in
 the folder on runtime.   It can be any type of text file I just want to
 load it then declare a variable from the item that is loaded.A
 simple question I thought but I still can't find the answer.  Any help
 is greatly appreciated. [:-/]







 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-20 Thread ben.clinkinbeard
Hey Tim,

No worries, I didn't think you were being harsh, I just wanted to
clarify what I was referring to. I am very new to Flex, so as long as
it doesn't involve calling me names I am willing to listen to just
about any advice. Actually, I could probably overlook namecalling if
the info was good enough. :)

I suppose I understand the event firing due to the redraw, it just
seems like a 'dataChange' event should only fire when, you know, data
changes. I will look into your article and custom events when I get
some time, thanks for the tip.

Jesse, going to those lengths seems like a bit of overkill when all
the itemRenderer consists of is a Checkbox with a dynamic label. I
guess for now I will stick with my 'dirty and hackish' flag var, until
I have time to further investigate/implement something like what Tim
showed.

Thanks for everyone's help.

Ben






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Cairngorm 2 - Operation.arguments not clearing after call

2006-07-20 Thread ben.clinkinbeard
Hello all, this post is a bit long but I have tried to organize it to
accomodate easy reading. I have modified my ServiceLocator so that my
services are defined in AS, and am calling loadWSDL() from the
constructor of my delegates. The problem is that if I call an
operation more than once in my app, the arguments property never seems
to get cleared, it just ends up with multiple copies of the the
current set of arguments in it.  These are some snippets of my code:

bServices.mxml (inside a Script tag obviously)/b
// *** CLIENT MEASURES WEB SERVICE ***
cmws = new mx.rpc.soap.WebService();
cmws.useProxy = cmws.makeObjectsBindable = false;

bClientMeasuresDelegate.as/b
public function ClientMeasuresDelegate(callingCommand:IResponder) 
 {
responder = callingCommand;
service = ServiceLocator.getInstance().getService(cmws) as
WebService;
  
service.loadWSDL(ModelLocator.getInstance()[EMAIL PROTECTED]
+ ?WSDL);
  }

public function loadClientMeasures():void
  {
var op:Operation = service.getOperation(GetDataByGrouping) as
Operation;
op.resultFormat = e4x;
op.arguments.groupingRequests = new Object();
op.arguments.groupingRequests.GroupName = RPRTool;
...
}

bLoadClientMeasuresCommand.as/b
public function execute(event:CairngormEvent):void
{
var delegate:ClientMeasuresDelegate = new ClientMeasuresDelegate(this);
delegate.loadClientMeasures();
}

The second time I call loadClientMeasures(), there are 2
groupingRequests objects on the arguments property, the third time
there are 3, etc, but the contents of each are identical (even though
other arguments that are not shown here change between calls).
Shouldn't these be getting cleared since I am
creating a new instance of ClientMeasuresDelegate each time? Any help
is appreciated.

Thanks,
Ben





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-19 Thread ben.clinkinbeard
Thanks to everyone for the replies. Unfortunately, this approach has a
rather nasty side effect, which I can only assume is a bug. Also,
isn't this the same as having an event handler for the dataChange
event on the itemRenderer?

The side effect is that if your DataGrid has a scrollbar and you
scroll an item out of view, this event/method gets executed; in my
case clearing the selection. Why the dataChange event (pretty sure
that's what this is capturing) would be dispatched due to scrolling is
beyond me, so my guess is that its a bug.

Still looking for a solution,
Ben





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Flex Builder flakiness

2006-07-19 Thread ben.clinkinbeard
OK, I am afraid to start messing around with disabling plugins and
stuff :) I don't want to lose the functionality I've magically
obtained! Instead, I have taken a screenshot of my plugins window so
that others can try installing items from the list if they so desire.
http://www.returnundefined.com/files/misc/eclipse_plugins.jpg

The problem with not finding/resolving errors on save (it doesn't even
try) is consistent across all projects, regardless of how they were
created. I am not sure how to investigate this further but if you have
suggestions I am certainly open to trying them.

On a somewhat related note, why isn't there a 'Never' option for the
'Continue launch if project contains errors' setting? When it is set
to prompt you, checking the 'remember my choice' checkbox only works
if you choose yes. We really should be able to globally say 'never
launch a project that contains errors'.

Thanks,
Ben






 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-19 Thread ben.clinkinbeard
OK, putting a small flag into the function that checks to see if the
data is actually new seems to be a decent way around the firing when
scrolling, but it feels kinda dirty and hackish.

private var str_label:String;

override public function set data(value:Object):void
{
use namespace DOCUMENT_METADATA_NAMESPACE;
var q:QName = new 
QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);

super.data = value;

if(data[q] != str_label)
{
cb_planNumber.label = str_label = 
data[q];
cb_planNumber.selected = false;
}
}

Can someone, ideally from Adobe, confirm or deny my thought that the
event being dispatched on scroll is a bug?

Thanks,
Ben


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

 Hi Ben,
 
 As Stacey suggests, put this function in your itemRenderer:
 
 override public function set data(value:Object):void {
  super.data = value;
  cb_planNumber.selected = false;
 }
 
 Everytime the data changes in the itemRenderer, the function will 
 execute.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard 
 ben.clinkinbeard@ wrote:
 
  I'm sorry Stacey, I don't follow. Can you please explain further?
  
  Thanks,
  Ben
  
  --- In flexcoders@yahoogroups.com, Stacey Mulcahy stacey@ 
 wrote:
  
   Can you not overwrite the data property it sets using the 
 override and
   setting the data of the super to the value and doing what you 
 want?
   

   
   Override public function set data (value:object):void{ 
 super.data=value;
   cb_planNumber.selected=value.someBoolean// do stuff }
   
 _  
   
   From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
   Behalf Of ben.clinkinbeard
   Sent: Tuesday, July 18, 2006 1:01 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: How do I reset itemRenderer inside
  DataGrid when
   dataProvider is updated?
   

   
   Thanks for the reply, Tim. Unfortunately, the selected state is 
 not
   held in the data. The checkboxes should always begin unchecked, 
 but
   the user can (obviously) check them. The checkboxes apparently 
 get
   reused though, not all created every time, because
   cb_planNumber.selected = false; does not work either.
   
   Thanks,
   Ben
   
   --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
  ups.com,
   Tim Hoff TimHoff@ wrote:
   

Hey Ben,

In addition to setting the label, you have to set the selected
  property.

var q:QName = new QName
 (DOCUMENT_METADATA_NAMESPACE, PlanNumber);
var r:QName = new QName(DOCUMENT_METADATA_NAMESPACE,
PlanNumberSelected);
cb_planNumber.label = data[q];
cb_planNumber.selected = data[r];

Depending on your data structure, PlanNumberSelected is the 
 value
  field
from the data.

-TH

--- In [EMAIL PROTECTED] mailto:flexcoders%
 40yahoogroups.com
  ups.com,
   ben.clinkinbeard
ben.clinkinbeard@ wrote:

 Hello, I have seen this dicussed on here a bit but nothing 
 seems
  to be
 working for me. I have a DataGrid whose dataProvider 
 property is
  bound
 to an XMLList. One of the columns, however, uses an 
 itemRenderer to
 display a checkbox with a label. The label comes from the 
 data item,
 so this is what my itemRenderer component currently looks 
 like:

 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.adobe.
  http://www.adobe.com/2006/mxml
   com/2006/mxml
 horizontalAlign=center creationComplete=getLabel()
 mx:Script
 ![CDATA[
 import

   
  
  
 com.fmr.tests.PSA_Cairngorm.business.namespaces.DOCUMENT_METADATA_NAM
 ESP\
ACE;

 private function getLabel():void
 {
 use namespace DOCUMENT_METADATA_NAMESPACE;
 var q:QName = new QName
 (DOCUMENT_METADATA_NAMESPACE, PlanNumber);
 cb_planNumber.label = data[q];
 }
 ]]
 /mx:Script
 mx:CheckBox id=cb_planNumber /
 /mx:HBox

 The problem is that when the XMLList that is the 
 dataProvider is
 updated, the checkboxes' labels get updated correctly, but 
 the
 selected state of the checkboxes does not. So basically I 
 need to
 capture that event so that I can uncheck all of the 
 checkboxes. A
 'labelChanged' event or something similar would be great but 
 doesn't
 seem to exist. What am I missing here?

 Thanks in advance,
 Ben

   
  
 







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM

[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-19 Thread ben.clinkinbeard
Hi Tim,

The part I was referring to as 'dirty and hackish' was having to check
to see if the data was actually new, due to the fact that the
event/method fires whenever a row is scrolled in or out of view. I can
only assume this is a bug and will attempt to report it as such unless
someone informs me otherwise.

As for your suggestion about passing in the data from the parent, I am
certainly open to suggestions. Can you explain a bit further or show a
brief example?

Thanks,
Ben

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

 Not at all.  Overriding the set data function is commonly used.  
 What feels dirty and hackish to me, is getting the data inside of 
 the itemRenderer instead of passing it in from the parent.  .02 :)
 
 -TH





 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Flex Builder flakiness

2006-07-19 Thread ben.clinkinbeard
Hi Cameron,

I am using the plugin version. I actually saw your post in another
thread about these problems and will most likely install the
standalone after purchasing FB. Here's hoping that fixes it!

Thanks,
Ben

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

 Ben-
 
 Are you using the plugin version of the Builder or the stand-alone
 version?  I've had significant problems getting the Eclipse plugin
 version to work, having similar problems to the ones you describe.  I
 finally gave up and installed the stand-alone builder and it seems to
 be behaving much better.
 
 -Cameron
 
 On 7/18/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
  FB seems to behave very unpredictably for me. On my machine at work it
  will not find or resolve any errors upon saving a file. To do either
  of those things I must actually build/launch the app.
 
  On my home machine, FB doesn't use the 'smart home' approach where
  pressing the Home key takes you to the first non-whitespace character.
  It takes you all the way home, disregarding any existing tabs.
 
  Can anyone tell me how to resolve these issues?
 
  Thanks,
  Ben
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 -- 
 Cameron Childress
 Sumo Consulting Inc
 http://www.sumoc.com
 ---
 cell:  678.637.5072
 aim:   cameroncf
 email: [EMAIL PROTECTED]








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-18 Thread ben.clinkinbeard
Hello, I have seen this dicussed on here a bit but nothing seems to be
working for me. I have a DataGrid whose dataProvider property is bound
to an XMLList. One of the columns, however, uses an itemRenderer to
display a checkbox with a label. The label comes from the data item,
so this is what my itemRenderer component currently looks like:

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=center creationComplete=getLabel()
mx:Script
![CDATA[
import
com.fmr.tests.PSA_Cairngorm.business.namespaces.DOCUMENT_METADATA_NAMESPACE;

private function getLabel():void
{
use namespace DOCUMENT_METADATA_NAMESPACE;
var q:QName = new 
QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);
cb_planNumber.label = data[q];
}
]]
/mx:Script
mx:CheckBox id=cb_planNumber /
/mx:HBox

The problem is that when the XMLList that is the dataProvider is
updated, the checkboxes' labels get updated correctly, but the
selected state of the checkboxes does not. So basically I need to
capture that event so that I can uncheck all of the checkboxes. A
'labelChanged' event or something similar would be great but doesn't
seem to exist. What am I missing here?

Thanks in advance,
Ben






 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-18 Thread ben.clinkinbeard
Correction: even the labels are not updating sometimes.

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

 Hello, I have seen this dicussed on here a bit but nothing seems to be
 working for me. I have a DataGrid whose dataProvider property is bound
 to an XMLList. One of the columns, however, uses an itemRenderer to
 display a checkbox with a label. The label comes from the data item,
 so this is what my itemRenderer component currently looks like:
 
 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 horizontalAlign=center creationComplete=getLabel()
   mx:Script
   ![CDATA[
   import

com.fmr.tests.PSA_Cairngorm.business.namespaces.DOCUMENT_METADATA_NAMESPACE;
   
   private function getLabel():void
   {
   use namespace DOCUMENT_METADATA_NAMESPACE;
   var q:QName = new 
 QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);
   cb_planNumber.label = data[q];
   }
   ]]
   /mx:Script
   mx:CheckBox id=cb_planNumber /
 /mx:HBox
 
 The problem is that when the XMLList that is the dataProvider is
 updated, the checkboxes' labels get updated correctly, but the
 selected state of the checkboxes does not. So basically I need to
 capture that event so that I can uncheck all of the checkboxes. A
 'labelChanged' event or something similar would be great but doesn't
 seem to exist. What am I missing here?
 
 Thanks in advance,
 Ben








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: Scaling up.

2006-07-18 Thread ben.clinkinbeard
Telecommuters?

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

 No, not servers, but brain-power.  To put bluntly we're looking for
 the best RIA developers in the world, and I figured there's no better
 place to look for that than Flexcoders, so here goes.  
 
 Basically we are actively looking for world-class and passionate
 people that want to be a part of some of the coolest Flex projects
 around and to be able to work side-by-side with other passionate and
 experienced devs doing what we love.  
 
 What makes Flexcoders so popular is having a group of peers you can
 bounce ideas and approaches off of, and learn and grow all the more
 quickly.  That is what I know I love about Cynergy.  Small, agile,
 iterative teams with a passion for the users experience, working
 together and knocking out some serious apps and having fun doing it.
 
 For those of you long-timers on this board, its pretty obvious that
 the growth of interest in RIA in general and Flex as that RIA platform
 has simply exploded over the last 12 months.  We can see it in the
 sheer number and kinds of projects we're doing in Flex today. If you
 are interested in being a part of this place, and in working on these
 projects please drop me a quick line. I'd love to show you what we're
 doing, how we do it, and talk about how you can be a part of it.
 
 Oh, and you can even meet a few of the guys and what we're doing
 over on our blogs too.
 
 
 See ya,
 
 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Adobe Flex Alliance Partner
 http://www.cynergysystems.com
 http://www.cynergysystems.com/blogs
 
 Email:  [EMAIL PROTECTED]
 Office: 866-CYNERGY








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-07-18 Thread ben.clinkinbeard
Thanks for the reply, Tim. Unfortunately, the selected state is not
held in the data. The checkboxes should always begin unchecked, but
the user can (obviously) check them. The checkboxes apparently get
reused though, not all created every time, because
cb_planNumber.selected = false; does not work either.

Thanks,
Ben

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

 
 Hey Ben,
 
 In addition to setting the label, you have to set the selected property.
 
 var q:QName = new QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);
 var r:QName = new QName(DOCUMENT_METADATA_NAMESPACE,
 PlanNumberSelected);
 cb_planNumber.label = data[q];
 cb_planNumber.selected = data[r];
 
 Depending on your data structure,  PlanNumberSelected is the value field
 from the data.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Hello, I have seen this dicussed on here a bit but nothing seems to be
  working for me. I have a DataGrid whose dataProvider property is bound
  to an XMLList. One of the columns, however, uses an itemRenderer to
  display a checkbox with a label. The label comes from the data item,
  so this is what my itemRenderer component currently looks like:
 
  ?xml version=1.0 encoding=utf-8?
  mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
  horizontalAlign=center creationComplete=getLabel()
  mx:Script
  ![CDATA[
  import
 

com.fmr.tests.PSA_Cairngorm.business.namespaces.DOCUMENT_METADATA_NAMESP\
 ACE;
 
  private function getLabel():void
  {
  use namespace DOCUMENT_METADATA_NAMESPACE;
  var q:QName = new QName(DOCUMENT_METADATA_NAMESPACE, PlanNumber);
  cb_planNumber.label = data[q];
  }
  ]]
  /mx:Script
  mx:CheckBox id=cb_planNumber /
  /mx:HBox
 
  The problem is that when the XMLList that is the dataProvider is
  updated, the checkboxes' labels get updated correctly, but the
  selected state of the checkboxes does not. So basically I need to
  capture that event so that I can uncheck all of the checkboxes. A
  'labelChanged' event or something similar would be great but doesn't
  seem to exist. What am I missing here?
 
  Thanks in advance,
  Ben
 








 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: State vars: good, bad, ugly?

2006-07-18 Thread ben.clinkinbeard
Thanks for the replies everyone. My app/TN actually has 8 states/tabs,
but I still ended up going with the simple approach. In case anyone is
interested, the code is below. Further thoughts still welcome.

mx:TabNavigator id=tn change=updateActiveTabIndex()
selectedIndex={ModelLocator.getInstance().activeTabIndex}
 view:SearchTab label=Search id=searchTab width=100%
height=100% /
 view:DocumentTab label=Document id=documentTab width=100%
height=100% /
 !-- More tabs here --
/mx:TabNavigator

And the function that keeps my model updated when the tabs are
directly clicked:

private function updateActiveTabIndex():void
{
 ModelLocator.getInstance().activeTabIndex = tn.selectedIndex;
}

And the types of commands I make from other parts of the app:

ModelLocator.getInstance().activeTabIndex = ModelLocator.DOCUMENT_TAB;

Cheers,
Ben





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Scaling up.

2006-07-18 Thread ben.clinkinbeard
Just to clarify, I was wondering if the side-by-side was meant to be
taken literally. Sorry if this is a dumb question.

Thanks,
Ben






 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




<    1   2   3   4   5   6   7   >