[flexcoders] Modules Example and Tutorial

2007-01-12 Thread phillips1021
Peter Ent has posted an excellent example of how to use modules,
including how to communicate with modules and handle module events. 
See: 
http://weblogs.macromedia.com/pent/archives/2007/01/building_module.cfm

His example and explanations answer many of the questions I've seen
lately about Modules.  He includes a complete code download.






[flexcoders] Re: Compiling modules

2007-01-08 Thread phillips1021
Great question.  I've run into the same problem.  How do you use Flex
Builder to compile just the module?

The only work-around I've found so far is to right-click on the module
name in the navigator panel and select Run As Flex Application.  This
command will create a .swf and .html files for the module and try to
load it in the browser (where nothing will display).  

It's not the best solution and I hope someone posts a better one, but
it is all I've found to work so far.

I did search through the Flex 2.0.1 help files but did not find anything.

Bruce





[flexcoders] Unable To Install Flex 2 Update

2007-01-05 Thread phillips1021
NO JOY in installing the Flex 2.01 update. 

I TRIED installing the Flex 2.01 update. My configuration is Windows 
XP SP2 and I was running Flex Builder 2.0 (Educational Version). I 
downloaded the Windows update from here: 
http://www.adobe.com/support/documentation/en/flex/2/install.html 
(144 MB download).

After the download completed, I ran the downloaded file (named 
flexbuilder2_201updater.exe) and went through the process of 
installing FlexBuilder 2.01. The installer needed to restart my 
computer before completing the process. After my computer restarted, 
I expected to see the installer tell me it was finished. But I never 
got any more messages from the installer.

So, after waiting a few minutes, I ran Flex Builder. Still said 2.0 
on the splash screen. I went to Help - Product Details and then 
clicked on Feature Details and saw that my Flex Builder 2 Core is 
2.0.143459 and so is my Flex Builder 2 Standalone.

However, when I try to open one of my Flex projects I get an error 
message!!! The MXML editor is not available!!!

So I closed Flex Builder and ran the download again. Only now I get 
the message that an existing Flex Builder installation was not found 
and the installer will not run!!!

I'm now going to try reinstalling the original software!!! I knew I 
should NOT have tried to do this on a Friday afternoon.

Anyone else have a problem or success in installing the update?




[flexcoders] Re: Flex 2 Updater Available for Download

2007-01-05 Thread phillips1021
Paul:

   Did you upgrade Flex to 2.01?  If so what is your OS (Windows)?

   I could not get the update to install correctly and had to 
reinstall Flex Builder from the original CD.

Bruce
--- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote:

 It can be found here:
 
 http://www.adobe.com/support/flex/downloads_updaters.html
 
 It's not clear to me whether the updater updates Flex Charting and
 Flex Data Services. The page says: 
 
 The 2.0.1 updates for these Flex products can be implemented by
 installing the full, updated versions of the products.
 
 So I don't know whether you have to install the product from 
scratch
 if you are using Flex Charting and Flex Data Services.





[flexcoders] Re: Closing An Open Item In Flex Tree Control

2007-01-02 Thread phillips1021
Thanks for the reply.

Unfortunately, your suggestion did not work.  I think it did not work
because I am not using a root node.

To see an example of what I'm doing please go here:

http://www.brucephillips.name/blog/index.cfm/2007/1/1/How-To-Use-An-ArrayCollection-As-The-Data-Provider--For-The-Flex-2-Tree-Control

and click on the demonstration application.

Bruce






[flexcoders] Closing An Open Item In Flex Tree Control

2007-01-01 Thread phillips1021
Anyone have a working example they can point me to that demonstrates
how to close an open item in a Flex Tree control?  After studying the
Tree control in the Flex 2 Language Reference, it seems to indicate
that method expandItem will also close an open item if the second
argument is set to false. 

However, I've not gotten that to work.  I can open items using method
expandItem just fine.

Of course, the Flex 2 Developer's Guide only has very limited
information on using the Tree control's methods and I've not found
anything when doing an Internet search.

