Re: DataGrid of mx.controls package

2014-02-25 Thread Kouichi Iida
Thank you It is a little heavy-handed, but was able to achieve ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; import

Getting font transcoding error with 4.12 RC2

2014-02-25 Thread Mitul Golakiya
Hello All, I had just tried 4.12 RC2 and migrated my whole app from 4.10 to 4.12 RC2 and getting font transcoding error which was running completely fine with 4.10. I found one link on which someone else also posted the same with 4.11 RC2, but he hadn't posted the solution link.

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Alexander Farber
-1 since someone can take your app, decompile it, comment/shortcircuit the IAP/DRM and compile it back - as a cracked version... Or if you use any OAuth stuff - find the secret inside the app and then use it to impersonate other users. On Thu, Feb 20, 2014 at 1:59 AM, Joseph Balderson

Datagrids and Drop Down lists

2014-02-25 Thread Avi Kessner
Hi, I'm working a spark datagrid, and I need the dropbox in column A to speak to the dropbox in Column B. Any ideas on how to do this? I made a question on stackexchange here:

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Alexander Farber
You can't keep OAuth secret or any other secrets at the server side. If you keep it there, your app needs to download it - then the attacker can do it as well. You need something secret to be at the app. And the ease of decomilation doesn't help there.

Re: Getting font transcoding error with 4.12 RC2

2014-02-25 Thread Mathieu St-Gelais
Hi. I hope the following will help you. When I switched to Flex 4.12, I had to change the src in the font-face classes of my style sheets. For a reason I didn't try to understand, the relative path had to be changed. Here's an example of what I have in my css file. I also use otf files. As you

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Tom Chiverton
On 25/02/2014 13:44, Alexander Farber wrote: And there was no way to store the OAuth app secret string on the server. And thus I know that my app is vulnerable (for impersonation of other users) and the ease of AIR decompilation doesn't help there. I think you keep insisting, that it's possible

Re: Infinite recursion in custom layout

2014-02-25 Thread MichaPooh
Actually it seems that the verticalScroll bar, which gets added or removed while resizing, produces the infinite loop in the updateDisplayList function of the layout... I find it kinda hard to debug the LayoutManager methods (they get called so often during execution) Perhaps conditional

RE: Datagrids and Drop Down lists

2014-02-25 Thread Maurice Amsellem
I think the answer from simion314 is the right approach. Regarding your question: how would I return the list of values for the selected param to the dataprovider or each row : Your need to add this logic in the MyData class, or point MyData to another class that does the computation, But in

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Alexander Farber
Hello, On Tue, Feb 25, 2014 at 3:07 PM, Tom Chiverton t...@extravision.com wrote: On 25/02/2014 13:44, Alexander Farber wrote: And there was no way to store the OAuth app secret string on the server. And thus I know that my app is vulnerable (for impersonation of other users) and the ease

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Tom Chiverton
I see, this is one of those cases where you can make a trade off isn't it ? You can do on-device no-server authentication direct to an API, but this exposes the secrets to reverse engineering. Or you can choose to mediate everything via your own server, which mitigates that issue but drives up

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Alex Harui
I think I'm missing something, but I'm certainly not an expert in this area. Where do native apps keep the app-secret if it isn't supposed to be in client-side code? -Alex On 2/25/14 8:00 AM, Tom Chiverton t...@extravision.com wrote: I see, this is one of those cases where you can make a trade

Re: Infinite recursion in custom layout

2014-02-25 Thread Alex Harui
You can try conditional breakpoints, but I usually get into the infinite loop, then set a breakpoint on updateDisplayList, then set the LayoutManager breakpoints. Any calls to those invalidation methods before updateDisplayList returns are likely causes for another round of validation, and the

Re: Getting font transcoding error with 4.12 RC2

2014-02-25 Thread Alex Harui
What was the before and after of the src path? On 2/25/14 5:53 AM, Mathieu St-Gelais mathieu.stgel...@gmail.com wrote: Hi. I hope the following will help you. When I switched to Flex 4.12, I had to change the src in the font-face classes of my style sheets. For a reason I didn't try to

Slow view stake on Microsoft but not Mac or Chrombook

2014-02-25 Thread Scott Matheson
Hi My end users 5 of them, are telling me that on their old W7 PCs, a mixture of devices they are all seeing 20sec to 120 sec to change from one screen to the next, theses are simple viewstack changes each component in the view stack can be complex, working at the lower level changing

Re: Slow view stake on Microsoft but not Mac or Chrombook

