Re: [flexcoders] Flex Mac

2006-03-27 Thread John



Hi,Thanks so much for your help:)I had to transfer the file to the frameworks directory.Your solution worked for the mxml file, but not for the actionscript version.It did compile in the frameworks directory, but no swf was created:(I will keep trying, but thanks so much for your hep. I am going to install ant  excplise as that might seem like a better plan. I don't mind using the command line, but I just want a way that works best.Thanks so much for your help,JohnAlisdair Mills [EMAIL PROTECTED] wrote:   Hi John,looks like you are using an old tutorial put up for the flex2 alpha... things have changed somewhat since then - try :flex/bin/mxmlcflex/frameworks/HelloMXML.mxmlnote you'll need to change the macromedia namespace tohttp://www.adobe.com/2006/mxml.There are loads of ways to make mxmlc compiling easier on a Mac - ANT if using eclipse, or setting up your .bash_profile to automatically find the flex bin folder if you prefer the command line. Have been meaning to collect a lot of this kind of info and gather it in one place... i'll try and sort that out this week.Hope this helps.cheers, AlOn 26 Mar 2006, at 05:15, John wrote:  Hi
 Everybody,I downloaded the Flex SDK 2.0 (http://www.macromedia.com/cfusion/entitlement/index.cfm?e=labs)I hae some questions:How do I compile the flex and actionscript files? I tried:java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloMXML.mxmlI get the error message:Unable to access jarfile {flex}/lib/mxmlc.jarsame problem with actionscript.java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloAS3.asI did check, and this file does exsist in flex/lib/mxmlc.jarI haved flex at /Users/johnbarrett/flexI am just hoping to compile the flex application to get the swfsI tried many different ways to get this to work, but could not. The flex download came with samples, and I am lost on how to get those compiled too:(I heard about Ant too, is that a better way? is ant java? I am just taking java I now at school, learning, but no where
 near to "knowing java"can anybody offer me some help?Thanks so much,John  Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
   

		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex Mac

2006-03-27 Thread John



Hi I got it to work, I am so happy`-`The problem was my sloopy actionscript, I am really new!I was wondering the standalone flashplayer(came with Studio 8), could not display the swf file, so I put it on the web(http://www.johnbarrett.net/HelloWorld.swf) and I can see that it does say "Hello World" Is there a way to get the flash player 8.5 for the standalone?Thanks so much for your help,John:)Alisdair Mills [EMAIL PROTECTED] wrote:   Hi John,looks like you are using an old tutorial put up for the flex2 alpha... things have changed somewhat since then - try :flex/bin/mxmlcflex/frameworks/HelloMXML.mxmlnote you'll need to change the
 macromedia namespace tohttp://www.adobe.com/2006/mxml.There are loads of ways to make mxmlc compiling easier on a Mac - ANT if using eclipse, or setting up your .bash_profile to automatically find the flex bin folder if you prefer the command line. Have been meaning to collect a lot of this kind of info and gather it in one place... i'll try and sort that out this week.Hope this helps.cheers, AlOn 26 Mar 2006, at 05:15, John wrote:  Hi Everybody,I downloaded the
 Flex SDK 2.0 (http://www.macromedia.com/cfusion/entitlement/index.cfm?e=labs)I hae some questions:How do I compile the flex and actionscript files? I tried:java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloMXML.mxmlI get the error message:Unable to access jarfile {flex}/lib/mxmlc.jarsame problem with actionscript.java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloAS3.asI did check, and this file does exsist in flex/lib/mxmlc.jarI haved flex at /Users/johnbarrett/flexI am just hoping to compile the flex application to get the swfsI tried many different ways to get this to work, but could not. The flex download came with samples, and I am lost on how to get those compiled too:(I heard about Ant too, is that a better way? is ant java? I am just taking java I now at school, learning, but no where near to "knowing java"can anybody offer me some help?Thanks so much,John  Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
   

		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex Mac

2006-03-27 Thread Alisdair Mills


glad you got it working john. the standalone player for 8.5 mac can be found somewhere in the windows flex builder 2 exe installation. would make sense for this to be available for download from labs - but i don't think it is currently.cheers, AlOn 27 Mar 2006, at 10:01, John wrote:  Hi I got it to work, I am so happy`-`The problem was my sloopy actionscript, I am really new!I was wondering the standalone flashplayer(came with Studio 8), could not display the swf file, so I put it on the web(http://www.johnbarrett.net/HelloWorld.swf) and I can see that it does say "Hello World" Is there a way to get the flash player 8.5 for the standalone?Thanks so much for your help,John:)Alisdair Mills [EMAIL PROTECTED] wrote:   Hi John,looks like you are using an old tutorial put up for the flex2 alpha... things have changed somewhat since then - try :flex/bin/mxmlc flex/frameworks/HelloMXML.mxmlnote you'll need to change the macromedia namespace to http://www.adobe.com/2006/mxml.There are loads of ways to make mxmlc compiling easier on a Mac - ANT if using eclipse, or setting up your .bash_profile to automatically find the flex bin folder if you prefer the command line. Have been meaning to collect a lot of this kind of info and gather it in one place... i'll try and sort that out this week.Hope this helps.cheers, AlOn 26 Mar 2006, at 05:15, John wrote:  Hi Everybody,I downloaded the Flex SDK 2.0 (http://www.macromedia.com/cfusion/entitlement/index.cfm?e=labs)I hae some questions:How do I compile the flex and actionscript files? I tried:java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloMXML.mxmlI get the error message:Unable to access jarfile {flex}/lib/mxmlc.jarsame problem with actionscript.java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloAS3.asI did check, and this file does exsist in flex/lib/mxmlc.jarI haved flex at /Users/johnbarrett/flexI am just hoping to compile the flex application to get the swfsI tried many different ways to get this to work, but could not. The flex download came with samples, and I am lost on how to get those compiled too:(I heard about Ant too, is that a better way? is ant java? I am just taking java I now at school, learning, but no where near to "knowing java"can anybody offer me some help?Thanks so much,John   Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS  Visit your group "flexcoders" on the web.    To unsubscribe from this group, send an email to: [EMAIL PROTECTED]    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.      		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS  Visit your group "flexcoders" on the web.    To unsubscribe from this group, send an email to: [EMAIL PROTECTED]    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








RE: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

2006-03-27 Thread Steven Webster





Just to back up Alex's excellent email 
here.

When Cairngorm used to be used for Flash-based RIA we would 
use Flash Remoting, Open AMF, etc with success. If you do a search on www.richinternetapps.com (or search 
my previous emails on Flexcoders) you'll find a reference to the ActionScript 
2.0 Dictionary where Alistair McLeod and I posted an email link to the PDF 
chapter we wrote about this.

Back in those days, the ServiceLocator was an ActionScript 
class, that handled all the complexities associated with creating 
NetConnections/etc that you assume responsibility for when descending to the 
detail of Flash Remoting.

When working with Flex-based RIA, it's typical to ascend 
the foodchain towards RemoteObejct, WebService and HTTPService (though not 
necessary) and so we made the decision in Cairngorm that the ServiceLocator be 
an MXML implementation, that could allow Flex to do all the heavy-lifting with 
the RPC Service tags. That way, we didn't have to worry ourselves anymore 
with NetConnections, and Java object serialisations/etc.

However, if you want to use AMFPHP, you can do what many 
others have done, you can ensure that your ActionScript service locator is able 
to return these services. You want to hide all the details of service 
creation and lookup in the ServiceLocator so that your business delegate is 
immune to the implementation.

I know others have done this already ... but if you can 
share your solution with us, we can ensure that others can leverage from your 
findings.

If you have any more questions, please don't hesitate to 
ask.

Best,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 
  947

Alex UhlmannSent: 26 March 2006 
11:57To: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

  
  Hi William,
  
  usually, you would define the AMFPHP interface in 
  Services.mxml, retrieve it via ServiceLocator from your Delegate. But 
  ServiceLocator can only return you either mx.rpc.AbstractService or 
  mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However 
  you could create the AMFPHP specific details in your Delegate. But better 
  would be to add a method to Cairngorm's ServiceLocator that either returns a 
  generic object oran objectcompatible to AMFPHP (RemotingConnection 
  or NetConnection).Let me know how you get on.
  
  Best,
  Alex
  
  
  


  

  
  


  
  Alex UhlmannConsultant (Rich Internet 
  Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
  South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
  6969
  m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of William 
  LambéSent: 25 March 2006 22:10To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - 
  Cairngorm 2 - AMFPHP]
  
  
  Hello guys, 
  
  
  Did someone try to use Cairngom 
  (architectural framework for flex) with 
  AMFPHP?
  
  I ask because I don’t see clearly (in the sample 
  Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with 
  AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix 
  (http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 
  ))
  
  If you tried one time, coud you explain us 
  please.
  
  Thank you, 
  
  William.
  





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex Messaging or J2EE Messaging

2006-03-27 Thread Steven Webster






  Im currently crying 
  on the plane back from Europe.

Guess Matt didn't get that 
upgrade...





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex Mac

2006-03-27 Thread John



Hi Alisdair,Yeah I am stoked!I think that when I compiled the actionscript file is how I got the swf. I will have lots of reading to do, and to look at the samples(now that I can compile them). I did look all over labs, but I could not find the standalone flash player 8.5 for mac. Tomorrow, I am going to try to download the flex builder package, maybe it is in there someplace.Been playing with ANT and Ecpilse, and I think that is going to be a great way to compile the files once I figure it out.Thank you so much for your help`-`JohnAlisdair Mills [EMAIL PROTECTED] wrote:   glad you got it working john. the standalone player for 8.5 mac can be found somewhere in the windows flex builder 2 exe installation. would make sense for this to be available for download from labs - but i don't think it is currently.cheers, AlOn 27 Mar 2006, at 10:01, John wrote:  Hi I got it to work, I am so happy`-`The problem was my sloopy actionscript, I am really new!I was wondering the standalone flashplayer(came with Studio 8), could not display the swf file, so I put it on the web(http://www.johnbarrett.net/HelloWorld.swf) and I can see that it does say "Hello World" Is there a way to get the flash player 8.5 for the standalone?Thanks so much for your help,John:)Alisdair Mills [EMAIL PROTECTED] wrote:   Hi John,looks like you are using an old tutorial put up for the flex2 alpha... things have changed somewhat since then - try :flex/bin/mxmlc�flex/frameworks/HelloMXML.mxmlnote you'll need to change the macromedia namespace to�http://www.adobe.com/2006/mxml.There are loads of ways to make mxmlc compiling easier on a Mac - ANT if using eclipse, or setting up your .bash_profile to automatically find the flex bin folder if you prefer the command line. Have been meaning to collect a lot of this kind of info and gather it in one place... i'll try and sort that out this week.Hope this helps.cheers, AlOn 26 Mar 2006, at 05:15, John wrote:  Hi Everybody,I downloaded the Flex SDK 2.0 (http://www.macromedia.com/cfusion/entitlement/index.cfm?e=labs)I hae some questions:How do I compile the flex and actionscript files? I tried:java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloMXML.mxmlI get the error message:Unable to access jarfile {flex}/lib/mxmlc.jarsame problem
 with actionscript.java -jar flex/lib/mxmlc.jar -flexlib flex/frameworks/HelloAS3.asI did check, and this file does exsist in flex/lib/mxmlc.jarI haved flex at /Users/johnbarrett/flexI am just hoping to compile the flex application to get the swfsI tried many different ways to get this to work, but could not. The flex download came with samples, and I am lost on how to get those compiled too:(I heard about Ant too, is that a better way? is ant java? I am just taking java I now at school, learning, but no where near to "knowing java"can anybody offer me some help?Thanks so much,John  �Blab-away for as little as 1�/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS �Visit your group "flexcoders" on the web.� 
 �To unsubscribe from this group, send an email to:�[EMAIL PROTECTED]�  �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.   �New Yahoo! Messenger with Voice. Call regular phones from
 your PC and save big.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYAHOO! GROUPS LINKS �Visit your group "flexcoders" on the web.�  �To unsubscribe from this group, send an email to:�[EMAIL PROTECTED]� 
 �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.  
   

		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] why is trace(1+0.9+0.7+0.3) = 2.8999999999999995

2006-03-27 Thread Dima Ulich
Hi All,

   I was working with number recently and noticed this
weird behaviour trace(1+0.9+0.7+0.3) returns
2.8995;
   Did anyone else ever seen such thing? Is it a bug?

Dima Ulich

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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/
 


Re: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

2006-03-27 Thread Oriol Gual



Just to make thinks easier to others: PDF chapter: http://www.richinternetapps.com/archives/AS2_DesignPatterns_for_RIA.pdf
Code: http://aspatterns.iterationtwo.com/downloads/as2patterns.zipI hope you meant that pdf Steven.Oriol.
2006/3/27, Steven Webster [EMAIL PROTECTED]:









Just to back up Alex's excellent email 
here.

When Cairngorm used to be used for Flash-based RIA we would 
use Flash Remoting, Open AMF, etc with success. If you do a search on www.richinternetapps.com (or search 
my previous emails on Flexcoders) you'll find a reference to the ActionScript 
2.0 Dictionary where Alistair McLeod and I posted an email link to the PDF 
chapter we wrote about this.

Back in those days, the ServiceLocator was an ActionScript 
class, that handled all the complexities associated with creating 
NetConnections/etc that you assume responsibility for when descending to the 
detail of Flash Remoting.

When working with Flex-based RIA, it's typical to ascend 
the foodchain towards RemoteObejct, WebService and HTTPService (though not 
necessary) and so we made the decision in Cairngorm that the ServiceLocator be 
an MXML implementation, that could allow Flex to do all the heavy-lifting with 
the RPC Service tags. That way, we didn't have to worry ourselves anymore 
with NetConnections, and Java object serialisations/etc.

However, if you want to use AMFPHP, you can do what many 
others have done, you can ensure that your ActionScript service locator is able 
to return these services. You want to hide all the details of service 
creation and lookup in the ServiceLocator so that your business delegate is 
immune to the implementation.

I know others have done this already ... but if you can 
share your solution with us, we can ensure that others can leverage from your 
findings.

If you have any more questions, please don't hesitate to 
ask.

Best,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 
  947

Alex UhlmannSent: 26 March 2006 
11:57To: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

  
  Hi William,
  
  usually, you would define the AMFPHP interface in 
  Services.mxml, retrieve it via ServiceLocator from your Delegate. But 
  ServiceLocator can only return you either mx.rpc.AbstractService or 
  mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However 
  you could create the AMFPHP specific details in your Delegate. But better 
  would be to add a method to Cairngorm's ServiceLocator that either returns a 
  generic object oran objectcompatible to AMFPHP (RemotingConnection 
  or NetConnection).Let me know how you get on.
  
  Best,
  Alex
  
  
  


  

  
  


  
  Alex UhlmannConsultant (Rich Internet 
  Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
  South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
  6969
  m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of William 
  LambéSent: 25 March 2006 22:10To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - 
  Cairngorm 2 - AMFPHP]
  
  
  Hello guys, 
  
  
  Did someone try to use Cairngom 
  (architectural framework for flex) with 
  AMFPHP?
  
  I ask because I don't see clearly (in the sample 
  Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with 
  AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix 
  (
http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 
  ))
  
  If you tried one time, coud you explain us 
  please.
  
  Thank you, 
  
  William.
  





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



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] ExternalInterface and IFrame

2006-03-27 Thread Tony Pujals
I wanted to create an dialog as an html form in an iframe rather than
opening a separate browser window for uploading image files. I also
wanted to create an html page preview using an iframe as well.

I spent an entire Sunday working at this and none of my efforts have
succeeded satisfactorily. I researched the web and came across Crostophe
Coenrats' article, and after modifying it for Flex 2 / AS3, I still
didn't get no satisfaction. A little more research and I found Brian
Deitte's update for AS3 as well and tried his solution, and still no
joy. I tried every variation I could think of, working with fscommand,
navigateToURL, and of course, ExternalInterface.

It appears that it doesn't matter which strategy you use. In all cases,
I came close to achieving what I wanted. The problem even in the
simplest case is that clicking in the iframe, then clicking outside of
it, causes the iframe to disappear until something causes the iframe to
refresh with IE, and nada for FireFox (I'm using IE 6 and FireFox
1.5.0.1 on Windows XP SP2, and of course, Flash 8.5).

Here's a distilled set of the code primarily based on Conraets/Deitte's
work:


Test.mxml
=
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

  mx:HBox
mx:Text text=http://; /
mx:TextInput id=uri text=www.adobe.com/ /
mx:Button label=Go click=go() /
  /mx:HBox

  mx:Script
![CDATA[
  import flash.external.ExternalInterface;

  function go(): void {
if (!ExternalInterface.available) {
  trace(ExternalInterface not available);
  return;
}

if (uri.text) {
  ExternalInterface.call(loadIFrame, testFrame, http://; +
uri.text);
  ExternalInterface.call(moveIFrame, testFrame, 20, 60, 400,
500);
  ExternalInterface.call(showIFrame, testFrame);
}
  }
]]
  /mx:Script
/mx:Application



iframe.js
=
function loadIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 20;
f.style.top = 80;
f.width = 400;
f.height = 400;
f.style.visibility = visible;
top.frames[testFrame].location.href = uri;
// alert(loadIFrame:  + id + ,  + uri);
}

function showIFrame(id){
document.getElementById(id).style.visibility=visible;
// alert(showIFrame:  + id);
}

function hideIFrame(){
document.getElementById(id).style.visibility=hidden;
// alert(hideIFrame:  + id);
}

function moveIFrame(id, x, y, w, h) {
var frameRef=document.getElementById(id);
frameRef.style.left = x;
frameRef.style.top = y;
frameRef.width = w;
frameRef.height = h;
// alert(moveIFrame:  + id +  ( + x + ,  + y + width + ,  +
height + ));
}

// Ex: type in browser url bar:
// javascript:testIFrame(testFrame, http://www.cnn.com;)
function testIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 10;
f.style.top = 10;
f.width = 400;
f.height = 400;
f.style.visibility = visible;
top.frames[testFrame].location.href = uri;
}




In the HTML wrapper (I modified html-template/index.template.html)
===
(In the head element)

script src=iframe.js language=javascript/script


(At the end of the body element)

iframe id=testFrame name=testFrame
frameborder=0

style=position:absolute;background-color:transparent;border:0px;visibil
ity:visible;
/iframe






The javascript testIFrame function is there just to demonstrate that
even with a completely empty application, like this...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
/mx:Application

...after you load the app in the browser, you can enter this in the url
bar:

javascript:testIFrame(testFrame, http://www.cnn.com;)


...and still get weird behavior.



If Adobe provides robust iframe support, that would really, really be
awesome. What did actually work really whetted my appetite. This opens
the door to some very coolly hybrid UIs and I hope it is something they
can get fixed very soon. I know it would impress a lot of other people
at my own work


-Tony


 
tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals
 



--
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] Beta 2 CF connectivity problems

2006-03-27 Thread Doug Hughes












Hello,



Im just getting started with flex 2 and Ive
run into a problem I cant get past. Im trying to create a
project that will let me use AMF3. I dont want to use web services and
Im not doing anything related to the enterprise services.



Ive installed the mystic update over CF
7.0.1 running under JRun. Theres another instance of CF under JRun but
its not running. 



Im trying to create project using FlexBuilder 2. (I
have the standalone version of beta 2 installed.) To create the project I
click File  New  Flex Project. It then asks me what Flex server
technology the project will use. I select ColdFusion Flash Remoting Service (this
means AMF3, right?) and click next. 