Bruce 



[flexcoders] Re: remoting with public access modifier in cfc

2006-12-14 Thread phillips1021
Kevin Schmidt posted this in response to a blog entry on Ray Camden's
blog:

 you only need to set access=remote if you are using flex with web
services. If you are usimg AMF (Flash Remoting) you don't need to set
access=remote.

See: 
http://ray.camdenfamily.com/index.cfm/2006/11/24/Next-build-of-my-Flex-2ColdFusion-Security-Homework#more
and check the comments

It makes sense since both the Flex app and the CFC are on the same
host, just like the CFM file and the CFC are on the same host.




[flexcoders] Re: Using ActionScript 3.0 WebService Class - Need Help

2006-10-22 Thread phillips1021
Carson - thanks for the reply.  I had previously tried handling the
load event and then calling the getRate method from within the load
handler, but that did not work either.  Here is the code with the
loadWSDL being handled separately.

Any other ideas?

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


import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.soap.LoadEvent;

import mx.rpc.soap.WebService;
  
public var service:WebService ;

 
 public function useWebService():void {

service = new WebService();
service.wsdl =
http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl;
service.getRate.addEventListener(result, resultHandler);
service.getRate.addEventListener(fault, faultHandler);
service.addEventListener(load, loadHandler);
service.loadWSDL();
 
}

public function loadHandler(event:LoadEvent):void {

Alert.show(load event);
service.getRate(canada, united states);

}


public function resultHandler(event:ResultEvent):void {

myTextArea.text = Result returned;

}


public function faultHandler(event:FaultEvent):void {

Alert.show(fault: + event.toString());

}
 
 
 ]]
/mx:Script
mx:TextArea x=134 y=65 id=myTextArea text=getting service/
/mx:Application

Bruce


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

 Bruce,
  
 The loadWSDL() method fires asycnhronously. You will need to load the
 wsdl up front then call the service.  Try that and see if you get a
 little further.
  
  
 Carson
 
  
 Carson Hager
 Cynergy Systems, Inc.
 http://www.cynergysystems.com http://www.cynergysystems.com/ 
  
 Email:  [EMAIL PROTECTED]
 Office:  866-CYNERGY
 Mobile: 1.703.489.6466
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of phillips1021
 Sent: Saturday, October 21, 2006 10:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Using ActionScript 3.0 WebService Class - Need
 Help
 
 
 
 I'm trying to learn how to use the WebService class in ActionScript
 3.0 as part of a Flex 2.0 XML tutorial I'm writing for my blog
 (www.brucephillips.name/blog).
 
 I'm having great difficulty getting the code below to work. I've read
 throught the RPC components section of the Flex 2 Developer's Guide
 and the WebServices description in the ActionScript 3.0 Reference. 
 I've also search through FlexCoders and Google. The references are
 extremely POOR in giving working examples of how to use class
 WebService.
 
 The below code uses the currency exchange rate WebService described
 here: http://www.xmethods.net http://www.xmethods.net  (under demo
 services). I know the
 WebService works as I've tested it using ColdFusion.
 
 Any help you can provide me would be much appreciated and I will
 mention your assistance in my blog. The problem appears that my
 resultHandler function is never called as the test in my TextArea
 component does not change.
 
 Here is the code:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute creationComplete=useWebService()
 mx:Script
 ![CDATA[
 import mx.rpc.soap.LoadEvent;
 
 
 import mx.controls.Alert;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 
 
 import mx.rpc.soap.WebService;
 
 public function useWebService():void {
 
 var service:WebService = new WebService();
 service.wsdl =
 http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl
 http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl 
 service.getRate.addEventListener(result, resultHandler);
 service.getRate.addEventListener(fault, faultHandler);
 service.loadWSDL();
 service.getRate(canada, united states);
 
 }
 
 
 
 public function resultHandler(event:ResultEvent):void 
 {
 
 myTextArea.text = Result returned;
 
 }
 
 public function faultHandler(event:FaultEvent):void {
 
 Alert.show(fault: + event.toString());
 
 }
 
 
 ]]
 /mx:Script
 mx:TextArea x=134 y=65 id=myTextArea text=getting service/
 /mx:Application
 
 Thanks in advance.
 
 Bruce Phillips