2014-02-25 Thread Mark Line
If you have Flash builder installed you can easily check via the profiler. Change between viewstacks and try to force garbage collection within the profiler. Even doing this once will show if the previous view has been cleared up. (You might not see the memory drop straight away as the way the GC

Re: Slow view stake on Microsoft but not Mac or Chrombook

2014-02-25 Thread Alex Harui
Switching away from a ViewStack view does not destroy it. It stays around in memory so you can switch back quickly. Assuming you have enough memory, once you've visited all views, memory shouldn't grow quickly and switching should be fast. Creating stuff as you switch views is often the cause

RE: Slow view stake on Microsoft but not Mac or Chrombook

2014-02-25 Thread Scott Matheson
I should say i am using SDK 4.6 maybe time to move ? As I moved in and out of the view stack the memory goes up then droops back I can see when I change view stacks for 3 to 4 the old instance in view stack is GC, memory drops as each component in the VS is dynamic and created when i move to

Re: Event handling in Model-View-Controller

2014-02-25 Thread mark goldin
What about using event listeners? On Tue, Feb 25, 2014 at 3:47 PM, Barry Gold barrydg...@ca.rr.com wrote: I'm adjusting my game to use the model-view-controller pattern. I was already fairly close: all I had to do was move a couple of classes into a separate package for the controller, plus

Re: Event handling in Model-View-Controller

2014-02-25 Thread Justin Mclean
Hi, You might want to have a look at event bubbling that way you can have a click handler for a group of clickable objects. A better way would be to dispatch your own custom events, look up loose coupling and Flex components. Thanks, Justin

Re: Skinnable custom component

2014-02-25 Thread Mark Line
Hi Barry, I think you might be trying to run before you can walk here in the Flex world. Although kudus for trying to create an abstract class in actionscript. I'm slightly worried about your HBarButton class as you appear to be extending the Sprite class. I wouldn't recommend this unless you

RE: FlexJS Installation

2014-02-25 Thread Devesh Mishra
Hi, I tried to install Flex JS with Flash Builder 4.7 After installing, Apache Flex SDK I got some error in the log of Apache Flex SDK. Can someone help me ? [cid:image001.png@01CF32DF.0809F5C0] -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: 24 February

RE: FlexJS Installation

2014-02-25 Thread Devesh Mishra
In case image is missing, then please look into log details mentioned below. Adobe AIR SDK URL for Windows invalid in configuration file Flash Player swc URL invalid in configuration file AIR Version N Flash Player Version N From: Devesh Mishra Sent: 26 February 2014 10:40 To:

Re: Skinnable custom component

2014-02-25 Thread Barry Gold
On 2/25/2014 3:21 PM, Mark Line wrote: See here for a really basic example: https://dl.dropboxusercontent.com/u/977/SparkCustomComponentExample/SparkCustomComponentExample.html Could you provide the Flex source for that example? Flex 4 brought a lot of improvements which means you can

Re: Skinnable custom component

2014-02-25 Thread OmPrakash Muppirala
On Tue, Feb 25, 2014 at 11:10 PM, Barry Gold barrydg...@ca.rr.com wrote: On 2/25/2014 3:21 PM, Mark Line wrote: See here for a really basic example: https://dl.dropboxusercontent.com/u/977/SparkCustomComponentExample/ SparkCustomComponentExample.html Could you provide the Flex source

Data type to convert and store a srting into decimal/float value

2014-02-25 Thread ashish1703
Hi, I have been facing this issue from quite a while now. I am using mx:datagrid control with column sorting true. Since i have been using XML returned from c#(returns string for each value of xml) i want this to be handled on Flex. I have binded the dataprovider correctly but sorting for the

Re: FlexJS Installation

2014-02-25 Thread Alex Harui
A reminder that FlexJS is still a prototype. The installer is probably out of date, so I would recommend using the Ant instructions. You will need to run ant -Dfalcon.url.path=https://builds.apache.org/job/flex-falcon/lastSuccessfulBuild/artifact/out/ -f installer.xml From: Devesh Mishra

Re: Data type to convert and store a srting into decimal/float value

2014-02-25 Thread OmPrakash Muppirala
On Tue, Feb 25, 2014 at 11:19 PM, ashish1703 ashish.ya...@firmwisegroup.com wrote: Hi, I have been facing this issue from quite a while now. I am using mx:datagrid control with column sorting true. Since i have been using XML returned from c#(returns string for each value of xml) i want

Re: Air apps easily decompiled and hacked

2014-02-25 Thread Alexander Farber
Hello Alex and Tom, I am not sure, where native apps hold the app secret for the OAuth. For Facebook you can use its native Android/iOS SDKs... But for other social networks you have to use the OAuth flow. I was just trying to make the point that sometimes you don't have other options than to