[flexcoders] Flex builder automation?

2010-02-11 Thread Nick Middleweek
Hello,

Is it possible to setup an automation task to do this...


   1. Open Project Properties of a Flex Library Project
   2. Deselect all items in the Classes tab
   3. Reselect all items in the Classes tab
   4. Deselect assets in the Classes tab
   5. *Reselect all but 'com' in the Assets tab*
   6. Click ok so the library gets rebuilt
   7. Run a Project Clean


Thanks,
Nick


[flexcoders] Combo and mouse roulette wheel selection

2010-02-11 Thread Christophe
Hello,

I have a combo in my Flex Application. 

I want to navigate into the combo when the user is using the mouse roulette 
wheel selection. 

How to add this functionality ? 

Thank you,
Christophe, 




[flexcoders] Credit Card number encryption

2010-02-11 Thread Christophe
Hello,

I use Flex and Amfphp with php / mySql. 

In the database, I want to encrypt Credit card number with MD5. 

How to add this functionnality ?

Thank you,
Christophe,




[flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread GeorgeB
Hi Pravin,

Another thing for you to consider is that due to Adobe's dropping the name 
Flex Builder in favor of Flash Builder, obviously the future for Flex 
developers is rather gloomy, as they should be called Flash developers!!!

Of course this is a bitter joke, but as you ask: 
 ...which will I guess help lot of confused minds.
I feel we are already confused enough. LOL

Thanks
George

--- In flexcoders@yahoogroups.com, p...@... Uttarwar pravinuttar...@... 
wrote:

 Hi Guys,
 
 I don't know whether this is the right place to ask question like this or
 not.
 
 I am working on Flex from last couple of years and
 as far as current market requirements, It seems that the demand of flex
 developers is quite high.
 
 But still I want to know from all of you the answer to this question which
 will I guess help lot of confused minds.
 
 Also If got time please go through the link and answer this question:
 
 http://www.surveymonkey.com/s/JNW6MQL
 
 Thanks  Regards,
 Pravin Uttarwar





[flexcoders] Module Memory Leaks

2010-02-11 Thread Battershall, Jeff
Getting modules to fully unload has been something I've spent (wasted?) a good 
deal of time on in the past and I've just finished reading with great interest, 
Alex's article on the subject:
http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html

My question is - how much of this is resolved in Flex 4?  Because if most or 
all of the issues have been addressed, I'll simply abandon my Flex 3 
development of module-based applications and move to Flex 4 right now, 
especially given that Flex 4's release is imminent (early spring?).

Of particular concern is the bit in Alex's article about unloading images and 
the fact that image assets could be loaded via Stylesheets, etc.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



Re: [flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread Paul Andrews
GeorgeB wrote:
 Hi Pravin,

 Another thing for you to consider is that due to Adobe's dropping the name 
 Flex Builder in favor of Flash Builder, obviously the future for Flex 
 developers is rather gloomy, as they should be called Flash developers!!!
   
I don't think being a Flex developer has anything to do with Adobe's 
product name - we will still be using the Flex framework.

Sadly it all goes to show how Adobe's naming strategy is a branding mess.
 Of course this is a bitter joke, but as you ask: 
   
 ...which will I guess help lot of confused minds.
 
 I feel we are already confused enough. LOL

 Thanks
 George

 --- In flexcoders@yahoogroups.com, p...@... Uttarwar pravinuttar...@... 
 wrote:
   
 Hi Guys,

 I don't know whether this is the right place to ask question like this or
 not.

 I am working on Flex from last couple of years and
 as far as current market requirements, It seems that the demand of flex
 developers is quite high.

 But still I want to know from all of you the answer to this question which
 will I guess help lot of confused minds.

 Also If got time please go through the link and answer this question:

 http://www.surveymonkey.com/s/JNW6MQL

 Thanks  Regards,
 Pravin Uttarwar

 




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   



[flexcoders] One Problem Solution Leads To An Even Worse Problem - Collecting Garbage

2010-02-11 Thread James
I've recently been having java heap space errors when attempting to save and 
run a big application leading to out of memory errors and have tried resizing 
my permsize etc in the flexbuilder.ini file but now whenever I try to switch to 
design view on this project I get the message:-

An internal error occurred during collecting garbage

Followed by:-

Unable to create native thread

So I basically can't access design view now and am working blins :-(

Can anyone tell me how to solve this problem or perhaps let me know the default 
values that come in the flexbuilder.ini file of flexbuilder 3.2?

Here's what I've modified it to look like so far:-

-vmargs
-Xms512m
-Xmx1024m
-XX:MaxPermSize=512m
-XX:PermSize=512m
-Djava.net.preferIPv4Stack=true



[flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread GeorgeB
Exactly Paul!

I am now using Flex Builder3.x and will (when time comes) upgrade to whatever 
they call it. As I will have to. Obviously!

The only question I have for the time being (but will have to wait) is what 
will be the upgrade policy from 3 to 4? 
As I mentioned elsewhere I have been invoiced close to 700 euros (including 
VAT) locally for this software and I don't want to face any surprises on this 
subject, because a name was changed..

Thanks 
George

--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:

 GeorgeB wrote:
  Hi Pravin,
 
  Another thing for you to consider is that due to Adobe's dropping the name 
  Flex Builder in favor of Flash Builder, obviously the future for Flex 
  developers is rather gloomy, as they should be called Flash developers!!!

 I don't think being a Flex developer has anything to do with Adobe's 
 product name - we will still be using the Flex framework.
 
 Sadly it all goes to show how Adobe's naming strategy is a branding mess.
  Of course this is a bitter joke, but as you ask: 

  ...which will I guess help lot of confused minds.
  
  I feel we are already confused enough. LOL
 
  Thanks
  George
 
  --- In flexcoders@yahoogroups.com, Pr@ Uttarwar pravinuttarwar@ wrote:

  Hi Guys,
 
  I don't know whether this is the right place to ask question like this or
  not.
 
  I am working on Flex from last couple of years and
  as far as current market requirements, It seems that the demand of flex
  developers is quite high.
 
  But still I want to know from all of you the answer to this question which
  will I guess help lot of confused minds.
 
  Also If got time please go through the link and answer this question:
 
  http://www.surveymonkey.com/s/JNW6MQL
 
  Thanks  Regards,
  Pravin Uttarwar
 
  
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 
 





[flexcoders] Re: A security question...

2010-02-11 Thread valdhor
You need to set the correct channel for the remoting operation.

In my case I am using WebORB. In my remoting-config.xml I can set the
destination node to use whichever channel that I want to use.

For example:
destination id=MySecureDestination
 channels
 channel ref=my-secure-amf/
 /channels
 properties
 sourceExamples.Accounts/source
 /properties
/destination

You could also do it directly in ActionScript without a 
remoting-config.xml file:

channelSet = new ChannelSet();
amfChannel = new AMFChannel(my-secure-amf,
https://myserver.com/WebORB/weborb.php;);
channelSet.addChannel(amfChannel);
myService = new RemoteObject();
myService.channelSet = channelSet;
myService.destination = Examples.Accounts;
myService.requestTimeout = 30;
myService.getData.addEventListener(ResultEvent.RESULT, resultHandler);
myService.addEventListener(FaultEvent.FAULT, faultHandler);


--- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote:

 So, let's say I have a mx:RemoteObject in my program...  I want it
to communicate with the server via SSL, or some other method whereby the
credit-card numbers it sends to-and-from the server are encrypted.

 Here's how it's structured currently:
 mx:RemoteObject id=roPaymentInfo destination=ColdFusion
showBusyCursor=true source={'cfcs.dao.PaymentsDAO'}
mx:method name=getPayments
result=roGetPaymentsResultHandler(event)
fault=roFaultHandler(event)/
mx:method name=addPayment
result=roAddPaymentResultHandler(event)
fault=roFaultHandler(event)/
 /mx:RemoteObject

 Do I have to make my entire program secure via an https:// in the URL,
or is there a way to encrypt just that one mx:RemoteObject?  If there
is a way to secure just the one object, how is that done?

 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA




Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-11 Thread valdhor
I'm sorry. I obviously didn't explain myself very well. I really need a self 
contained application that will run without modification and shows the problem. 
This way I can copy/paste or import into FB and play with it until I get it to 
work (Or give up).

--- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote:

 okay this is exactly what am doing. i have an arraycollection(dataAr) that is 
 populated by data from a database. i have a multiple filter function that i 
 use to filter the arraycollection(dataAr) and each time its filtered i 
 refresh it. i then assign the filtered arraycollection(dataAr) to a new 
 arraycollection(copydataAr), which i use as the dataprovider for the 
 tilelist. here is a snippet of the code.
 
 [Bindable]
   private var dataAr:ArrayCollection = new ArrayCollection;
 public function displayResult(event:ResultEvent):void{
   dataAr = new ArrayCollection((event.result as 
 ArrayCollection).source);
   }
 
 private function filterGrid():void{
   dataAr.filterFunction=myFilterFunction;
   dataAr.refresh();
   }
   
   private function myFilterFunction(item:Object): Boolean{
   return(item.city == selectedCity || selectedCity == All)  
   (item.location == selectedLocation || selectedLocation == 
 All) 
   (item.bedrooms = selectedbdrm || selectedbdrm == -- Choose 
 One --)  
   (item.bathrooms = selectedbathrm || selectedbathrm == -- 
 Choose One --) 
   (item.category == category.selectedValue)
   (!garageSelected || item.garages)
   (!tileflrSelected || item.tile_floor)
   (!hardwoodflrSelected || item.hardwood_floor)
   (!laminateflrSelected || item.laminate_floor)
   (!balconySelected || item.balcony)
   (!yardSelected || item.backyard)
   (!closetSelected || item.closets)
   (!poolSelected || item.pool);   
  
   }
 
 private var selectedCity : String = All;
 private var selectedLocation : String = All;
 private var selectedValue: Boolean;  
   private var selectedbdrm : String = -- Choose One --;
 private var selectedbathrm : String = -- Choose One --;
 private var poolSelected: Boolean = false;
 private var yardSelected: Boolean = false;
 private var closetSelected: Boolean = false;
 private var garageSelected: Boolean = false;
 private var tileflrSelected: Boolean = false;
 private var hardwoodflrSelected: Boolean = false;
 private var laminateflrSelected: Boolean = false;
 private var balconySelected: Boolean = false;
   
   private function cityChangeHandler(event:Event):void{
   if( city_cb.selectedItem != null )
   selectedCity = city_cb.selectedLabel;
 filterGrid(); 
 currentState = '';
   }
 
 private function locationChangeHandler(event:Event):void{
 if( lct_cb.selectedItem != null )
 selectedLocation = lct_cb.selectedLabel;
 filterGrid(); 
 currentState = '';
 }
   
 private function bedroomChangeHandler(event:Event):void{
 if( room_cb.selectedItem != null )
 selectedbdrm = room_cb.selectedLabel;
 filterGrid(); 
 currentState = '';
 }
   
 private function bathroomChangeHandler(event:Event):void{
 if( bath_cb.selectedItem != null )
 selectedbathrm = bath_cb.selectedLabel;
 filterGrid(); 
 currentState = '';
 }
   
   private function categoryChangeHandler(event:Event):void{
 if(category.selectedValue != null)
   selectedValue = category.selectedValue;
 filterGrid();
 currentState = '';
 vidz.player.stop();   
 }
   
 private function poolFilter():void{   
   poolSelected = pool_ckb.selected;
   
 filterGrid();
   currentState = '';
   }
 
 private function yardFilter():void{   
 yardSelected = yard_ckb.selected;
   
 filterGrid();
   currentState = '';
   }
 
 private function closetFilter():void{ 
 closetSelected = closet_ckb.selected;
   
 filterGrid();
   currentState = '';
   }
 
 private function garageFilter():void{ 
 garageSelected = garage_ckb.selected;
   
 filterGrid();
   currentState = '';
 }
 
 private function tileflrFilter():void{
 tileflrSelected = floor_tiles.selected;
   
 filterGrid();
 

Re: [flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread Paul Andrews
GeorgeB wrote:
 Exactly Paul!

 I am now using Flex Builder3.x and will (when time comes) upgrade to whatever 
 they call it. As I will have to. Obviously!

 The only question I have for the time being (but will have to wait) is what 
 will be the upgrade policy from 3 to 4? 
 As I mentioned elsewhere I have been invoiced close to 700 euros (including 
 VAT) locally for this software and I don't want to face any surprises on this 
 subject, because a name was changed..
   
I think there won't be a problem with the upgrade path, though the cost 
will be an interesting question..
 Thanks 
 George

 --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:
   
 GeorgeB wrote:
 
 Hi Pravin,

 Another thing for you to consider is that due to Adobe's dropping the name 
 Flex Builder in favor of Flash Builder, obviously the future for Flex 
 developers is rather gloomy, as they should be called Flash developers!!!
   
   
 I don't think being a Flex developer has anything to do with Adobe's 
 product name - we will still be using the Flex framework.

 Sadly it all goes to show how Adobe's naming strategy is a branding mess.
 
 Of course this is a bitter joke, but as you ask: 
   
   
 ...which will I guess help lot of confused minds.
 
 
 I feel we are already confused enough. LOL

 Thanks
 George

 --- In flexcoders@yahoogroups.com, Pr@ Uttarwar pravinuttarwar@ wrote:
   
   
 Hi Guys,

 I don't know whether this is the right place to ask question like this or
 not.

 I am working on Flex from last couple of years and
 as far as current market requirements, It seems that the demand of flex
 developers is quite high.

 But still I want to know from all of you the answer to this question which
 will I guess help lot of confused minds.

 Also If got time please go through the link and answer this question:

 http://www.surveymonkey.com/s/JNW6MQL

 Thanks  Regards,
 Pravin Uttarwar

 
 


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





   




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   



[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread valdhor
http://php.net/manual/en/function.md5.php

--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello,
 
 I use Flex and Amfphp with php / mySql. 
 
 In the database, I want to encrypt Credit card number with MD5. 
 
 How to add this functionnality ?
 
 Thank you,
 Christophe,





[flexcoders] ArrayCollection of a specific type?

2010-02-11 Thread Nick Middleweek
Hello,

Is it possible to specifc a class property to be an ArrayCollection of a
certain Interface rather than just an ArrayCollection?


Thanks,
Nick


[flexcoders] Re: One Problem Solution Leads To An Even Worse Problem - Collecting Garbage

2010-02-11 Thread valdhor
This blog may help (Although I have never had your problem - touch wood):

http://nwebb.co.uk/blog/?p=156

--- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote:

 I've recently been having java heap space errors when attempting to save and 
 run a big application leading to out of memory errors and have tried resizing 
 my permsize etc in the flexbuilder.ini file but now whenever I try to switch 
 to design view on this project I get the message:-
 
 An internal error occurred during collecting garbage
 
 Followed by:-
 
 Unable to create native thread
 
 So I basically can't access design view now and am working blins :-(
 
 Can anyone tell me how to solve this problem or perhaps let me know the 
 default values that come in the flexbuilder.ini file of flexbuilder 3.2?
 
 Here's what I've modified it to look like so far:-
 
 -vmargs
 -Xms512m
 -Xmx1024m
 -XX:MaxPermSize=512m
 -XX:PermSize=512m
 -Djava.net.preferIPv4Stack=true





Re: [flexcoders] Re: A security question...

2010-02-11 Thread Jochem van Dieten
On 2/11/10, valdhor wrote:
 You could also do it directly in ActionScript without a
 remoting-config.xml file:

 channelSet = new ChannelSet();
 amfChannel = new AMFChannel(my-secure-amf,
 https://myserver.com/WebORB/weborb.php;);

That should be:
amfChannel = new SecureAMFChannel(..., https://...;);

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


Re: [flexcoders] A security question...

2010-02-11 Thread Jochem van Dieten
On 2/11/10, Booking Heaven wrote:
 The best thing you have to do is you should encrypt it in client side before
 it is passed to webservice (whatever it is, https or http) because man in
 middle attack can tap your creditcard information before it is passed to
 webservice.

With the method proposed the Flash Player plugin will hand the data
off to the browser and the browser will encrypt it using SSL and send
it to the webservice. Are you suggesting that there may be a man in
the middle between the Flash Player plugin and the browser? It seems a
bit of a far fetched scenario. Surely a simple keylogger would be much
more likely as an attack vector.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


[flexcoders] Re: ArrayCollection of a specific type?

2010-02-11 Thread jaywood58
You want something like Java 5 generics... sorry to say Actionscript does not 
have it, so you are stuck with type-casting the members of your collection. 

Here's a link to an article that outlines the differences between Java 5 and 
Actionscript: 
http://www.artima.com/lejava/articles/actionscript.html

--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hello,
 
 Is it possible to specifc a class property to be an ArrayCollection of a
 certain Interface rather than just an ArrayCollection?
 
 
 Thanks,
 Nick





Re: [flexcoders] Credit Card number encryption

2010-02-11 Thread W.R. de Boer
As far as I am aware you aren't allowed to store credit card numbers yourself 
without a weekly security audit from the card issuer...

[flexcoders] Panel BackgroundImage

2010-02-11 Thread Darrin Kay
Good Day,
 I thought this was simple, I have a xml feed coming in and all the data is
working fine, except for one.  I am displaying the data in a Panel and each
panel can have a different background image :

backgroundImage={imageRepeater.currentItem.background}



in the xml :  backgroundimages/backgroungLeftLogo.jpg/background



but I get unable to load error any ideas?



Yes I have a images folder in the root of the site in iis



Thanks,

 Darrin


[flexcoders] Re: ArrayCollection of a specific type?

2010-02-11 Thread tntomek
I make custom wrappers for all my AC's

So instead of 
getItemAt() : Object I have 
getCustomTypeAt() : CustomType etc.

Its a 10 second copy paste job and well worth it esp when you plan on using 
this collection more than once. The Web Services AS proxy generation does this.

--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hello,
 
 Is it possible to specifc a class property to be an ArrayCollection of a
 certain Interface rather than just an ArrayCollection?
 
 
 Thanks,
 Nick





[flexcoders] Re: Limited Heap Space Problem

2010-02-11 Thread tntomek
'New' and '2Gb of ram' is an oxymoron in 2010 :) buy some RAM. 2 Gb for serious 
flex work doesnt cut it. My Flex/Flash Builder uses easily uses a gig.

--- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote:

 Ok I've managed to find the file which controls the heap space which Flex 
 Builder allows called the FlexBuilder.ini file in 
 Computer/C/ProgramFiles(86)/Adobe/Flex Builder 3/ but the problem is I can't 
 raise the xms and xmx attributes above 512 as when I try to start Flex I get 
 the message Unable to load the java virtual machine and then a window comes 
 up with a message of JVM terminted. Exit code=1
 
 But if I leave both values at 512 it works fine but I get an out of memory 
 error whenever I run a big application I've made. This is why I wanted to 
 increase them to 1024 like I have done with the perm sizes to solve this out 
 of memory error. Does anyone know why this is happening? My system is quite 
 new and has 2gb of RAM. The contents of my flexbuilder.ini file are:-
 
 -vmargs
 -Xms512m
 -Xmx512m
 -XX:MaxPermSize=1024m
 -XX:PermSize=1024m
 -Djava.net.preferIPv4Stack=true





[flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Lee Jenkins

Web based flex applications seem to take magnitudes longer to return a result 
than do Air based application.  I've tried with HTTPService and URLLoader 
components and it is the same.

I've created one small air application and one small web based flex app 
identical.  Air app is almost instantaneous while the web page based app 
(Firefox) takes noticeably longer.

My guess is that browser mechanics (security, etc) is the culprit.

Any suggestions or comments?

Thanks,

--
Warm Regards,

Lee


Re: [flexcoders] Credit Card number encryption

2010-02-11 Thread Lee Jenkins
W.R. de Boer wrote:
  
 
 As far as I am aware you aren't allowed to store credit card numbers 
 yourself without a weekly security audit from the card issuer...
 

I don't think that is the case.  You need to have a business use for storing 
credit card data and of course, it then needs to be encrypted and only certain 
parts of allowed to be stored.  For instance, CVV2 or track discretionary data 
storage is a no, no.

https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml

--
Warm Regards,

Lee




Re: [flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread Scott Langeberg
I'm developing Flex 3 apps in FlashBuilder 4 beta 2, right now - not too
many probs


On Thu, Feb 11, 2010 at 7:15 AM, GeorgeB grg_b...@yahoo.com wrote:



 Exactly Paul!

 I am now using Flex Builder3.x and will (when time comes) upgrade to
 whatever they call it. As I will have to. Obviously!

 The only question I have for the time being (but will have to wait) is what
 will be the upgrade policy from 3 to 4?
 As I mentioned elsewhere I have been invoiced close to 700 euros (including
 VAT) locally for this software and I don't want to face any surprises on
 this subject, because a name was changed..

 Thanks
 George


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Andrews p...@... wrote:
 
  GeorgeB wrote:
   Hi Pravin,
  
   Another thing for you to consider is that due to Adobe's dropping the
 name Flex Builder in favor of Flash Builder, obviously the future for Flex
 developers is rather gloomy, as they should be called Flash developers!!!
  
  I don't think being a Flex developer has anything to do with Adobe's
  product name - we will still be using the Flex framework.
 
  Sadly it all goes to show how Adobe's naming strategy is a branding mess.
   Of course this is a bitter joke, but as you ask:
  
   ...which will I guess help lot of confused minds.
  
   I feel we are already confused enough. LOL
  
   Thanks
   George
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
   p...@uttarwar pravinuttarwar@
 wrote:
  
   Hi Guys,
  
   I don't know whether this is the right place to ask question like this
 or
   not.
  
   I am working on Flex from last couple of years and
   as far as current market requirements, It seems that the demand of
 flex
   developers is quite high.
  
   But still I want to know from all of you the answer to this question
 which
   will I guess help lot of confused minds.
  
   Also If got time please go through the link and answer this question:
  
   http://www.surveymonkey.com/s/JNW6MQL
  
   Thanks  Regards,
   Pravin Uttarwar
  
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
  
  
  
  
  
 

  



Re: [flexcoders] Credit Card number encryption

2010-02-11 Thread Paul Andrews
Lee Jenkins wrote:
 W.R. de Boer wrote:
   
  

 As far as I am aware you aren't allowed to store credit card numbers 
 yourself without a weekly security audit from the card issuer...

 

 I don't think that is the case.  You need to have a business use for storing 
 credit card data and of course, it then needs to be encrypted and only 
 certain 
 parts of allowed to be stored.  For instance, CVV2 or track discretionary 
 data 
 storage is a no, no.
   
So how do companies like amazon keep card info for future use?
 https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml

 --
 Warm Regards,

 Lee




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   



[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Flex
Christophe,

MD5 is a one way hash so it's not like you can use the number meaningfully 
later on or get the card number back. 

There are other alternatives to credit card processing...payments gateways. 
Sorry to toot my own horn here, but we use Google checkout and Paypal simply 
because we don't want to get into that complication and we want the shoppers to 
feel secure about there purchase. Have you considered using those? 
Flexdownloads.com has those integration components for flex.

You can also evaluate using Credit card acceptance thru paypal. We don't have 
any integration components for that, but it should be easy to do that, and it 
will be a more secure buying experience for your shoppers.

Good luck...and I believe others have already sent you the link on php md5 
command...its simply one line.

Web Manager
FlexDownloads.com

--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello,
 
 I use Flex and Amfphp with php / mySql. 
 
 In the database, I want to encrypt Credit card number with MD5. 
 
 How to add this functionnality ?
 
 Thank you,
 Christophe,





Re: [flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Lee Jenkins
Lee Jenkins wrote:
  
 
 
 Web based flex applications seem to take magnitudes longer to return a 
 result
 than do Air based application. I've tried with HTTPService and URLLoader
 components and it is the same.
 
 I've created one small air application and one small web based flex app
 identical. Air app is almost instantaneous while the web page based app
 (Firefox) takes noticeably longer.
 
 My guess is that browser mechanics (security, etc) is the culprit.
 
 Any suggestions or comments?

I take this back.  My mistake and should have checked it before posting, but 
the 
truth is that Air applications run from the IDE are magnitudes faster that web 
page based flex app run from the IDE.  When testing response times with the 
COMPILED web based flex app OUTSIDE of the IDE, the difference was noticeable, 
but negligent.

--
Warm Regards,

Lee


[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
PCI Compliance is a nightmare. ;)  

I'm sure Amazon.com goes through the process of being PCI compliant; and has 
high level security for storing and encrypting credit cards.  For example, I'm 
sure their credit card storage machines are in a secure building [with guards 
and limited access] on machines that are only accessible by sitting at the 
machine or via a secure VPN connection.  

And I'm sure routine audits are done by outside companies, although I don't 
know the frequency they need to occur.  Additionally, every time they release 
new code; it needs to be reviewed by some party independent of the developer.  
Etc.. etc..

Putting together a PCI compliant environment is easily a $100K proposition if 
you aren't storing credit cards.  I'm sure Amazon.com spends much more than 
that on a yearly basis.

For the rest of us go to a company like Authorize.net [or similar] that 
provides subscription billing services.  We never have access to the CC ata, 
just some unique customer ID that we can use for billing subscription services. 
 

--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:

 Lee Jenkins wrote:
  W.R. de Boer wrote:

   
 
  As far as I am aware you aren't allowed to store credit card numbers 
  yourself without a weekly security audit from the card issuer...
 
  
 
  I don't think that is the case.  You need to have a business use for 
  storing 
  credit card data and of course, it then needs to be encrypted and only 
  certain 
  parts of allowed to be stored.  For instance, CVV2 or track discretionary 
  data 
  storage is a no, no.

 So how do companies like amazon keep card info for future use?
  https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml
 
  --
  Warm Regards,
 
  Lee
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 
 





[flexcoders] ArrayCollection, addAll and Refresh

2010-02-11 Thread johncch85
I understand that ArrayCollection.addAll was added in flex sdk 3.4. I'm coding 
a simple application and I'm hitting this problem. I would like to ask if 
anyone knows what's happening:

Here's the source, just a simple mxml:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=creationComplete()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
private var a:Array = [
{ key: a, value: b },
{ key: a, value: b },
{ key: a, value: x },
{ key: a, value: b }
];

private var b:Array = [
{ key: b, value: c },
{ key: b, value: x },
{ key: b, value: c },
{ key: b, value: c }
];

private var c:Array = [
{ key: d, value: x },
{ key: d, value: e },
{ key: d, value: e },
{ key: d, value: e }
];

[Bindable] public var xx:ArrayCollection = new 
ArrayCollection();

public function creationComplete():void {
var i:int;
xx.filterFunction = filter;
xx.addAll(new ArrayCollection(a));
/*for (i = 0; i  a.length; i++) {
xx.addItem(a[i]);
}*/
trace(Refresh is  + xx.refresh());
xx.addAll(new ArrayCollection(b));
/*for (i = 0; i  b.length; i++) {
xx.addItem(b[i]);
}*/
trace(Refresh is  + xx.refresh());
xx.addAll(new ArrayCollection(c));
/*for (i = 0; i  c.length; i++) {
xx.addItem(c[i]);
}*/
trace(Refresh is  + xx.refresh());
}

private function filter(item:*):Boolean {
if (item.value == x) return false;
return true;
}

]]
/mx:Script
mx:DataGrid id=dg dataProvider={xx}/mx:DataGrid
/mx:Application

When I compile and run I get:

RangeError: Index '5' specified is out of bounds.

What I'm doing basically is to add some random array of objects into an 
ArrayCollection binded to the DataGrid. And because there is a filter function 
associated with the ArrayCollection, I call refresh() every time something is 
added. The original use case is that this is like a drop object method for the 
datagrid, so it's possible for it to be called multiple times.

I'm just curious why is this happening. Is this the desired behaviour? I'll 
look into the source code later when I'm free, but this is just to get a 
general feeling of the problem.



Re: [flexcoders] How do create two different charts?

2010-02-11 Thread Patricia Han
Thanks so much! I will try that.
Pat





From: Richard Rodseth rrods...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Wed, February 10, 2010 4:52:30 PM
Subject: Re: [flexcoders] How do create two different charts?

   
Quick answer, and I may not have time  to follow up with more detail . You can 
have different series types within the same chart definition.

In other words, an mx:ColumnSeries element doesn't have to be inside an 
mx:ColumnChart element. So just use an mx:CartesianChart (I believe that's 
what it's called) and add the series you need.

Of course, the devil's in the details, but that might get you started.


On Wed, Feb 10, 2010 at 4:47 PM, Patricia Han flex...@yahoo. com wrote:














  


 
  
 
Hi All,

Has anyone done creating two different types of charts in the same scale? I 
need to draw a stacked area chart and a line chart on the same chart area. But 
I don't know how to do that. 

Can someone give some advice? Or some examples?

Thanks so much for any advance or suggestion.

Pat.



 


  

[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-11 Thread s_hernandez01
Okay well, thanks everyone for your help, but I got too frustrated with 
figuring it out so my last resort is just have to upload my php files to the 
server and call them with a url so I don't get the sandbox error with testing 
them locally.  This sucks that I get the error locally, I hope Flash Builder 
works this out when released.  Thanks again.


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Timing is important, and so is configuration.  If you launch the app via 
 file:// then you need the put the folder in the FlashPlayerTrust file(s).  If 
 you are launching the app via http:// then you need a crossdomain.xml file on 
 the root of www.MyDomainName.com and make sure it gets loaded before the 
 request for the image.
 
 I've never bothered to figure out when you have to use a LoaderContext and 
 when the player will automatically look for crossdomain.xml.  It might be 
 documented in the security whitepapers on the Adobe sight
 
 
 On 2/10/10 2:36 PM, s_hernandez01 s_hernande...@... wrote:
 
 
 
 
 
 
 Yup tried that and no luck either.  I even tried using
 
 Security.loadPolicyFile(http://www.MyDomainName.com/crossdomain.xml;);
 
 to push it to the flash player since I put the * in the cross domain and 
 still keep getting the error.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Adnan Doric astronaute@ wrote:
 
  On 10/02/2010 23:14, s_hernandez01 wrote:
   Well, I'm using Flex 3 and the sandbox error pops up when I run it
   from Flex.
  URL should be file:///something if you want it to work.
 
  You can also try to put a * in your crossdomain.xml and start from
  there if it works.
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





Re: [flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Lee Jenkins
Lee Jenkins wrote:
  
 
 Lee Jenkins wrote:
  
  
  
   Web based flex applications seem to take magnitudes longer to return a
   result
   than do Air based application. I've tried with HTTPService and URLLoader
   components and it is the same.
  
   I've created one small air application and one small web based flex app
   identical. Air app is almost instantaneous while the web page based app
   (Firefox) takes noticeably longer.
  
   My guess is that browser mechanics (security, etc) is the culprit.
  
   Any suggestions or comments?
 
 I take this back. My mistake and should have checked it before posting, 
 but the
 truth is that Air applications run from the IDE are magnitudes faster 
 that web
 page based flex app run from the IDE. When testing response times with the
 COMPILED web based flex app OUTSIDE of the IDE, the difference was 
 noticeable,
 but negligent.

OK, I'll get my head screwed on right today sometime.

It appears that its Firefox (3.5.7) that causes the delay.  Two test 
applications with exactly the same code.  One is deployed to AIR and the other 
to a basic webpage, letting FlexBuilder create the html page, etc.

SWF running directly in flash player:
  - Little to no difference, fast

AIR app (either in debug mode or not):
  - Little to no difference, fast

SWF running in Internet Explorer 8.0:
  - Little to no difference, fast

FireFox 3.5.7
  - Noticeably slower.

Everything including server is running local on my computer (3 Gigs of RAM, 
Vista 32bit) and just to be sure, I disabled all add-ins and plug-ins for 
Firefox and the result is consistently the same.  Using either a URLLoader or 
HTTPService to pull down xml, Firefox takes a while longer to send the request 
to the server, once the URLLoader or HTTPService sends methods have been 
called, 
  than the other methods mentioned above.

The server application is my own Delphi/FreePascal based server so I could set 
a 
break point on the socket creation line to see exactly when the server received 
the request from the flex application.  With Firefox (as opposed to Air 
application, Internet Explorer or running the naked swf file in Flash Player) 
the time it takes for the server to get the request is significantly longer 
(1.5 
secs on average subjective speed) thus providing an overall and significantly 
longer delay to process the request from click to response.


--
Warm Regards,

Lee



Re: [flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Jochem van Dieten
On 2/11/10, Lee Jenkins wrote:
 Everything including server is running local on my computer (3 Gigs of RAM,
 Vista 32bit) and just to be sure, I disabled all add-ins and plug-ins for
 Firefox and the result is consistently the same.  Using either a URLLoader or
 HTTPService to pull down xml, Firefox takes a while longer to send the request
 to the server, once the URLLoader or HTTPService sends methods have been 
 called,
  than the other methods mentioned above.

Did you disable the feature where Firefox checks an online list of
reported attack / forgery sites before connecting to a site?

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/


Re: [flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Jake Churchill
I've been told that Firefox limits the amount of processor power that the
flash player plugin is allowed to use.  That may be your problem.  Perhaps
it also limits network usage/bandwidth.

I can't confirm this is true but your results seem to point that direction.

FYI, FF 3.6 was recently released.  Maybe try that to see if they have done
anything under the hood to help flash performance.

-Jake

On Thu, Feb 11, 2010 at 11:08 AM, Lee Jenkins l...@datatrakpos.com wrote:



 Lee Jenkins wrote:
 
 
  Lee Jenkins wrote:
  
  
  
   Web based flex applications seem to take magnitudes longer to return a
   result
   than do Air based application. I've tried with HTTPService and
 URLLoader
   components and it is the same.
  
   I've created one small air application and one small web based flex app
   identical. Air app is almost instantaneous while the web page based app
   (Firefox) takes noticeably longer.
  
   My guess is that browser mechanics (security, etc) is the culprit.
  
   Any suggestions or comments?
 
  I take this back. My mistake and should have checked it before posting,
  but the
  truth is that Air applications run from the IDE are magnitudes faster
  that web
  page based flex app run from the IDE. When testing response times with
 the
  COMPILED web based flex app OUTSIDE of the IDE, the difference was
  noticeable,
  but negligent.

 OK, I'll get my head screwed on right today sometime.

 It appears that its Firefox (3.5.7) that causes the delay. Two test
 applications with exactly the same code. One is deployed to AIR and the
 other
 to a basic webpage, letting FlexBuilder create the html page, etc.

 SWF running directly in flash player:
 - Little to no difference, fast

 AIR app (either in debug mode or not):
 - Little to no difference, fast

 SWF running in Internet Explorer 8.0:
 - Little to no difference, fast

 FireFox 3.5.7
 - Noticeably slower.

 Everything including server is running local on my computer (3 Gigs of RAM,

 Vista 32bit) and just to be sure, I disabled all add-ins and plug-ins for
 Firefox and the result is consistently the same. Using either a URLLoader
 or
 HTTPService to pull down xml, Firefox takes a while longer to send the
 request
 to the server, once the URLLoader or HTTPService sends methods have been
 called,
 than the other methods mentioned above.

 The server application is my own Delphi/FreePascal based server so I could
 set a
 break point on the socket creation line to see exactly when the server
 received
 the request from the flex application. With Firefox (as opposed to Air
 application, Internet Explorer or running the naked swf file in Flash
 Player)
 the time it takes for the server to get the request is significantly longer
 (1.5
 secs on average subjective speed) thus providing an overall and
 significantly
 longer delay to process the request from click to response.

 --
 Warm Regards,

 Lee

  



Re: [flexcoders] HTTPService return times Air vs Flash

2010-02-11 Thread Lee Jenkins
Jochem van Dieten wrote:
  
 
 On 2/11/10, Lee Jenkins wrote:
   Everything including server is running local on my computer (3 Gigs 
 of RAM,
   Vista 32bit) and just to be sure, I disabled all add-ins and plug-ins for
   Firefox and the result is consistently the same. Using either a 
 URLLoader or
   HTTPService to pull down xml, Firefox takes a while longer to send 
 the request
   to the server, once the URLLoader or HTTPService sends methods have 
 been called,
   than the other methods mentioned above.
 
 Did you disable the feature where Firefox checks an online list of
 reported attack / forgery sites before connecting to a site?
 
 Jochem

Hi,

Yes.

Tools  Options  Security

Unchecked:
  Block Reported Attach Sites
  Block Reported Web Forgories

(and restarted FF)

--
Warm Regards,

Lee




Re: [flexcoders] Credit Card number encryption

2010-02-11 Thread Laurence MacNeill
At 09:35 AM 2/11/2010, you wrote:


As far as I am aware you aren't allowed to store credit card numbers 
yourself without a weekly security audit from the card issuer...


Do what?!  I've never heard of this...  If that's the case, then the 
company I work for has been breaking the law for YEARS!  We store CC 
data (encrypted, of course) in our current database so that if a 
customer changes their mind, we don't have to reacquire the CC info 
from them to charge (or refund) their account.

In the Flex app that I'm writing, the plan is to continue to do the 
same thing...

And how would the CC issuers (dozens of 'em?  Hundreds?) all have the 
time to audit every company that uses CC info for any purpose 
whatsoever?  Doesn't sound possible to me.

Laurence MacNeill
Mableton, Georgia, USA



[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
 You need to make your superiors aware of the PCI Compliance regulations.

 You're not actually breaking the law, but you may be breaking your contract 
with your merchant provider.  I read all 80+ pages or so of my merchant account 
contract.  Someone at your company should do the same to make sure that your 
development practices are in compliance.  

--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote:

 At 09:35 AM 2/11/2010, you wrote:
 
 
 As far as I am aware you aren't allowed to store credit card numbers 
 yourself without a weekly security audit from the card issuer...
 
 
 Do what?!  I've never heard of this...  If that's the case, then the 
 company I work for has been breaking the law for YEARS!  We store CC 
 data (encrypted, of course) in our current database so that if a 
 customer changes their mind, we don't have to reacquire the CC info 
 from them to charge (or refund) their account.
 
 In the Flex app that I'm writing, the plan is to continue to do the 
 same thing...
 
 And how would the CC issuers (dozens of 'em?  Hundreds?) all have the 
 time to audit every company that uses CC info for any purpose 
 whatsoever?  Doesn't sound possible to me.
 
 Laurence MacNeill
 Mableton, Georgia, USA





[flexcoders] Clearing datasource for ADG/ArrayCollection/ Getting unwanted Duplicates

2010-02-11 Thread charliecrystle
Hi--I populate an ADG from a SQLite database. Works great. 

But I when I add a record, I want to repopulate the ADG with the data I just 
added, so I call the query function again, populate the ArrayCollection with 
result.data, and refresh the ADG. 

My AC is goalsAC. I tried goalsAC.removeAll(), but that doesn't work (reported 
bug, apparently). 

Here's the relevant code--you can see I'm trying anything to clear out the 
arraycollection. Doesn't do the job:

 gc.source=null; //gc is the MXML group collection in the ADG
 goalsAC.source=new Array(); //goalsAC is the arraycollection
 goalsAC=null;
 goalsAC=new ArrayCollection(result.data)//result.data is SQLResults

if (result.data != null)
 {var numRows:int = result.data.length;
for (var i:int = 0; i  numRows; i++) 
{
var row:Object = goalsAC.source[i];
goalsAC.addItem(row); //adding rows from the 
}
   }

can anyone help? thanks!



[flexcoders] Build UICompenent Widgets, add drag and drop, keep widgets within Panel

2010-02-11 Thread timgerr
Hello all,
I have this panel that I have a button in.  I add the ability for the button to 
be dragged around the panel, but I don't want the button to be dragged out of 
the panel?

Here is my code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
mx:Script
![CDATA[
import mx.controls.Button;
private function Init():void
{
var b:Button = new Button()
b.label = Testing;
b.addEventListener(MouseEvent.MOUSE_DOWN, 
this.StartDrag);
b.addEventListener(MouseEvent.MOUSE_UP, 
this.StopDrag); 
this.mePanel.addChild(b);
}

private function StartDrag(e:Event):void
{
e.currentTarget.startDrag();
}
private function StopDrag(e:Event):void
{
e.currentTarget.stopDrag();
}
]]
/mx:Script
mx:Panel id=mePanel width=50% height=50% 
creationComplete=Init();

/mx:Panel
/mx:Application

I have done drag and drop before adding items from something to another, but 
not sure how to keep it in the same panel.

Thank for the help,
timgerr



Re: [flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Laurence MacNeill
At 12:51 PM 2/11/2010, you wrote:


You need to make your superiors aware of the PCI Compliance regulations.

You're not actually breaking the law, but you may be breaking your 
contract with your merchant provider. I read all 80+ pages or so of 
my merchant account contract. Someone at your company should do the 
same to make sure that your development practices are in compliance.

I will definitely be bringing this to their attention.  Thanks.

L.



[flexcoders] A framework to help with busines apps?

2010-02-11 Thread Nick Middleweek
Hi,

Are there any frameworks/ methods of working/ general thoughts on how to
design business applications.

By this I mean best practices to load a flex app, show a login screen,
display a search screen, get data, show results, double click to view detail
form, etc...

I realise we can use Cairngorm, MATE, etc for the overall event mamagement
but what about defining those events or having a naming convention or
approach to follow? Does one exist?

My background is 4D DB (www.4d.com) and there are great ways to work and
certain events are good for loading data, related data in sub screens. I'm
not trying to replacte 4D within Flex because architectural it's different
but I guess every developer is faced with similar issues and to overcome the
same hurdles and was hoping there are some good practices out there I can
follow...


Thanks for reading...

Nick


Re: [flexcoders] Credit Card number encryption

2010-02-11 Thread Lee Jenkins
Laurence MacNeill wrote:
  
 
 At 09:35 AM 2/11/2010, you wrote:
  
  
  As far as I am aware you aren't allowed to store credit card numbers
  yourself without a weekly security audit from the card issuer...
 
 Do what?! I've never heard of this... If that's the case, then the
 company I work for has been breaking the law for YEARS! We store CC
 data (encrypted, of course) in our current database so that if a
 customer changes their mind, we don't have to reacquire the CC info
 from them to charge (or refund) their account.
 
 In the Flex app that I'm writing, the plan is to continue to do the
 same thing...
 

My understanding is that PCI Compliance is not yet necessary for in-house 
products.

--
Warm Regards,

Lee


[flexcoders] Re: LocalConnection has me really confused

2010-02-11 Thread djhatrick
Anybody anybody??! I am on mac, and localConnections is not working between 
flash and air. Connections stay open, and my desktop client doesn't receive a 
connection from my browser.  

See, if navigateToURL posted it's params, I wouldn't be here. Any reason why 
navigateToURL doesn't post variables properly, although the documentation would 
lead you to believe it does.  My use-case requirement is straight forward, you 
click on a button in my air app, and automatically you are logged into the 
flash app.  

Any ideas?  What to do? I can't satisfy my requirements until I can get past 
this hurdle.


Thanks,
Patrick

--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 Has anybody successfully got air and a flash app in the browser to working?
 
 
 
 --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote:
 
  Alex,
  
  yes, I did, localConnection has some problems in flash 10, connections stay 
  open, and the api is unreliable at best.
  
  Unfortunately, I am trying to bridge air-browser app integration
  
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Did you use _ as described here? 
   http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_4.html
   
   
   On 1/15/10 3:51 PM, djhatrick djhatrick@ wrote:
   
   
   
   
   
   
   I can't get localConnection working with flashplayer and the air app.  Is 
   this going to be fixed in 10.1.  I'm into about 5 hours of trying to make 
   this to work and getting nowhere.
   
   I've read about connections staying open, but have yet to send anything 
   successfully between flash and air.
   
   Thanks, please fix tomorrow ;P
   Patrick
   
   
   
   
   
   
   --
   Alex Harui
   Flex SDK Team
   Adobe System, Inc.
   http://blogs.adobe.com/aharui
  
 





RE: [flexcoders] TileList performance

2010-02-11 Thread Philip Smith

Thanks. Where can I download SuperImage?

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 10 Feb 2010 17:10:41 -0800
Subject: Re: [flexcoders] TileList performance


















 



  



  
  
  


Also, if you are scrolling, images will get reloaded and a caching image 
component like SuperImage can help smooth things out.





On 2/10/10 4:03 PM, Philip Smith loudj...@hotmail.com wrote:




 

 

 

   



Thanks. We realized we were using massive images (and resizing), performance 
has increased substantially with the correct image size.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Wed, 10 Feb 2010 14:50:25 -0800

Subject: Re: [flexcoders] TileList performance



 

 

 

   Use the performance profiler to see where things are taking too much time.  
Make sure your images are tuned to their display size and embed them if you 
know what they are going to be.





On 2/10/10 11:31 AM, method_air loudj...@hotmail.com http://hotmail.com  
wrote:





 

 

 

   



Are there any TileList optimization tips? Performance seems slow and choppy 
even with a small number of images and a fast machine. 



I would like to utilize this component but the client is currently dissatisfied 
with it's performance. 



Do better performing solutions exist (that also utilize the Flex Framework?



Thank you,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

RE: [flexcoders] TileList performance

2010-02-11 Thread Philip Smith

Found the link. Thank you.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 11 Feb 2010 19:11:37 +
Subject: RE: [flexcoders] TileList performance


















 



  



  
  
  


Thanks. Where can I download SuperImage?


To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 10 Feb 2010 17:10:41 -0800
Subject: Re: [flexcoders] TileList performance


















 



  



  
  
  


Also, if you are scrolling, images will get reloaded and a caching image 
component like SuperImage can help smooth things out.





On 2/10/10 4:03 PM, Philip Smith loudj...@hotmail.com wrote:




 

 

 

   



Thanks. We realized we were using massive images (and resizing), performance 
has increased substantially with the correct image size.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Wed, 10 Feb 2010 14:50:25 -0800

Subject: Re: [flexcoders] TileList performance



 

 

 

   Use the performance profiler to see where things are taking too much time.  
Make sure your images are tuned to their display size and embed them if you 
know what they are going to be.





On 2/10/10 11:31 AM, method_air loudj...@hotmail.com http://hotmail.com  
wrote:





 

 

 

   



Are there any TileList optimization tips? Performance seems slow and choppy 
even with a small number of images and a fast machine. 



I would like to utilize this component but the client is currently dissatisfied 
with it's performance. 



Do better performing solutions exist (that also utilize the Flex Framework?



Thank you,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
Do you want a Hotmail account? Sign-up now - Free




 









  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
That is unequivocally wrong.

However, depending what you're doing there are different levels of Compliance.  
Since you are storing credit cards; I thought you get bumped up to the highest 
level of compliance.

 DotComIt ( Flextras ) does a self assessment questionnaire and a quarterly web 
site scan to remain compliant.  We store no CC info.   

 PCI Compliance issues also directed some of our development decisions.  For 
example, credit card info is never displayed to the screen even in receipts.  
When in memory, it encrypted; I believe using a session specific key.  When a 
purchase is complete the CC info is deleted from memory, thus minimizing the 
amount of time our server touches the CC info.  

--- In flexcoders@yahoogroups.com, Lee Jenkins l...@... wrote:

 Laurence MacNeill wrote:
   
  
  At 09:35 AM 2/11/2010, you wrote:
   
   
   As far as I am aware you aren't allowed to store credit card numbers
   yourself without a weekly security audit from the card issuer...
  
  Do what?! I've never heard of this... If that's the case, then the
  company I work for has been breaking the law for YEARS! We store CC
  data (encrypted, of course) in our current database so that if a
  customer changes their mind, we don't have to reacquire the CC info
  from them to charge (or refund) their account.
  
  In the Flex app that I'm writing, the plan is to continue to do the
  same thing...
  
 
 My understanding is that PCI Compliance is not yet necessary for in-house 
 products.
 
 --
 Warm Regards,
 
 Lee





Re: [flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Lee Jenkins
Jeff wrote:
  
 
 That is unequivocally wrong.

As I said, that was my understanding and it was so when the mandate was first 
released, but I assume that it was phased out in one of the steps to full 
PCI/DSS or maybe it is different for web facing models?  I'll ask my compliance 
rep next time I speak with him.  Thanks for the heads up.

 However, depending what you're doing there are different levels of 
 Compliance. Since you are storing credit cards; I thought you get bumped 
 up to the highest level of compliance.
 
 DotComIt ( Flextras ) does a self assessment questionnaire and a 
 quarterly web site scan to remain compliant. We store no CC info.
 
 PCI Compliance issues also directed some of our development decisions. 
 For example, credit card info is never displayed to the screen even in 
 receipts. When in memory, it encrypted; I believe using a session 
 specific key. When a purchase is complete the CC info is deleted from 
 memory, thus minimizing the amount of time our server touches the CC info.
 

I write point of sale software and with the exception of documentation issues 
and other issues unrelated to the software itself, it has been functionally 
compliant well before the mandate was released.  That has made our own 
compliance process easier.

Frankly, I could never understand why a developer writing any application like 
that would not do the minimum steps to secure data.

--
Warm Regards,

Lee


[flexcoders] Re: Credit Card number encryption

2010-02-11 Thread Jeff
I know the mandates have gotten stricter after they have been released.  It 
sounds like you've been dealing with it longer than I have.

Without a doubt a lot of compliance issues have very little to do with coding, 
but rather relate to administrative type of issues for how data is handled and 
stored.

If you're writing and selling POS software; but not actually using that 
software itself,your steps to create PCI compliant software will be a lot 
simpler than the company who buys an uses your software.  

--- In flexcoders@yahoogroups.com, Lee Jenkins l...@... wrote:

 Jeff wrote:
   
  
  That is unequivocally wrong.
 
 As I said, that was my understanding and it was so when the mandate was first 
 released, but I assume that it was phased out in one of the steps to full 
 PCI/DSS or maybe it is different for web facing models?  I'll ask my 
 compliance 
 rep next time I speak with him.  Thanks for the heads up.
 
  However, depending what you're doing there are different levels of 
  Compliance. Since you are storing credit cards; I thought you get bumped 
  up to the highest level of compliance.
  
  DotComIt ( Flextras ) does a self assessment questionnaire and a 
  quarterly web site scan to remain compliant. We store no CC info.
  
  PCI Compliance issues also directed some of our development decisions. 
  For example, credit card info is never displayed to the screen even in 
  receipts. When in memory, it encrypted; I believe using a session 
  specific key. When a purchase is complete the CC info is deleted from 
  memory, thus minimizing the amount of time our server touches the CC info.
  
 
 I write point of sale software and with the exception of documentation issues 
 and other issues unrelated to the software itself, it has been functionally 
 compliant well before the mandate was released.  That has made our own 
 compliance process easier.
 
 Frankly, I could never understand why a developer writing any application 
 like 
 that would not do the minimum steps to secure data.
 
 --
 Warm Regards,
 
 Lee





[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-11 Thread valdhor
You could try just adding the bin-debug folder to the trusted locations at 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

--- In flexcoders@yahoogroups.com, s_hernandez01 s_hernande...@... wrote:

 Okay well, thanks everyone for your help, but I got too frustrated with 
 figuring it out so my last resort is just have to upload my php files to the 
 server and call them with a url so I don't get the sandbox error with testing 
 them locally.  This sucks that I get the error locally, I hope Flash Builder 
 works this out when released.  Thanks again.
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Timing is important, and so is configuration.  If you launch the app via 
  file:// then you need the put the folder in the FlashPlayerTrust file(s).  
  If you are launching the app via http:// then you need a crossdomain.xml 
  file on the root of www.MyDomainName.com and make sure it gets loaded 
  before the request for the image.
  
  I've never bothered to figure out when you have to use a LoaderContext and 
  when the player will automatically look for crossdomain.xml.  It might be 
  documented in the security whitepapers on the Adobe sight
  
  
  On 2/10/10 2:36 PM, s_hernandez01 s_hernandez01@ wrote:
  
  
  
  
  
  
  Yup tried that and no luck either.  I even tried using
  
  Security.loadPolicyFile(http://www.MyDomainName.com/crossdomain.xml;);
  
  to push it to the flash player since I put the * in the cross domain and 
  still keep getting the error.
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Adnan Doric astronaute@ wrote:
  
   On 10/02/2010 23:14, s_hernandez01 wrote:
Well, I'm using Flex 3 and the sandbox error pops up when I run it
from Flex.
   URL should be file:///something if you want it to work.
  
   You can also try to put a * in your crossdomain.xml and start from
   there if it works.
  
  
  
  
  
  
  
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 





[flexcoders] Re: ArrayCollection, addAll and Refresh

2010-02-11 Thread valdhor
This looks like a bug in the ListCollectionView.as file. If you'd like, you can 
monkey patch this code to work.

The bug is at line 529:
this.addItemAt(addList.getItemAt(i), i+index);

should be:
list.addItemAt(addList.getItemAt(i), i+index);

I figured this out from the addItemAt function.

If you don't know how to monkey patch Flex code, this is how I did it:
-Find out the package directory from the package line (In this case 
mx.collections).
-Create the directories as per this line (In this case create a directory mx in 
your src directory. In this directory create a directory named collections).
-Inside the directory create an ActionScript file with the same name as the 
file you are monkey patching (In this case ListCollectionView.as).
-Copy and paste all the code from the original file into this new file.
-Change this new file as you see fit. When Flex compiles your code will be 
included instead of the framework code.

You should file a bug with the fix.

--- In flexcoders@yahoogroups.com, johncch85 john...@... wrote:

 I understand that ArrayCollection.addAll was added in flex sdk 3.4. I'm 
 coding a simple application and I'm hitting this problem. I would like to ask 
 if anyone knows what's happening:
 
 Here's the source, just a simple mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 creationComplete=creationComplete()
   mx:Script
   ![CDATA[
 import mx.collections.ArrayCollection;
   private var a:Array = [
   { key: a, value: b },
   { key: a, value: b },
   { key: a, value: x },
   { key: a, value: b }
   ];
   
   private var b:Array = [
   { key: b, value: c },
   { key: b, value: x },
   { key: b, value: c },
   { key: b, value: c }
   ];
   
   private var c:Array = [
   { key: d, value: x },
   { key: d, value: e },
   { key: d, value: e },
   { key: d, value: e }
   ];
   
   [Bindable] public var xx:ArrayCollection = new 
 ArrayCollection();
   
   public function creationComplete():void {
   var i:int;
   xx.filterFunction = filter;
   xx.addAll(new ArrayCollection(a));
   /*for (i = 0; i  a.length; i++) {
   xx.addItem(a[i]);
   }*/
   trace(Refresh is  + xx.refresh());
   xx.addAll(new ArrayCollection(b));
   /*for (i = 0; i  b.length; i++) {
   xx.addItem(b[i]);
   }*/
   trace(Refresh is  + xx.refresh());
   xx.addAll(new ArrayCollection(c));
   /*for (i = 0; i  c.length; i++) {
   xx.addItem(c[i]);
   }*/
   trace(Refresh is  + xx.refresh());
   }
   
   private function filter(item:*):Boolean {
   if (item.value == x) return false;
   return true;
   }
   
   ]]
   /mx:Script
   mx:DataGrid id=dg dataProvider={xx}/mx:DataGrid
 /mx:Application
 
 When I compile and run I get:
 
 RangeError: Index '5' specified is out of bounds.
 
 What I'm doing basically is to add some random array of objects into an 
 ArrayCollection binded to the DataGrid. And because there is a filter 
 function associated with the ArrayCollection, I call refresh() every time 
 something is added. The original use case is that this is like a drop object 
 method for the datagrid, so it's possible for it to be called multiple times.
 
 I'm just curious why is this happening. Is this the desired behaviour? I'll 
 look into the source code later when I'm free, but this is just to get a 
 general feeling of the problem.





[flexcoders] Re: A security question...

2010-02-11 Thread valdhor

Sorry, I have no idea. Maybe someone who uses ColdFusion can chime in here.



Re: [flexcoders] Re: A security question...

2010-02-11 Thread Jochem van Dieten
On 2/11/10, Laurence MacNeill wrote:
 So that works for PHP...  What if I'm using ColdFusion?  Would it be:
 amfChannel = new AMFChannel(my-secure-amf, 
 https://myserver.com/myappdirectory/cfcs/dao/paymentsDAO.cfc );

mx:RemoteObject
destination=ColdFusion
id=retrieveData
source=nl.prismait.package.CFCName
showBusyCursor=true

mx:channelSet
mx:ChannelSet
mx:SecureAMFChannel 
uri=https://servername/flex2gateway/; /
/mx:ChannelSet
/mx:channelSet
/mx:RemoteObject

And in the corresponding services-config.xml:
destination id=ColdFusion
channels
channel ref=my-cfamf-secure/
/channels
properties

/properties
/destination

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/


[flexcoders] Re: ExternalInterface : debugging, DOM, Export Release Build

2010-02-11 Thread Netaman
I make changes in the html-template directory in the file index.template.html 
in flex 3 these changes do not get overridden when added to the html wrapper, 
remember to do a clean then build. 

Randy

--- In flexcoders@yahoogroups.com, Tim Romano tim.rom...@... wrote:

 My browser-deployed Flex app, built in FB4, is using the 
 ExternalInterface. The Flex app gets some search terms from the user, 
 goes out to a webservice for some data, and then pushes some html markup 
 out to a DIV in the HTML document using the ExternalInterface.call() 
 method.
 I send the content across the bridge as a parameter to javascript 
 function that appends a child to the target DIV. Nice and simple with 
 the EI. However, I have a couple of questions about the logistics of 
 developing this sort of application in FlashBuilder.
 
 When Export Release Build is chosen from the Project menu in FB4, it 
 destroys and recreates the HTML deployment wrapper for the SWF. Is there 
 any way for the developer to provide an HTML document template to FB, 
 marked up with comments/metadata tags, such that only the Adobe 
 browser-sniffing code and SWF-embed code gets overwritten but the rest 
 of the HTML document (the user-portion) remains intact?
 
 Also, is it possible to set up a project in FB4 that uses the 
 ExternalInterface, where you can step through code in the debugger and 
 also see pushed content being rendered in the HTML document hosting the 
 SWF?  In debug mode it seems not possible to work with your actual HTML 
 host document and its javascript functions-- or am I missing something 
 obvious? I am pretty new to FB and that could easily be the case.
 
 Finally, will future versions of the ExternalInterface expose the DOM of 
 the hosting document via ActionScript object wrappers?
 
 Thanks





Re: [flexcoders] Build UICompenent Widgets, add drag and drop, keep widgets within Panel

2010-02-11 Thread Alex Harui
I recently posted a way to constrain drag/drop on my blog


On 2/11/10 10:11 AM, timgerr tgallag...@danati.com wrote:






Hello all,
I have this panel that I have a button in.  I add the ability for the button to 
be dragged around the panel, but I don't want the button to be dragged out of 
the panel?

Here is my code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
mx:Script
![CDATA[
import mx.controls.Button;
private function Init():void
{
var b:Button = new Button()
b.label = Testing;
b.addEventListener(MouseEvent.MOUSE_DOWN, this.StartDrag);
b.addEventListener(MouseEvent.MOUSE_UP, this.StopDrag);
this.mePanel.addChild(b);
}

private function StartDrag(e:Event):void
{
e.currentTarget.startDrag();
}
private function StopDrag(e:Event):void
{
e.currentTarget.stopDrag();
}
]]
/mx:Script
mx:Panel id=mePanel width=50% height=50% creationComplete=Init();

/mx:Panel
/mx:Application

I have done drag and drop before adding items from something to another, but 
not sure how to keep it in the same panel.

Thank for the help,
timgerr






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Another security question...

2010-02-11 Thread Laurence MacNeill
With all this talk about security, I figured now was the time to get 
SSL running on my Windows Server 2003 computer...

I'm sure that others here have dealt with this before -- so although 
it's not specifically a Flex topic, I'd imagine it'd be of interest 
to enough members that my posting this here won't be totally 
offensive to everyone.

Anyway -- I installed Certificate Services from the Add/Remove 
Programs on the Control Panel.  That seems to have completed successfully.

I've completed the steps in IIS to 'request a certificate' -- saved 
the request to a file on my desktop.

Now, the next step is supposed to be going to 
'http://localhost/CertSrv' and creating a new certificate from my 
.txt file that contains the saved request.  But when I browse to that 
page, it says 404 Page Not Found.

I've checked all the usual suspects -- IIS shows that CertSrv is a 
valid page, all the proper .ASP files are in there, ASP services are 
enabled on my IIS server, at a command prompt 'certutil -vroot' says 
all the virtual pages and directories are properly installed...   I'm 
just at a complete loss as to why my browser can't find the CertSrv 
page...  Heck -- I even re-booted the computer, just in case that was it.

Anyone dealt with this before?  Got any tips?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



Re: [flexcoders] Module Memory Leaks

2010-02-11 Thread Alex Harui
In Flex 4, styles are “per-module” and thus much less likely to leak.  That’s 
the only change.  Everything else is the same.

Are you seeing evidence that embedded image assets are leaking?


On 2/11/10 4:24 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:






Getting modules to fully unload has been something I’ve spent (wasted?) a good 
deal of time on in the past and I’ve just finished reading with great interest, 
Alex’s article on the subject:
http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html

My question is – how much of this is resolved in Flex 4?  Because if most or 
all of the issues have been addressed, I’ll simply abandon my Flex 3 
development of module-based applications and move to Flex 4 right now, 
especially given that Flex 4’s release is imminent (early spring?).

Of particular concern is the bit in Alex’s article about unloading images and 
the fact that image assets could be loaded via Stylesheets, etc.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] FB 4 serial number?

2010-02-11 Thread Jeff Hindman
Howdy group,

 

  My FB 4 Beta is asking for a serial number . my trial has expired. How do
I go about getting one that will last me until it is finally released?

 

Thanks,

 

  --Jake

 



[flexcoders] AdvancedDataGrid Grouping with XML

2010-02-11 Thread srieger_1
OK, I have made some progress on this issue but still unable to resolve it 
completely.  It's getting embarrassing already. . . .  I am trying to use some 
XML that I get from an application to feed an advanceddatagrid where I can 
group the entries.

you can see the xml file when viewing the source code at the demo. . .

I have a demo with view source here :  
http://estar.lmsnet.com/lmsdev/testgrouping.html

 

I am trying to group the entries by Category then display the path and file 
name when the category is expanded. I cannot believe I can't figure this out.  
I am hoping there are some XML folks out there that can offer some advice .

 

Thanks in advance for any help you can offer.

 

STeveR



[flexcoders] Re: A security question...

2010-02-11 Thread jp...@pacbell.net
Well, yes, you can encrypt in the flex client, but in order to decrypt on the 
server, you will need to share the *key*. If the decryption key is in the Flex 
client, then your same man-in-the-middle will be able to obtain your swf, 
decompile it can find the decryption key; even if you keep the decryption key 
in the server, a man-in-the-middle can create their own encrypted messages 
(which may cause you some problems) or have plenty of information to work on 
reverse engineer (crack) the encryption keys.

The value of SSL is that the 'working keys' are exchanged dynamically, inside a 
carefully constructed tunnel, and with the public-key certificate so you have 
assurance that your client is talking via a clear channel to your DNS-named 
server. (assuring that any man-in-the-middle cannot participate in the key 
exchange; and so cannot decode your transactions)

So: if you want *security* versus anything that smells like convenience or 
slightly lower bandwidth or slightly less computation; then Yes, you will 
want to build a complete SSL connection. If you really want the rest of your 
app to not use SSL, that *should* be possible by specifying  http: urls for 
those.  I'm not an expert on all the options in the flash/flex runtime or how 
to configure that, but I can state with complete confidence that there are no 
good/reliable shortcuts to security; use SSL/TLS.





[flexcoders] Initial sort on computed column

2010-02-11 Thread Richard Rodseth
I'm thoroughly confused by the DataGrid sorting stuff.
Is there a recipe for sorting initially on a column which has a computed
value in it?

Some code I inherited is doing this by overriding the dataprovider setter
and calling

if (sortEventCounts  value is ArrayCollection 
configuration.eventCount) {
ArrayCollection(value).source.sort(eventCountSort,
Array.DESCENDING);

ArrayCollection(value).addEventListener(CollectionEvent.COLLECTION_CHANGE,
function (event:Event=null):void {
ArrayCollection(value).source.sort(eventCountSort,
Array.DESCENDING);
});
}

Possibly unrelated to the above, but when I make some other (computed)
columns sortable (with associated compare functions), I get the dreaded
Find criteria must contain at least one sort field value when I click on
the event count column affected by the above. Removing the explicit sort
above gets rid of this error.

The documentation talks about creating a Sort() object and assigning it to
the ArrayCollection's sort property, but when I tried that (setting its
compare function rather than the fields array)  instead of the above, the
column did sort initially, but I still got the error on clicking the column.


Any pointers?


Re: [flexcoders] A security question...

2010-02-11 Thread Warren
You can and (i think) should do both.

In my world of flex 3, I have created a secure destination (and channel) in the 
Flex services-config.xml file and use this for my remote object connection.  I 
can post it if you like.

Warren Koch


  - Original Message - 
  From: Laurence 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, February 10, 2010 8:18 PM
  Subject: [flexcoders] A security question...



  So, let's say I have a mx:RemoteObject in my program... I want it to 
communicate with the server via SSL, or some other method whereby the 
credit-card numbers it sends to-and-from the server are encrypted.

  Here's how it's structured currently:
  mx:RemoteObject id=roPaymentInfo destination=ColdFusion
  showBusyCursor=true source={'cfcs.dao.PaymentsDAO'}
  mx:method name=getPayments result=roGetPaymentsResultHandler(event) 
fault=roFaultHandler(event)/
  mx:method name=addPayment result=roAddPaymentResultHandler(event) 
fault=roFaultHandler(event)/
  /mx:RemoteObject

  Do I have to make my entire program secure via an https:// in the URL, or is 
there a way to encrypt just that one mx:RemoteObject? If there is a way to 
secure just the one object, how is that done?

  Thanks,
  Laurence MacNeill
  Mableton, Georgia, USA



  

[flexcoders] Re: Clearing datasource for ADG/ArrayCollection/ Getting unwanted Duplicates

2010-02-11 Thread charliecrystle
bump

--- In flexcoders@yahoogroups.com, charliecrystle charlie.crys...@... wrote:

 Hi--I populate an ADG from a SQLite database. Works great. 
 
 But I when I add a record, I want to repopulate the ADG with the data I just 
 added, so I call the query function again, populate the ArrayCollection with 
 result.data, and refresh the ADG. 
 
 My AC is goalsAC. I tried goalsAC.removeAll(), but that doesn't work 
 (reported bug, apparently). 
 
 Here's the relevant code--you can see I'm trying anything to clear out the 
 arraycollection. Doesn't do the job:
 
  gc.source=null; //gc is the MXML group collection in the ADG
  goalsAC.source=new Array(); //goalsAC is the arraycollection
  goalsAC=null;
  goalsAC=new ArrayCollection(result.data)//result.data is SQLResults
 
 if (result.data != null)
  {var numRows:int = result.data.length;
 for (var i:int = 0; i  numRows; i++) 
   {
   var row:Object = goalsAC.source[i];
   goalsAC.addItem(row); //adding rows from the 
   }
}
 
 can anyone help? thanks!





[flexcoders] Re: Best practices regarding XML to VO conversion

2010-02-11 Thread jc_bad28
Here is how I convert XML from a SOAP web service into a VO.

The VO Class:
package vo
{
[Bindable]
public class Product
{
public var ID:String;
public var Category:String;
public var Price:String;
public var Name:String;

public function 
Product(_ID:String,_Category:String,_Price:String,_Name:String)
{
this.ID=_ID;
this.Category=_Category;
this.Price=_Price;
this.Name=_Name;
}
}
}


The web service result handler and namespace stripper:

private function wsProductsResult(event:ResultEvent):void
 {
var xmlResult:XMLList = event.result as XMLList;
var xmlSource:String = xmlResult.toString();

//Strip namespace
xmlSource = xmlSource.replace(/[^!?]?[^]+?/g, removeNamspaces);
xmlResult = XMLList(xmlSource);

//wrap XMLList in XMLListCollection
var productsXmlc:XMLListCollection = new 
XMLListCollection(xmlResult.children());   
var productsAC:ArrayCollection = new ArrayCollection();
//Cast xml element items into array of value objects
for(var i:int=0;iproductsXmlc.length;i++)
{
var productTemp:Product = new Product(
productsXmlc.getItemAt(i)..ID,
productsXmlc.getItemAt(i)..Category,
productsXmlc.getItemAt(i)..Price,
productsXmlc.getItemAt(i)..Name);

productsAC.addItem(productTemp);
}
//Bind ArrayCollection to Custom Component  
dgProducts.dg.dataProvider=productsAC;
 }
 
 public function removeNamspaces(...rest):String
{
rest[0] = rest[0].replace(/xmlns[^]+\[^]+\/g, );
var attrs:Array = rest[0].match(/\[^]*\/g);
rest[0] = rest[0].replace(/\[^]*\/g, %attribute value%);
rest[0] = rest[0].replace(/(\/?|\s)\w+\:/g, $1);
while (rest[0].indexOf(%attribute value%)  0)
{
rest[0] = rest[0].replace(%attribute value%, attrs.shift());
}
return rest[0];
}


--- In flexcoders@yahoogroups.com, W.R. de Boer w...@... wrote:

 Hello,
 
 I am having a question what the best approach is to convert existing XML data 
 to a object graph of value objects. I have spend quite some time to fix a 
 memory leak in my existing parsing practice and I am curious how others solve 
 this problem.
 
 My common approach is to create a class such as EventReader and 
 EventItemReader class which is responsible for the parsing of the specific 
 XML element and return the appropriate value object. But somehow this code is 
 leaking like a mad dog (200kb per time) while the XML file is only 16kb. Now 
 I have currently rewritten it so that just using simple strong typed objects. 
 
 But I would love to find out what I am doing wrong in my current approach and 
 how to solve it. Because it makes it easier to reuse the parsing code/logic. 
 
 For example, normally, I use the approach of creating a public class with a 
 few public variables like this:
 
public class EventItemVO {
   public var eventDate: Date;
   public var eventName: String;
   public var location: String;
}
 
 and then I am having code like this to parse it:
 
 try {
   var xml: XML = new XML( loaderContent );
var parser: EventItemXMLReader = new EventItemXMLReader( xml );
parser.parse();
 } catch (e: Error) {
   trace(Error occured while parsing);
 } finally {
  parser = null;
  xml = null;
 }
 
 in the EventItemXMLReader-class I then return an instance of the 
 EventItemVO-class
 
 Somehow this leaks and while I do the same stuff in the onComplete-handler of 
 the Loader and do:
 array.push( {eventDate:date, eventName:name, location:location} );
 
 The memory leak disappears. I would expect their is some reference kept alive 
 but I am having a hard-time finding the reference which keeps it from garbage 
 collecting it all.
 
 How do you parse XML and convert it in value objects?
 
 Yours,
 Weyert de Boer





Re: [flexcoders] Initial sort on computed column

2010-02-11 Thread Alex Harui
Also assign the sortCompareFunction to the column.


On 2/11/10 5:07 PM, Richard Rodseth rrods...@gmail.com wrote:






I'm thoroughly confused by the DataGrid sorting stuff.
Is there a recipe for sorting initially on a column which has a computed value 
in it?

Some code I inherited is doing this by overriding the dataprovider setter and 
calling

if (sortEventCounts  value is ArrayCollection  
configuration.eventCount) {
ArrayCollection(value).source.sort(eventCountSort, 
Array.DESCENDING);

ArrayCollection(value).addEventListener(CollectionEvent.COLLECTION_CHANGE, 
function (event:Event=null):void {
ArrayCollection(value).source.sort(eventCountSort, 
Array.DESCENDING);
});
}

Possibly unrelated to the above, but when I make some other (computed) columns 
sortable (with associated compare functions), I get the dreaded
Find criteria must contain at least one sort field value when I click on the 
event count column affected by the above. Removing the explicit sort above gets 
rid of this error.

The documentation talks about creating a Sort() object and assigning it to the 
ArrayCollection's sort property, but when I tried that (setting its compare 
function rather than the fields array)  instead of the above, the column did 
sort initially, but I still got the error on clicking the column.

Any pointers?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Initial sort on computed column

2010-02-11 Thread Richard Rodseth

It is.

Sent from my iPhone

On Feb 11, 2010, at 9:30 PM, Alex Harui aha...@adobe.com wrote:


Also assign the sortCompareFunction to the column.


On 2/11/10 5:07 PM, Richard Rodseth rrods...@gmail.com wrote:







I'm thoroughly confused by the DataGrid sorting stuff.
Is there a recipe for sorting initially on a column which has a  
computed value in it?


Some code I inherited is doing this by overriding the dataprovider  
setter and calling


if (sortEventCounts  value is ArrayCollection   
configuration.eventCount) {
ArrayCollection(value).source.sort 
(eventCountSort, Array.DESCENDING);
ArrayCollection(value).addEventListener 
(CollectionEvent.COLLECTION_CHANGE, function (event:Event=null):void {
ArrayCollection(value).source.sort 
(eventCountSort, Array.DESCENDING);

});
}

Possibly unrelated to the above, but when I make some other  
(computed) columns sortable (with associated compare functions), I  
get the dreaded
Find criteria must contain at least one sort field value when I  
click on the event count column affected by the above. Removing the  
explicit sort above gets rid of this error.


The documentation talks about creating a Sort() object and assigning  
it to the ArrayCollection's sort property, but when I tried that  
(setting its compare function rather than the fields array)  instead  
of the above, the column did sort initially, but I still got the  
error on clicking the column.


Any pointers?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui



Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-11 Thread ZIONIST
hi Valdhor i sent the self contained app to your email. hope you got it.



Re: [flexcoders] Initial sort on computed column

2010-02-11 Thread Alex Harui
I also noticed your code snippet did not call refresh()


On 2/11/10 9:32 PM, Richard Rodseth rrods...@gmail.com wrote:






It is.

Sent from my iPhone

On Feb 11, 2010, at 9:30 PM, Alex Harui aha...@adobe.com wrote:




Also assign the sortCompareFunction to the column.


On 2/11/10 5:07 PM, Richard Rodseth rrods...@gmail.com wrote:






I'm thoroughly confused by the DataGrid sorting stuff.
Is there a recipe for sorting initially on a column which has a computed value 
in it?

Some code I inherited is doing this by overriding the dataprovider setter and 
calling

if (sortEventCounts  value is ArrayCollection  
configuration.eventCount) {
ArrayCollection(value).source.sort(eventCountSort, 
Array.DESCENDING);

ArrayCollection(value).addEventListener(CollectionEvent.COLLECTION_CHANGE, 
function (event:Event=null):void {
ArrayCollection(value).source.sort(eventCountSort, 
Array.DESCENDING);
});
}

Possibly unrelated to the above, but when I make some other (computed) columns 
sortable (with associated compare functions), I get the dreaded
Find criteria must contain at least one sort field value when I click on the 
event count column affected by the above. Removing the explicit sort above gets 
rid of this error.

The documentation talks about creating a Sort() object and assigning it to the 
ArrayCollection's sort property, but when I tried that (setting its compare 
function rather than the fields array)  instead of the above, the column did 
sort initially, but I still got the error on clicking the column.

Any pointers?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui