Re: [flexcoders] Amazon S3 + Flex Uploader // help!

2008-05-23 Thread Peter Connolly
Take a look at the Salsa sample application.  It's an AIR app that
manages files on Amazon S3.


Re: [flexcoders] Copying an Object

2008-04-24 Thread Peter Connolly
Take a look at the copy() method in ObjectUtil:

http://livedocs.adobe.com/flex/2/langref/mx/utils/ObjectUtil.html#copy()


Re: [flexcoders] Re: Copying an Object

2008-04-24 Thread Peter Connolly
As an additional note, when using ObjectUtil.copy() with your own
user-defined classes (i.e., not Object, ObjectProxy,...), you may have
to use [RemoteClass] metadata or the registerClassAlias() method.

The problem is that ...when an object is deserialized from AMF, it
does not automatically get created as a class instance. The object
might have all of the properties of a class instance, but it will not
be a true class instance unless the AMF packet includes type
information about the object.  The type information gets added to AMF
in one of two ways:
- Using the {RemoteClass] metadata tag.
- Using the registerClassAlias() method.
...

I found this out the hard way.

pc


Re: [flexcoders] Need help buying Flex licenses in US$ - Intl prices are highway robbery!

2008-04-16 Thread Peter Connolly
That's really weird, given the state of our deflating US dollar.
Adobe, what's up???


On Wed, Apr 16, 2008 at 6:23 PM, Josh McDonald [EMAIL PROTECTED] wrote:






 Hi guys,

 Can anybody point me to a reseller who sells Flex licenses in US$ to non-US
 addressed credit cards? We don't want discs, we're not in Nigeria or Russia,
 and all calls go to the same call centre in India, why the bloody hell
 should Australians pay 90% more for a 40 character string?

 -J

 --
 Therefore, send not to know For whom the bell tolls, It tolls for thee.

  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED] 


Re: [flexcoders] Soap and Dates - big problems! any soap+flex ninjas here can help?

2008-04-11 Thread Peter Connolly
Not a ninja.  But I find the following section of the livedocs invaluable:

http://livedocs.adobe.com/flex/3/html/data_access_3.html#202409

Especially the section: Decoding XML schema and SOAP to ActionScript 3

And the equally important: XML Schema element support

pc


Re: [flexcoders] File upload to amazon S3 from Flex

2008-04-03 Thread Peter Connolly
Have you taken a look at the Salsa Air application?

http://download.macromedia.com/pub/labs/air/sample_apps/b1/Salsa.air

It uploads files to Amazon S3.


Re: [flexcoders] Binding WebService Data to ArrayCollection

2008-03-25 Thread Peter Connolly
First off, that's not a WSDL.  That looks more like a response message.

In your mx:WebService code, are you calling a result method?  For example:

 ... result=handleGetCalendarTypes(event)/

If your WSDL defines CalendarType as a xs:element ...
maxOccurs=unbounded/, you should be able to assign that to an
ArrayCollection directly, e.g.:

 var results:ArrayCollection = event.result.CalendarType;

But it's hard to tell with those small snippets of code.  Can you
share your WSDL?


Re: [flexcoders] Bookmark Window

2008-03-13 Thread Peter Connolly
If you're talking about Flex Builder 3 Eclipse Plug-in, then
Window--Show View--Other...--General/Bookmarks displays the
Bookmarks view.  The Window--Show View is available regardless of
which perspective I switch to.


[flexcoders] Re: FB3B3 webservice response received but not bound to event.result

2008-03-11 Thread Peter Connolly
The problem was caused when I switched from the use of
SimpleWsdl11Definition to DynamicWsdl11Definition in my Spring Web
Service application.  My WSDL had one response layout that was shared
by multiple request layouts.  The DynamicWsdl11Definition was building
the request layouts properly (from the XSD) but wasn't generating the
response layout.  Flex received the response but since the WSDL didn't
contain the response layout, it wasn't able to marshall the response
into objects.  Lesson learned.



Re: [flexcoders] Flex 3.0 + webservice

2008-02-24 Thread Peter Connolly
So, did you try:

srv:SaveName_request in0=myValue/

??


[flexcoders] FB3B3 webservice response received but not bound to event.result

2008-02-21 Thread Peter Connolly
One of the responses I receive from a webservice is being received
properly, but the event.result object is null.  I can see the SOAP
response body in the event.message.body variable.

Anyone else encounter this kind of problem?




Re: [flexcoders] Web services problems

2008-02-17 Thread Peter Connolly
I've had that before.  It's usually a misspelling between your WSDL
and your Flex code.


Re: [flexcoders] flashVars not passed in Flex 3 Builder's debugger?

2008-02-07 Thread Peter Connolly
 Does your debugging session launch the wrapper, or the .swf directly ?

It launches the wrapper.  And after taking a closer look at the wrapper:

file:///C:/path/project-name/bin/mxml-name.html#

I found that I had made a stupid mistake.  I had added the
flashvars, var1=blahvar2=blah... to the **first**
AC_FL_RunContent() which installs the Flash Player.  My bad.  As soon
as I modified the index.template.html to add the flashVars to the
2nd AC_FL_RunContent(), it worked like a charm.


[flexcoders] flashVars not passed in Flex 3 Builder's debugger?

2008-02-06 Thread Peter Connolly
I have an app who's flashVars work on webpages but not in the
debugger.  The values are null when running under the Flex 3 debugger.
 I modified the object and embed tags in the index.template.html