The next page asks me for two things: Root folder and Root URL.
Ive provided the path to the flex folder under the ColdFusion instance
in JRun and the path to the flex folder via the URL. (The JRun http server
port is 8300.) 



No matter what I provide the finish button is always grayed
out. I suspect that if I click Validate Location that it should validate this
information and allow me to finish but every time I click that I get this
error:



Server root is invalid. Could not locate flex-config.xml or
flex-enterprise-services.xml.



For the life of me Ive got no freakin clue how
to get past this. Can anyone help me figure out how to get past this? Do I
need to? Can I create a standard flex project and still use AMF3? 



Can I use this AMF stuff outside of the JRun urls? IE via http://www.mysite.com/ instead of http://localhost:8700/flex/?



Thanks for your help!



Doug Hughes

[EMAIL PROTECTED]











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] RE: ExternalInterface and IFrame

2006-03-27 Thread Tony Pujals
I want to follow up and mention that I'm aware FileRerence before I get
a lot of suggestions to use it ;-), but I had other reasons why I wanted
to create a form within an iframe.

In any case, I'm particularly intrigued by the idea of displaying
content in an iframe managed by an mxml component, as C. Conraets  B.
Deitte have demonstrated in their articles. What I did have working of
my page preview inside of a panel looked pretty awesome -- but for now I
have to live with opening a separate browser window.

I also forgot to mention that the FireFox version does occasionally
display the iframe -- flickering like it's updating umpteen times per
second.

 


-Original Message-
From: Tony Pujals 
Sent: Sunday, March 26, 2006 7:10 PM
To: 'flexcoders@yahoogroups.com'
Subject: ExternalInterface and IFrame

I wanted to create an dialog as an html form in an iframe rather than
opening a separate browser window for uploading image files. I also
wanted to create an html page preview using an iframe as well.

I spent an entire Sunday working at this and none of my efforts have
succeeded satisfactorily. I researched the web and came across Crostophe
Coenrats' article, and after modifying it for Flex 2 / AS3, I still
didn't get no satisfaction. A little more research and I found Brian
Deitte's update for AS3 as well and tried his solution, and still no
joy. I tried every variation I could think of, working with fscommand,
navigateToURL, and of course, ExternalInterface.

It appears that it doesn't matter which strategy you use. In all cases,
I came close to achieving what I wanted. The problem even in the
simplest case is that clicking in the iframe, then clicking outside of
it, causes the iframe to disappear until something causes the iframe to
refresh with IE, and nada for FireFox (I'm using IE 6 and FireFox
1.5.0.1 on Windows XP SP2, and of course, Flash 8.5).

Here's a distilled set of the code primarily based on Conraets/Deitte's
work:


Test.mxml
=
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

  mx:HBox
mx:Text text=http://; /
mx:TextInput id=uri text=www.adobe.com/ /
mx:Button label=Go click=go() /
  /mx:HBox

  mx:Script
![CDATA[
  import flash.external.ExternalInterface;

  function go(): void {
if (!ExternalInterface.available) {
  trace(ExternalInterface not available);
  return;
}

if (uri.text) {
  ExternalInterface.call(loadIFrame, testFrame, http://; +
uri.text);
  ExternalInterface.call(moveIFrame, testFrame, 20, 60, 400,
500);
  ExternalInterface.call(showIFrame, testFrame);
}
  }
]]
  /mx:Script
/mx:Application



iframe.js
=
function loadIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 20;
f.style.top = 80;
f.width = 400;
f.height = 400;
f.style.visibility = visible;
top.frames[testFrame].location.href = uri;
// alert(loadIFrame:  + id + ,  + uri);
}

function showIFrame(id){
document.getElementById(id).style.visibility=visible;
// alert(showIFrame:  + id);
}

function hideIFrame(){
document.getElementById(id).style.visibility=hidden;
// alert(hideIFrame:  + id);
}

function moveIFrame(id, x, y, w, h) {
var frameRef=document.getElementById(id);
frameRef.style.left = x;
frameRef.style.top = y;
frameRef.width = w;
frameRef.height = h;
// alert(moveIFrame:  + id +  ( + x + ,  + y + width + ,  +
height + ));
}

// Ex: type in browser url bar:
// javascript:testIFrame(testFrame, http://www.cnn.com;)
function testIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 10;
f.style.top = 10;
f.width = 400;
f.height = 400;
f.style.visibility = visible;
top.frames[testFrame].location.href = uri;
}




In the HTML wrapper (I modified html-template/index.template.html)
===
(In the head element)

script src=iframe.js language=javascript/script


(At the end of the body element)

iframe id=testFrame name=testFrame
frameborder=0

style=position:absolute;background-color:transparent;border:0px;visibil
ity:visible;
/iframe






The javascript testIFrame function is there just to demonstrate that
even with a completely empty application, like this...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
/mx:Application

...after you load the app in the browser, you can enter this in the url
bar:

javascript:testIFrame(testFrame, http://www.cnn.com;)


...and still get weird behavior.



If Adobe provides robust iframe support, that would really, really be
awesome. What did actually work really whetted my appetite. This opens
the door to some very coolly hybrid UIs and I hope it is something they
can get fixed very soon. I know it would impress a lot of other people
at my own work


-Tony


 
tony 

[flexcoders] Flex 2 Beta 2

2006-03-27 Thread Harald Dehn










Hello,



are there any predefined Cursors I can use with
Cursormanager, for example a four-way arraow? I would like to change the cursor
during resize and move operations.



Harry









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


[flexcoders] FlexUnit error

2006-03-27 Thread Sönke Rohde
Hi,
I am just trying FlexUnit
(http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:apis:lib
raries#FlexUnit) like in the example by Darron Schall
(http://www.darronschall.com/weblog/archives/000216.cfm) and I get the
following error:

ReferenceError: Error #1065: Variable
http://www.adobe.com/2006/flex/mx/internal::_TestRunnerBase_StylesInit is
not defined
at flexunit.flexui::TestRunnerBase$iinit()
  ...

This line causes the error:
flexunit:TestRunnerBase id=testRunner width=100% height=100% /

Is this a problem because of flex beta2 because the example was posted while
beta 1 was out or am I missing something else?

Cheers,
Sönke



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




RE: [flexcoders] Flexbuilder 2.0 missing mx:link ?

2006-03-27 Thread Alex Uhlmann
Thanks Paolo, 


I'll make sure this gets to the right people.
BTW. you could report this bug here as well.
www.macromedia.com/support/email/wishform/


Best,
Alex
 
Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951 
[EMAIL PROTECTED]
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paolo Bernardini
Sent: 26 March 2006 16:35
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flexbuilder 2.0 missing mx:link ?


Hi Alex,
I can tell you that FlexBuilder is showing the code hint for the click
event, but it doesn't show selectedChild for the ViewStack.
Sorry to post it here but I didn't know where to report this bug.


 
2006/3/26, Alex Uhlmann [EMAIL PROTECTED]: 

Hi jim,

The name Link changed to LinkButton in beta 2, the tutorials
might not
reflect this change just yet. LinkButton should have a click
property. 
Let me know if it doesn't work. It might be just FlexBuilder not
showing
you the code hint.

Best,
Alex

Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK

p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]


-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
Behalf Of anonymoth
Sent: 26 March 2006 03:51
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Flexbuilder 2.0 missing mx:link ?

Hello..I'm completely new at the whole Flex game, so please be
gentle
:-)

I'm running through the 2.0 tutorial and it asks for a Link
component. 
Well there's only a LinkButton, and it doesn't have the 'click'
property. Am I missing something (or is Flexbuilder)?

I tried coding mx:Link but it went unrecognized.

thanks,
jim





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



http://docs.yahoo.com/info/terms/ 








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




SPONSORED LINKS 
Web site design development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
site+design+developmentw2=Computer+software+developmentw3=Software+des
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
b+site+design+developmentw2=Computer+software+developmentw3=Software+d
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw   Software design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
Web+site+design+developmentw2=Computer+software+developmentw3=Software
+design+and+developmentw4=Macromedia+flexw5=Software+development+best+
practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 
Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
developmentw2=Computer+software+developmentw3=Software+design+and+deve
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practice;
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  



YAHOO! GROUPS LINKS 


*Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders  on the web.
  
*To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/ . 



RE: [flexcoders] Beta 2 CF connectivity problems

2006-03-27 Thread Benoit Hediard





What do you give as the root folder and the root 
url?
It should be the root of your coldfusion 
instance.
Ex. : C:\CFusionMX7\wwwroot and http://localhost:8500 (if you're using the 
integrated http server)
FB2 will then create a folder "flex" in WEB-INF and create 
the appropriate flex-enteprise-services.xml.

Are you using the integrated jrun http 
server?

I found that when using Apache as the http server instead 
of the integrated jrunhttp server, there is issue (compiled files are not 
created under the Apache wwwroot but the JRun root 
folder...).
So you have to create a Flex project without Flex server 
technology and configure the CF Adapter manually :
- by creating and configuringthe 
flex-enterprise-services.xml,
- by adding the compiler arg 
"--services=D:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml" 
(putthe correctpath to 
flex-enterprise-services.xml).

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Doug 
HughesEnvoyé: lundi 27 mars 2006 05:11À: 
flexcoders@yahoogroups.comObjet: [Norton AntiSpam] [flexcoders] 
Beta 2 CF connectivity problems



Hello,

I’m just getting started with flex 2 
and I’ve run into a problem I can’t get past. I’m trying to create a 
project that will let me use AMF3. I don’t want to use web services and 
I’m not doing anything related to the enterprise 
services.

I’ve installed the “mystic” update 
over CF 7.0.1 running under JRun. There’s another instance of CF under 
JRun but it’s not running. 

I’m trying to create project using 
FlexBuilder 2. (I have the standalone version of beta 2 installed.) 
To create the project I click File  New  Flex Project. It 
then asks me what Flex server technology the project will use. I select 
ColdFusion Flash Remoting Service (this means AMF3, right?) and click 
next. 

The next page asks me for two 
things: Root folder and Root URL. I’ve provided the path to the flex 
folder under the ColdFusion instance in JRun and the path to the flex folder via 
the URL. (The JRun http server port is 8300.) 


No matter what I provide the finish 
button is always grayed out. I suspect that if I click Validate Location 
that it should validate this information and allow me to finish but every time I 
click that I get this error:

Server root is invalid. Could not 
locate flex-config.xml or 
flex-enterprise-services.xml.

For the life of me I’ve got no 
freakin’ clue how to get past this. Can anyone help me figure out how to 
get past this? Do I need to? Can I create a standard flex project 
and still use AMF3? 

Can I use this AMF stuff outside of 
the JRun urls? IE via http://www.mysite.com/ instead of http://localhost:8700/flex/?

Thanks for your 
help!

Doug 
Hughes
[EMAIL PROTECTED]






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] flex2 accessibility

2006-03-27 Thread Alisdair Mills
Hi,

I am hoping someone could point me to any documentation on flex 2  
accessibility. I notice there is an accessibility option for the  
compiler - but this is off by default. Is this off because it is  
currently a developer beta? What difference does it make to the swf  
if you compile with it set to true? Can it be set at runtime? And  
most importantly - what accessibility does it provide (screenreader  
support? changable text size / colour contrast? tab management?).

Basically I am trying to push flex 2 to a few clients right now and  
know this is going to be the first question asked - Does it cover  
all legal requirements over accessibility?.

Any pointers over this will be a great help.

Cheers, Al


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




Re: [flexcoders] why is trace(1+0.9+0.7+0.3) = 2.8999999999999995

2006-03-27 Thread Michael Schmalle



I could swear there was a thread on this precision issue that Gordon
Smith answered and it did have to do with the trace function.

Search the archives, I bet you will find it.

Peace, MikeOn 3/27/06, Dima Ulich [EMAIL PROTECTED] wrote:



Hi All,

 I was working with number recently and noticed this
weird behaviour trace(1+0.9+0.7+0.3) returns
2.8995;
 Did anyone else ever seen such thing? Is it a bug?

Dima Ulich

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  








-- What goes up, does come down.






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

2006-03-27 Thread Scott Langeberg



Alex,Do you think this approach would apply to socket connections as well. E.g. XMLSocket, or Binary Sockets?My issue is that these socket connections would need to broadcast dataReceived() events. These should be caught by the FrontController, correct? Does it make sense for the ServiceLocator to be broadcasting such events?
ScottOn 3/26/06, Alex Uhlmann [EMAIL PROTECTED] wrote:









Hi William,

usually, you would define the AMFPHP interface in 
Services.mxml, retrieve it via ServiceLocator from your Delegate. But 
ServiceLocator can only return you either mx.rpc.AbstractService or 
mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However you 
could create the AMFPHP specific details in your Delegate. But better would be 
to add a method to Cairngorm's ServiceLocator that either returns a generic 
object oran objectcompatible to AMFPHP (RemotingConnection or 
NetConnection).Let me know how you get on.

Best,
Alex



  
  

  


  
  

Alex UhlmannConsultant (Rich Internet 
Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969
m: +44 (0)7917 428 951[EMAIL PROTECTED] 
  



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of William 
LambéSent: 25 March 2006 22:10To: 
flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - 
Cairngorm 2 - AMFPHP]


Hello guys, 


Did someone try to use Cairngom 
(architectural framework for flex) with 
AMFPHP?

I ask because I don't see clearly (in the sample 
Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with 
AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix 
(
http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 
))

If you tried one time, coud you explain us 
please.

Thank you, 

William.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  








-- : : ) Scott






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

2006-03-27 Thread Steven Webster





Remember that not everything needs to be shoe-horned into a 
Cairngorm provided class. I'm going to discuss around a few issues here, 
and hopefully coalesce a point by the end.

First of all, the front controller will tyipcally listen 
for *user* gestures; button clicks, drag and drops, menu selections, etc. 
However, when we've been building applications with server-push, or 
collaborative appliations where one instance of an application wishes to change 
the state of another running instance, we've certainly broadcast Cairngorm 
events to our front controller.

Hold that thought.

Next - the ServiceLocator is really a repository for RPC 
services, it doesn't have to be where you encapsulate your XML Binary 
sockets. I'd consider that you create a class of your own devising, 
that encapsulates everything about the XMLSocket - it opens the socket, stuffs 
data down it and handles the responses. We've often called these classes 
"bridge" classes, but you may call them adapters, facades, proxies, services ... 
let's not get religious about naming. Your business delegate classes could 
use your "bridges", and once again the business delegate is making use of a 
different type of service, but hiding the use of that service from the command 
classes. 

Your "bridge" class could then more elegantly mutate 
low-level events (such as dataReceived) into higher-order events (such as 
QuoteController.STOCK_PRICE_UPDATED) that are broadcast to the 
front-controller. I feel funny about the ServiceLocator broadcasting these 
events - it smells like the wrong class responsibility to me, which is an 
indication of the Extract Class refactoring just waiting to happen (http://www.refactoring.com/catalog/extractClass.html)

You may decide to hide the location details of the XML 
socket into the ServiceLocator - let's leave that as an exercise in readability 
and maintainability that you decide.

So there are many ways to solve this; but I think 
encapsulation of the XMLSocket comms into a separate class and mutation of 
protocol-specific events into application-specific events, would be good 
guideline principles in deciding upon your own design.

Good to see you guys all 
pushing Cairngorm in these new and exciting ways; if this becomes more common 
use-case for Flex 2.0 development, then we can consider some of your solutions 
as candidate infrastructure or 
recommendations.

Best 
wishes,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 
  947











  Alex,Do you think this approach would apply to socket 
  connections as well. E.g. XMLSocket, or Binary Sockets?My issue is 
  that these socket connections would need to broadcast dataReceived() events. 
  These should be caught by the FrontController, correct? Does it make sense for 
  the ServiceLocator to be broadcasting such events? Scott





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Weird Gradient Fill error

2006-03-27 Thread SCOTT FANETTI



Roger - I posted a few days ago about the continued gradient fill funk in Beta 2. Do you have any more information about why these gradient fills continue to fail to transcode?this is the link to the archived message:http://groups.yahoo.com/group/flexcoders/message/32258Roger Gonzalez [EMAIL PROTECTED] wrote:   There were several gradient fillbugsthatI recently  fixed.  The next beta build should solve your problems, but let me know if it  doesn't!  -rg  From: flexcoders@yahoogroups.com[mailto:[EMAIL PROTECTED] On Behalf Of ScottFanettiSent: Thursday, March 09, 2006 1:54 PMTo:flexcoders@yahoogroups.comSubject: [flexcoders] Re: Weird GradientFill error   Does anyone know if anyone has been having weird compile time bugswith
 Flex when they try to import a shape or symbol from Flash 8that has a gradient fill? The gradient stoke seems to work fine, butwhen I tried to import a shape with a gradient fill that used any of the Flash8 gradient transforms or overflow features it errors with: Unable totranscode ../media/NewGradientFillWithGradientStroke.swf unrecognized fillstyle type: 19 I guess these things are to be expected with Betasoftware.Scott FanettiRosettaStone.com  SPONSORED LINKS   Web site design development   Computer software development   Software design and development Macromedia flex   Software development best practice   
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] [Flex 2 beta 2] Location Problem ? Duplicate Problem ?

2006-03-27 Thread William Lambé










Hello everybody, 



I have a little question how is this error
possible?:



«Can not resolve a multiname reference
unambiguously. flash.net:Responder (from C:\Program Files\Adobe\Flex Builder 2
Beta 2\Flex Framework 2\frameworks\libs\playerglobal.swc(Responder)) and
org.nevis.cairngorm.business:Responder (from
G:\www\AdminBapp\org\nevis\cairngorm\business\Responder.as) are available.»



It is in a line like: gateway.call(
adminbapp.getStudents, new Responder(onResultInit, onFaultInit));



But I write before: import flash.net.Responder;
to say that I would like this Responder.



I probably make a mistake What must I change?



Is is because in my main.mxml I have this line:
xmlns:business=net.willdestiny.adminbapp.business.*?



Thank you, 



William, Belgium.









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] flex2 : IMenuDataProvider replacement

2006-03-27 Thread bhaq1972
Hi

Whats the replacement for IMenuDataProvider. Specifically, what do i 
replace the methods addMenuItem(), removeMenuItemAt() with.

thanks






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




Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-27 Thread Bruno Martins



Yes I extend the loader to create this new component. I had the same problem you have. The document is undefinedon complete event, but a fill seconds after they appear so a put a interval to manipulate the content. I don't like this solution but I'll try a better one. If you have some idea, please let me know


Tks...

On 3/24/06, inawire [EMAIL PROTECTED] wrote:
 

I take it 'AppLoader' is a custom component you created by extending the Loader component? How did you endup handeling the 'unloading' of an app before loading a second one?
How did you handel a notification from the inner app that it was complete and that the shell app could talk to it.Thanks 
Ross--- In flexcoders@yahoogroups.com, Bruno Martins [EMAIL PROTECTED] wrote: 

 Hi Inawire,  Excellent discover about the SystemManager. Now I did a first AppLoader component(use AppLoader instead of Loader), until now its works 
fine for me if you find some bugs please let me know.  Thanks...   
 On 3/24/06, inawire [EMAIL PROTECTED] wrote:   Hi Bruno   I was finaly able to talk to the inner app.   I added this code to a button in the shell app.
  Note: applet is the id of my mx:Loader component in the shell app   var subApp:SystemManager = SystemManager(applet.content );  trace(subApp.document.appName); 
  content is of type SystemManager which has a document property. This  document is the inner app root application. appName is a property I  created in the root of the inner app.
   I had to stick this on a button to make sure the inner app was  completely loaded before I tried to talk to it. The complete event of  the mx:Loader component is before the document is ready. I tried 
the  INIT event of the LoaderInfo but no sucess yet with that.   That's all I have so far.Ross--- In 
flexcoders@yahoogroups.com , Bruno Martins bheman@ wrote:  
   Hi, I know about this listener problem but I'll try other solution as  soon aspossible... Tks
   On 3/23/06, inawire ross@ wrote:   Thanks Bruno and Doug,This is on the right track (though I still do not know why 
thisworked in beta 1 with out all this extra code).   Bruno, your code worked for me fine (flex 2 version of Doug's   idea).When I load my inner app, the content resizes perfectly (see 
innerapp below).   The only trouble I am having now it a basic problem that anyone  couldprobably help me with. The event listener for the 'resize' is
  stillbeing called from the shell when I try to load a second inner  app. Ihave been trying to use removeListener but do not seam to find an
event that lets me know when the first inner app is being removed  (orunloaded). I have tried to call unload() on the instance of theLoader app in the shell app and keep getting the error
'Call to a possibly undefined method 'unLoad' through a referencewith static type 'mx.controls:Loader'   Is there an event I can make the inner app listen for that 
tells  methat it is being removed when I load a new inner app (or is it  beingremoved)?   Thanks Ross
   P.S.Bruno, as for your question, using your code and the fact that myinner apps scale using the layout anchors, I did not have to 
talk  tothe inner app from the shell app. I have tried using theLoaderInstanceName.content.propertyInInnerApp and I can not getaround the same compliler error as stated above.
   Thanks for your help. Code for sample inner app the resizes to fit
==?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml  mlns=*layout=absolute width=100% height=100%creationComplete=initApp();
paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0mx:Scriptimport 
flash.util.trace;  private function resizeLoader(event:Event = null):void {width = parent.parent.parent.width
;height = parent.parent.parent.height;}   public function unLoader():void {trace('unLoader called')
parent.parent.parent.removeEventListener(resize,  resizeLoader);   }   private function initApp():void
{resizeLoader();parent.parent.parent.addEventListener (resize, resizeLoader);}/mx:Script
   mx:Canvas left=0 right=0 top=0 bottom=0 id=main mx:DataGrid id=dg left=0 top=0 bottom=0 right=0
mx:columnsmx:DataGridColumn headerText=Column 1 dataField=col1/ mx:DataGridColumn headerText=Column 2 dataField=col2/
mx:DataGridColumn headerText=Column 3 dataField=col3/ /mx:columns/mx:DataGrid/mx:Canvas
/mx:Application 
   --- In flexcoders@yahoogroups.com, Bruno Martins bheman@
  wrote: Hi, I did a poor solution to this problem but I believe that is a  start
to solve the problem: I put the following code in the application that will be 

[flexcoders] error : multiname reference : FORGET

2006-03-27 Thread William Lambé










Sorry guys, 



I dont have the reflex to go in the archive
Sorry to disturb you with basic problem I found it in the archive.



When I will find a good solution to use amfphp to
Cairngorm, I will tell to you;-)



Bye, 


William.









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] [Flex 2 beta 2] Location Problem ? Duplicate Problem ?

2006-03-27 Thread Oriol Gual



