[flexcoders] Re: Comparing Array and Object, not expected results

2009-01-13 Thread andrii_olefirenko
This happens because of implicit type conversion (in this case it's more than just type conversation but it makes sense here). notice that adding another element to array leads to Ok --- In flexcoders@yahoogroups.com, Marco Catunda marco.catu...@... wrote: Hi, Why the Alert method shows

[flexcoders] Re: Write data to print stream

2008-11-04 Thread andrii_olefirenko
why not to use Printing API? --- In flexcoders@yahoogroups.com, Jackson [EMAIL PROTECTED] wrote: Hi , I am developing an AIR application.How can i write data to print stream(communicating to local printer /lpt)?... Thanks in advance. Abdul Jaleel C

[flexcoders] Re: palin text printing in flex without dialogue box.

2008-11-03 Thread andrii_olefirenko
No, it's not possible in Flex (security restriction) and I guess the same for Air, but I saw Air application that managed to programmatically click Print button using some external software (it was kiosk application) Regards --- In flexcoders@yahoogroups.com, Jackson [EMAIL PROTECTED] wrote:

[flexcoders] Re: New framework for Flex and AIR enterprise applications

2008-10-30 Thread andrii_olefirenko
It seems like a trend :) I've just posted my own framework that do the same stuff but consists of one public class only :) (dependecy injection, Spring-style AOP , asynchronous command chaining etc) Check it out http://code.google.com/p/ctx/ --- In flexcoders@yahoogroups.com, dev.apostiglioni

[flexcoders] Re: How to Embed an Application that Supports Deep-Linking?

2008-10-30 Thread andrii_olefirenko
does your page (that one you're trying embed into) have any other flash movies? Regards, Andrii --- In flexcoders@yahoogroups.com, Alexander Baetz [EMAIL PROTECTED] wrote: Hi, for Training i developed an application that uses the Flex 3 Deeplinking-Mechanism. I used the Flex Builder and

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread andrii_olefirenko
i've tried your example and didn't notice any memory leakage. anyway, why do you need to create components and remove them, and create again the same components? It looks like you made up an artificial problem for yourself :) --- In flexcoders@yahoogroups.com, e_baggg [EMAIL PROTECTED] wrote:

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread andrii_olefirenko
@yahoogroups.com, andrii_olefirenko andriyo@ wrote: i've tried your example and didn't notice any memory leakage. anyway, why do you need to create components and remove them, and create again the same components? It looks like you made up an artificial problem for yourself

[flexcoders] Re: Equivalent to Java's Class.isInstance(Object) instance method?

2008-10-26 Thread andrii_olefirenko
obj is cls - it works for me, no compile error (Flex SDK 3). --- In flexcoders@yahoogroups.com, Mark Carter [EMAIL PROTECTED] wrote: I don't think that works when I have a variable of Class type. public static function isObjectInstanceOfClass(obj:Object, cls:Class):Boolean { return

[flexcoders] Re: Ant tasks and spaces in paths?

2008-07-14 Thread andrii_olefirenko
use double quotes () when defining and parameters. At least it works for Windows and btw Flex and Flex Ant tools are free :) --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Can't really do either, as it comes from ${basedir} There are a few areas where Flex is

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread andrii_olefirenko
you always could compare points using distance between them Point.distance(p1,p2) tolerance --- In flexcoders@yahoogroups.com, fumeng5 [EMAIL PROTECTED] wrote: Hi, I'm trying to compare 3 points but because of double precision in AS3 i'm running into some issues with trailing digits causing

[flexcoders] Re: Float number calculation in AS3

2008-07-14 Thread andrii_olefirenko
i think it's not the bug of AS3 or Flex but processor, and this quite fundamental so this is a feature not a bug :) use rounding to arbitrary precision (it's what other languages do) and for finance calculations it's better to use integers and modular arithmetic, i guess --- In

[flexcoders] Re: Flex blog topics - what should I write about?