to add the flashVars and it propagates to my project.html file after
a build.  

I looked through the documentation and there's nothing in there about
*not* being able to use flashVars in the debugger.  Anyone else
experience this behavior?



Re: [flexcoders] Re: SharedObject security

2007-12-31 Thread Peter Connolly
Don't use the MAC address.  A significant number of users switch
between wired and wifi connections.


On Dec 31, 2007 1:16 PM, andrewwestberg [EMAIL PROTECTED] wrote:






 You can only retrieve a mac address in javascript in IE 6.x. IE 7.x
  and any firefox don't allow it. This also doesn't solve my problem
  for AIR apps. I went ahead and created an enhancement request in the
  Adobe bug database, but nobody can see its status (including myself)
  since it's marked as security-related.

  -Andrew


  --- In flexcoders@yahoogroups.com, Peeyush Tuli [EMAIL PROTECTED] wrote:
  
   Can you check if there's a way to retrieve such information via
  javascript?
   If yes then you can use external interface to get that information
  in Flex
   and so on.
  
  
   On Dec 30, 2007 11:02 PM, Ralf Bokelberg [EMAIL PROTECTED] wrote:
  
Good point. I'm not aware of a possibility to identify a client
  machine.
Maybe you add a enhancement request to Adobe's bugbase?
   
Cheers
Ralf.
   
   
On Dec 30, 2007 12:02 AM, andrewwestberg
  [EMAIL PROTECTED]andrewwestberg%40yahoo.com

wrote:






 Software Licensing. If I write an encrypted license token in a
 SharedObject, I don't want them to be able to simply copy the .sol
 file in order to share their checked-out license with their buddy in
 the next cubicle. By tieing the license to something hardware
  related
 such as a mac address or cpu id, it becomes less of a possibility.
 I'm contracted to develop a Flex/AIR client for nitroLM.com. They
 already have client libraries for .NET, C/C++, and Java all of which
 have access to hardware-related ids and serial numbers. It'd be nice
 if there was something similar in Flex/AIR.

 -Andrew

 --- In flexcoders@yahoogroups.com
  flexcoders%40yahoogroups.com, Ralf

Bokelberg


 ralf.bokelberg@ wrote:
 
  What is your usecase?
  Why are people allowed to copy files from other people's computer?
 
  Cheers
  Ralf.
 


   
   
  

  


[flexcoders] Re: How to send Arrays in WebService request???

2007-12-13 Thread Peter Connolly

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

 Hi Peter,

 Thankyou for logging that bug (although we require a WSDL and any
 imported XML Schemas to be provided with any WebService bug logged,
 would you mind adding that too?).


I added that this morning.

 You mentioned the response isn't handled as you wanted it. Did you add
 further details in your bug about what you want the response to look
 like as well?


Actually, it's the request that isn't handled properly.  I included a
bare-bones map that creates a request object that is what I would expect
it to look like.  The problem is that the SOAP message that Flex creates
from the request is missing the array elements of the message.  I
included a TCPMon trace to show the request as it is received (sans
arrays).  I will also include a mock-up of what the full SOAP request
should look like...

 In general, when logging bugs, please try to stay with the latest
 nightly builds of the SDK. Much work has been done since Beta 2 (and
 note that Beta 3 was just released). Note that very recently (build
 189998) further properties were added to the ISOAPDecoder interface to
 provide more control over how possibly-reoccuring result parts are
 decoded in a response. The existing behavior was preserved, but when
we
 get more details about your response we'll be able to see whether you
 can take advantage of these settings.

 Regards,
 Pete


I downloaded Flex 3 Beta 2 Builder stand-alone and layered the latest
SDK build onto that (190753) before clean building the app and running
the tests.  Up until yesterday I had been using Flex 2.0.1 w/Hotfix 3.





[flexcoders] Re: How to send Arrays in WebService request???

2007-12-13 Thread Peter Connolly
 Actually, it's the request that isn't handled properly.  I included a
 bare-bones map that creates a request object that is what I would
expect
 it to look like.  The problem is that the SOAP message that Flex
creates
 from the request is missing the array elements of the message.  I
 included a TCPMon trace to show the request as it is received (sans
 arrays).  I will also include a mock-up of what the full SOAP request
 should look like...


Should have said: ...I included a bare-bones app that creates a request
object...




[flexcoders] Re: How to send Arrays in WebService request???

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

 Did you get a chance to try out the latest SDK nightly build from Flex 3
 on Adobe Labs?
 
 http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
 
 Pete
I downloaded Flex 3 Beta 2 Builder (stand-alone), rebuilt the app and
retried the same request.  Same problem.

I then downloaded and unzipped the latest nightly build (190753),
fired up F3B2BSA again, rebuilt the app and retried the request. 
Still no progress.

Any idea if this is already posted as a bug?




[flexcoders] Re: How to send Arrays in WebService request???

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

 I would log it regardless just to make sure it doesn't slip through the
 cracks. 
 
 http://bugs.adobe.com/flex/
 
 Please let me know the bug number if you do log it.
 
 Thanks,
  Pete
  