[flexcoders] Re: Using ActionScript 3.0 WebService Class - Need Help

2006-10-22 Thread phillips1021
I think part of my problem with this web service might be related to
the XML name space (see page 1150 in the Flex 2.0 Developer's Guide).
 However, I cannot figure out what the name space should be for the
web service.

I was able to use a different web service for my tutorial on using web
services that return XML in Flex 2.0.  You can read the tutorial here:

http://www.brucephillips.name/blog/index.cfm/2006/10/22/Using-XML-in-Flex--Tutorial-Part-4--WebService

I certainly appreciate any feed back or suggestions on how to get the
WebService code below to work.

Bruce

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

 Carson - thanks for the reply.  I had previously tried handling the
 load event and then calling the getRate method from within the load
 handler, but that did not work either.  Here is the code with the
 loadWSDL being handled separately.
 
 Any other ideas?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=useWebService()
   mx:Script
 ![CDATA[
   import mx.rpc.soap.LoadEvent;
 
 
 import mx.controls.Alert;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 import mx.rpc.soap.LoadEvent;
 
 import mx.rpc.soap.WebService;
   
 public var service:WebService ;
 
  
  public function useWebService():void {
   
 service = new WebService();
 service.wsdl =
 http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl;
 service.getRate.addEventListener(result, resultHandler);
 service.getRate.addEventListener(fault, faultHandler);
 service.addEventListener(load, loadHandler);
 service.loadWSDL();
  
   }
   
   public function loadHandler(event:LoadEvent):void {
   
   Alert.show(load event);
   service.getRate(canada, united states);
   
   }
   
   
   public function resultHandler(event:ResultEvent):void {
   
   myTextArea.text = Result returned;
   
   }
   
   
   public function faultHandler(event:FaultEvent):void {
   
   Alert.show(fault: + event.toString());
   
   }
  
  
  ]]
 /mx:Script
   mx:TextArea x=134 y=65 id=myTextArea text=getting service/
 /mx:Application
 
 Bruce
 
 
 --- In flexcoders@yahoogroups.com, Carson Hager carson.hager@
 wrote:
 
  Bruce,
   
  The loadWSDL() method fires asycnhronously. You will need to load the
  wsdl up front then call the service.  Try that and see if you get a
  little further.
   
   
  Carson
  
   
  Carson Hager
  Cynergy Systems, Inc.
  http://www.cynergysystems.com http://www.cynergysystems.com/ 
   
  Email:  carson.hager@
  Office:  866-CYNERGY
  Mobile: 1.703.489.6466
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of phillips1021
  Sent: Saturday, October 21, 2006 10:34 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Using ActionScript 3.0 WebService Class - Need
  Help
  
  
  
  I'm trying to learn how to use the WebService class in ActionScript
  3.0 as part of a Flex 2.0 XML tutorial I'm writing for my blog
  (www.brucephillips.name/blog).
  
  I'm having great difficulty getting the code below to work. I've read
  throught the RPC components section of the Flex 2 Developer's Guide
  and the WebServices description in the ActionScript 3.0 Reference. 
  I've also search through FlexCoders and Google. The references are
  extremely POOR in giving working examples of how to use class
  WebService.
  
  The below code uses the currency exchange rate WebService described
  here: http://www.xmethods.net http://www.xmethods.net  (under demo
  services). I know the
  WebService works as I've tested it using ColdFusion.
  
  Any help you can provide me would be much appreciated and I will
  mention your assistance in my blog. The problem appears that my
  resultHandler function is never called as the test in my TextArea
  component does not change.
  
  Here is the code:
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  http://www.adobe.com/2006/mxml 
  layout=absolute creationComplete=useWebService()
  mx:Script
  ![CDATA[
  import mx.rpc.soap.LoadEvent;
  
  
  import mx.controls.Alert;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.events.FaultEvent;
  
  
  import mx.rpc.soap.WebService;
  
  public function useWebService

[flexcoders] Using ActionScript 3.0 WebService Class - Need Help

2006-10-21 Thread phillips1021
I'm trying to learn how to use the WebService class in ActionScript
3.0 as part of a Flex 2.0 XML tutorial I'm writing for my blog
(www.brucephillips.name/blog).

I'm having great difficulty getting the code below to work.  I've read
throught the RPC components section of the Flex 2 Developer's Guide
and the WebServices description in the ActionScript 3.0 Reference. 
I've also search through FlexCoders and Google.  The references are
extremely POOR in giving working examples of how to use class WebService.

The below code uses the currency exchange rate WebService described
here: http://www.xmethods.net (under demo services).  I know the
WebService works as I've tested it using ColdFusion.

Any help you can provide me would be much appreciated and I will
mention your assistance in my blog.  The problem appears that my
resultHandler function is never called as the test in my TextArea
component does not change.


Here is the code:

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


import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;


import mx.rpc.soap.WebService;
  
 public function useWebService():void {

var service:WebService = new WebService();
service.wsdl =
http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl;
service.getRate.addEventListener(result, resultHandler);
service.getRate.addEventListener(fault, faultHandler);
service.loadWSDL();
service.getRate(canada, united states);

}



public function resultHandler(event:ResultEvent):void   
  {

myTextArea.text = Result returned;

}

public function faultHandler(event:FaultEvent):void {

Alert.show(fault: + event.toString());

}
 
 
 ]]