I had the same problem, you should import either flash.net.responder or org.nevis.cairngorm.business.Responder. If you want to import both of them, change
 new Responder(.. to new flash.net.Responder(.. or new 
org.nevis.cairngorm.business.Responder(.. to let Flex know what Responder are you using.
Oriol.2006/3/27, William Lambé [EMAIL PROTECTED]:















Hello everybody, 



I have a little question… how is this error
possible?:



«Can not resolve a multiname reference
unambiguously. flash.net:Responder (from C:\Program Files\Adobe\Flex Builder 2
Beta 2\Flex Framework 2\frameworks\libs\playerglobal.swc(Responder)) and
org.nevis.cairngorm.business:Responder (from
G:\www\AdminBapp\org\nevis\cairngorm\business\Responder.as) are available.»



It is in a line like: gateway.call(
adminbapp.getStudents, new Responder(onResultInit, onFaultInit));



But I write before: import flash.net.Responder;
to say that I would like this Responder.



I probably make a mistake… What must I change?



Is is because in my main.mxml I have this line:
xmlns:business=net.willdestiny.adminbapp.business.*?



Thank you, 



William, Belgium.









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  

















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Flex2 - More Scroll Bar problems (DataGrid)

2006-03-27 Thread thunderstumpgesatwork
I guess I'll repost once I've upgraded to Beta2... just haven't
because of time critical demos... maybe I should just bite the bullet
and stay up late tonight... 

Thanks.
Thunder

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

 On 3/25/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote:
 
  How do I get the grid column to be big enough that the scrollbars
  don't appear on individual cells? I am also using a custom cell
  renderer, so I tried setting the hScrollPolicy on it to off but
  they're still there.
 
 Even though your cell renderer has its hScrollPolicy set to off,
 you're still getting a horizontal scrollbar on individual cells? 
 Interesting.  Could you post an example?  And also, upgrade to Beta 2
 (it's horizontalScrollPolicy now).
 
 Manish








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





RE: [flexcoders] Inter - component communication

2006-03-27 Thread Tracy Spratt
But do not use _root.  It will probably not be supported forever, and the best 
Flex practice is to use mx.core.Application.application.  Assign that to a 
variable if it is too long.  Do not bind to this kind of reference, it is not 
reliable, but direct calls are fine.

You can also pass references to one component into another component (including 
Application).  This type of reference is safe to bind to.

Consider locating your data in a central location, at or near the application 
scope to simplify your references.

I can be more specific once you choose a reference architecrure/methodology.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of snail
Sent: Saturday, March 25, 2006 5:54 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Inter - component communication

hello,Robs

perhaps you can use the absolute path.  for example,assume Comp3 is a 
dataGrid,and Comp6 is a dataGrid,you can use _root,_root reference the 
deepest compenent.you can use like this in Comp6:mx:DataGrid 
dataProvider={_root.yourViewStackID.Comp1.Comp2.Comp3.dataProvider}._root 
is a word import from Flash. Good luck!

=== 2006-03-25 14:59:27 您在来信中写道:===


Hi everyone,
I have 2 groups of nested components put in 2 separate containers in a 
ViewStack. The containers themselves are components too. The nesting 
structure is as shown:
(Comp1--Comp2--Comp3) -- This group goes in container 1.
(Comp4--Comp5--Comp6) -- This group goes in container 2.

Container 1 is initially displayed by default. There is a datagrid 
residing in Comp3. Upon clicking on one of the rows, I need to display 
Container 2, pass some info from the grid to Comp6 in Container 2  
display the relevant details within Comp6. As far as displaying the 
second container is concerned, its done. But passing data to the nested 
component is getting difficult.
How do I handle the above situation. Will event dispatching  listening 
help? Can someone please give me some idea or code snippets?

Thanks...
Robi





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



 





= = = = = = = = = = = = = = = = = = = =



 
 
snail in China
[EMAIL PROTECTED]
  2006-03-25



--
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: Flex2 - Bug with chart Legend and ScrollPolicy

2006-03-27 Thread thunderstumpgesatwork
I did Anchor both the left and right sides of the HBox. Maybe the
appearance of the scrollbars for the HBox caused the outer canvas
scrollbars to appear too?

I'll check this out again when I upgrade to Beta2.

thanks for the info.
Thunder

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

 
 
 Hi Thunder.  The chart legend wasn't built to scroll. For codesize
 reasons, it extends Tile, which means it inherits scroll functionality,
 but it's been explicitly disabled.
 
 Assuming you either anchored both sides of the hbox (left/right or
 top/bottom, depending on what direction you're talking about) or set an
 explicit width/height, it should definitely constrain the hbox, forcing
 scrollbars. 
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of thunderstumpgesatwork
 Sent: Friday, March 24, 2006 12:07 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2 - Bug with chart Legend and ScrollPolicy
 
 Hi,
 
 I am trying to get the chart legend to scroll if there are more items
 than room to display. I have set the 'hScrollPolicy' to auto both in
 mxml, and after adding the chart series, in ActionScript.
 
 In the debugger the value is always 'off' even immediately after setting
 it.
 
 To work around this I tried putting the legend in an HBox to perform the
 scrolling. I am using Anchor LayoutConstraints on a Canvas, and I put
 the Anchor on the HBox, but aparently it doesn't take precedence over a
 large child (the legend) because the HBox just grew, and caused the
 whole canvas to add scrollbars.
 
 This may be two bugs, but seems like at least one.
 
 let me know if I'm missing something.
 thanks,
 Thunder
 
 
 
 
 
 --
 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] Flex 2: WebServervice call sometimes swaps parameters

2006-03-27 Thread Tobias Patton










Hello list;



My application invokes a .NET web service that takes two
string parameters (SessionID and Query). On occasion, I get an error. When I
look at the RPC debug information, the SOAP envelope shows that the values for
two parameters have been swapped (ie. SessionID gets the value intended for
Query and vice-versa). 



The truly weird thing is that this only happens sometimes. If
I get the error, the very next run of the application may or may not show it,
with no code changes. This sounds like the kind of bug that would result from a
race-condition, but I dont see how that could be the case in mapping
function parameters to SOAP parameters.



I think I remember seeing this problem posted to the list
before, but cant find it in the archives.



Can anyone help?

Thanks.
Tobias.



Creo Inc., a subsidiary of Kodak

Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.com 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex 2: WebServervice call sometimes swaps parameters

2006-03-27 Thread Tim Sawyer
Yep, we have that too.  We were told that doc/lit support was a bit flaky in 
Flex 2.  We solved it by changing our webservice (we use jibx-soap to a Java 
back end) to be unordered.

Search for the mail below for full details of the problem.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of p_b_kennedy
Sent: Thursday, February 02, 2006 5:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 - Problem with order of webservice
parameters

Tim.

On Monday 27 Mar 2006 18:15, Tobias Patton wrote:
 Hello list;



 My application invokes a .NET web service that takes two string
 parameters (SessionID and Query). On occasion, I get an error. When I
 look at the RPC debug information, the SOAP envelope shows that the
 values for two parameters have been swapped (ie. SessionID gets the
 value intended for Query and vice-versa).



 The truly weird thing is that this only happens sometimes. If I get the
 error, the very next run of the application may or may not show it, with
 no code changes. This sounds like the kind of bug that would result from
 a race-condition, but I don't see how that could be the case in mapping
 function parameters to SOAP parameters.



 I think I remember seeing this problem posted to the list before, but
 can't find it in the archives.



 Can anyone help?

 Thanks.
 Tobias.



 Creo Inc., a subsidiary of Kodak

 Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 |
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  |
 http://www.creo.com http://www.creo.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] Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



I'd like to POST some XML requests via HTTPService from my Flex app (which is served from e.g. http://xyz.com) to a .cgi server running on my localhost. The cgi server is part of an interface to an existing Java application. It takes XML requests via HTTP POST and returns XML response via HTTP.I don't have all the details nailed down on but I can think of these potential issues:1. Some of the POST actions will involve sending megabytes or even gigabytes of ascii encoded data. Does the HTTPService request normally timeout after a while? if so, how to set the timeout period?2. Is it allowed by under the default Flash security policy to send/receive data via HTTPService from a Flex app that is served from e.g. http://xyz.com to a server running http://localhost/ ? If not, how do you deal with it? Do you have to save a crossdomain.xml on the localhost web root (or the xyz.com web root) or what security work around would be needed (if
 any)?I looked at the documentation here (http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/js/html/wwhelp.htm) and couldn't find much info about this ...Thanks for your help :)dos
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex 2: WebServervice call sometimes swaps parameters

2006-03-27 Thread Tobias Patton
Hi Tim;

Thanks for your reply. I'm not sure that we're experiencing exactly the
same problem. As far as I know, our web server (ASP .NET) does not rely
on the order of parameters in the SOAP envelope. 

The problem for us is that the values passed to the server are being
placed in the wrong SOAP parameters. 

For example, here is the incorrect SOAP envelope that results in a web
service fault:

SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;SOAP-ENV:BodyCreateView
xmlns=http://www.kodak.com/WPE/Galiano/;ns0:SessionId
xmlns:ns0=http://www.kodak.com/WPE/Galiano/;/ns0:SessionIdns0:Query
xmlns:ns0=http://www.kodak.com/WPE/Galiano/;AB4AB4A8-28C8-A580-B12B-FF
FF48A3/ns0:Query/CreateView/SOAP-ENV:Body/SOAP-ENV:Envelope

And here is the correct envelope (no code changes -- just a different
run of the application  ):

SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP-ENV:Bod
yCreateView xmlns=http://www.kodak.com/WPE/Galiano/;ns0:Query
xmlns:ns0=http://www.kodak.com/WPE/Galiano/;/ns0:Queryns0:SessionId
xmlns:ns0=http://www.kodak.com/WPE/Galiano/;8C428366-587C-D759-DD7B-FF
FF6CF8/ns0:SessionId/CreateView/SOAP-ENV:Body/SOAP-ENV:Envelo
pe

Look at the Query and SessionId parameters. In the first example,
SessionID is blank, and Query contains a UID. In the second example,
SessionID contains a UID, and Query is blank. 

While it's true that the order of the parameters has been swapped, it's
the fact that the values for the parameters were not also swapped that
is causing the trouble.

I suppose I could change the web-service prototype to take a single,
complex object, but I'd rather not have to alter the server
implementation to fix what seems to be a bug in the client framework.

Is there a different way of defining the parameters and values for a
SOAP web service invocation? Ideally, I would create a dictionary with
SessionID and Query attributes, set the value of those attributes and
attach it to the web service call. I don't see anything in the
WebServices APIs that would let me do that though.

Tobias.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Sawyer
Sent: Monday, March 27, 2006 9:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2: WebServervice call sometimes swaps
parameters

Yep, we have that too.  We were told that doc/lit support was a bit
flaky in 
Flex 2.  We solved it by changing our webservice (we use jibx-soap to a
Java 
back end) to be unordered.

Search for the mail below for full details of the problem.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of p_b_kennedy
Sent: Thursday, February 02, 2006 5:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 - Problem with order of webservice
parameters

Tim.

On Monday 27 Mar 2006 18:15, Tobias Patton wrote:
 Hello list;



 My application invokes a .NET web service that takes two string
 parameters (SessionID and Query). On occasion, I get an error. When I
 look at the RPC debug information, the SOAP envelope shows that the
 values for two parameters have been swapped (ie. SessionID gets the
 value intended for Query and vice-versa).



 The truly weird thing is that this only happens sometimes. If I get
the
 error, the very next run of the application may or may not show it,
with
 no code changes. This sounds like the kind of bug that would result
from
 a race-condition, but I don't see how that could be the case in
mapping
 function parameters to SOAP parameters.



 I think I remember seeing this problem posted to the list before, but
 can't find it in the archives.



 Can anyone help?

 Thanks.
 Tobias.



 Creo Inc., a subsidiary of Kodak

 Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 |
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  |
 http://www.creo.com http://www.creo.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



 






--
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 to have only first series of phones in Flex 2 Flexstore sample display?

2006-03-27 Thread porsche_911_1978
I'm new to flex so I have been playing with the Flexstore sample in 
Flex 2 Beta 1.

What I'm trying to figure out is how have the first series of phones 
(series 3000) to be displayed instead of all of them when the store 
first opens.

Everything that I have tried has not worked and was hoping someone 
could help me.

Thanks






--
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] SOLVED: Flex2 - More Scroll Bar problems (DataGrid)

2006-03-27 Thread thunderstumpgesatwork
OK, fixed this one... 

I was setting the scrollPolicy in the constructor of my cell renderer;
moving it to an override of commitProperties fixed it. Is this an
appropriate place to put something like this?

If not, where should this be?

A similar question, I'm setting some visual properties based on the
dataObject and listData. Currently I'm setting these visual properties
in the override of function set dataObject. Is this appropriate? It
seems to work. Maybe it should go in commitProperies too?

thanks,
Thunder

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

 I guess I'll repost once I've upgraded to Beta2... just haven't
 because of time critical demos... maybe I should just bite the bullet
 and stay up late tonight... 
 
 Thanks.
 Thunder
 
 --- In flexcoders@yahoogroups.com, Manish Jethani
 manish.jethani@ wrote:
 
  On 3/25/06, thunderstumpgesatwork thunder.stumpges@ wrote:
  
   How do I get the grid column to be big enough that the scrollbars
   don't appear on individual cells? I am also using a custom cell
   renderer, so I tried setting the hScrollPolicy on it to off but
   they're still there.
  
  Even though your cell renderer has its hScrollPolicy set to off,
  you're still getting a horizontal scrollbar on individual cells? 
  Interesting.  Could you post an example?  And also, upgrade to Beta 2
  (it's horizontalScrollPolicy now).
  
  Manish
 








--
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 2: WebServervice call sometimes swaps parameters

2006-03-27 Thread thunderstumpgesatwork
We also had this problem. Our initial work-around was to use a single
complex object to hold all parameters for an operation.

Then once Beta1 came out, we've gone to using RemoteObjects and this
has worked for us.

best of luck,
Thunder

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

 Hi Tim;
 
 Thanks for your reply. I'm not sure that we're experiencing exactly the
 same problem. As far as I know, our web server (ASP .NET) does not rely
 on the order of parameters in the SOAP envelope. 
 
 The problem for us is that the values passed to the server are being
 placed in the wrong SOAP parameters. 
 
 For example, here is the incorrect SOAP envelope that results in a web
 service fault:
 
 SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;SOAP-ENV:BodyCreateView
 xmlns=http://www.kodak.com/WPE/Galiano/;ns0:SessionId
 xmlns:ns0=http://www.kodak.com/WPE/Galiano/;/ns0:SessionIdns0:Query
 xmlns:ns0=http://www.kodak.com/WPE/Galiano/;AB4AB4A8-28C8-A580-B12B-FF
 FF48A3/ns0:Query/CreateView/SOAP-ENV:Body/SOAP-ENV:Envelope
 
 And here is the correct envelope (no code changes -- just a different
 run of the application):
 
 SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP-ENV:Bod
 yCreateView xmlns=http://www.kodak.com/WPE/Galiano/;ns0:Query
 xmlns:ns0=http://www.kodak.com/WPE/Galiano/;/ns0:Queryns0:SessionId
 xmlns:ns0=http://www.kodak.com/WPE/Galiano/;8C428366-587C-D759-DD7B-FF
 FF6CF8/ns0:SessionId/CreateView/SOAP-ENV:Body/SOAP-ENV:Envelo
 pe
 
 Look at the Query and SessionId parameters. In the first example,
 SessionID is blank, and Query contains a UID. In the second example,
 SessionID contains a UID, and Query is blank. 
 
 While it's true that the order of the parameters has been swapped, it's
 the fact that the values for the parameters were not also swapped that
 is causing the trouble.
 
 I suppose I could change the web-service prototype to take a single,
 complex object, but I'd rather not have to alter the server
 implementation to fix what seems to be a bug in the client framework.
 
 Is there a different way of defining the parameters and values for a
 SOAP web service invocation? Ideally, I would create a dictionary with
 SessionID and Query attributes, set the value of those attributes and
 attach it to the web service call. I don't see anything in the
 WebServices APIs that would let me do that though.
 
 Tobias.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tim Sawyer
 Sent: Monday, March 27, 2006 9:32 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 2: WebServervice call sometimes swaps
 parameters
 
 Yep, we have that too.  We were told that doc/lit support was a bit
 flaky in 
 Flex 2.  We solved it by changing our webservice (we use jibx-soap to a
 Java 
 back end) to be unordered.
 
 Search for the mail below for full details of the problem.
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of p_b_kennedy
 Sent: Thursday, February 02, 2006 5:33 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2 - Problem with order of webservice
 parameters
 
 Tim.
 
 On Monday 27 Mar 2006 18:15, Tobias Patton wrote:
  Hello list;
 
 
 
  My application invokes a .NET web service that takes two string
  parameters (SessionID and Query). On occasion, I get an error. When I
  look at the RPC debug information, the SOAP envelope shows that the
  values for two parameters have been swapped (ie. SessionID gets the
  value intended for Query and vice-versa).
 
 
 
  The truly weird thing is that this only happens sometimes. If I get
 the
  error, the very next run of the application may or may not show it,
 with
  no code changes. This sounds like the kind of bug that would result
 from
  a race-condition, but I don't see how that could be the case in
 mapping
  function parameters to SOAP parameters.
 
 
 
  I think I remember seeing this problem posted to the list before, but
  can't find it in the archives.
 
 
 
  Can anyone help?
 
  Thanks.
  Tobias.
 
 
 
  Creo Inc., a subsidiary of Kodak
 
  Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 |
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  |
  http://www.creo.com http://www.creo.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








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

[flexcoders] DataService mapping resolution problem.

2006-03-27 Thread João Fernandes










Hi there,



Using the de Contactmanager as example, 

I added to my CF dataService destination a
relationship one-to-many mapping to the employee destination setting it to the
employees variable



properties


metadata


identity property=Companyid/


one-to-many property=employees
destination=employee/

 /metadata

/properties



I added to my company CFCs and AS files
that variable setting it as follow:

CFC:

cfproperty name=employees
type= myPathToMyCFCObject[]  

cfset this.employees =
arraynew(1)/



AS3:

public var employees:ArrayCollection;




public function myCompanyClass()


{


employees = new ArrayCollection(); 


}



(I did this respecting the order of properties
definition since AS3 file and CFC must have them defined in the same order)



The problem is, when I use
myCompanyDataService.getItem({id: myCompanyId}) I get the Company Object
perfectly with the employees variable as an ArrayCollection but the Array is
always empty. In CF side I have debugged and that variable is filled with the
correct array of employees.cfc.

. Is this not totally supported in beta 2
or Am I doing something wrong?





Thanks,



João Fernandes
Dep.
Informática - Área de Desenvolvimento
Cofina media

Avenida
João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel
(+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Unable to iterate over results of a call to DataService.fill()

2006-03-27 Thread jeffrey_lage
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
creationComplete=init()
mx:Script
![CDATA[
import mx.collections.ListCollectionView;
import mx.collections.ICollectionView;
import mx.data.messages.DataMessage;
import mx.rpc.AsyncToken;
import com.fds.ui.TreeNode;
import mx.utils.ObjectProxy;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
var availableRecs:ListCollectionView = new 
ListCollectionView( );

[Bindable]
var rawRecList:ListCollectionView = new 
ListCollectionView( );

function init( ):void {
this.dataService.fill( this.rawRecList );
}

function 
handleGetAllReconResults(event:ResultEvent):void {
if( 
DataMessage(AsyncToken(event.call).message).operation == 
DataMessage.FILL_OPERATION ) {
Alert.show( 
this.rawRecList.length.toString() );
var newTree:ArrayCollection = new 
ArrayCollection( );

var lastDate:String = null;
var currentNode:TreeNode = null;
for( var i:int = 0; i  
this.rawRecList.length; i++ ) {
var rec:ObjectProxy = 
this.rawRecList[ i ] as ObjectProxy;

/*if( lastDate != rec.valueDate 
) {
currentNode = new 
TreeNode( );
currentNode.label = 
rec.valueDate;
currentNode.guid = 
rec.guid;
newTree.addItem( 
currentNode );
} else {
var child:TreeNode = 
new TreeNode( );
child.label = 
rec.runTime;
child.guid = rec.guid;

currentNode.children.addItem( child );
}*/
//Alert.show(Should be 
processing item[ + i + ]);
newTree.addItem(rec.guid);
}
Alert.show( newTree.length.toString() );
this.availableRecs = newTree; 
}
}
]]
/mx:Script

mx:DataService id=dataService destination=lineItems 
result=this.handleGetAllReconResults(event) autoCommit=false 
fault=Alert.show
(event.message.toString())/

/mx:Application






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




Re: [flexcoders] Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



Relating to the potential timeout issue, I think most likely HTTPService doesn't timeout on its ownHowever, my Java application could crash and reboot so I would have to make sure HTTPService would time out if it's loses connection with the server... No idea how to do that yet ...Any clarifications would be greatly helpful!Thanksdos
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex 2 Beta 2 and Tomcat woes

2006-03-27 Thread Chris Scott
Flex 2 Beta 2 does not like me! I have a few Java services defined in  
flex-remote-service.cml, and I'm deploying to Tomcat 5. If I deploy  
my mxml files, they compile on the server no problem and run fine.  
However, no matter what I try I can not get Flex builder to compile  
them and deploy to my context. The swf just cannot find my services.  
I copied all the flex-xxx.xml files into my Eclipse project, set the - 
services compiler flag to the local flex-enterprise-services.xml  
file, still no go. What's really odd, and sucks, is I have JRun  
installed as well and if I start it up and build a project pointing  
at a JRun instance, it works. Anyone, because this is really crappy  
and I need to debug!


Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/




--
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: ExternalInterface and IFrame

2006-03-27 Thread Doug Lowder
It's up to the loaded site itself to decide whether it supports 
being loaded in an IFrame in this way.  For example, 
http://www.cnn.com makes a script call to top.cnnUpdateCSI
(sendRawHtml, docId), which may or may not have been related to the 
weird behavior you described but sure resulted in plenty of 
Javascript error dialogs on my browser.

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

 I wanted to create an dialog as an html form in an iframe rather 
than
 opening a separate browser window for uploading image files. I also
 wanted to create an html page preview using an iframe as well.
 
 I spent an entire Sunday working at this and none of my efforts 
have
 succeeded satisfactorily. I researched the web and came across 
Crostophe
 Coenrats' article, and after modifying it for Flex 2 / AS3, I still
 didn't get no satisfaction. A little more research and I found 
Brian
 Deitte's update for AS3 as well and tried his solution, and still 
no
 joy. I tried every variation I could think of, working with 
fscommand,
 navigateToURL, and of course, ExternalInterface.
 
 It appears that it doesn't matter which strategy you use. In all 
cases,
 I came close to achieving what I wanted. The problem even in the
 simplest case is that clicking in the iframe, then clicking 
outside of
 it, causes the iframe to disappear until something causes the 
iframe to
 refresh with IE, and nada for FireFox (I'm using IE 6 and FireFox
 1.5.0.1 on Windows XP SP2, and of course, Flash 8.5).
 
 Here's a distilled set of the code primarily based on 
Conraets/Deitte's
 work:
 
 
 Test.mxml
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 
   mx:HBox
 mx:Text text=http://; /
 mx:TextInput id=uri text=www.adobe.com/ /
 mx:Button label=Go click=go() /
   /mx:HBox
   
   mx:Script
 ![CDATA[
   import flash.external.ExternalInterface;
 
   function go(): void {
 if (!ExternalInterface.available) {
   trace(ExternalInterface not available);
   return;
 }
 
 if (uri.text) {
   ExternalInterface.call
(loadIFrame, testFrame, http://; +
 uri.text);
   ExternalInterface.call(moveIFrame, testFrame, 20, 
60, 400,
 500);
   ExternalInterface.call(showIFrame, testFrame);
 }
   }
 ]]
   /mx:Script
 /mx:Application
 
 
 
 iframe.js
 =
 function loadIFrame(id, uri) {
 var f = document.getElementById(id);
 f.style.left = 20;
 f.style.top = 80;
 f.width = 400;
 f.height = 400;
 f.style.visibility = visible;
 top.frames[testFrame].location.href = uri;
 // alert(loadIFrame:  + id + ,  + uri);
 }
 
 function showIFrame(id){
 document.getElementById(id).style.visibility=visible;
 // alert(showIFrame:  + id);
 }
 
 function hideIFrame(){
 document.getElementById(id).style.visibility=hidden;
   // alert(hideIFrame:  + id);
 }
 
 function moveIFrame(id, x, y, w, h) {
 var frameRef=document.getElementById(id);
 frameRef.style.left = x;
 frameRef.style.top = y;
 frameRef.width = w;
 frameRef.height = h;
 // alert(moveIFrame:  + id +  ( + x + ,  + y + width 
+ ,  +
 height + ));
 }
 
 // Ex: type in browser url bar:
 // javascript:testIFrame(testFrame, http://www.cnn.com;)
 function testIFrame(id, uri) {
 var f = document.getElementById(id);
 f.style.left = 10;
 f.style.top = 10;
 f.width = 400;
 f.height = 400;
 f.style.visibility = visible;
 top.frames[testFrame].location.href = uri;
 }
 
 
 
 
 In the HTML wrapper (I modified html-template/index.template.html)
 ===
 (In the head element)
 
 script src=iframe.js language=javascript/script
 
 
 (At the end of the body element)
 
 iframe id=testFrame name=testFrame
   frameborder=0
   
 style=position:absolute;background-
color:transparent;border:0px;visibil
 ity:visible;
 /iframe
 
 
 
 
 
 
 The javascript testIFrame function is there just to demonstrate 
that
 even with a completely empty application, like this...
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 /mx:Application
 
 ...after you load the app in the browser, you can enter this in 
the url
 bar:
 
 javascript:testIFrame(testFrame, http://www.cnn.com;)
 
 
 ...and still get weird behavior.
 
 
 
 If Adobe provides robust iframe support, that would really, really 
be
 awesome. What did actually work really whetted my appetite. This 
opens
 the door to some very coolly hybrid UIs and I hope it is something 
they
 can get fixed very soon. I know it would impress a lot of other 
people
 at my own work
 
 
 -Tony
 
 
  
 tony pujals| senior engineer | Yahoo! SiteBuilder Express
 p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 

RE: [flexcoders] flex2 : IMenuDataProvider replacement

2006-03-27 Thread Joan Tan










You should add a menu or remove a menu
through the dataProvider collection.



You would do something like this:

var newItem:XMLList = node
label=new branch 1node label=new leaf 1
data="" leaf data 1 //node/;

IList(myMenu.dataProvider).addItem(newItem);



Or



IList(myMenu.dataProvider).removeItemAt(0);



Joan









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972
Sent: Monday, March 27, 2006 7:23
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex2 :
IMenuDataProvider replacement





Hi

Whats the replacement for IMenuDataProvider.
Specifically, what do i 
replace the methods addMenuItem(),
removeMenuItemAt() with.

thanks












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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: CairngormLogin sample on Flex 2.0 beta 2

2006-03-27 Thread sof4real03
After reading through Oriol's thread, I'm assuming the change required
would be the following:

public function getView(workflowState:Number):Container instead of
UIComponent.

It will then compile and adhere to the strict type checking.

Regards,
Sof


--- In flexcoders@yahoogroups.com, William Lambé [EMAIL PROTECTED] wrote:

 Thank you very much, as you can guess I am new to the mailing list. Viva
 Flex 2.0
 
  
 
   _  
 
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de Oriol Gual
 Envoyé : jeudi 23 mars 2006 20:04
 À : flexcoders@yahoogroups.com
 Objet : Re: [flexcoders] CairngormLogin sample on Flex 2.0 beta 2
 
  
 
 Hi William, 
 
 I asked the same thing few posts earlier, just look for Cairngorm beta
 release? or click

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg23142.html
 here
 
 Oriol. 
 
 2006/3/23, William Lambé [EMAIL PROTECTED]:
 
 Hello everybody, 
 
  
 
 I am trying to use Cairngorm 2.0 with the new Flex 2.0 beta 2.  And for
 that, I am trying to run the CairngormLogin sample. I changed some
things
 that happen between beta 1 and beta 2 of Flex 2.0, but I have still a
 Problem : 
 
  
 
 To the line « mx:ViewStack id=appView selectedChild={ getView(
 model.workflowState ) } » in CairngormLogin.mxml,  I have this
problem : 
 
  
 
 « Implicit coercion of a value with static type 'mx.core
:UIComponent' to a
 possibly unrelated type 'mx.core :Container' »
 
  
 
 Is someone can explain to me what does it mean ?
 
  
 
 William.
 
 
 
 --
 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 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
   
 *  To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
  
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms
 http://docs.yahoo.com/info/terms/  of Service .
 
  
 
   _  
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 SPONSORED LINKS 
 
 
 Web

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site

+design+developmentw2=Computer+software+developmentw3=Software+design+and+

developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=L-4QTvxB_quFDtMyhrQaHQ  site design development 
 
 Computer

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si

te+design+developmentw2=Computer+software+developmentw3=Software+design+an

d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
 =166.sig=lvQjSRfQDfWudJSe1lLjHw  software development 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+

site+design+developmentw2=Computer+software+developmentw3=Software+design+

and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
 s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  design and development 
 
 
 Macromedia

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve

lopmentw2=Computer+software+developmentw3=Software+design+and+development

w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n
 PIrz7_EpZI36cYzBjw  flex 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W

eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi

gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
 c=5s=166.sig=f89quyyulIDsnABLD6IXIw  development best practice 
 
  
 
  
 
   _  
 
 YAHOO! GROUPS LINKS 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
   
 *  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
   
 *  Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of Service. 
 
  
 
   _








--
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 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Dave Wolf
The player is simply piggy backing on the HTTP stack of the browser. 
I think you will find in most cases the browser will detect the half
dead socket when data is moving on the socket and generate an error
HTTP status back.  Things get a little harrier when you have an idle
yet persistent connection.  

This gets even more tricky if you are running a cluster of servers to
support high availability, etc.

In any case, for what you are describing,  I think you wont have to
work on doing this yourself.  It should be very easy to test.


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY

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

 
 Relating to the potential timeout issue, I think most likely
HTTPService doesn't timeout on its own
 
 However, my Java application could crash and reboot so I would have
to make sure HTTPService would time out if it's loses connection with
the server... No idea how to do that yet ...
 
 Any clarifications would be greatly helpful!
 
 Thanks
 
 dos
 
   
 -
 New Yahoo! Messenger with Voice. Call regular phones from your PC
and save big.







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





RE: [flexcoders] Cairngorm problem

2006-03-27 Thread Jonathan Miranda












So.I stump everyone here yet? J

_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated addressee.
If you are not the named addressee you should not disseminate, distribute, or
copy this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system. E-mail
transmissions cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any errors
or omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Friday, March 24, 2006 11:14
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm
problem







Hmmm, I sent
this over an hour ago and it still hasnt updated on the list.
Lets try again:


Well, I just got probably a better
working example. Matt can attest I find the weirdest bugs J

Heres the rundown:

mx:Button id=test label=Test click=salesChart.dataProvider=model.hourData;/
mx:LineChart id=salesChart
dataProvider={model.hourData}.
mx:DataGrid id=HourGrid
dataProvider={model.hourData} .



When the model changes, the DataGrid updates, the chart
doesnt.
When I click the button, the chart updates.

Same thing (I changed it to ArrayCollection from an Array to make sure) outside
Cairngorm works fine.

Non-cairngorm:

-return from service
 hourData = event.result.list.hour;

 slicedHourData = new ArrayCollection(hourData);
-in mxml
 [Bindable]

 public var slicedHourData :
ArrayCollection;

 templates:TotalSales
hourData={slicedHourData}

-in template component
 [Bindable]
 public var hourData : ArrayCollection;
 mx:LineChart id=salesChart
dataProvider={hourData}
 mx:DataGrid id=HourGrid
dataProvider={hourData}

Cairngorm:

-return from service
 model.hourData = new ArrayCollection(
event.result.list.hour);
-in modelLocator (which is a bindable class)
 public var hourData: ArrayCollection; 
-in template component
 [Bindable]

 public var model : ModelLocator =
ModelLocator.getInstance();
 mx:LineChart id=salesChart
dataProvider={model.hourData}
 mx:DataGrid id=HourGrid
dataProvider={model.hourData}

Pretty much the same exact code but its the chart isnt updating
in Cairngorm but the datagrid updates for both.







_

Jonathan Miranda

Flexible Master of the Web

Try not to
become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America
to Better Healthcare

NASDAQ: HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message
contains confidential and/or legally privileged information and is intended for
use only by the indicated addressee. If you are not the named addressee
you should not disseminate, distribute, or copy this e-mail. Please notify the
sender immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmissions cannot be guaranteed
to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed,arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If verification
is required please request a hard-copy version.













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex 1.5 :: Webservice Fault and useProxy setting

2006-03-27 Thread Pablo Apanasionek





Hi 
all.

I'm having some 
trouble getting the fault detail from a Webservice call, using Flex 1.5, 
Axis-compiled service and the useProxy=false setting. With the proxy setting 
"on", the exception raises in the fault event and the detail of it can be found 
on the faultstring property. While "off", it only shows "unable to connect to 
endpoint http://. etc." .

Any clue on this 
one? How could I get the exception using useProxy=false?

Thanks in 
advance!
-Pablo Gustavo 
Apanasionek





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex 1.5 :: Webservice Fault and useProxy setting

2006-03-27 Thread Carson Hager





You can't get the fault without the proxy. This is a 
limitation of the flash player 8.0 and earlier. A web service fault 
returns an http 500 and this http status code causes the player to stop 
receiving data. The proxy gets around this by changing the status code to 
200. As a note, this is fixed in Flex 2.0 and FP 8.5.

Carson

  Carson Hager Cynergy Systems, Inc. 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 Pablo 
ApanasionekSent: Monday, March 27, 2006 11:52 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex 1.5 :: 
Webservice Fault and useProxy setting

Hi 
all.

I'm having some 
trouble getting the fault detail from a Webservice call, using Flex 1.5, 
Axis-compiled service and the useProxy=false setting. With the proxy setting 
"on", the exception raises in the fault event and the detail of it can be found 
on the faultstring property. While "off", it only shows "unable to connect to 
endpoint http://. etc." .

Any clue on this 
one? How could I get the exception using useProxy=false?

Thanks in 
advance!
-Pablo Gustavo 
Apanasionek





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Referencing checkboxes click events created with Repeater

2006-03-27 Thread dave7273
I am trying to capture a click event from a checkbox that is created 
using a Repeater.  I want to be able to pass info regarding the 
checkbox to a function (either via index of checkbox array that is 
created or the label of the corresponding checkbox) Any idea of the 
best way of doing this?  Since it appears that you cannot dynamically 
assigned id's via a data binding, it doesn't seem clear cut on how you 
can determine which checkbox has actually been clicked.







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




Re: [flexcoders] Flex 2 Beta 2 and Tomcat woes

2006-03-27 Thread Anatole Tartakovsky





One of the side notes - you need to restart eclipse 
every time you modify the xml files - it seems to cache xml files for us. 
We usually turn -kepp-generated-actionscript=true in compiler options and check 
*FlexInit* generated in /generated folder to see if the changes in XML are 
compiled
HTH,
Anatole

  - Original Message - 
  From: 
  Chris 
  Scott 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, March 27, 2006 1:49 
PM
  Subject: [flexcoders] Flex 2 Beta 2 and 
  Tomcat woes
  Flex 2 
  Beta 2 does not like me! I have a few Java services defined in 
  flex-remote-service.cml, and I'm deploying to Tomcat 5. If I deploy 
  my mxml files, they compile on the server no problem and run fine. 
  However, no matter what I try I can not get Flex builder to compile 
  them and deploy to my context. The swf just cannot find my services. 
  I copied all the flex-xxx.xml files into my Eclipse project, set the - 
  services compiler flag to the local flex-enterprise-services.xml 
  file, still no go. What's really odd, and sucks, is I have JRun 
  installed as well and if I start it up and build a project pointing 
  at a JRun instance, it works. Anyone, because this is really crappy 
  and I need to debug!Chris 
  Scott[EMAIL PROTECTED]http://cdscott.blogspot.com/http://www.coldspringframework.org/
  
  

  
  
  
  
  

  





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Referencing checkboxes click events created with Repeater

2006-03-27 Thread Doug Lowder
Hi Dave,

Just set the same handler for all click events to something like 
click=myHandler(event) and you will be able to access the checkbox 
component as event.target.

Doug

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

 I am trying to capture a click event from a checkbox that is created 
 using a Repeater.  I want to be able to pass info regarding the 
 checkbox to a function (either via index of checkbox array that is 
 created or the label of the corresponding checkbox) Any idea of the 
 best way of doing this?  Since it appears that you cannot 
dynamically 
 assigned id's via a data binding, it doesn't seem clear cut on how 
you 
 can determine which checkbox has actually been clicked.








--
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] Sticky Dragging Problem

2006-03-27 Thread sufibaba



Fellow Flexors,I have the following situation: public function newLine(){var sprite:Sprite = new Sprite();sprite.graphics.lineStyle(1,0x00,1,false,"NONE");sprite.graphics.moveTo(pt.x,pt.y);sprite.graphics.lineTo(cx,cy);   this.addChild(sprite);
sprite.addEventListener(MouseEvent.MOUSE_DOWN,dragLine);
sprite.addEventListener(MouseEvent.MOUSE_UP,dropLine); }  public function dragLine(e:Event):void   {   e.target.startDrag();  }   public function dropLine(e:Event):void   {   e.target.stopDrag();  }Problem:When
I drag the line over another sprite in the app and release the mouse
button, instead of stop dragging, the line sticks to
the the mouse pointer with the tenacity of a leech on
steroids. I've tried everything short of Fire and Salt --
which, by the way, works fine with a real leech but not on my LCD
screen. 

Perhaps someone can someone suggest awork around for this leech on steroids. Cheers,Tim






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] List Component Bug!!