I've posted a bug:
[#SDK-13966] Flex webservice does not properly marshal request object
with arrays
https://bugs.adobe.com/jira/browse/SDK-13966






[flexcoders] Re: How to send Arrays in WebService request???

2007-12-12 Thread Peter Connolly
I just discovered what looks like another, related bug.

A web service response containing arrays marshals correctly under Flex
2, but under Flex 3 Beta 2 returns 'null's in the 1st array encountered
in the response.

I've opened yet another bug about this one:
Web service array marshalled correctly in Flex 2 not marshalled in Flex
3
https://bugs.adobe.com/jira/browse/SDK-13968
So now I'm between a rock and a hard place.  I have a set of web
services that use arrays in requests and in responses.  Flex 2 doesn't
handle response arrays.  And Flex 3 is WORSE because it's not handling
request OR response arrays correctly.




[flexcoders] How to send Arrays in WebService request???

2007-12-11 Thread Peter Connolly
Hi. I have a SOAP webservice request that handles a variable number of
array elements. For example, the body of the request would look
something like:

...
  request
body
  zeroOrManyUpdates
keyABC/key
update
  ...
/update
update
  ...
/update
  /zeroOrManyUpdates
/body
  /request
...

where there can be any number of update elements in the
zeroOrManyUpdates element, each of which has data modified on
various zoom-in forms.

Since the number of update elements varies, I can't predefine the
request in an MXML mx:request block.  So I'm assuming that I have to
create and send the request via ActionScript3.  Right?

Unfortunately, I can't find any examples of this in the doc or on
FlexCoders, so I'm posting my question here.

I've mimicked the transform of arrays being returned in a webservice
query response.  So, I've formatted an ObjectProxy that looks like the
structure of the XML request:

  var saveUpdatesRequest:ObjectProxy = new ObjectProxy();
  saveUpdatesRequest.key = ABC;
  saveUpdatesRequest.zeroOrManyUpdates:ArrayCollection = new ArrayCollection();
  // Create 'update' object here, then
  saveUpdatesRequest.zeroOrManyUpdates.addItem(update);
  // Create another 'update' object here, then
  saveUpdatesRequest.zeroOrManyUpdates.addItem(update);
  // etc.

then send the request via AS3:

  ws.SaveUpdateService(saveUpdatesRequest);

But examination of the webservice received on the server shows that
although the 'key' var is received correctly, the array elements are
not received.

How do I submit a variable number of array elements to a webservice
using Flex and/or ActionScript?


Re: [flexcoders] Warning 1096: Illogical comparison with null. Variables of type Boolean cannot be null.

2007-12-08 Thread Peter Connolly

 What adobe does is declare the property as type Object and then uses it as a
 Boolean.  Thus is can be null, but you loose the strict typing of that
 object.  Other than that, a boolean is either true or false, the default
 being false.  There's no concept of an uninitialized boolean.

 - Dan Freiman

Thanks, that helps.


[flexcoders] Warning 1096: Illogical comparison with null. Variables of type Boolean cannot be null.

2007-12-07 Thread Peter Connolly
They say that we should deal with warnings, but I'm not seeing how to
get around this one...

I have an AS3 object and several Boolean properties in it that may or
may not be initialized.  So I check to see if they are 'null' before
using them.  This is a typical Java check that I'm carrying over.  Is
there some other way to check for proper initialization of a Boolean
property?  One that won't kick off the warning sirens?


[flexcoders] Generic way to deep copy an ActionScript object?

2007-11-08 Thread Peter Connolly
ObjectUtil.copy() is pretty limited.  Isn't there a util class out
there that will do a deep copy of a user object?


[flexcoders] Can't install Flex Builder 2.0.1 plug-in to Eclipse 3.3.1

2007-11-07 Thread Peter Connolly
I was re-installing Flex Builder.  I picked up the latest copy of
Eclipse, which is v3.3.1.  When I tried to install the Flex Builder
2.0.1 Eclipse plug-in and specified the C:\Program Files\eclipse
directory, it said that that was an invalid directory and to choose
again.  When I tried to install the plug-in to a 3.2.1 version of
Eclipse, it worked fine.  The error message says that the plug-in
requires Eclipse 3.1 or above.  Sounds like a bug to me!  :-(




[flexcoders] Where are code samples for Getting Started, Developer's Guide?

2007-11-06 Thread Peter Connolly
I've looked around the Flex documentation web page:

http://www.adobe.com/support/documentation/en/flex/

but only see the ProgrammingAS3_Examples.zip.  Those are good
examples, but I was hoping to find the code that is referenced in the
Getting Started guide and the Developer's Guide.  Any idea where
this code might be?


Re: [flexcoders] Re: [javaflexcoders] Official Maven 2 support from the source?

2007-10-31 Thread Peter Connolly
Thanks for setting up the bug.  I've voted for it because I've had miserable
luck with both the israfil and servebox plugins.  Everything else I have
builds neatly from Maven2.

pc

On 10/30/07, Sebastien ARBOGAST [EMAIL PROTECTED] wrote:

   That's another thing that I love about Adobe's effort on Flex: you guys
 really got the community thing.
 By the way, I had already filed a bug a few weeks ago:
 https://bugs.adobe.com/jira/browse/SDK-12730
 So to all Flex coders out there, if you want an official Maven plugin for
 Flex projects, feel free to vote for this 
 bughttps://bugs.adobe.com/jira/browse/SDK-12730
 .

 2007/10/31, James Ward [EMAIL PROTECTED]:
 
 I'm glad to hear you also enjoy using Flex!  I also think Maven is
  great.  But I don't think that Adobe has any intention of maintaining a
  Maven plugin.  Perhaps once the Flex SDK is fully open source this is
  something the community can help drive.  You might also want to file a bug:
 
  http://bugs.adobe.com/flex
 
 
 
  Then get all of your friends to vote for the bug.  I will!  Send this
  list the bug number when you file one.
 
 
 
  -James
 
 
 
 
 
  *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  *On Behalf Of *sebastien_arbogast
  *Sent:* Thursday, October 25, 2007 2:42 PM
  *To:* [EMAIL PROTECTED]
  *Subject:* [javaflexcoders] Official Maven 2 support from the source?
 
 
 
  I subscribed to this group for a very specific reason: a call to Adobe
  developers.
 
  Flex is just one of the greatest technologies I've used since Java.
  But there is one thing I miss before I can convince everybody around
  me to use it in enterprise applications I'm working on: Maven support.
 
  I'm using Maven 2 for all of my JEE projects, with continuous
  integration and everything. So I've tried both Maven plugins available:
  - servebox is really poorly documented and I just can't get it to work
  - israfil works but some features are missing, like support for theme
  compilation
 
  And over all, even if the guys who build those plugins do upgrade
  them, it's always going to be hard for them to keep up.
 
  So here is my call: does Adobe intend to support Maven 2 officially,
  to develop and maintain its own Maven 2 plugins?
 
  Sebastien
  http://sebastien-arbogast.com
 
 
 


 --
 Sébastien Arbogast

 http://www.sebastien-arbogast.com

  



[flexcoders] Flex Builder 2 Hotfixes cumulative or ???

2007-10-24 Thread Peter Connolly
I'm reinstalling Flex Builder 2.  It's been a lng time.  Can I
just install Hotfix 3, or do I have to install 1, then 2, then 3?

TIA


Re: [flexcoders] Use a CSS file in Flex

2007-10-18 Thread Peter Connolly
Here's how you reference a CSS file:

mx:Style source=http://www.somesite.com/mystyles.css;

After that, there's a chapter on CSS in the Flex Developer's Guide.

On 10/18/07, Venkat Perpati [EMAIL PROTECTED] wrote:







 Hi,

 Can anyone please tell me how to add a CSS file and use the styles defined in 
 CSS file in the flex application.

 Thanks in Advance

 regards,
 Venkat Perpati.


   
 Meet people who discuss and share your passions.  Join them now.



  


Re: [flexcoders] Weird WebService Problem

2007-10-18 Thread Peter Connolly
The full incantation for handling a webservice in ActionScript is
shown in the Developer's Guide example:

?xml version=1.0?
!-- fds\rpc\WebServiceInAS.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
import mx.rpc.soap.WebService;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
private var ws:WebService;

public function useWebService(intArg:int, strArg:String):void {
ws = new mx.rpc.soap.WebService();
ws.destination = echoArgService;
ws.echoArgs.addEventListener(result, echoResultHandler);
ws.addEventListener(fault, faultHandler);
ws.loadWSDL();
ws.echoArgs(intArg, strArg);
}

public function echoResultHandler(event:ResultEvent):void {
var retStr:String = event.result.echoStr;
var retInt:int = event.result.echoInt;
//Do something.
}

public function faultHandler(event:FaultEvent):void {
//deal with event.fault.faultString, etc
}
]]
/mx:Script
/mx:Application

