[flexcoders] Flex 3 to 4 Path
Anyone know of significant gotchas when going from Flex 3 to Flex 4? Thanks, -- Warm Regards, Lee
Re: [flexcoders] Inserting Into MYSQL Table Via Air/PHP = Not Allowed?
James wrote: I'm having trouble inserting data into my mysql database tables through my air app. All the code is pretty much exactly the same as in some examples I've seen but it simply won't do it. Is this because of some sort of security restriction because the air app is on my machine and the server with my mysql database on is elsehwhere? Or is it possible to insert data via an air app? Here is the example I've been following:- I'm just starting out with Flex myself so I don't have an answer for you. However, I've been programming for quite some time and I think you'll get better responses by showing YOUR code as well or more detailed information at least to give you a better chance of getting some help :-). -- Warm Regards, Lee
Re: [flexcoders] Flex Builder won't use my changes
Rick Genter wrote: I've been building an app with Flex Builder 3. All of a sudden when I run my app using the debugger I no longer see my changes reflected. For example, I have a class where I deleted several trace() calls and added another trace() call, yet when I run the app I'm seeing the old trace() messages and not the new trace() message. Furthermore, when I put a breakpoint on the new trace() call, the debugger claims that there is no code at that breakpoint, indicating that the code has not been recompiled. I've tried cleaning the project, restarting Flex Builder and even deleting the project and re-importing it from CVS, but to no avail. Any suggestions? Are they any linked projects? If so, try cleaning them as well or clean all when asked. I had the same problem with a main project which referenced custom library folders. Seems FB has a problem keeping everything in sync. Not sure if that is your problem. -- Warm Regards, Lee
Re: [flexcoders] Flex Builder build and search functions die on Vista
Tom McNeer wrote: Very strange. Vista, 32-bit. Flex Builder 3 plug-in. Eclipse 3.4 Ganymede. Flex SDKs 3.4 and 3.5. A couple of days ago, I noticed that Flex Builder was not re-building projects before running them. I attempted to compile using Project Build Project, and nothing happened. Build Automatically also had no effect. The only way I could force a compile was by choosing Clean - each time I needed to rebuild. Then, yesterday, the Eclipse Search File function seemed to stop working when used while the Flex perspectives were active. I got 0 results on many phrases that I know to exist. These bad results persisted, whether the search was in the enclosing project or the entire workspace. Neither regular expression nor case sensitive were checked, but I made sure the case matched, anyway. So - last night, I uninstalled Flex Builder, installed a new copy of Eclipse, then re-installed Flex Builder within it. This morning, the first time I chose Build Project, it worked. But now it has stopped. I can once again only force a compile with Clean. And the search is dead again, too. I was having the build problem that you're describing. In my case, I had one project with a separate library project linked to it and it seems that flex builder gets confused with that kind of thing, at least in my circumstance. I have had a couple of other projects exhibit the same behavior and as soon as I removed the linked projects and included them in the main project (instead of linking them) I have not had to manually perform a clean in sometime in order to get FB to see the new source changes for building. -- Warm Regards, Lee
Re: [flexcoders] HTTPService return times Air vs Flash (Solved - Kinda)
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. It always turns out to be the small things. Turns out that using localhost in the url of HTTPService (or URLLoader) was the problem with Firefox. Replacing localhost with my development computer's ip address removes the delay. Judging from the status bar messages of Firefox when making a call using localhost, Firefox is resolving localhost on every request, resulting in a average (subjective) delay of 250 to 500ms before the request hits the server (which I wrote and can debug/break point). Changing the URL fed to HTTPService to using the IP address resolves the problem. -- Warm Regards, Lee
[flexcoders] HTTPService return times Air vs Flash
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
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] HTTPService return times Air vs Flash
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
Re: [flexcoders] HTTPService return times Air vs Flash
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
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
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
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
Re: [flexcoders] Flex Builder 3 - A little to be desired
Clark Stevenson wrote: Ugh i can totally appreciate your email. I have struggled pretty much constantly over the last 2 years with all kinds of problems. The more I work with this product, the more I'm convinced that it is a very buggy piece product in very core areas. All kinds of mysterious compiler issues with fragments of code not getting linked in all the time, having to perform a clean every few changes of code ,which itself takes forever if there is more than one project involved. -- Warm Regards, Lee
[flexcoders] Flex Builder 3 - A little to be desired
Hi all, Just getting started with Flex and FlexBuilder and I am unimpressed with the FB IDE (though flex and actionscript are nice to me) and was hoping someone could help me out with a couple of annoyances. 1. After working in the editor, I ALWAYS have to highlight the project node in the Flex Navigator before Run, Debug, etc buttons work or say CTRL-F11 to run my project will work. 2. My projects (different ones I've noticed this with) required that I perform a Clean from the Project Clean menu before changes will take effect many times. I've wasted literally hours trying to figure why my code is not working correctly, until a light bulb goes off and I try the Clean option at which the compiler finally links in the changes. After working with the likes of Delphi and Visual Studio, I'm very disappointed in the product if I have to in fact take these annoying steps consistently just to get my projects to compile and build correctly :-) Thanks for suggestions. -- Warm Regards, Lee