2006-03-27 Thread Lance Linder










Hello,



I was just converting a project from Beta1
to Beta2 and noticed a problem with all my List components that were bound to
data providers which are collections of custom objects.



The problem is that the List selection
highlight is stuck on the last item in the list. Changing the provider to
be an array collection made up of plain instances of the Object class fixes the
problem. The problem seems to effect anything that uses the List
component (ComboBox, DataGrid)



Has anyone else seen this and found a
fix? Using plain old Object instances are not an option.



Here is some sample code that shows the
problem.



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute preinitialize=initData()

 

 mx:Script

 ![CDATA[

 

 [Bindable]

 public
var a:Array;

 

 private
function initData():void {

 

 a
= new Array();

 

 var
myObj:MyObject = new MyObject();

 myObj.name
= neung;

 a.push(myObj);

 

 var
myObj2:MyObject = new MyObject();

 myObj2.name
= saawng;

 a.push(myObj2);

 

 var
myObj3:MyObject = new MyObject();

 myObj3.name
= saam;

 a.push(myObj3);

 }

 

 ]]

 /mx:Script

 

 mx:List
x=10 y=10 dataProvider={a}
width=200 height=200
labelField=name/mx:List

/mx:Application



//-- MyObject.as -



package {



 public
class MyObject extends Object {

 public
var name:String;

 }

}









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Weird Gradient Fill error

2006-03-27 Thread Roger Gonzalez





I've fixed everything I have testcases for!

If you have one that is broken, please email both the original Flash 8 
SWF and the resulting Flex SWF. DO NOT ZIP THE FILES, OR OUR SPAM FILTER 
WILL THROW IT AWAY!

Thanks,

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of SCOTT 
  FANETTISent: Monday, March 27, 2006 7:19 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Weird 
  Gradient Fill error
  Roger - I posted a few days ago about the continued gradient 
  fill funk in Beta 2. Do you have any more information about why these 
  gradient fills continue to fail to transcode?this is the link to the 
  archived 
  message:http://groups.yahoo.com/group/flexcoders/message/32258Roger 
  Gonzalez [EMAIL PROTECTED] wrote:
  

There were several gradient 
fillbugsthatI recently fixed.

The next beta build should solve your problems, 
but let me know if it doesn't!

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Scott 
  FanettiSent: Thursday, March 09, 2006 1:54 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: Weird 
  Gradient Fill error
  Does anyone know if anyone has been having weird compile time 
  bugs ! with Flex when they try to import a shape or symbol 
  from Flash 8 that has a gradient fill? The gradient stoke seems to 
  work fine, but when I tried to import a shape with a gradient fill that 
  used any of the Flash 8 gradient transforms or overflow features it errors 
  with: Unable to transcode 
  ../media/NewGradientFillWithGradientStroke.swf unrecognized fill style 
  type: 19 I guess these things are to be expected with Beta 
  software.Scott FanettiRosettaStone.com
  SPONSORED 
  LINKS 
  


  Web 
site design development 
  Computer 
software development 
  Software 
design and development 

  Macromedia 
flex 
  Software 
development best practice 
  
  
  Yahoo! 
  Messenger with Voice. PC-to-Phone calls for ridiculously low rates. 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Large App Architecture

2006-03-27 Thread Roger Gonzalez
Yes, it can.  Multiple SWFs.  Tradeoffs are increased potential for
errors, a bit more architecture work needed up front, and the potential
that the Flex frameworks isn't fully designed for this case, so you
might run into some tricky (but not unsolvable) issues.  (It works
pretty well for pure-AS apps.)

My suggestion is to start building your app with interfaces connecting
the modules, and try to avoid concrete implementation dependencies.

After that, by the time we ship, I should have an article out describing
how to set things up.

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Tom Sobut
 Sent: Monday, March 27, 2006 11:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Large App Architecture
 
 We're looking at possibly developing a large Flex application 
 which could have 50+ screens 
 and lots of sub views on those screens.
 
 We will have users with various connection speeds, including 
 dialup, so we'd like to minimize 
 initial download time of the app.
 
 We also have the situation where some user types use only a 
 subset of the screens.
 
 Our concern is that deployed as a monolithic app, initial 
 load times could be painful over 
 slow connections.
 
 Can a Flex application be architected so that modules would 
 be programatically loaded as 
 needed?  Would this be done as separate .swf's?  Are there 
 tradeoffs in this type of approach?
 
 Thanks in advance.
 
 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: Referencing checkboxes click events created with Repeater

2006-03-27 Thread dave7273
Doug,
Thanks for the quick response, I did find something that appears to 
work ok (event.target.getRepeaterItem()) in which I can retrieve the 
information for the specific.  Just have to make sure that I pass a 
data element as well as a label element for my checkboxes so I can 
get either one.  Thanks again!



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

 Hi Dave,
 
 Just set the same handler for all click events to something like 
 click=myHandler(event) and you will be able to access the 
checkbox 
 component as event.target.
 
 Doug
 
 --- In flexcoders@yahoogroups.com, dave7273 dave7273@ wrote:
 
  I am trying to capture a click event from a checkbox that is 
created 
  using a Repeater.  I want to be able to pass info regarding the 
  checkbox to a function (either via index of checkbox array that 
is 
  created or the label of the corresponding checkbox) Any idea of 
the 
  best way of doing this?  Since it appears that you cannot 
 dynamically 
  assigned id's via a data binding, it doesn't seem clear cut on 
how 
 you 
  can determine which checkbox has actually been clicked.
 







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




RE: [flexcoders] List Component Bug!!

2006-03-27 Thread Tobias Patton










I think that the objects in your dataProvider
must implement the IUID interface for selection to work.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Lance Linder
Sent: Monday, March 27, 2006 1:08
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List
Component Bug!!





Hello,



I was just converting a project from Beta1
to Beta2 and noticed a problem with all my List components that were bound to
data providers which are collections of custom objects.



The problem is that the List selection
highlight is stuck on the last item in the list. Changing the provider to
be an array collection made up of plain instances of the Object class fixes the
problem. The problem seems to effect anything that uses the List
component (ComboBox, DataGrid)



Has anyone else seen this and found a
fix? Using plain old Object instances are not an option.



Here is some sample code that shows the
problem.



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute preinitialize=initData()





mx:Script


![CDATA[





[Bindable]


public var a:Array;





private function initData():void {





a = new Array();





var myObj:MyObject = new MyObject();


myObj.name = neung;


a.push(myObj);





var myObj2:MyObject = new MyObject();


myObj2.name = saawng;


a.push(myObj2);





var myObj3:MyObject = new MyObject();


myObj3.name = saam;


a.push(myObj3);


}





]]


/mx:Script





mx:List x=10 y=10 dataProvider={a}
width=200 height=200
labelField=name/mx:List

/mx:Application



//-- MyObject.as -



package {




public class MyObject extends Object {


public var name:String;


}

}









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



Thanks for this clarifiaction on the timeout. I think I'll have to implement timeout to end the HTTPService request if there is no data being exchanged for xx number of seconds.With respect to the potential security issue, I'd like to POST XML via HTTPService to a .cgi server running on a machine other than the one the Flex app is served from. Do I need to have a crossdomain.xml at either side? or am I free to interact with any server via HTTService? Thanks!dosDave Wolf [EMAIL PROTECTED] wrote:The player is simply piggy backing on the HTTP stack of the browser.  I think you will find in most cases the browser will detect the half dead socket when data is moving on the socket and generate an error HTTP status back. Things get a little harrier when you have an idle yet persistent
 connection.   This gets even more tricky if you are running a cluster of servers to support high availability, etc.  In any case, for what you are describing, I think you wont have to work on doing this yourself. It should be very easy to test.   --  Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com  Email: [EMAIL PROTECTED] Office: 866-CYNERGY  --- In flexcoders@yahoogroups.com, dos dedos [EMAIL PROTECTED] wrote: Relating to the potential timeout issue, I think most likely HTTPService doesn't timeout on its ownHowever, my Java application could crash and reboot so I would have to make sure HTTPService would time out if it's loses connection with the server... No idea how to do that yet ...Any
 clarifications would be greatly helpful!Thanksdos-  New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.   
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Carson Hager





You will need a crossdomain file.


Carson
  Carson Hager Cynergy Systems, Inc. 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 dos 
dedosSent: Monday, March 27, 2006 2:26 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flex 2: about 
"potential" HTTPService timeout/security issues ...
Thanks for this clarifiaction on the timeout. I think I'll have 
to implement timeout to end the HTTPService request if there is no data 
being exchanged for xx number of seconds.With respect to the potential 
security issue, I'd like to POST XML via HTTPService to a .cgi server running on 
a machine other than the one the Flex app is served from. Do I need to have a 
crossdomain.xml at either side? or am I free to interact with any server 
via HTTService? Thanks!dosDave Wolf 
[EMAIL PROTECTED] wrote:
The 
  player is simply piggy backing on the HTTP stack of the browser. I think 
  you will find in most cases the browser will detect the halfdead socket 
  when data is moving on the socket and generate an errorHTTP status 
  back. Things get a little harrier when you have an idleyet 
  persistent connection. This gets even more tricky if you are 
  running a cluster of servers tosupport high availability, etc.In 
  any case, for what you are describing, I think you wont have towork 
  on doing this yourself. It should be very easy to test.-- 
  Dave WolfCynergy Systems, Inc.Macromedia Flex Alliance 
  Partnerhttp://www.cynergysystems.comEmail: 
  [EMAIL PROTECTED]Office: 866-CYNERGY--- In 
  flexcoders@yahoogroups.com, dos dedos [EMAIL PROTECTED] 
  wrote:  Relating to the potential timeout issue, I 
  think most likelyHTTPService doesn't timeout on its own 
   However, my Java application could crash and reboot so I would 
  haveto make sure HTTPService would time out if it's loses connection 
  withthe server... No idea how to do that yet ...  Any 
  clarifications would be greatly helpful!  Thanks 
   dos   

  - New Yahoo! Messenger with Voice. 
  Call regular phones from your PCand save 
  big.


Yahoo! Messenger with Voice. Make 
PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. 





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] What upload servlet at server side to use along with FileReference class?

2006-03-27 Thread Andriy Panas
Hello flexcoders,

  We are trying to use http://servlets.com/cos/ O'Reily's
file upload package MultipartRequest along with FileReference class.

---
  My question to community is: what it your preferred choice at the
server side to handle uploaded files?
   Cold Fusion page?
   Jakarta's Commons File Upload? http://jakarta.apache.org/commons/fileupload/
   ... your choice?
---

ps
  Currently, FileReference class with O'Reily's
file upload package combination does not work very well at our setup.

  We receive an error from Java servlet under certain circumstances (
requires more testing to pin those circumstances down)
  error Corrupt form data: premature ending
  java.io.IOException: Corrupt form data: premature ending

-- 
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]



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




RE: [flexcoders] What upload servlet at server side to use along with FileReference class?

2006-03-27 Thread Carson Hager
We've found that the O'Reilly classes work pretty well. The error you're
seeing is likely due to a problem with the Flash Player where it
actually sends the request twice. Normally the second request has
incorrect data. We simply catch the IOException and ignore it.


Carson


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Monday, March 27, 2006 2:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What upload servlet at server side to use along
with FileReference class?

Hello flexcoders,

  We are trying to use http://servlets.com/cos/ O'Reily's
file upload package MultipartRequest along with FileReference class.

---
  My question to community is: what it your preferred choice at the
server side to handle uploaded files?
   Cold Fusion page?
   Jakarta's Commons File Upload?
http://jakarta.apache.org/commons/fileupload/
   ... your choice?
---

ps
  Currently, FileReference class with O'Reily's
file upload package combination does not work very well at our setup.

  We receive an error from Java servlet under certain circumstances (
requires more testing to pin those circumstances down)
  error Corrupt form data: premature ending
  java.io.IOException: Corrupt form data: premature ending

-- 
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]



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




RE: [flexcoders] List Component Bug!!

2006-03-27 Thread Lance Linder










That seemed to do the trick.



Wonder how many others will get stumped on
that? Seems there should have been some kind of error if your objects dont
implement IUID. Maybe this will be addressed through better docs in the
final release or better yet a run time error.



I would have just chalked that up as a bug
and looked to see if it was fixed in the next release if you didnt
mention it!



Thanks so much for the suggestion! 













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tobias Patton
Sent: Monday, March 27, 2006 3:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] List
Component Bug!!





I think that the objects in your
dataProvider must implement the IUID interface for selection to work.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Lance Linder
Sent: Monday, March 27, 2006 1:08
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List
Component Bug!!





Hello,



I was just converting a project from Beta1
to Beta2 and noticed a problem with all my List components that were bound to
data providers which are collections of custom objects.



The problem is that the List selection
highlight is stuck on the last item in the list. Changing the provider to
be an array collection made up of plain instances of the Object class fixes the
problem. The problem seems to effect anything that uses the List
component (ComboBox, DataGrid)



Has anyone else seen this and found a
fix? Using plain old Object instances are not an option.



Here is some sample code that shows the
problem.



?xml version=1.0
encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=* layout=absolute
preinitialize=initData()





mx:Script


![CDATA[





[Bindable]


public var a:Array;





private function initData():void {





a = new Array();





var myObj:MyObject = new MyObject();


myObj.name = neung;


a.push(myObj);





var myObj2:MyObject = new MyObject();


myObj2.name = saawng;


a.push(myObj2);





var myObj3:MyObject = new MyObject();


myObj3.name = saam;


a.push(myObj3);


}





]]


/mx:Script





mx:List x=10 y=10 dataProvider={a}
width=200 height=200
labelField=name/mx:List

/mx:Application



//-- MyObject.as -



package {




public class MyObject extends Object {


public var name:String;


}

}










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



thanks! bwt, does anyone know what is the security scenario that promoted the introduction of the crossdomain requirement? it would be educating to know Carson Hager [EMAIL PROTECTED] wrote:   You will need a crossdomain file.   Carson   Carson Hager Cynergy Systems, Inc. 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 dos  dedosSent: Monday, March 27, 2006 2:26 PMTo:  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flex 2: about  "potential" HTTPService timeout/security issues ... Thanks for this clarifiaction on the timeout. I think I'll have  to implement timeout to end the HTTPService request if there is no data  being exchanged for xx number of seconds.With respect to the potential  security issue, I'd like to POST XML via HTTPService to a .cgi server running on  a machine other than the one the Flex app is
 served from. Do I need to have a  crossdomain.xml at either side? or am I free to interact with any server  via HTTService? Thanks!dosDave Wolf  [EMAIL PROTECTED] wrote: Theplayer is simply piggy backing on the HTTP stack of the browser. I thinkyou will find in most cases the browser will detect the halfdead socketwhen data is moving on the socket and generate an errorHTTP statusback. Things get a little harrier when you have an idleyetpersistent connection. This gets even more tricky if you arerunning a cluster of servers tosupport high availability, etc.Inany case, for what you are describing, I think you wont have toworkon doing this yourself. It should be very easy to test.--Dave
 WolfCynergy Systems, Inc.Macromedia Flex AlliancePartnerhttp://www.cynergysystems.comEmail:[EMAIL PROTECTED]Office: 866-CYNERGY--- Inflexcoders@yahoogroups.com, dos dedos [EMAIL PROTECTED]wrote:  Relating to the potential timeout issue, Ithink most likelyHTTPService doesn't timeout on its own However, my Java application could crash and reboot so I wouldhaveto make sure HTTPService would time out if it's loses connectionwiththe server... No idea how to do that yet ...  Anyclarifications would be greatly helpful!  Thanks dos   - New Yahoo! Messenger with Voice.Call regular phones from your PCand save   
 big.   Yahoo! Messenger with Voice. Make  PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less. 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1/min.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Doug Lowder



There are some really good responses to This Postthat explain the reasons behind crossdomain.xml.
--- In flexcoders@yahoogroups.com, dos dedos [EMAIL PROTECTED] wrote: thanks!   bwt, does anyone know what is the security scenario that promoted the introduction of the crossdomain requirement? it would be educating to know   Carson Hager [EMAIL PROTECTED] wrote: You will need a crossdomain file.   Carson    Carson Hager  Cynergy Systems, Inc.  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 dos dedos Sent: Monday, March 27, 2006 2:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 2: about "potential" HTTPService timeout/security issues ...Thanks for this clarifiaction on the timeout. I think I'll have to implement timeout to end the HTTPService request if there is no data being exchanged for xx number of seconds.  With respect to the potential security issue, I'd like to POST XML via HTTPService to a .cgi server running on a machine other than the one the Flex app is served from. Do I need to have a crossdomain.xml at either side? or am I free to interact with any server via HTTService?   Thanks!  dos  Dave Wolf [EMAIL PROTECTED] wrote: The player is simply piggy backing on the HTTP stack of the browser.  I think you will find in most cases the browser will detect the half dead socket when data is moving on the socket and generate an error HTTP status back. Things get a little harrier when you have an idle yet persistent connection.   This gets even more tricky if you are running a cluster of servers to support high availability, etc.  In any case, for what you are describing, I think you wont have to work on doing this yourself. It should be very easy to test.   --  Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com  Email: [EMAIL PROTECTED] Office: 866-CYNERGY  --- In flexcoders@yahoogroups.com, dos dedos dosdedosmiamigos@ wrote: Relating to the potential timeout issue, I think most likely HTTPService doesn't timeout on its ownHowever, my Java application could crash and reboot so I would have to make sure HTTPService would time out if it's loses connection with the server... No idea how to do that yet ...Any clarifications would be greatly helpful!Thanksdos  -  New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less.   -- 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 LINKSVisit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.-  - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Ted Patrick
1. Delegate security to the server side on a domain/subdomain basis.

2. Enable high and low ports access. 

3. Prevent Flash Player from being used as denial of service toolset.

Crossdomain.xml has really improved things, it was a great addition to the 
player at the release of Flash Player 7. I complained about it but eventually I 
saw the light.

Cheers,

Cynergy Systems, Inc.
Theodore Patrick
Sr. Consultant
[EMAIL PROTECTED]
tel: 1.866.CYNERGY
http://www.cynergysystems.com




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dos 
dedos
Sent: Monday, March 27, 2006 6:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex 2: about potential HTTPService 
timeout/security issues ...

thanks! 

bwt, does anyone know what is the security scenario that promoted the 
introduction of the crossdomain requirement? it would be educating to know 

Carson Hager [EMAIL PROTECTED] wrote:
You will need a crossdomain file.
 
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 3/26/2006
 


--
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 to get the XML of a SOAP fault

2006-03-27 Thread Tobias Patton










Hello list;



Im trying to extract SOAP exception information in
the fault handler of my web service call. Using tcpflow on my Mac, I can see
the that the raw SOAP response looks like this:



?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/XMLSchemasoap:Bodysoap:Faultfaultcodesoap:Client/faultcodefaultstringFault
occurred/faultstringfaultactorhttp://galiano.creo.com/App/1.3/Service.asmx/faultactordetailExceptionDetails
d5p1:DetailCode=1636008
xmlns:d5p1=http://www.kodak.com/WPE/Galiano/
xmlns=http://www.kodak.com/WPE/Galiano/ParamFoo/Param/ExceptionDetails/detail/soap:Fault/soap:Body/soap:Envelope



I would like to be able to get the detail node from
the XML stream, but cant find the XML anywhere in the FaultEvent sent to
my event handler. I would have expected to see it in event.message.body, since
this is where it would be in a ResultEvent. However, the debugger shows that
this object, though not null, has no contents. 



Any ideas?


Thanks.
Tobias.



Creo Inc., a subsidiary of Kodak

Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Large App Architecture

2006-03-27 Thread Anatole Tartakovsky





Tom,
 Partitioning of the application 
is the must, and thanks to the advise from Roger, it is not hard. However, I 
would advocate to not to use interfaces, but rather use small applications 
and shared frameworkAND loosely bounded resources for UI/server 
interaction code approach. I should provide link to an article on the subject 
next week.
Thank you,
Anatole Tartakovsky


  - Original Message - 
  From: 
  Roger 
  Gonzalez 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, March 27, 2006 4:19 
PM
  Subject: RE: [flexcoders] Large App 
  Architecture
  Yes, it can. Multiple SWFs. Tradeoffs 
  are increased potential forerrors, a bit more architecture work needed up 
  front, and the potentialthat the Flex frameworks isn't fully designed for 
  this case, so youmight run into some tricky (but not unsolvable) 
  issues. (It workspretty well for pure-AS apps.)My suggestion 
  is to start building your app with interfaces connectingthe modules, and 
  try to avoid concrete implementation dependencies.After that, by the 
  time we ship, I should have an article out describinghow to set things 
  up.-rg  -Original Message- From: 
  flexcoders@yahoogroups.com  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Tom Sobut Sent: Monday, March 27, 2006 11:16 AM To: 
  flexcoders@yahoogroups.com Subject: [flexcoders] Large App 
  Architecture  We're looking at possibly developing a large 
  Flex application  which could have 50+ screens  and lots of 
  sub views on those screens.  We will have users with various 
  connection speeds, including  dialup, so we'd like to minimize 
   initial download time of the app.  We also have the 
  situation where some user types use only a  subset of the 
  screens.  Our concern is that deployed as a monolithic app, 
  initial  load times could be painful over  slow 
  connections.  Can a Flex application be architected so that 
  modules would  be programatically loaded as  needed? 
  Would this be done as separate .swf's? Are there  tradeoffs in 
  this type of approach?  Thanks in advance.  
  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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] How to get the XML of a SOAP fault

2006-03-27 Thread Carson Hager





You simply can't get it unless you use the proxy. There is 
no way around this without using FP8.5 and Flex 2. We've been through this issue 
thoroughly with support and engineering.


Carson

  Carson Hager Cynergy Systems, Inc. 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 Tobias 
PattonSent: Monday, March 27, 2006 4:16 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] How to get the XML of 
a SOAP fault


Hello 
list;

Im trying to extract SOAP exception 
information in the fault handler of my web service call. Using tcpflow on my 
Mac, I can see the that the raw SOAP response looks like 
this:

?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:Bodysoap:Faultfaultcodesoap:Client/faultcodefaultstringFault 
occurred/faultstringfaultactorhttp://galiano.creo.com/App/1.3/Service.asmx/faultactordetailExceptionDetails 
d5p1:DetailCode="1636008" xmlns:d5p1="http://www.kodak.com/WPE/Galiano/" 
xmlns="http://www.kodak.com/WPE/Galiano/"ParamFoo/Param/ExceptionDetails/detail/soap:Fault/soap:Body/soap:Envelope

I would like to be able to get the 
detail node from the XML stream, but cant find the XML anywhere in the 
FaultEvent sent to my event handler. I would have expected to see it in 
event.message.body, since this is where it would be in a ResultEvent. However, 
the debugger shows that this object, though not null, has no contents. 


Any 
ideas?
Thanks.Tobias.

Creo Inc., a subsidiary of 
Kodak
Tobias Patton | 
Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] 
| http://www.creo.com 







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex 2 Beta 2 and Tomcat woes

2006-03-27 Thread Chris Scott
Really nobody has any answers for me? Does anybody successfully build swfs locally and deploy to tomcat, connecting to java services through RemoteObject? As I noted i can deploy the mxml and let it compile at runtime, but that won't help with debugging, as I can't even run my mxml files in Flex Builder. (Flex 2 Beta 2, btw) Chris Scott[EMAIL PROTECTED]http://cdscott.blogspot.com/http://www.coldspringframework.org/ On Mar 27, 2006, at 3:44 PM, Anatole Tartakovsky wrote:One of the side notes - you need to restart eclipse every time you modify  the xml files - it seems to cache xml files for us. We usually turn -kepp-generated-actionscript=true in compiler options and check *FlexInit* generated in /generated folder to see if the changes in XML are compiledHTH,Anatole- Original Message -From: Chris ScottTo: flexcoders@yahoogroups.comSent: Monday, March 27, 2006 1:49 PMSubject: [flexcoders] Flex 2 Beta 2 and Tomcat woesFlex 2 Beta 2 does not like me! I have a few Java services defined in  flex-remote-service.cml, and I'm deploying to Tomcat 5. If I deploy  my mxml files, they compile on the server no problem and run fine.  However, no matter what I try I can not get Flex builder to compile  them and deploy to my context. The swf just cannot find my services.  I copied all the flex-xxx.xml files into my Eclipse project, set the - services compiler flag to the local flex-enterprise-services.xml  file, still no go. What's really odd, and sucks, is I have JRun  installed as well and if I start it up and build a project pointing  at a JRun instance, it works. Anyone, because this is really crappy  and I need to debug!Chris Scott[EMAIL PROTECTED]http://cdscott.blogspot.com/http://www.coldspringframework.org/--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

[flexcoders] 3rd April Sydney Developers study group

2006-03-27 Thread Chris Velevitch
Monday 3rd April is the next meeting of the study group. We will be
studying the Flex application framework Caringorm. Please read the
articles prior to the meeting (see
http://www.flashdev.org.au/program). At the meeting, the moderator
will lead discussion and with questions about the topic. The meeting
is on at 6:30pm for 7pm start and finishes around 8:30pm.

There'll be a special Flex prize available to 1 or 2 lucky
participants on the night.

Details about the group, venue and program are available from
http://www.flashdev.org.au. Please note, whilst the meetings and the
use of the club are free, the club does require us to purchase
beverages and/or snacks in exchange.

Please RSVP at http://www.flashdev.org.au/rsvp.


Chris

--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au


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





RE: [flexcoders] Large App Architecture

2006-03-27 Thread Roger Gonzalez





May I ask your rationale for avoiding interfaces? If 
you use concrete implementations, you'll generally need to do a lot more 
recompilation..

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Anatole 
  TartakovskySent: Monday, March 27, 2006 4:51 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Large App 
  Architecture
  
  Tom,
   Partitioning of the 
  application is the must, and thanks to the advise from Roger, it is not hard. 
  However, I would advocate to not to use interfaces, but rather use small 
  applications and shared frameworkAND loosely bounded resources for 
  UI/server interaction code approach. I should provide link to an article on 
  the subject next week.
  Thank you,
  Anatole Tartakovsky
  
  
- Original Message - 
From: 
Roger 
Gonzalez 
To: flexcoders@yahoogroups.com 

Sent: Monday, March 27, 2006 4:19 
PM
Subject: RE: [flexcoders] Large App 
Architecture
Yes, it can. Multiple SWFs. 
Tradeoffs are increased potential forerrors, a bit more architecture 
work needed up front, and the potentialthat the Flex frameworks isn't 
fully designed for this case, so youmight run into some tricky (but not 
unsolvable) issues. (It workspretty well for pure-AS 
apps.)My suggestion is to start building your app with interfaces 
connectingthe modules, and try to avoid concrete implementation 
dependencies.After that, by the time we ship, I should have an 
article out describinghow to set things up.-rg  
-Original Message- From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Sobut Sent: 
Monday, March 27, 2006 11:16 AM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Large App 
Architecture  We're looking at possibly developing a large 
Flex application  which could have 50+ screens  and lots of 
sub views on those screens.  We will have users with various 
connection speeds, including  dialup, so we'd like to minimize 
 initial download time of the app.  We also have the 
situation where some user types use only a  subset of the 
screens.  Our concern is that deployed as a monolithic app, 
initial  load times could be painful over  slow 
connections.  Can a Flex application be architected so that 
modules would  be programatically loaded as  needed? 
Would this be done as separate .swf's? Are there  tradeoffs in 
this type of approach?  Thanks in advance.  
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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] How to setup flash debug player

2006-03-27 Thread Larry Liang

Hi All,

I was wondering that according to the documentation, if you install 
flexbuilder 2 beta 2, it will install a debug version of flash player 
8.5. My question is if there is anything needs to be done before I 
can use the debugging functionalities. After I install the debug 
player, the debug option on the pop-up window is still disabled, when 
I am viewing some flash contents and right click the mouse. I tried 
to follow the debugging article on Macromedia's website and set the 
HOMEDRIVE and HOMEPATH locations. but it didn't help.

Thanks,

Larry
  






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




Re: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



Well, I understand the general risk scenario now, but Java solved this problem with the concept of signed applets! why doesn't Flash support signing of applets?If you click OK to accept the certificate then you're allowing it to do whatever it wants. I believe ActievX also works this way ...Doug Lowder [EMAIL PROTECTED] wrote:There are some really good responses to This Postthat explain the reasons behind crossdomain.xml. --- In flexcoders@yahoogroups.com, dos dedos [EMAIL PROTECTED] wrote: thanks!   bwt, does anyone know what is the security scenario that promoted the introduction of the crossdomain requirement? it would be educating to know  
 Carson Hager [EMAIL PROTECTED] wrote: You will need a crossdomain file.   Carson    Carson Hager  Cynergy Systems, Inc.  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 dos dedos Sent: Monday, March 27, 2006 2:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 2: about "potential" HTTPService timeout/security issues ...Thanks for this clarifiaction on the timeout. I think I'll have to implement timeout to end the HTTPService request if there is no data being exchanged for xx number of seconds.  With respect to the potential security
 issue, I'd like to POST XML via HTTPService to a .cgi server running on a machine other than the one the Flex app is served from. Do I need to have a crossdomain.xml at either side? or am I free to interact with any server via HTTService?   Thanks!  dos  Dave Wolf [EMAIL PROTECTED] wrote: The player is simply piggy backing on the HTTP stack of the browser.  I think you will find in most cases the browser will detect the half dead socket when data is moving on the socket and generate an error HTTP status back. Things get a little harrier when you have an idle yet persistent connection.   This gets even more tricky if you are running a cluster of servers to support high availability, etc.  In any case, for what you are describing, I think you wont have to work on doing this yourself. It should be very easy to test.   --  Dave
 Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com  Email: [EMAIL PROTECTED] Office: 866-CYNERGY  --- In flexcoders@yahoogroups.com, dos dedos dosdedosmiamigos@ wrote: Relating to the potential timeout issue, I think most likely HTTPService doesn't timeout on its ownHowever, my Java application could crash and reboot so I would have to make sure HTTPService would time out if it's loses connection with the server... No idea how to do that yet ...Any clarifications would be greatly helpful!Thanksdos  -  New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.   
  - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less.   -- 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 LINKSVisit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.-  - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
 rates starting at 1cent;/min. 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1/min.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