Are you doing all these steps?


On 10/18/07, Ben [EMAIL PROTECTED] wrote:






 In my Flex Application MXML file I call a function called init() on
  the creationComplete event.  creationComplete=init();  In the init()
  function a WebService's wsdl property is set to the URL for my CFC.
  After the property is set I call a function on my service
  (service.getBlah();) but the request is never sent.  However, if I set
  the WebService wsdl on the WebService MXML tag before I compile my
  program, the request is sent.

  I'm not sure what could be the problem here.  It seems that there
  might be some time after the wsdl is set in which requests cannot be sent.

  Does anyone know?  Thanks in advance!




Re: [flexcoders] Use a CSS file in Flex

2007-10-18 Thread Peter Connolly
Here are two inline examples from Chapter 18 of the Flex Developer's Guide:

?xml version=1.0?
!-- styles/ClassSelector.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Style
.myFontStyle {
fontSize: 15;
color: #9933FF;
}
/mx:Style
mx:Button id=myButton styleName=myFontStyle label=Click Here/
/mx:Application

The following example defines a new style that applies to all
instances of the Button class:

?xml version=1.0?
!-- styles/TypeSelector.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Style
Button {
fontSize: 15;
color: #9933FF;
}
/mx:Style
mx:Button id=myButton label=Click Here/
/mx:Application

An external CSS file would be used in the same fashion.

You can download the Flex documentation at:

http://www.adobe.com/support/documentation/en/flex/