2008-07-13 Thread andrii_olefirenko
hi, just one piece of advice - google for your next blog's subject before posting to see if it's already widely known. I read many blogs and 90% of the bloggers just rediscovering a bicycle again. (though they do write something interesting in the rest 10% so i'm still reading them :)) --- In

[flexcoders] Re: Why does IE7 display # for tab title?

2008-07-13 Thread andrii_olefirenko
is it deeplinking stuff? try to turn off history support in compiler's properties --- In flexcoders@yahoogroups.com, paulbohnenkamp [EMAIL PROTECTED] wrote: In IE7 I see the tab title appears with the correct logo but a label of simply # . In Firefox the tab is correctly labeled. In the

[flexcoders] Re: Compiling CSS to SWF on server

2008-03-29 Thread andrii_olefirenko
i think you would need access to compiler java api to do that. start with creating VirtualLocalFile, generate a dummy class file with all those [Embedded] for uploaded fonts, and compile it using Flex Compiler API. You don't need command line tools for this. Andrii Olefirenko --- In

[flexcoders] Re: Excel type dataGrid

2008-03-11 Thread andrii_olefirenko
Hi, i did i didn't use DataGrid though, i needed more than just frozen columns so i went with my own implementation of spreadsheet component. If you need only frozen first column, you could fake it by placing second grid on the left side, which would hold only one column (kinda frozen one)

[flexcoders] Re: Singletons - Best Practices

2008-03-11 Thread andrii_olefirenko
i don't know about best practices but it's quite easy to implement package test { import flash.utils.Dictionary; public class SingletonManager { private static const instances:Dictionary = new Dictionary; public

[flexcoders] Re: Flex 3 can save chart as image

2008-03-11 Thread andrii_olefirenko
the flash app is potentially dangerous application. so is its data. only data retrieved from the server is trusted (as long as i trust the site url). in other words, the site gives trusted data and untrusted apps (like flash, javascript or java applets), untrusted apps can produce only untrusted

[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-03 Thread andrii_olefirenko
I guess Adobe Flex engineers did better work protecting their stuff by making it open source :) as for sdks\3.0.0\lib\license.jar - i've just deleted this jar and my laptop didn't blow up - am I chosen one?... Andrii Olefirenko --- In flexcoders@yahoogroups.com, Oleg Filipchuk [EMAIL PROTECTED]

[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-03 Thread andrii_olefirenko
On 3/3/08 7:08 AM, andrii_olefirenko [EMAIL PROTECTED] wrote: I guess Adobe Flex engineers did better work protecting their stuff by making it open source :) as for sdks\3.0.0\lib\license.jar - i've just deleted this jar and my laptop didn't blow up - am I chosen one?... Andrii

[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-03 Thread andrii_olefirenko
Please, ignore - i've seen the answer already, sorry --- In flexcoders@yahoogroups.com, andrii_olefirenko [EMAIL PROTECTED] wrote: BTW, does it mean that I can't compile application that uses charting components without watermarks using Ant script (without Flex Builder Pro

[flexcoders] Re: Is setting custom headers on HTTPService for a GET possible?

2008-03-01 Thread andrii_olefirenko
If i'm not wrong, this is security restriction in Flash player. Some headers like Referer and the like shouldn't be added or modified by untrusted program (e.g. flash movie) I would consider using binary sockets to implement your own http stack, if you need these headers badly. Andrii Olefirenko

[flexcoders] Re: books, tutorials, articles on security issue

2008-03-01 Thread andrii_olefirenko
i think there so no anything special in flex/php regarding security issues. maybe only that you should keep in mind that flex client code is executed by untrusted machine while php code is trusted as it's executed on the server. so flex app is less secure by default if apply the same principles as

[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread andrii_olefirenko
it's so cute :) i bet you need it URGENT? --- In flexcoders@yahoogroups.com, devang solanki [EMAIL PROTECTED] wrote: Dear Friends if any one have flex builder 3.0 serial no or crack, then please forward to me, i need it Regards Devang

[flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread andrii_olefirenko
BTW, i remember FB 3 Betas were quite easy to fix given decompilable nature of java code; they had these buggy day counters... i don't know if it's true for release version. --- In flexcoders@yahoogroups.com, andrii_olefirenko [EMAIL PROTECTED] wrote: it's so cute :) i bet you need it URGENT

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
the same time as comparing two 100-element arrays. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Saturday, February 23, 2008 1:01 AM To: flexcoders@yahoogroups.com

[flexcoders] Re: HTTP Methods

2008-02-24 Thread andrii_olefirenko
Look up URLRequestMethod constants. Just use them to define the http method - no need for proxy of any kind. (the server you are making request to should understand these methods, of course) --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello folks, I have come

[flexcoders] Re: HTTP Methods

2008-02-24 Thread andrii_olefirenko
Hmm, yeah, you are right, the doc actually tells that there should be whole branch of constants... Try to put string values directly instead of constants: PUT, DELETE instead of URLRequestMethod.PUT and URLRequestMethod.DELETE. If this won't do magic, then i see only solution is to use socket

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Sunday, February 24, 2008 7:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o The trick

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
[mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Sunday, February 24, 2008 7:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o That's right if you treat a user as continuous array of input

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Sunday, February 24, 2008 7:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o I'm not a math guy, I'm more of a miracle guy(c) :) Picking up

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-23 Thread andrii_olefirenko
if you are really concerned about performance I would recommend to hash values added to the array into common hash and then comparing two arrays would take only O(1) not O(n) Andrii Olefirenko --- In flexcoders@yahoogroups.com, Sergey Kovalyov [EMAIL PROTECTED] wrote: What is the best way to

[flexcoders] Re: application exit event?

2008-02-23 Thread andrii_olefirenko
as there are no finalizers nor destructors, the same goes for finishing the application. Don't litter, and there would be nothing to clean up :) It's important to keep in mind that a user could kill browser process any time, without waiting for you code to do anything. Andrii Olefirenko --- In

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2008-02-21 Thread andrii_olefirenko
I'm surprised that this thing works (i mean monkey patching). I think It's the worst case of code coupling. The use with event listeners is rare case when this approach is OK. I've started using FlexSpy with Events Listeners just now - it's great :) Thanks Andrii Olefirenko --- In

[flexcoders] Re: ItemEditor looses focus and then crash

2008-02-21 Thread andrii_olefirenko
I remember the same problem - I did check for event.reason == DataGridEventReason.OTHER in order to prevent showing Alert window when the editor loses focus, not on canceling via Esc. In my case i couldn't use callLater because my Alert was actually asking (Yes/No) and not just warning Hope this

[flexcoders] Re: do you need CS Degree to get a job?

2008-02-20 Thread andrii_olefirenko
as for me, developing web apps is really for dummies, i'd rather do something interesting in molecular biology... (but unfortunately I got this CS degree). As for hiring, i think there is no big need for Phds - Google and likes are big companies - they need soldiers too - to implement the ideas

[flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID

2008-02-11 Thread andrii_olefirenko
You could try this dataGrid.dataProvider.refresh(); //where dataGrid is object of DataGrid class Regards, Andrii --- In flexcoders@yahoogroups.com, mr_j_harris [EMAIL PROTECTED] wrote: I need to force a redraw of a datagrid. Adobe's or whoever's Cleverness is not working for me. I

[flexcoders] Re: DataGrid limit on amount of records or data?

2008-02-10 Thread andrii_olefirenko
the limitation is 2,147,483,648 to be precise. but DataGrid is human interaction component, why do you need to load so many records? Andrii Olefirenko --- In flexcoders@yahoogroups.com, Luke Vanderfluit [EMAIL PROTECTED] wrote: Hi. Im using flex with a hibernate backend. I have tables in a

[flexcoders] Re: RPC: AsyncToken.addResponder vs addEventListener?

2008-02-07 Thread andrii_olefirenko
they just reopened it, if i'm not mistaken --- In flexcoders@yahoogroups.com, Jerome Clarke [EMAIL PROTECTED] wrote: ok nevermind... I think I found it now... because I'm not installing BlazeDS... I just downloaded it and thought it all be there just like the Flex SDK itself blazeds /

[flexcoders] Re: Java LCDS RemoteObjects with static methods

2008-01-29 Thread andrii_olefirenko
i think it would be better to use object methods just for a number of reasons. namely synchronization issues, method overriding issues (you can't override static methods) etc. and it's neither POJO nor EJB way to make static methods as endpoints for remote calls. you'd better wrap them up into

[flexcoders] Re: Executing local java

2008-01-29 Thread andrii_olefirenko
you could write a local service to access your java code. that's how i did it: along with AIR app, the Jetty web server is installed with all needed java libs and interfaces to access it (web services or AMF3). then my AIR app will just connect to localhost and execute local java code as remote

[flexcoders] Re: excel like evaluator for TextInput controls?

2008-01-25 Thread andrii_olefirenko
hi, i wrote one sometime ago - it's straightforward implementation as we used to do in CS classes back in the university (recursion heavily overused, parser makes tree-like structure, although parser is written using regexps), it supports basic arithmetic operators, variables and functions but not

[flexcoders] Re: Flex + Spring + Hibernate - Lazy=true

2008-01-15 Thread andrii_olefirenko
similar. You also need to do the AS code which matches the Java code yourself (or use a 3rd party code gen tool). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Friday, January 11, 2008 5:46

[flexcoders] Re: Flex + Spring + Hibernate - Lazy=true

2008-01-11 Thread andrii_olefirenko
BlazeDS (and LCDS as far as i remember) doesn't support this out of box. There are workarounds like 1) make you own DTO (hibernate free) 2) prefetch object dependencies 3) include metadata about lazy properties with you objects, control externalization to handle objects with metadata and so

[flexcoders] Re: Flex + Spring + Hibernate - Lazy=true

2008-01-11 Thread andrii_olefirenko
PROTECTED] wrote: Oh my god =/ But who uses the LCDS, it does not contain a HibernateAssembler which implements the use of lazy? --- In flexcoders@yahoogroups.com, andrii_olefirenko andriyo@ wrote: BlazeDS (and LCDS as far as i remember) doesn't support this out of box

[flexcoders] Re: Spreadsheet application in Flex

2007-12-03 Thread andrii_olefirenko
it in live Andrii Olefirenko --- In flexcoders@yahoogroups.com, bloodylag [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, andrii_olefirenko andriyo@ wrote: Just watched the video, pretty cool looking demo. Though I noticed a few things 1. The part where he was showing off

[flexcoders] Re: Spreadsheet application in Flex

2007-11-28 Thread andrii_olefirenko
, andrii_olefirenko andriyo@ wrote: Hello guys, We started developing a spreadsheet application (not only a component) built in Flex. It's in deep Alpha stage but we are going to extend functionality so it will be decent and free replacement for desktop spreadsheet applications. For version

[flexcoders] Spreadsheet application in Flex

2007-11-27 Thread andrii_olefirenko
Hello guys, We started developing a spreadsheet application (not only a component) built in Flex. It's in deep Alpha stage but we are going to extend functionality so it will be decent and free replacement for desktop spreadsheet applications. For version 1.0 following will be implemented 1. Cell