(I'm still in complaining mode)ActiveX and Java used applet signing to solve this ...Wouldn't it be better to "respect" the end user's right to choose whether or not to trust a given Flash app to do what it's suppose to do rather than to force the user to install crossdomain on their machine or force teh sys admin (in case of LAN) to install cross domain inside the LAN? How about some security through democracy?How many times does the average person click OK on a signed applet or ActiveX permission screen and end up regreting it?dosTed Patrick [EMAIL PROTECTED] wrote:1. Delegate security to the server side on a domain/subdomain basis.  2. Enable high and low ports access.   3. Prevent Flash Player from being used as "denial of service" toolset. 
 Crossdomain.xml has really improved things, it was a great addition to the player at the release of Flash Player 7. I complained about it but eventually I saw the light.  Cheers,  Cynergy Systems, Inc. Theodore Patrick Sr. Consultant [EMAIL PROTECTED] tel: 1.866.CYNERGY http://www.cynergysystems.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dos dedos Sent: Monday, March 27, 2006 6:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 2: about "potential" HTTPService timeout/security issues ...  thanks!   bwt, does anyone know what is the security scenario that promoted the introduction of the crossdomain requirement? it would be educating to know   Carson Hager [EMAIL PROTECTED] wrote: You will need a
 crossdomain file. � �  --  No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 3/26/2006   
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Roger Gonzalez





You have the purpose backwards. (There's an 
entirely different mechanism for what trust you want to grant to a particular 
SWF.)

The point is fora server owner to prevent you from 
distributing a SWF that canact as a distributeddenial-of-service 
attack on a server.

Consider the case of some web forum that lets you upload a 
SWF as an image. Every person who visits the page runs that SWF. It 
would thus be bad if the SWF was allowed to connect to some site that the SWF 
author wanted to crash.

Dig it?

-rg





From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
dos dedosSent: Monday, March 27, 2006 7:58 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about 
"potential" HTTPService timeout/security issues ...

  (I'm still in complaining mode)ActiveX and Java used 
  applet signing to solve this ...Wouldn't it be better to "respect" the 
  end user's right to choose whether or not to trust a given Flash app to do 
  what it's suppose to do rather than to force the user to install crossdomain 
  on their machine or force teh sys admin (in case of LAN) to install cross 
  domain inside the LAN? How about some security through 
  democracy?How many times does the average person click OK on a signed 
  applet or ActiveX permission screen and end up regreting 
  it?dosTed Patrick 
  [EMAIL PROTECTED] wrote:
  1. 
Delegate security to the server side on a domain/subdomain basis.2. 
Enable high and low ports access. 3. Prevent Flash Player from being 
used as "denial of service" toolset. Crossdomain.xml has really 
improved things, it was a great addition to the player at the release of 
Flash Player 7. I complained about it but eventually I saw the 
light.Cheers,Cynergy Systems, Inc.Theodore 
PatrickSr. Consultant[EMAIL PROTECTED]tel: 
1.866.CYNERGYhttp://www.cynergysystems.comFrom: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
dos dedosSent: Monday, March 27, 2006 6:14 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about 
"potential" HTTPService timeout/security issues ...thanks! 
bwt, does anyone know what is the security scenario that promoted 
the introduction of the crossdomain requirement? it would be educating to 
know Carson Hager [EMAIL PROTECTED] 
wrote:You will need a crossdomain file.��-- No 
virus found in this outgoing message.Checked by AVG Free 
Edition.Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 
3/26/2006
  
  
  Blab-away for as little as 1¢/min. Make PC-to-Phone 
  Calls using Yahoo! Messenger with Voice. 





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



In your example the SWF should not be allowed to connect to any server other than the server it was served from! That's by default.That is unless it is a SIGNED SWF where the end user may allow or deny it's request to execute with full permissions.If it works for Java and ActiveX it would work equally well for Flash ... I'm interested in understanding why the way it's done in Flash may be better ...dosRoger Gonzalez [EMAIL PROTECTED] wrote:   You have the purpose backwards. (There's an  entirely different mechanism for what trust you want to grant to a particular  SWF.)  The point is fora server owner to prevent you from  distributing a SWF that canact as a distributeddenial-of-service  attack on a server.  Consider the case of some web forum that lets you upload a  SWF as an image. Every person who visits the page runs that SWF. It  would thus
 be bad if the SWF was allowed to connect to some site that the SWF  author wanted to crash.  Dig it?  -rg  From:  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of  dos dedosSent: Monday, March 27, 2006 7:58 PMTo:  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about  "potential" HTTPService timeout/security issues ...(I'm still in complaining mode)ActiveX and Java usedapplet signing to solve this ...Wouldn't it be better to "respect" theend user's right to choose whether or not to trust a given Flash app to dowhat it's suppose to do rather than to force the user to install crossdomainon their machine or force
 teh sys admin (in case of LAN) to install crossdomain inside the LAN? How about some security throughdemocracy?How many times does the average person click OK on a signedapplet or ActiveX permission screen and end up regretingit?dosTed Patrick[EMAIL PROTECTED] wrote:   1.  Delegate security to the server side on a domain/subdomain basis.2.  Enable high and low ports access. 3. Prevent Flash Player from being  used as "denial of service" toolset. Crossdomain.xml has really  improved things, it was a great addition to the player at the release of  Flash Player 7. I complained about it but eventually I saw the  light.Cheers,Cynergy Systems, Inc.Theodore  PatrickSr.
 Consultant[EMAIL PROTECTED]tel:  1.866.CYNERGYhttp://www.cynergysystems.comFrom:  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of  dos dedosSent: Monday, March 27, 2006 6:14 PMTo:  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about  "potential" HTTPService timeout/security issues ...thanks!  bwt, does anyone know what is the security scenario that promoted  the introduction of the crossdomain requirement? it would be educating to  know Carson Hager [EMAIL PROTECTED]  wrote:You will need a crossdomain file.��-- No  virus found in this outgoing message.Checked by AVG Free  Edition.Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 
 3/26/2006 Blab-away for as little as 1�/min. Make PC-to-PhoneCalls using Yahoo! Messenger with Voice. 
		New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex 1.5 :: Webservice Fault and useProxy setting

2006-03-27 Thread Matt Chotin










Its fixed for many cases in 2.0/8.5
but youll need to experiment to be sure. Some of the older browser
plugin APIs will not give us the right information.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager
Sent: Monday, March 27, 2006 11:59
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 1.5
:: Webservice Fault and useProxy setting





You can't get the fault without the proxy.
This is a limitation of the flash player 8.0 and earlier. A web service
fault returns an http 500 and this http status code causes the player to stop
receiving data. The proxy gets around this by changing the status code to
200. As a note, this is fixed in Flex 2.0 and FP 8.5.




Carson











 
Carson Hager 
Cynergy Systems, Inc. 
http://www.cynergysystems.com

 
Email: [EMAIL PROTECTED] 
Office: 866-CYNERGY 
Mobile:
1.703.489.6466 
 

















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Monday, March 27, 2006 11:52
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 ::
Webservice Fault and useProxy setting



Hi all.











I'm having some trouble getting the fault detail from a
Webservice call, using Flex 1.5, Axis-compiled service and the useProxy=false
setting. With the proxy setting on, the exception raises in the
fault event and the detail of it can be found on the faultstring property.
While off, it only shows unable to connect to endpoint
http://. etc. .











Any clue on this one? How could I get the exception using
useProxy=false?











Thanks in advance!





-Pablo Gustavo Apanasionek











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex 2 Beta 2 and Tomcat woes

2006-03-27 Thread Matt Chotin










As Anatole suggests, turn on your
keep-generated, check to see if the config information that you think youve
specified is getting passed into the MXML. If you have it working with the web
tier you could also just create a debug option in FlexBuilder to launch the url
to your MXML file on the server (uncheck the default box and edit away). It
will add the right parameters to launch it as debug.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Chris Scott
Sent: Monday, March 27, 2006 5:29
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2
Beta 2 and Tomcat woes





Really nobody has any answers for me? Does anybody successfully build
swfs locally and deploy to tomcat, connecting to java services through
RemoteObject? As I noted i can deploy the mxml and let it compile at runtime,
but that won't help with debugging, as I can't even run my mxml files in Flex
Builder. (Flex 2 Beta 2, btw)















Chris
Scott





[EMAIL PROTECTED]







http://cdscott.blogspot.com/





http://www.coldspringframework.org/










































On Mar 27, 2006, at 3:44 PM, Anatole Tartakovsky wrote:









One of the
side notes - you need to restart eclipse every time you modify the xml
files - it seems to cache xml files for us. We usually turn
-kepp-generated-actionscript=true in compiler options and check *FlexInit*
generated in /generated folder to see if the changes in XML are compiled





HTH,





Anatole







-
Original Message -





From: Chris
Scott





To: flexcoders@yahoogroups.com





Sent: Monday, March 27, 2006 1:49 PM





Subject: [flexcoders] Flex 2
Beta 2 and Tomcat woes









Flex 2 Beta 2
does not like me! I have a few Java services defined in
flex-remote-service.cml, and I'm deploying to
Tomcat 5. If I deploy
my mxml files, they compile on the server no
problem and run fine.
However, no matter what I try I can not get Flex
builder to compile
them and deploy to my context. The swf just cannot
find my services.
I copied all the flex-xxx.xml files into my
Eclipse project, set the -
services compiler flag to the local
flex-enterprise-services.xml
file, still no go. What's really odd, and sucks,
is I have JRun
installed as well and if I start it up and build a
project pointing
at a JRun instance, it works. Anyone, because this
is really crappy
and I need to debug!


Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/


























































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




 Visit your group flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo!
 Groups is subject to theYahoo!
 Terms of Service.






























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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Opinions sought: Flex and small developers

2006-03-27 Thread Matt Chotin










Yes and yes











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dos dedos
Sent: Tuesday, March 21, 2006 8:36
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Opinions
sought: Flex and small developers





David

Will the 'limited' free version of FDS include publish-subscribe functionality?
if so, will it also include the JMS adapter? 


David
 Mendels [EMAIL PROTECTED] wrote:

Hi,



I guess you missed the news. :)



The price model changes completely from
1.X to 2.0. The product is affordable for everyone now.



The Flex Framework and compiler will be
free. In other words, if you want to use your own text editor for coding,
you can now build and deploy Flex applications for *FREE*.



The Flex Builder tool will be less than
$1000. Yo! u will be able to build and deploy Flex applications with
this. You are not required to ever buy the server. You can load
data into your Flex app with XML over XTTP or our XML or Binary Socket and no
server is required.



The Flex Data Services will have a low end
limited version for Free, and will scale to more typical enterprise server
pricing (eg. for small business this will scale to be expensive for larger
deployments). However this is not required for the average small business
application. 



Regards,

David

Adobe











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pixelgeek
Sent: Monday, March 20, 2006 10:35
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Opinions
sought: Flex and small developers

Now as much as I like Flex
and as much as I like playing with! it and
creating some interesting gadgets I am curious if
people here on the
list think that there is much point in pursuing
Flex if you are a
small developer and typically cater to smaller
companies.

Do people think that Flex is ever going to reach
down from its current
market (and its current price) to where it is
afordable for smaller
developers?

My current conundrum is that I have two
applciations that I am
planning and I can do then in Flex or CF using CF
Form but as much as
I want to do it in Flex I can't see that its
economically feasible to
do so

Anyone think this will change? Will Adobe change
past Macromedia price
points for this product?
















Yahoo! Mail
Use
Photomail to share photos without annoying attachments. 







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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread dos dedos



That is the reverse of the common philosophy on this issue. Usually, the end user is "trusted" with the decision because the assumption is that end user is A) not stupid and B) not evil.Defending all servers out there against the threat of an attack by all Flash clients (irrespective of their intent) means that all Flash clients are presumed guilty unless the server owner decides that they're not, but it is the end user who is able to judge whether a given Flash client is to be trusted or not. The server owner has no way of knowing because they're not the ones downloading the Flash content, the users are.So if the server owner (e.g. Amazon.com) decides to allow Flash clients to use its API but then they get hacked from a Flash client then they are to blame. And the chance that they would get hacked by a malicious Flash client is higher than the case where the end users get to judge whether a given Flash client can be trusted to exceute or not.Not
 trying to be a pain in the butt with my counter argument but I'm trying to probe the status quo to make sure that it makes sense.:)dosRoger Gonzalez [EMAIL PROTECTED] wrote:   If I have a server that I want to protect, I don't care  whether your SWF is signed, and I don't care whether you granted it permission,  I don't want you connecting to me.  It doesn't matter what YOU want to approve, it matters what  the SERVER wants to approve.  -rg  From: flexcoders@yahoogroups.com[mailto:[EMAIL PROTECTED] On Behalf Of dosdedosSent: Monday, March 27, 2006 8:27 PMTo:flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re:
 Flex 2:about "potential" HTTPService timeout/security issues ...   In your example the SWF should not be allowed to connect toany server other than the server it was served from! That's bydefault.That is unless it is a SIGNED SWF where the end user may allowor deny it's request to execute with full permissions.If it works forJava and ActiveX it would work equally well for Flash ... I'minterested in understanding why the way it's done in Flash may be better...dosRoger Gonzalez [EMAIL PROTECTED]wrote: You
 have the purpose backwards. (There's an  entirely different mechanism for what trust you want to grant to a  particular SWF.)  The point is fora server owner to prevent you  from distributing a SWF that canact as a  distributeddenial-of-service attack on a  server.  Consider the case of some web forum that lets you  upload a SWF as an image. Every person who visits the page runs that  SWF. It wou! ld thus be bad if the SWF was allowed to connect to some  site that the SWF author wanted to crash.  Dig it?  -rg  From:  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf  Of dos dedosSent: Monday, March 27, 2006 7:58  PMTo: flexcoders@yahoogroups.comSubject: RE:  [flexcoders] Re: Flex 2: about "potential" HTTPService timeout/security  issues ...(I'm still in complaining mode)ActiveX and Javaused applet signing to solve this ...Wouldn't it be better to"respect" the end user's right to choose whether or not to trust a givenFlash app to do what it's suppose to do rather than to force the user toinstall crossdomain on their machine ! or force teh sys admin (in case of   
 LAN) to install cross domain inside the LAN? How about somesecurity through democracy?How many times does the average personclick OK on a signed applet or ActiveX permission screen and end upregreting it?dosTed Patrick[EMAIL PROTECTED] wrote:1.  Delegate security to the server side on a domain/subdomain  basis.2. Enable high and low ports access. 3. Prevent  Flash Player from being used as "denial of service" toolset.  Crossdomain.xml has really improved things, it was a great addition  to the player at the release of Flash Player 7. I complained about it  but eventually I saw the light.Cheers,Cynergy Systems, 
 Inc.Theodore PatrickSr.  Consultant[EMAIL PROTECTED]tel: 1.866.CYNERGYhttp://www.cynergysystems.comFrom:  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf  Of dos dedosSent: Monday, March 27, 2006 6:14 PMTo:  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2:  about "potential" HTTPService timeout/security issues ...thanks!  bwt, does anyone know what is the security scenario that  promoted the introduction of the crossdomain requirement? it would be  educating to know Carson Hager  [EMAIL PROTECTED] wrote:You will need a  crossdomain file.��-- No virus found in this  outgoing message.Checked by AVG Free Edition.Version: 7.1.385 /   
   Virus Database: 268.3.2/293 - Release Date:  

RE: [flexcoders] Opinions sought: Flex and small developers

2006-03-27 Thread dos dedos



Yay and Yay!!!High fives to your product management team! you're strategy overall got some killer moves... dos likesMatt Chotin [EMAIL PROTECTED] wrote:Yes and yesFrom: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dos dedos Sent: Tuesday, March 21, 2006 8:36 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Opinions sought: Flex and small developers  David  Will the 'limited' free version of FDS include publish-subscribe functionality? if so, will it also include the JMS adapter?David  Mendels [EMAIL PROTECTED] wrote:  Hi,I guess you missed the news. :)The price model changes completely from 1.X to 2.0. The product is affordable for everyone now.The Flex Framework and compiler will be free. In other words, if you want to use your own text editor for coding, you can now build and deploy Flex applications for *FREE*.The Flex Builder tool will be less than $1000. Yo! u will be able to build and deploy Flex applications with this. You are not required to ever buy the server. You can load data into your Flex app with XML over XTTP or our XML or Binary Socket and no server is required.The Flex Data Services will have a low end limited version for Free, and will scale to more typical enterprise server pricing (eg. for small business this will scale to be expensive for larger deployments). However this is not required for the average small business
 application. Regards,  David  AdobeFrom: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pixelgeek Sent: Monday, March 20, 2006 10:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Opinions sought: Flex and small developers  Now as much as I like Flex and as much as I like playing with! it and creating some interesting gadgets I am curious if people here on the list think that there is much point in pursuing Flex if you are a small developer and typically cater to smaller companies.  Do people think that Flex is ever going to reach down from its current market (and its current price) to where it is afordable for smaller developers?  My current conundrum is that I have two applciations that I am planning and I can do then in Flex or CF using CF Form but as much as I want to do it in Flex I can't see that its economically feasible to do so  Anyone think this will change? Will Adobe change past Macromedia price points for this product? Yahoo! Mail Use Photomail to share photos without annoying attachments.   YAHOO! GROUPS LINKS  Visit your group "flexcoders" on the web.   To unsubscribe from this group, send an email to:[EMAIL PROTECTED]   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Cairngorm problem

2006-03-27 Thread Renaun Erickson
I create an example called ComplexObjectBinding that illustrates
using simple binding and Cairngorm method of a static ModelLocator.

You can find it here:
http://www.renaun.com/flex2/

Not sure whats up with your code, I pretty much did you what you
outlined, only thing I can guess is if the model.hourData is set
before the Template is created you might not fire a bind event, but
its hard to say with out see the actual source code.

Either way check out the example above it shows both methods with a
Custom ChartTemplate and without one.

Its kind of a funny random chart line generate, have fun making funny
looking lines, hehe...

Renaun

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

 SoI stump everyone here yet? :-)
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 Try not to become a man of success, but a man of value. - Albert
 Einstein
 
 HealthGrades http://www.healthgrades.com/ : Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w  (720) 963-3832
 
 c  (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or legally privileged information
 and is intended for use only by the indicated addressee.  If you are not
 the named addressee you should not disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system.
 E-mail transmissions cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender therefore does not accept
 liability for any errors or omissions in the contents of this message
 which arise as a result of e-mail transmission. If verification is
 required please request a hard-copy version.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jonathan Miranda
 Sent: Friday, March 24, 2006 11:14 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Cairngorm problem
 
  
 
 Hmmm, I sent this over an hour ago and it still hasn't updated on the
 list. Let's try again:
 
 
 Well, I just got probably a better working example. Matt can attest I
 find the weirdest bugs :-)
 
 Here's the rundown:
 
 mx:Button id=test label=Test
 click=salesChart.dataProvider=model.hourData;/
 mx:LineChart id=salesChart dataProvider={model.hourData}
 mx:DataGrid id=HourGrid dataProvider={model.hourData} 
 
  
 
 When the model changes, the DataGrid updates, the chart doesn't.
 When I click the button, the chart updates.
 
 Same thing (I changed it to ArrayCollection from an Array to make sure)
 outside Cairngorm works fine.
 
 Non-cairngorm:
 
 -return from service
 hourData = event.result.list.hour;
 
 slicedHourData = new ArrayCollection(hourData);
 -in mxml
  [Bindable]
 
  public var slicedHourData : ArrayCollection;
 
 templates:TotalSales hourData={slicedHourData}
 
 -in template component
 [Bindable]
 public var hourData : ArrayCollection;
 mx:LineChart id=salesChart dataProvider={hourData}
 mx:DataGrid id=HourGrid dataProvider={hourData}
 
 Cairngorm:
 
 -return from service
 model.hourData = new ArrayCollection( event.result.list.hour);
 -in modelLocator (which is a bindable class)
 public var hourData: ArrayCollection;
 -in template component
 [Bindable]
 
 public var model : ModelLocator = ModelLocator.getInstance();
 mx:LineChart id=salesChart dataProvider={model.hourData}...
 mx:DataGrid id=HourGrid dataProvider={model.hourData}...
 
 Pretty much the same exact code but it's the chart isn't updating in
 Cairngorm but the datagrid updates for both.
 
  
 
  
 
  
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 Try not to become a man of success, but a man of value. - Albert
 Einstein
 
 HealthGrades http://www.healthgrades.com/ : Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w  (720) 963-3832
 
 c  (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or legally privileged information
 and is intended for use only by the indicated addressee.  If you are not
 the named addressee you should not disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system.
 E-mail transmissions cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender therefore does not accept
 liability for any errors or omissions in the contents of this message
 which arise as a result of e-mail transmission. If verification is
 required please request a hard-copy 

Re: [flexcoders] Large App Architecture

2006-03-27 Thread Anatole Tartakovsky





Roger,
 That is almost always true - 
unless you are treating most of UI as resource bundle. I was merely suggesting 
bypass most of recompilation/linkage.
We are going to 
publisha chapter on building class libraries from the upcoming book some 
time next week. One of the topics is breaking code in layers for large 
applications.

Hereis rough picture:
You have screen that has rich UI - Grids, 
ComboBoxes, etc. Most of those are reusable on other screens (Tom has 50 of them 
in his application - roughly 50 apps in generic FlexBuilder sense ). Assuming 
average fully linked applications - at least 1000 classes.
Interfaces are going to help a bit on recompiles 
and somewhaton the linkage in "classical" model. However, guestimated 
recompile/link time is going to be very significant - even is you are changing 
single attibute on one shared UI element. We are using following 
assumptions:
1. MXML UI contains more "code" then application 
and framework, changes often and is not relevant in the application 
logic.
2. Framework and application code are using SWC/SWF 
extensively and should support breaking the code into reusable common and 
"application" specific libraries. 

 Instead of "linking" controls we 
treat all attributes of the UI components as "extended styles"/resources and 
compile them separately. in the runtime, the base componenets use the resource 
name in the manner similar to "styleName" to apply those compiled resources to 
the UI element @ very low cost. Basically, the code is structured in 3 
layers:
1. Application
2. Framework
3. Resources
1. Application has simple tag implementation 
framework:ComboBox resource="resource.somecomboboxfromresourceswf" id="c1" 
creationComplete="c1.fill(123)"/
2. Framework roughly does this: function set 
resource(resName:String){var c:* = new loadClassByName(resName) for (a in mixin 
) this[a] =c[a];
3. Resource is compiled separately andlooks 
this (base object has the same props as extended framework 
combobox):
?xml version="1.0" 
encoding="utf-8"?resources:ComboBoxResource xmlns:mx="http://www.adobe.com/2006/mxml" 
xmlns:resources="resources.*"dataField="EMP_ID"  
labelFunction="fullName" 
destination="com_theriabook_composition_EmployeeDAO" 
method="getEmployees" 
dropdownWidth="350"resources:itemRenderer 
 mx:Component 
verticalGap="0" mx:HBox verticalGap="0" 
 horizontalScrollPolicy="off" 
verticalScrollPolicy="off"  
mx:PhoneFormatter 
id="phoneFormatter"/ 
mx:Label text="{this.data.EMP_LNAME}" 
width="40%"/mx:VRule 
height="20"/ 
mx:Label text="{this.data.EMP_FNAME}" 
width="40%"/mx:VRule 
height="20"/ 
mx:Label text="{phoneFormatter.format(this.data.PHONE)}" 
width="20%"/ 
/mx:HBox 
/mx:Component 
/resources:itemRenderermx:Script![CDATA[ 
internal function fullName(data:Object):String 
{return data.EMP_LNAME + "," + 
data.EMP_FNAME;}]]/mx:Script
/resources:ComboBoxResource
Here is the base class for the resouces.ComboBox 
(used instead of interface/provides support for MXML "code 
hinting"):
package resources {import 
mx.core.IFactory;import flash.util.*;import 
mx.core.UIComponent;public class ComboBoxResource 
{public var labelFunction : Function = 
null;public var destination:String=null;public 
var method : String = null;public var autoFill : Boolean = 
true;public var dataField : String = null;public 
var dropdownWidth : int = 0;public var _mixIn : String = 
"labelFunction,destination,method,autoFill,itemRenderer,dataField,dropdownWidth"
public var itemRenderer:IFactory = 
null;}}

This model worked well in the past for both C/C++ 
(low-level) and PowerBuilder(4GL) languages. Thanks to your advice on RSL/SWF 
itworks fine in Flex. I would really appreciate opportunity to discuss how 
this approach for large applications can be integrated in IDE as I expect this 
issue to come up frequently.

Sincerely,
Anatole Tartakovsky





  - Original Message - 
  From: 
  Roger 
  Gonzalez 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, March 27, 2006 9:43 
PM
  Subject: RE: [flexcoders] Large App 
  Architecture
  
  May I ask your rationale for avoiding interfaces? 
  If you use concrete implementations, you'll generally need to do a lot more 
  recompilation..
  
  -rg
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Anatole 
TartakovskySent: Monday, March 27, 2006 4:51 PMTo: flexcoders@yahoogroups.comSubject: 
Re: [flexcoders] Large App Architecture

Tom,
 Partitioning of the 
application is the must, and thanks to the advise from Roger, it is not 
hard. However, I would advocate to not to use interfaces, but rather use 
small applications and shared frameworkAND loosely bounded 
resources for UI/server interaction code approach. I should provide link to 
an article on the subject next week.
Thank you,
Anatole Tartakovsky


  - Original Message - 
  From: 
  Roger 
  Gonzalez 
  To: 

RE: [flexcoders] List Component Bug!!

2006-03-27 Thread Gordon Smith










My understanding is that you have to
implement IUID if your dataProvider items are a custom class. If they're a
plain Object, I don't think you have to. What's the story, Alex?



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Lance Linder
Sent: Monday, March 27, 2006 2:02
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] List
Component Bug!!





That seemed to do the trick.



Wonder how many others will get stumped on
that? Seems there should have been some kind of error if your objects
dont implement IUID. Maybe this will be addressed through better
docs in the final release or better yet a run time error.



I would have just chalked that up as a bug
and looked to see if it was fixed in the next release if you didnt
mention it!



Thanks so much for the suggestion! 













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tobias Patton
Sent: Monday, March 27, 2006 3:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] List
Component Bug!!





I think that the objects in your
dataProvider must implement the IUID interface for selection to work.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Lance Linder
Sent: Monday, March 27, 2006 1:08
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List
Component Bug!!





Hello,



I was just converting a project from Beta1
to Beta2 and noticed a problem with all my List components that were bound to data
providers which are collections of custom objects.



The problem is that the List selection
highlight is stuck on the last item in the list. Changing the provider to
be an array collection made up of plain instances of the Object class fixes the
problem. The problem seems to effect anything that uses the List
component (ComboBox, DataGrid)



Has anyone else seen this and found a
fix? Using plain old Object instances are not an option.



Here is some sample code that shows the
problem.



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute preinitialize=initData()





mx:Script


![CDATA[





[Bindable]


public var a:Array;





private function initData():void {





a = new Array();





var myObj:MyObject = new MyObject();


myObj.name = neung;


a.push(myObj);





var myObj2:MyObject = new MyObject();


myObj2.name = saawng;


a.push(myObj2);





var myObj3:MyObject = new MyObject();


myObj3.name = saam;


a.push(myObj3);


}





]]


/mx:Script





mx:List x=10 y=10 dataProvider={a}
width=200 height=200
labelField=name/mx:List

/mx:Application



//-- MyObject.as -



package {




public class MyObject extends Object {


public var name:String;


}

}











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] why is trace(1+0.9+0.7+0.3) = 2.8999999999999995