On 10/18/07, Venkat Perpati [EMAIL PROTECTED] wrote:








 Hi,

 got it. mx:Style source=http://www.somesite.com/mystyles.css;  is used to 
 include css file in the application . But how to use the style defined in it 
 , is it same as we use in html file

 like tr class=style1 

 can you pls give me an example of how we use the styles after including the 
 CSS file in the application.

 regards,
 Venkat Perpati

 Peter Connolly [EMAIL PROTECTED] wrote:


 Here's how you reference a CSS file:

 mx:Style source=http://www.somesite.com/mystyles.css;

 After that, there's a chapter on CSS in the Flex Developer's Guide.

 On 10/18/07, Venkat Perpati [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
 
  Hi,
 
  Can anyone please tell me how to add a CSS file and use the styles defined 
  in CSS file in the flex application.
 
  Thanks in Advance
 
  regards,
  Venkat Perpati.
 
 
  
 Meet people who discuss and share your passions. Join them now.
 
 
 
 



   
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.



  


Re: [flexcoders] Back-toback WebService calls seem to get lost?

2007-09-28 Thread Peter Connolly
You need to take a look through the Handling asynchronous calls to
services chapter in the Flex 2 Developer's Guide (around p. 1439 of the
.pdf file).


On 9/28/07, Fred Barrett [EMAIL PROTECTED] wrote:

   I have some back-to-back web service calls that don't seem to work
 when I call them as:

 ws.GetMusicians();
 ws.GetInstruments();
 ws.GetProducts();

 but if I call them in a forced-sequential pattern, they all work fine.
 (The web server is a .NET service that returns ArrayCollections).

 My mxml file calls my GAWebService tier:
 var ws = new GAWebService();

 The GAWebService tier handles the transaction with the web service:

 public function GetInstruments( ):void {
 ws.addEventListener( ResultEvent.RESULT, instrumentsHandler );
 var callToken:AsyncToken = ws.GetInstruments();
 callToken.marker = GetInstrumentsCall;
 }

 private function instrumentsHandler( event:ResultEvent ):void {
 ws.removeEventListener( ResultEvent.RESULT, instrumentsHandler );
 var callToken:AsynchToken = event.token;
 var resultCollection:ArrayCollection = (event.result AS
 ArrayCollection);
 switch( callToken.toString() ) {
 case GetInstrumentsCall:
 GADataModel.getInstance().Instruments = resultCollection;
 break;
 etc.
 }
 }

 Again, if I force a sequence wherein the handler of one call makes the
 next webservice call in the series, I get all of the results back, but
 if I leave it to the asynch-ness of the webservice, I only get a
 couple of the calls completed.

 Does the Flex WebService queue up the calls or do I have to write some
 sort of call queue class in order to manage the asynchronous traffic?

  



Re: [flexcoders] Re: Here we go again: Flex Vs Java

2007-09-27 Thread Peter Connolly
What is Web 2.0, by Tim
O'Reillyhttp://www.oreilly.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html



On 9/27/07, Andrew Scott [EMAIL PROTECTED] wrote:

   Oh my god, I really hate it when someone makes a comment like Flex front
 end is web 2.0

 Web 2.0 is not about RIA, web 2.0 is about collaboration. God forbid, you
 even know what Enterprise 2.0 is oh yeah thats MS Silverlight on steriods.



 On 9/27/07, gers32 [EMAIL PROTECTED] wrote:
 
First of all, a Flex front-end is Web 2.0 vs. Web 1.0 for JSPs. I
  recently made the switch from JSP to Flex for that reason. Also, your
  application will scale better if you put some of the logic inside the
  Client.
 
  If your employer argues that he's invested a lot in Java, that's OK
  because you can have your Flex front-end talk to Web Services written
  in Java.
 
  As for Bruce Eckel's article, that's exactly the one that convinced me
  to skip AJAX and go directly from JSP to Flex. It also convinced my
  boss...
 
  Good luck,
 
  Chris
 
 


 --



 Senior Coldfusion Developer
 Aegeon Pty. Ltd.
 www.aegeon.com.au
 Phone: +613  8676 4223
 Mobile: 0404 998 273

  



Re: [flexcoders] Here we go again: Flex Vs Java

2007-09-27 Thread Peter Connolly
My two cents.  I don't think that it's a question of Flex vs. Java.  Flex
and Java work well together.  I've built applications using the HTTP and Web
Services request facilities of Flex with Java and Java Web Services and they
work great.

More importantly, *why* are they considering changing from ColdFusion to
Java/JSP?  They have to weigh the costs of the conversion against the
benefits of the switch.  Good reasons for a switch might be that, for
example, it is becoming difficult or expensive to find ColdFusion
developers...?  (I don't know if that is true or not.  A better example
would have been my tenure at a company where it was becoming harder and
harder to find Tcl developers, hence the switch to Java.  But that said, it
was still a very expensive conversion.)

pc

On 9/27/07, Giles Roadnight [EMAIL PROTECTED] wrote:

   I am leaving my current job in about a month and a suggestion has been
 made that as I am leaving it would be better to re-write our flex /
 coldfusion sites in jsp and java as that is what the larger company as
 a whole uses.

 I need some couter arguments but don't know enough about Java.

 Replacing coldfusion with jsp is less of an issue but I Think that
 Flex is very well suited for the front end.

 The site I've worked with most is used for managing customer accounts
 and viewing information about them. There are screen for ssearchign
 for accounts, setting up accounts with e-mail lists and a lot of reports.
 Basically most of the site loads data and displays it in datagrids.

 What arguments can we use to convince people that flex is the way to
 go rather than jsp / java?

 Thanks

 Giles

  



Re: [flexcoders] Where to start learning Flex