/mx:Script
mx:TextArea x=134 y=65 id=myTextArea text=getting service/
/mx:Application

Thanks in advance.

Bruce Phillips






--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Process CheckBoxes Displayed Inside a DataGrid

2006-09-14 Thread phillips1021
Tracy:

   Thanks for the response.  I was afraid that was the case.  I did
notice that the checks don't remain if you scroll.  I'll have to come
up with a better way to do this.  I wanted the user to be able to
check 30 items in a list of 100 and after checking the last item and
clicking on a submit button the database would be updated.  I did not
want to have to call the CFC to update the database after each check.

Bruce


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

 When working with data-driven controls, you will almost always work with
 the dataprovider and not with the rendered display elements.  This is in
 part because the list based controls recycle the display elements when
 you scroll.  So you can't loop through the rows of a dataGrid and read
 the value of the check box.  In fact if you have implemented this
 already, you may have noticed that the check boxes do not always hold
 their values when you scroll.
 
  
 
 Instead, what you want to do is have your checkbox renderer undate a
 property on the dataProvider item when the user  changes the checked
 state  Then, when you are ready, you loop over the items in the
 dataProvider and read the value of the updated property.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of phillips1021
 Sent: Tuesday, September 12, 2006 2:12 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Process CheckBoxes Displayed Inside a DataGrid
 
  
 
 Anyone know of a good tutorial or other resource for using checkboxes
 in a datagrid that the user can then click on and then click on a
 button below the datagrid. The button click will call a function that
 should update the database for just the rows the user has clicked (ie
 update the record for that row).
 
 I've got the checkbox displaying on the datagrid, but I cannot figure
 out the code for the function to process the rows that the user
 checked. Is there some way to iterate over the datagrid and determine
 if the row's check box was selected?
 
 Bruce








--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Process CheckBoxes Displayed Inside a DataGrid

2006-09-12 Thread phillips1021
Anyone know of a good tutorial or other resource for using checkboxes
in a datagrid that the user can then click on and then click on a
button below the datagrid. The button click will call a function that
should update the database for just the rows the user has clicked (ie
update the record for that row).

I've got the checkbox displaying on the datagrid, but I cannot figure
out the code for the function to process the rows that the user
checked. Is there some way to iterate over the datagrid and determine
if the row's check box was selected?

Bruce






--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/