2006-03-27 Thread Gordon Smith










The short answer is that the Number type
can't store most decimal fractions exactly. It stores floating point numbers as
binary fractions, so there is usually some roundoff error. 



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Monday, March 27, 2006 6:24
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] why is
trace(1+0.9+0.7+0.3) = 2.8995





I could swear there was a
thread on this precision issue that Gordon Smith answered and it did have to do
with the trace function.

Search the archives, I bet you will find it.

Peace, Mike



On 3/27/06, Dima Ulich [EMAIL PROTECTED] wrote:



Hi All,

 I was working with number recently
and noticed this
weird behaviour trace(1+0.9+0.7+0.3) returns
2.8995;
 Did anyone else ever seen such thing?
Is it a bug?

Dima Ulich

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com


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







SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS 




 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.

















-- 
What goes up, does come down. 







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Format of UIDUtils.createUid() string is incorrect

2006-03-27 Thread Gordon Smith










I've entered this bug into our bugbase.
We'll probably fix it for Beta 3.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tobias Patton
Sent: Friday, March 24, 2006 4:10
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Format of
UIDUtils.createUid() string is incorrect







Hello list;



My
application makes a web-service call to a .NET server that requires a UUID
parameter which the client must generate. The call was failing and I was at a
loss to figure out why until I looked in the WSDL and noticed that the GUID is
defined a string of hex digits in groups of 8, 4, 4, 4, and 12.



However, the
GUID generated by UIDUtils has groupings of 8, 4, 4, and 16 (e.g. DC3ADAA2-5E84-9977-33BDDC55). I dont think this is
correct. In fact, the documentation for the createUid function claims: 

The UID
has the form ----
where X is a hexadecimal digit (0-9,
A-F). 

Does anyone
from Adobe know if this will be fixed in subsequent version of the framework?



Creo Inc., a subsidiary of Kodak



Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.com 















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] I don't want a binding!

2006-03-27 Thread Matt Chotin
I assume you solved this by now but it sounds like you need a copy of
the array itself, not a copy of all that data.  You can get an array
copy by calling concat() on the array.  Then in one place you can use
the service result, and in the place where you do the drag and drop to
assign you would use the copy.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of digital_eyezed
Sent: Monday, March 20, 2006 2:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I don't want a binding!

HI,

I have an issue with an array which created on the result of a 
remoteObject call. The result is set to an array like this inside 
the result function:

array = new Array();
array = mx.utils.ArrayUtil.toArray(event.result);

The array is substantiated outside this function like so:

var array:Array;

The result from the remoteObject is also used as a dataProvider to a 
List, which has drag and drop functionality and the dataProvider is 
assigned as such:

dataProvider={service.getMethod.result}

Now, this lists' dataProvider can enlarge as objects are added to it 
through dragging and dropping, irrelevant I hear you say.

The problem is, I set the array when the result is received in order 
for me to check it against the datProvider of the List before I 
return it to the server (i.e. I do a diff on the array from the 
result and the dataProvider on the List and I get a new array of the 
new Objects dragged to the List), like this:

public function addNewObjects(){
var newArray:Array = new Array();
var newArray2:Array = new Array();
arrayOfListObjects = mx.utils.ArrayUtil.toArray(list.dataProvider);
newArray = NotInB(arrayOfListObjects,array);
if(newArray.length != 0){
for(var k = 0;knewArray.length;k++){
var newObjectVO:ObjectVO = new ObjectVO();
newObjectVO.label = newArray[k].label;
newObjectVO.data = newArray[k].data;
newArray2.push(newObjectVO);
}
service.addObjects(newArray2);
}else{
mx.core.Application.alert(Complain a lot about not adding 
anything!);
   }
}

for clarity the NotInB function does this:

public function NotInB(arrayA,arrayB) {
var tempAry= new Array();
var i,j;
for (i=0; iarrayA.length; i++) {
for (j=0; jarrayB.length; j++) {
if (arrayA[i].data==arrayB[j].data) {
break;
}
}
if (j==arrayB.length) {
tempAry.push(arrayA[i]);
}
}
return tempAry;
}

No problem, this all works first time without an issue, and the 
objects are passed to the server as expected, then everything goes 
wrong. From then on the array which is set from the result object is 
set ok (I have traced out the array when it is created every time 
and it is correct), but when I drag objects to the List they are 
also added to this array, why? there is no binding to it! so every 
time after the first time I add the new objects I 'Complain a lot 
about not adding anything!'.

Please help.

Cheers,

Iain






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




RE: [flexcoders] cellRenderer refresh on drag and drop datagrid columns

2006-03-27 Thread Matt Chotin
Maybe you need to invalidate the DG?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of feuille76
Sent: Wednesday, March 22, 2006 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cellRenderer refresh on drag and drop datagrid
columns

Hi,

I have added drag-and-drop function to the datagridcolumns in my 
datagrid.  The dragging and dropping part is working fine but the 
cellRenderers of the columns do not refresh after this operation.  For 
example, if I drag column 6 to the column 2 position, column 2 and the 
subsequent columns will be shifted to the right but their respective 
cellRenderers do not refresh to reflect the new position of the columns 
that they belong to.

I was suspecting that the setValue on my cellrenderers are not properly 
implemented but the sorting of columns with cellRenderer refreshes 
properly.

Any thoughts and help are appreciated.

Thanks,
Andrew





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




RE: [flexcoders] Beta 2: ListEvent.itemRenderer is always null?

2006-03-27 Thread Matt Chotin










itemRenderer is what you want, it shouldnt
be null. Can you provide a brief example that demonstrates?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tobias Patton
Sent: Tuesday, March 21, 2006 3:56
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Beta 2:
ListEvent.itemRenderer is always null?





Hello List;



Im going through the process, as many of you are, of
updating my project to Beta 2. I have an event handler for the ListEvent.ON_CLICK
event. In Beta 1, I would examine the events cell property which
contained a reference to the item renderer for the clicked item. But, in Beta 2
there is no cell property. There is, however, an itemRenderer property
described in the docs as: The data provider element for the item
being edited, clicked, or pressed.



Sounds promising, right? But unfortunately, this property of
the event always seems to be null.



Anyone know whats going on here?



Thanks.
Tobias.



Creo Inc., a subsidiary of Kodak

Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Problems loading dynamic images and swf's

2006-03-27 Thread Matt Chotin
See if you can ensure that your web server is sending the right
content-length along with the images.  We've seen the Player have
trouble loading content of unknown length (it never thinks it got it
all).

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nextadvantage
Sent: Friday, March 24, 2006 2:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems loading dynamic images and swf's

We load many dynamic jpg's and swfs in our image layout. In IE we are
experiencing issues 
loading some of the images, we do not see these issues in firefox. Is
there any way we can 
ensure the images are loaded, this does not happen all the time and is
completely random. 
And the images are available flex just isn't loading them... very
frustrating





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





RE: [flexcoders] Flex2: whats a TreeNode convert to

2006-03-27 Thread Matt Chotin
In Flex 2 the idea is to not convert your node into anything.  Instead
the ITreeDataDescriptor is used by the Tree to create an internal
collection that it can use for displaying the nodes.  This way you don't
need to have a 1-to-1 match of your data structure to the Tree.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Friday, March 24, 2006 4:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2: whats a TreeNode convert to

Hi
in Flex 1.5 we had mx.controls.treeclasses.TreeNode;

what does that now become.

thanks 






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




RE: [flexcoders] Dummy e4x XML question - assign string to XML with simple content?

2006-03-27 Thread Matt Chotin
oNode.setChildren(newValue);

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thunderstumpgesatwork
Sent: Wednesday, March 22, 2006 8:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dummy e4x XML question - assign string to XML with
simple content?

Guys,

I feel like an idiot right now, I have an XML object that has simple
content (eg. oNode:XML = value1.54/value; )

What is the preferred way to assign a new value to the text in the XML
node? I tried first just assigning the string, but I get a compile
error cannot convert from String to XML

The only thing I could come up with is to re-create it...

oNode = {oNode.name()}{newValue}/{oNode.name();

Seems like there must be a better way... there's lots of documentation
on assigning the value from the parent XML (if the node with simple
content is a child of a parent node you can assign to it as a
'property' of the parent node), but I didn't see a way to make
'setChildren' or something like that work...

thanks for any suggestions!

Thunder






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




RE: [flexcoders] Unable to iterate over results of a call to DataService.fill()

2006-03-27 Thread Matt Chotin
So is there an error?  What's the problem?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeffrey_lage
Sent: Monday, March 27, 2006 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unable to iterate over results of a call to
DataService.fill()

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
creationComplete=init()
mx:Script
![CDATA[
import mx.collections.ListCollectionView;
import mx.collections.ICollectionView;
import mx.data.messages.DataMessage;
import mx.rpc.AsyncToken;
import com.fds.ui.TreeNode;
import mx.utils.ObjectProxy;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
var availableRecs:ListCollectionView = new
ListCollectionView( );

[Bindable]
var rawRecList:ListCollectionView = new
ListCollectionView( );

function init( ):void {
this.dataService.fill( this.rawRecList
);
}

function
handleGetAllReconResults(event:ResultEvent):void {
if(
DataMessage(AsyncToken(event.call).message).operation == 
DataMessage.FILL_OPERATION ) {
Alert.show(
this.rawRecList.length.toString() );
var newTree:ArrayCollection =
new ArrayCollection( );

var lastDate:String = null;
var currentNode:TreeNode = null;
for( var i:int = 0; i 
this.rawRecList.length; i++ ) {
var rec:ObjectProxy =
this.rawRecList[ i ] as ObjectProxy;

/*if( lastDate !=
rec.valueDate ) {
currentNode =
new TreeNode( );

currentNode.label = rec.valueDate;
currentNode.guid
= rec.guid;
newTree.addItem(
currentNode );
} else {
var
child:TreeNode = new TreeNode( );
child.label =
rec.runTime;
child.guid =
rec.guid;

currentNode.children.addItem( child );
}*/
//Alert.show(Should be
processing item[ + i + ]);

newTree.addItem(rec.guid);
}
Alert.show(
newTree.length.toString() );
this.availableRecs = newTree; 
}
}
]]
/mx:Script

mx:DataService id=dataService destination=lineItems 
result=this.handleGetAllReconResults(event) autoCommit=false
fault=Alert.show
(event.message.toString())/

/mx:Application






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




RE: [flexcoders] Flex 1.5 - Looking for an example of using ValidationFailedEvent class

2006-03-27 Thread Matt Chotin
Assign your class as the listener for the Validator and make sure it has
a validationFailed method.  When the validator fails you should be able
to get the validator and retrieve its errors through the errors
property.  I don't think you can get all the errors at once with
isStructureValid because it goes through the individual validators, so
you would have to do that as well.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Wednesday, March 22, 2006 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 - Looking for an example of using
ValidationFailedEvent class

Hello,
I am looking for an example of listening for the
ValidationFailedEvent. If I understand it correctly, I should be able
to listen for this event and if any or all fields on my form fail
validation I can obtain all the errors at once in the errors array
after executing isStructureValid(). Is this how it works?

Thanks,
Libby






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




RE: [flexcoders] Global functions

2006-03-27 Thread Matt Chotin
There are certainly ways to do global functions and variables, but OO
languages like AS3 generally avoid them.  You can describe your
functions as static in a class and make them globally accessible that
way, but you'd still need to import the package.  If you have a bunch of
imports that you'll use in *every* file you could create a little
snippet of AS that has those imports and use the #include statement to
pull them in (#include is dropping the # in the next beta I think).

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Schutten
Sent: Tuesday, March 21, 2006 2:38 AM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] Global functions

I want to create a Flex application where each part of the application
is
coded in a seperate mxml file. In the main application mxml i've added a
TabNavigator and added a tab for each seperate mxml file.
I also created a Functions ActionScript file which contains all
functions
for my application. In each mxml file i have to use 'import Functions.*'
to
reach my functions. Also when using an Alert in each file i have to use
'import mx.controls.Alert' in each.

Is there a way to only import the needed stuff once, thus in the main
mxml
file?
Does flex have Global Functions and variables?



Richard





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





RE: [flexcoders] DataGrid Sort Direction

2006-03-27 Thread Matt Chotin










You shouldnt need the direction,
you should always return as if it is ascending. The Sort class will take care
of flipping the results for you.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Friday, March 24, 2006 2:21
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid
Sort Direction





Hi,

How can I read sort direction (ASC/DESC) when
user clicks on Grid column to sort?

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell : 209.275.0482

Fax : 408.284.2766









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Large XML data binding to FLEX Chart

2006-03-27 Thread Matt Chotin
E4X has an xpath like syntax which may be better for you.  Check out the
XMLListCollection as something you can assign into a chart and the e4x
operators to build the right list.  Make sure resultFormat=e4x on the
HTTPService, it might improve performance.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of seethinglong
Sent: Monday, March 20, 2006 11:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Large XML data binding to FLEX Chart

Hi all,
I am newbie trying to use FLEX to build chart apps but I experience
huge problem when the data source in URL from local hard drive is
around 6MB (request through mx:HTTPService).

Firefox 1.5, Windows XP with adobe FES had failed totally and the
memory/IO writes reached almost 1GB/50k before firefox crashed.

Later I try with pre-compiled flash with tomcat apache, the charts
work work sluggishly.

I would like to know is there any binding mechanism that can stream
the XML data over through HTTP?  Something like active stream format
for movie/sound.

Is FLEX chart support JXPATH/XSLT?  I would like to build a Flex chart
that allows user to enter XPATH/XSLT and produce the chart dynamically.

Thanks for your patience in the reading.  Meanwhile I am finding the
answer myself reading the help documents provided.







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




RE: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1 and 2)

2006-03-27 Thread Matt Chotin
I believe there are still some interfaces you might need to support like
IStyleClient.  I've asked internally.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bussesven
Sent: Friday, March 24, 2006 1:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1
and 2)

Hi,

in the alpha version of Flex 2 i was able to remove the framework.swc 
from a flex project and still use mxml with only my own classes. In 
beta 1 and beta 2 this doesn't work anymore, because mxmlc by default 
generates several import statements and other stuff in the generated 
classes, which leads to errors of course, since i have removed the 
framework.swc.

Even if i leave the framework.swc in, but use only my own classes, it 
doesn't work, since there is an error with the StyleManager.

I made a simple example. I have a very simple class:

package com {

import flash.util.trace;
import flash.display.Sprite;

public class Sample extends Sprite {

public var myvalue:String;

public function Sample() {
trace(Hello World!);
}   
}
}

And a very simple mxml:

?xml version=1.0 encoding=utf-8?
sb:Sample xmlns:sb=com.* myvalue=Test /

It doesn't work, i get the error:

TypeError: Error #1009: null has no properties.
at 
mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::i
nitProtoChainRoots()[C:\dev\beta2
\sdk\frameworks\mx\styles\StyleManager.as:240]
at 
MyTest/http://www.adobe.com/2006/flex/mx/internal::_MyTest_StylesInit
()
at MyTest$iinit()

What is going wrong here? How can i use mxml with just my own classes 
without the flex framework?

Thanx and cheers.





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




RE: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property

2006-03-27 Thread Matt Chotin










Well youre including the minus
character in your restrict. So it shouldnt allow negative numbers.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn
Sent: Saturday, March 25, 2006
6:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Beta
2 - Bug with mx.controls.TextInput restrict Property





Hello



I try to restrict the input of a TextInput Control
with the following line:



TextInput.restrict
= 0-9 ,.\- + _CurrencySymbol;



Unfortuneally I cant enter negative numbers in
the box (it dont accept the minus character). This example worked fine
with the alpha version of Flex, I already reported the bug for the beta 1
version.



Harry











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Error #1009 Troubleshooting

2006-03-27 Thread Matt Chotin










Youre using the full framework
unlike the other thread right? It might be a bug. It looks like maybe the
global style isnt loaded correctly.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner
Sent: Sunday, March 26, 2006 10:15
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error #1009
Troubleshooting







Reposting this as it got
buried in a previous post with an inaccurate subject...

Can someone from Adobe shed some light on this type of error? This is
occuring within a repeater that has it's dataProvider dynamically
changed. I've read the description, and have a general understanding of
why this is occurring, but would appreciate it if someone could help me with
troubleshooting it. 

Thanks,

Brendan

[SWF] C:\Inetpub\wwwroot\MyFile\bin\MyFile-debug.swf - 1,191,862
bytes after decompression





TypeError: Error #1009: null has no
properties.



at
mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240]

at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit()

at
products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5]

at containers::ContentContainer$cinit()

at
global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15]

at
_containers_ContentContainerWatcherSetupUtil$/init()

at
mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830]









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] flex2 accessibility

2006-03-27 Thread Matt Chotin
http://livedocs.macromedia.com/labs/1/flex20beta2/1340.html

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alisdair Mills
Sent: Monday, March 27, 2006 5:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex2 accessibility

Hi,

I am hoping someone could point me to any documentation on flex 2  
accessibility. I notice there is an accessibility option for the  
compiler - but this is off by default. Is this off because it is  
currently a developer beta? What difference does it make to the swf  
if you compile with it set to true? Can it be set at runtime? And  
most importantly - what accessibility does it provide (screenreader  
support? changable text size / colour contrast? tab management?).

Basically I am trying to push flex 2 to a few clients right now and  
know this is going to be the first question asked - Does it cover  
all legal requirements over accessibility?.

Any pointers over this will be a great help.

Cheers, Al


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





RE: [flexcoders] Re: Multple destinations on a single DataService

2006-03-27 Thread Matt Chotin
You can absolutely have multiple destinations inside the DataService.
Can you post some config of what you were trying that's not working?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeffrey_lage
Sent: Friday, March 24, 2006 12:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Multple destinations on a single DataService

sorry, just fixing my really hard to read post.  updated below:

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

 Is this possible?  I have been trying to do this, and it only seems to
see the first one.  I also 
 tried defining more than one data-service in seperate xml files, each
with a single 
destination, and loading them in the enterprise-services.xml, and that
doesn't seem to 
 work either.







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




  1   2   >