2007-09-25 Thread Peter Connolly
One of the Adobe Flex 2 books (available online at:
http://www.adobe.com/support/documentation/en/flex/) is Getting Started
with Flex 2 which is packed with tutorials.  That's where to start.


On 9/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   What do you mean by the tutorials ?


 shaun wrote:
 
  neugi wrote:
   Hi,
  
   where to start learning flex2? are there good books, or tutorials
  online?
  
   thx
  
 
  Download flexbuilder, read the developer guide and do the tutorials.
 
  cheers,
  - shaun
 
 

  



[flexcoders] Any non-attendee access to Adobe Max presentations?

2007-09-24 Thread Peter Connolly
Just wondering, since I can't afford to go to Chicago...

Will Adobe be providing access to any of the presentation materials
from this year's Max conference?

TIA,
pc


Re: [flexcoders] Webservices problem

2007-09-14 Thread Peter Connolly
specifically, in your mx:WebService parameters, make sure you have:

useProxy=false



On 9/14/07, Peter Connolly [EMAIL PROTECTED] wrote:

 don't specify a proxy.

 On 9/13/07, Devaraj [EMAIL PROTECTED] wrote:
 
[RPC Fault faultString=Security error accessing url
  faultCode=Channel.Security.Error faultDetail=Destination:
  DefaultHTTP]
 
  the program gives the above error.. anyone please help
  thanks in advance
 
   
 




Re: [flexcoders] Webservices problem

2007-09-14 Thread Peter Connolly
don't specify a proxy.

On 9/13/07, Devaraj [EMAIL PROTECTED] wrote:

   [RPC Fault faultString=Security error accessing url
 faultCode=Channel.Security.Error faultDetail=Destination:
 DefaultHTTP]

 the program gives the above error.. anyone please help
 thanks in advance

  



Re: [flexcoders] Flex version management

2007-09-14 Thread Peter Connolly
I use the Subversion plugin for Eclipse--Subclipse--to commit all my work.
Works fine for me!


On 9/14/07, candysmate [EMAIL PROTECTED] wrote:

   I'd be grateful for any comments regarding Flex (project) version
 management.

  



Re: [flexcoders]dynamic ID's in repeater

2007-09-14 Thread Peter Connolly
Try naming it 'button' and refer to it in other contexts as {button[i]}.

See http://livedocs.adobe.com/flex/2/docs/0914.html#160073 in the
Developer's Guide.

pc

On 9/14/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:

   How would you create a dynamic id for a mxml component inside a
 repeater? I have tried mx:Button id=button{index} / and the compiler
 does not allow it.




  



Re: [flexcoders] Flex version management

2007-09-14 Thread Peter Connolly
Great links!  Thanks!

On 9/14/07, Muzak [EMAIL PROTECTED] wrote:

   http://subclipse.tigris.org/

 I use SVN in combination with:
 https://freepository.com/index.html
 http://www.assembla.com/
 https://opensvn.csie.org/

 regards,
 Muzak

 - Original Message -
 From: candysmate [EMAIL PROTECTED]graham%40contrast-software.com
 
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Sent: Friday, September 14, 2007 9:08 PM
 Subject: [flexcoders] Flex version management

 I'd be grateful for any comments regarding Flex (project) version
 management.

  



Re: [flexcoders] Can't see app in html

2007-09-03 Thread Peter Connolly
I ran into this. Make sure you specify an explicit 'height' and
'width' (in pixels) on the mx:Application tag, otherwise it does not
show on the page.

On 9/3/07, Guillermo Villasana Cardoza [EMAIL PROTECTED] wrote:






 I am having problems viewing my flex app in IE7. I am running Windows XP
  and I have installed the latest version of  the flash player (also I
  have all my windows updates) but still I get the following:

  Alternate HTML content should be placed here. This content requires the
  Adobe Flash Player. Get Flash

  Has anyone found a solution to this... is this a settings problem or
  something else?



Re: [flexcoders] Where to learn intermediate/advanced Flex?

2007-08-30 Thread Peter Connolly
There's the Flex 2 Developer's
Guidehttp://www.adobe.com/support/documentation/en/flex/.
That's pretty comprehensive and I find a lot of answers in there.

On 8/30/07, Kyle Neath [EMAIL PROTECTED] wrote:

   I feel like I'm coming to a point now where I get the basics of Flex.
 I've got the whole component architecture down, I know the basics of
 Actionscript. I can create my own components by extending UIComponent
 and implementing the proper interfaces.

 But I still feel like there's so much I have to learn: and I'm not
 sure where to look anymore. I've tried looking for books: but I
 honestly haven't found one that isn't either a complete beginners
 book, or isn't written for Flex 1/1.5. I've tried looking for online
 communities around Flex, but haven't found anything really at all.

 Any advice on where to look next? Or should I just start tackling
 projects and learn as I go?

 -Kyle
  



Re: [flexcoders] Stupid question - get ready to throw fruit.

2007-08-29 Thread Peter Connolly
Have you tried defining the DataGrid dataProvider in the parent document and
then refer to it as:

myDataGrid.dataProvider=parentDocument.groovyArrayInParentDoc;

That way the visual component is in the titleWindow and its dataProvider is
in the parent (and therefore survives after the titleWindow closes).


On 8/29/07, candysmate [EMAIL PROTECTED] wrote:

   I use a titleWindow popup with a datagrid from which the user makes a
 selection from a large database. When closed, does the selection
 datagrid ArrayCollection sit around in memory? If so, what is the best
 practice way of dealing with this please?

 Ok, take aim and 

  



Re: [flexcoders] Flex + SOAP + AXIS support?

2007-08-24 Thread Peter Connolly
The Flex Developer's Guide (p. 1401) states that WSDL 1.1 is supported and,
by implication, SOAP 1.1 support is a requirement of WSDL
1.1http://www.w3.org/TR/wsdl
.


On 8/24/07, bobsandywalls [EMAIL PROTECTED] wrote:

   I know that Flex supports SOAP, however what version of SOAP does it
 support and by proxy what version of AXIS is capable of providing?

 I looked online for such a requirements list, but could not find it.
 Thanks for the assistance

  



[flexcoders] Re: How to address relative tile in TileList in dragDrop event processing?

2007-06-10 Thread Peter Connolly
That does the trick!

private function myDragDrop(e:DragEvent):void {
var dropIndex:int = tilelist1.calculateDropIndex(e);
Alert.show(dropIndex:  + dropIndex);
}

Thanks!




[flexcoders] How to address relative tile in TileList in dragDrop event processing?

2007-06-08 Thread Peter Connolly
Say you have a TileList:

mx:TileList id=tilelist1 dataProvider={anyAC} 
columnCount=9 rowCount=9 dragDrop=myDragDrop(event);/

Now say you drop an object onto the cell at row 3, column 5, you'd
like to be able to easily address the data in position 15 in the
ArrayCollection anyAC when processing the 'drop' event in
myDragDrop(). 

I've looked.  I don't see any property in the DragEvent that gives you
the relative position in a TileList.  What am I missing?




[flexcoders] DataGridColumn in Repeater gets Unable to generate initialization code...

2007-06-06 Thread Peter Connolly
When I attempt to create a small number of DataGrid controls with a
Repeater, I get the following compile error message:

Unable to generate initialization code within Repeater, due to id or
data binding on a component that is not a visual child.

Here is the minimal amount of MXML that generates the compile error:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 mx:ArrayCollection id=myAC/
 mx:ArrayCollection id=headersAC source={headers.header}/
 mx:Model id=headers
 headers
 headerHeader 1/header
 headerHeader 2/header
 headerHeader 3/header
 headerHeader 4/header
 /headers
 /mx:Model
 mx:VBox
 mx:HBox
 mx:Repeater id=repeater1 dataProvider={headersAC}
 mx:DataGrid id=datagrid1 width=125 height=210
 dataProvider={myAC}
 mx:columns
 mx:DataGridColumn

headerText={repeater1.currentItem.header}/
 /mx:columns
 /mx:DataGrid
 /mx:Repeater
 /mx:HBox
 /mx:VBox
/mx:Application

There is a claim of a workaround at Nischal's blog: Referencing
components inside the mx:Repeater http://blog.nischal.com/?p=29 , but
there is no source code to show how to do this.

Any ideas on the workaround for this problem?





[flexcoders] Re: DataGridColumn in Repeater gets Unable to generate initialization code...

2007-06-06 Thread Peter Connolly
In his blog, Nischal says:quote:
Recently when I was working on Flex application and found that there is
an issue with the columns of DataGrid, which is defined inside the
repeater. Flex throws following error when you try to assign id or data
binding values to DataGridColumn
Unable to generate initialization code within Repeater, due to id
or data binding on a component that is not a visual child.

Which means if you want to assign dynamic value to say HeaderText of the
column then you cannot use dynamically or id to assign value. Work
around to this issue is to use columns array of datagrid to define the
value. Click here
http://www.nischal.com/flex/ReferencingDataGridInsideRepeater.html  to
see the example and source code to use the column of the DataGrid.
I'm not sure what ...use columns array of datagrid to define the
value... means.


[flexcoders] Flex 2.0.1 Hotfix 2 and RPCError on WebService send()

2007-05-25 Thread Peter Connolly
After upgrading to Flex 2.0.1, Hotfix 2, I get the following
ActionScript error dialog when performing a WebService .send():

Adobe Flash Player 9
An ActionScript error has occurred:

[RPC Fault faultString=Required parameter 'body' not found in input
arguments. faultCode=EncodingError faultDetail=null]
 at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invok\
ePendingCall()
 at mx.rpc.soap::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.soap.mxml::Operation/send()
 at coursesByDeptWithDataTips/__cbxDept_change()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.controls::ComboBox/::dispatchChangeEvent()
 at mx.controls::ComboBox/close()
 at mx.controls::ComboBox/::dropdown_changeHandler()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mous\
eUpHandler()
 at mx.controls::List/mx.controls:List::mouseUpHandler()

The .send() worked fine before the upgrade.

pc



[flexcoders] Re: WSDLError Element not resolvable with WebService using creationComplete

2007-05-24 Thread Peter Connolly
In searching through the older threads on Adobe's Flex2 General
Discussion forum, it looks like this might be a bug from the August 2006
timeframe.

WSDLError:Element not resolvable = LoadEvent doesn't imply service
ready
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg38226.html

A snippet from that post states:
RE: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent
doesn't imply service ready
Seth Hodgson
Tue, 15 Aug 2006 14:20:39 -0700

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 J
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
The complete thread shows the timer workaround that Kaleb employed.

A post today from Suama to the WebService bad element / not resolvable
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585\
threadid=1257326CFID=47519859CFTOKEN=358f13e12e8d5d4e-C009A4CE-F64A-92\
DB-91217FC8390Djsessionid=48306c5176fd5c040633  thread states
that: ... I received email from Adobe that this bug will be fixed with
Flex 2.5

Hopefully they can see fit to fix it in a 2.0.x bug release...?

pc




[flexcoders] Re: WSDLError Element not resolvable with WebService using creationComplete

2007-05-23 Thread Peter Connolly
There is a thread that kind of answers this problem over in the Adobe
Flex2 General Discussion forum:

WebService bad element / not resolvable
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585\
threadid=1257326

The work-around to this problem is from scottpez:

Hi,

I finally figured out the problem and found a solution. The problem was
that the creationComplete event was being fired before the webservice
component was able to load the wsdl file. The solution that seems to
work is to create the mx:WebService component just as I had before
except add a function that is called on its load event. So something
like this:

mx:WebService id=generator wsdl=... load=sendOperation();

And then in the creationComplete event of the application, I have
generator.loadWSDL();. Finally, in the function sendOperation() I send
the operation something like this generator.generateOperation.send();.

Therefore the webservice operation is not sent until the wsdl has
loaded. This seems to work for me.

Thanks,
Scott

This sure seems like a bug to me.  Several other posters note that they
are experiencing the same problem and one points out that it appeared
AFTER upgrading to 2.0.1 Flex from 2.0.  Before that, 'creationComplete'
worked properly.

Which raises the question...

How does one examine and/or post Flex2 bugs to Adobe's bug queue?  I've
poked around Adobe's support pages and anything resembling a bug queue
does not seem to be at all visible to developers.  To me, this is a
shocking lack of openness on the part of Adobe that seriously impedes
developers.




[flexcoders] WSDLError Element not resolvable with WebService using creationComplete

2007-05-18 Thread Peter Connolly
I've encountered something that looks like a timing issue within Flex2.

When I try to access a WebService operation in the 'creationComplete'
param of mx:Application:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
creationComplete=wsWidgetQueries.GetWidgetsByType.send()
  mx:WebService id=wsWidgetQueries
 
endpointURI=http://localhost:/widgets-ws-1.0-SNAPSHOT/Widgets-WS;

wsdl=http://localhost:8080/widgets-ws-1.0-SNAPSHOT/widgets.wsdl;
 useProxy=false showBusyCursor=true
 mx:operation name=GetWidgetsByType
 mx:request
 GetWidgetsByTypeRequest
 typeId{cbxType.value}/typeId
 /GetWidgetsByTypeRequest
 /mx:request
 /mx:operation
...

I get the following error:

[WSDLError faultString=Element
http://www.widgets-inc.com/testapp/schemas:GetWidgetsByTypeRequest not
resolvable faultCode=WSDL.BadElement faultDetail=null]
 at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::pars\
eMessage()
 at mx.rpc.soap::WSDLOperation/parseMessages()
 at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invok\
ePendingCall()
 at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invok\
eAllPending()
 at mx.rpc.soap::WebService/::unEnqueueCalls()
 at
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdl\
Handler()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.rpc.soap::WSDLParser/dispatchEvent()
 at mx.rpc.soap::WSDLParser/::parseCompleted()
 at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::http\
ResultHandler()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp\
atchRpcEvent()
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu\
ltHandler()
 at mx.rpc::Responder/result()
 at mx.rpc::AsyncRequest/acknowledge()
 at ::DirectHTTPMessageResponder/completeHandler()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/flash.net:URLLoader::onComplete()

But, when I comment out the 'creationComplete' parameter and run the
wsWidgetQueries.GetWidgetsByType.send() as an action off a 'click' event
on a button, the WebService works just fine.

That indicates to me that 'creationComplete' is executing BEFORE the
WSDL has been properly parsed.  If so, 'creationComplete' isn't really
complete when that .send() gets invoked!

Have others encountered this problem?
And, if so, is it a known bug or is there a standard workaround for it?

TIA.




[flexcoders] WSDLError Element not resolvable with WebService using creationComplete

2007-05-18 Thread Peter Connolly
When I include a creationComplete .send() to a WebService in my app:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
creationComplete=wsWidgetQueries.GetWidgetsByType.send()
mx:WebService id=wsWidgetQueries 

wsdl=http://localhost:8080/widgets-ws-1.0-SNAPSHOT/widgets.wsdl;
useProxy=false showBusyCursor=true
mx:operation name=GetWidgetsByType
mx:request
GetWidgetsByTypeRequest
typeId{cbxType.value}/typeId
/GetWidgetsByTypeRequest
/mx:request
...

I get the follow WSDLError:

[WSDLError faultString=Element
http://www.widgets-inc.com/widgets/schemas:GetWidgetsByTypeRequest not
resolvable faultCode=WSDL.BadElement faultDetail=null]
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
at mx.rpc.soap::WSDLOperation/parseMessages()
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
at mx.rpc.soap::WebService/::unEnqueueCalls()
at
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

But when I take out the 'creationComplete' parameter and, instead,
have the .send() action occur with a 'click' event on a button, the
request works fine.

The sample application from Chapter 18 of the Getting Started with
Flex2 works fine on my workstations (Firefox  IE7), but my own app
does not.  The sample is obviously using ColdFusion, whereas I am
using Tomcat 5.5.x to host the web services.

It seems that the WSDL is not completely parsed when the
'creationComplete' .send() is processed.

Has anyone encountered this problem too?  If so, is it a known bug?

TIA.

PS: Btw, I posted this before using the beta Rich-Text Editor. It did
not seem to post successfully...  ?!?!