[flexcoders] flex builder and SVN

2008-03-11 Thread Nataliya Shevchenko
I'm trying to add a new repository to SVN Repository view in Flex Builder 3. As soon as I enter the url, Flex Builder closes by itself and I got strange error in a window with just OK button: JVM terminated. Error code=1 C:\WINNT\System32\javaw.exe ... Has anybody seen anything like that? Any

[flexcoders] DataGridColumn Drag and Drop

2008-03-11 Thread vitorinomarlene
Hello! I an developing an application with a datagrid, which is populated dynamically as a result of a HTTPService request, creating the columns and inserting the rows. This request is triggered by a drop event from a list. My idea was to remove columns from the datagrid, causing the data (column

[flexcoders] SVN and Flax error

2008-03-11 Thread Nataliya Shevchenko
I'm trying to add a new repository to SVN Repository view in Flex Builder 3. As soon as I enter the url, Flex Builder closes by itself and I got strange error in a window with just OK button: JVM terminated. Error code=1 C:\WINNT\System32\javaw.exe ... Has anybody seen anything like that? Any

[flexcoders] Re: Obtaining all definitions of an Application Domain or Module swf

2008-03-11 Thread paladinknighti
Thanks for your help. I googled for swfutils/swfdump and saw a bunch of them but they all didn't seem to output class definitions. Could you please tell me which one you're referring to or give me the link to download that tool as binary/source? Thanks, Aaron --- In flexcoders@yahoogroups.com,

RE: [flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Alex Harui
The player error msg still says 15 regardless of what you set. It isn't the serialization or network transfer time that matters. That is asynchronous. What matters is the time to process the data once the request has arrived. Your resultFormat dictates what kind of conversion has to happen

RE: [flexcoders] AS3 loading AS2 getBounds() issue

2008-03-11 Thread Alex Harui
Does it fail for app A loading app C directly? Maybe there is some dependency in app C that isn't in app B like access to stage. I won't have time to diagnose from your sources, so maybe someone else will take the time. From: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Obtaining all definitions of an Application Domain or Module swf

2008-03-11 Thread Alex Harui
The latest SWFDump should have an -abc option that will dump the entire byte code and let you rummage through it for the class defs. There is no utility just to spit out class defs. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Re: Accordion question

2008-03-11 Thread Alex Harui
I don't have an example handy, but check out Cairngorm and PureMVC frameworks. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djbrown_rotonews Sent: Tuesday, March 11, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

[flexcoders] going to next page after submission to backend..

2008-03-11 Thread cool buddy
HI all, I have written a application where in the user enters his details and hits submit button ..on submission the details are sent to the database..It should go to the next page and display some messagehow do we handle this in flex..i was thinking of using states..but the above

[flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Kevin
Thanks for the clarification. That helps. I think my resultFormat is 'object' but possibly, I don't understand it since this is all happening within LCDS. So here is what is happening and maybe you can help me figure out the solution: 1) The client sets up a new DataService object and calls a

[flexcoders] blazeds and oc4j

2008-03-11 Thread netdeep
I need to deploy my blazeds on an oc4j server. I got it working with the tomcat turnkey application, but I can't get it working on oc4j. I get the error: MessageBrokerServlet failed to initialize due to runtime exception: java.lang.SecurityException: Unauthorized access from application:

Re: [flexcoders] Re: how to call a function in a popup parent?

2008-03-11 Thread Derrick Anderson
i will give it a try Alex, thanks! On Tue, Mar 11, 2008 at 3:50 PM, Alex Harui [EMAIL PROTECTED] wrote: Glad you got it working, but I vote with Ralf. Having the popup dispatch an event allows for reuse of that popup in other applications and places within the current application.

RE: [flexcoders] Re: how to call a function in a popup parent?

2008-03-11 Thread Kevin Aebig
If you're requiring a passed instance and hard-coding the method it calls, than yes, the flexibility is lost. But this method is just a flexible and doesn't require listeners: Component reference var: public var onSubmit:Function; Set the reference: myComponent.onSubmit = myFunction;

RE: [flexcoders] blazeds and oc4j

2008-03-11 Thread Seth Hodgson
The java.lang:type=ClassLoading MBean is not something that BlazeDS attempts to access explicitely. Can you provide a full exception stack trace? Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Tuesday, March 11,

RE: [flexcoders] Error: channel not found for reference 'my-http'

2008-03-11 Thread Seth Hodgson
Check the Problems tab in FlexBuilder, and make sure your app is successfully compiling against your referenced configuration files. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nayan Savla Sent: Tuesday, March 11, 2008

RE: [flexcoders] Re: how to call a function in a popup parent?

2008-03-11 Thread Alex Harui
Sorry to be picky, but any time you have a variable of type :Function, you've lost strong-typing. Events document their parameters and allow more than place to be notified. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig

RE: [flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Alex Harui
If your resultFormat is 'object' and you're hitting a SOAP or other XML-based service, the XML must be parsed and converted into objects which can take time. The real question is 900 objects times how many properties and sub-objects? From:

RE: [flexcoders] Re: Populating an Image control from an HTTPService request

2008-03-11 Thread Alex Harui
You can load images from any domain, but you can't access their bits w/o crossdomain.xml permission. The typical workaround is to use a proxy server where you request an image from your server and your server goes to the other domain to get the bits. From:

Re: [flexcoders] Re: Refactoring with Flex Builder 3

2008-03-11 Thread Brendan Meutzner
Great tip Beau... Thanks! Brendan 2008/3/10 Beau Scott [EMAIL PROTECTED]: I too have major issues with the renaming/refactor feature. Switching from the Flex Navigator view to the standard Navigator disables the rename-refactor feature for me. Beau *From:*

RE: [flexcoders] FormItem Text not wrapping

2008-03-11 Thread Alex Harui
IIRC, formitem doesn't wordwrap its labels. You might have to place a Text control manually. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulbohnenkamp Sent: Tuesday, March 11, 2008 10:59 AM To: flexcoders@yahoogroups.com Subject:

[flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Kevin
I am loading POJO's from LCDS using the Hibernate Assembler. From what I can tell that part of the equation takes about 10 - 15 sec. (Which also seems long.) The object is fairly complex so that could be some of the problem. Here is the paste of the properties and collections nested in the

RE: [flexcoders] Re: Accordion question

2008-03-11 Thread Tracy Spratt
No example here, but no, he does not mean using mx:Model. I advise avoiding that class entirely. It gives you the worst of both worlds, the performance problems of dynamic objects, and the lack of search, filter and navigational functionality (vs XML). The term model is used generically, to

RE: [flexcoders] going to next page after submission to backend..

2008-03-11 Thread Tracy Spratt
I advise using ViewStack for this instead of states. Be aware of deferred instantiation issues with ViewStack (and TabNavigator, and Accordion) Where you implement a functionality is your choice. What matters is the run-time document object model (component relationships). There are *many*

Re: [flexcoders] FileReference.browse sometimes takes minutes for dialog to open

2008-03-11 Thread Troy Gilbert
In debugging, I have the same issue on my Dell Laptop (WinXP), but not as bad. It normally only take 5 to 10 seconds for the dialog to open on my machine and this seems to only happen during debugging, which is what I wrote it off as… This is on a machine that doesn't have the debug player

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
Alex, I assumed as much. The problem I'm encountering is that sporadically when you move the mouse outside of the container, you sometimes can't ever get the mouse back over the dragging item, effectively, making it perpetually floating, with no way to stop the drag. This happens most often if

[flexcoders] WeakMethodClosure - what is this ?

2008-03-11 Thread lytvynyuk
During my research with Flex performance found that instances of WeakMethodClosure constantly increasing. I do not have knowledge what is that and how to avoid it. 1859 instances for example can take only 30k of memory... but still BTW found that Flash player running under Firefox Opera newer

[flexcoders] Checking for Query string values using URLVariables

2008-03-11 Thread guitarguy555
I have a Flex app that loads various modules. Sometimes when I load a new module I have some parameters appended to the URL and I don't want these parameters to display in the address bar. I extract the parameters when the module is loaded using the following code: var url:String =

Re: [flexcoders] Re: Debugging hangs my mac this morning any ideas?

2008-03-11 Thread Josh McDonald
Any ideas anybody? I still get this some times (it's back today), and it's bringing down my whole computer. The boss won't be happy if he needs to go and buy me a windows workstation :( -J On Thu, Mar 6, 2008 at 12:00 PM, Josh McDonald [EMAIL PROTECTED] wrote: mm.cfg is totally empty, and

RE: [flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Alex Harui
All those nested array collections require conversion as well. You would need to find a way to partially convert objects, which is a planned feature, but not available yet. The easiest answer is to not do a complete fill, and set a decent page size. From:

Re: [flexcoders] WeakMethodClosure - what is this ?

2008-03-11 Thread Josh McDonald
I imagine it's the internal voodoo to keep track of closures. Think of them as function pointers which contain the creator's stack - that's a simplified but useful view. -J On Wed, Mar 12, 2008 at 8:32 AM, lytvynyuk [EMAIL PROTECTED] wrote: During my research with Flex performance found that

[flexcoders] Re: Checking for Query string values using URLVariables

2008-03-11 Thread guitarguy555
Well I guess I can just check the original url String and the string value returned after replacing with the regular expression - if they're the same, then don't pass the potentially modified url to the URLVariables constructor Seems a bit messy though...is there some other way to

RE: [flexcoders] Re: Drag Boundaries

2008-03-11 Thread Alex Harui
It looks like you're not quite handling drag/drop correctly. Typically you pick up mouseUp and mouseLeave when the drag starts and use capture phase for mouseUp. Here's an adjusted sample: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=white

RE: [flexcoders] WeakMethodClosure - what is this ?

2008-03-11 Thread Alex Harui
That is correct, and the profiler occasionally shows them as leaking when they're really not. I typically examine them to see if they have valid backreferences. If they do, they should be investigated. If they don't have back references, then I don't worry about them. There is an open issue

[flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Kevin
Thanks. Would it help if I made all the properties in the ContactVO lazy? As I understand it that way I would only be pulling in the id's of the nested collections and not the full objects. Does that prevent flex from creating all the nested objects in the collections or does it still need to

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
Thank you, much better!!! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: It looks like you're not quite handling drag/drop correctly. Typically you pick up mouseUp and mouseLeave when the drag starts and use capture phase for mouseUp. Here's an adjusted sample:

RE: [flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Alex Harui
That's outside my domain of knowledge. Wouldn't hurt to try it. I still don't know what you're planning on doing with 900 items in a single fetch though. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Tuesday, March 11,

Re: [flexcoders] AS3 loading AS2 getBounds() issue

2008-03-11 Thread Ian Thomas
Alex, It works correctly when app A loads app C directly. As I said, the test sources are minimal. They contain no excess code or dependencies. I have tested this thoroughly in a number of scenarios and believe it's a player error. I have logged this as an error on Jira. Thanks,

[flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread blakeae
Kevin, I had a similar problem where I was trying to process several thousand rows in a datagrid and create custom XML. I had searched Google several times off and on and finally found: http://blog.paranoidferret.com/index.php/2007/12/11/flex-tutorial-an-asy\ nchronous-jpeg-encoder/

[flexcoders] DataGridColumn Drag and Drop

2008-03-11 Thread vitorinomarlene
Hello! I an developing an application with a datagrid, which is populated dynamically as a result of a HTTPService request, creating the columns and inserting the rows. This request is triggered by a drop event from a list. My idea was to remove columns from the datagrid, causing the data (column

[flexcoders] Re: Checking for Query string values using URLVariables

2008-03-11 Thread peter.obryan
If you are accessing the swf directly, that is, without an html (or jsp, asp, cfx) wrapper, then within your ActionScript, you can query whether the query string is empty using: Application.application.parameters.length == 0 If you are using a wrapper, you would first need some javascript or

Re: Re[flexcoders] gExpValidator problem

2008-03-11 Thread petiex
I just found out it will work if you escape the curly brackets with a backslash, also, the leading and trailing / characters appear to be unnecessary: mx:RegExpValidator source={client} property=text expression=^[a-z]\{6,16\}$ flags=g trigger={client} triggerEvent=change

[flexcoders] Howto build Blazeds sample for websphere

2008-03-11 Thread Joe Gamache
Hi - I wish I could post the answer to the subject. However, I can not. The sample is kind of wierd to me. I would like it to have two halves: a server half and a client half. In order to be prudent, expeditious, whatever, they seem to have combined everything. So has anyone ported this to

RE: [flexcoders] Re: Duplicate HTTP response headers

2008-03-11 Thread Tim Stewart
Hi Mete. I tried this, having followed the text file instructions about setting up JAVA_HOME, ANT_HOME etc, but just get the error: [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. Cheers, Tim

[flexcoders] Re: going to next page after submission to backend..

2008-03-11 Thread vitorinomarlene
Hello, I've done something very similar to what you are describing, a survey which was composed by 5 different forms. I used a ViewStack for each group of questions, created a validator and a button for each canvas. The validator checks if the responses are valid and the button submits the data to

[flexcoders] Re: DataGridColumn Drag and Drop

2008-03-11 Thread vitorinomarlene
--- In flexcoders@yahoogroups.com, vitorinomarlene [EMAIL PROTECTED] wrote: Hello! I an developing an application with a datagrid, which is populated dynamically as a result of a HTTPService request, creating the columns and inserting the rows. This request is triggered by a drop event from

[flexcoders] Re: Duplicate HTTP response headers

2008-03-11 Thread meteatamel
Ah. Not sure if the instructions mention this but you need ant contrib as the build files depend on that: http://ant-contrib.sourceforge.net/ -Mete --- In flexcoders@yahoogroups.com, Tim Stewart [EMAIL PROTECTED] wrote: Hi Mete. I tried this, having followed the text file instructions about

[flexcoders] Re: Loading Large Data Set into Client A script has executed..15 seconds Error

2008-03-11 Thread Kevin
It's part of an importing app. For each contact that the user tries to import we need to check against the existing app for duplicates. We use a variety of checks including DoubleMetaphone and distance calculations. We wrote all the comparison scripts in actionscript and they work very well

Re: [flexcoders] Howto build Blazeds sample for websphere

2008-03-11 Thread Douglas Knudsen
Huh? Ok, I'm no J2EE whiz but Adobe provided a turnkey 'unzip and have fun' download. It includes Tomcat shazzam! Shouldn't be hard to drop the war into _name your container here_ and feel the love. You did see the turnkey download right? DK On 3/11/08, Joe Gamache [EMAIL PROTECTED] wrote:

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

2008-03-11 Thread coder3
my question now is more to how to decode the image string: in my mx application, i encode the image to a String: var b64encoder:Base64Encoder = new Base64Encoder(); b64encoder.encodeBytes(bytes);

Re: [flexcoders] Re: going to next page after submission to backend..

2008-03-11 Thread cool buddy
HI all, i have question regarding the use of tabnavigator and states.. i have defined states based on the home page..but when i navigate from a component page to the home page defining currentState='' on submitting the button it does not go to the home page instead it goes to the other

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

2008-03-11 Thread Josh McDonald
Use commons-codec: http://commons.apache.org/codec/ -J On Wed, Mar 12, 2008 at 11:10 AM, coder3 [EMAIL PROTECTED] wrote: my question now is more to how to decode the image string: in my mx application, i encode the image to a String: var b64encoder:Base64Encoder = new Base64Encoder();

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

2008-03-11 Thread coder3
i don't quite understand. do you mean that i keep the current way to encode in flex, and use the commons-codec to decode in java? in flex it's encoded the image byteArray to String. how to decode that String to byte[] in java? regarding the javaDoc, it's either decode from Object to Object,

[flexcoders] Singletons - Best Practices

2008-03-11 Thread Dominic Pazula
I'm attempting to write singleton manager for my application. I've seen numerous ways for this to be done. I traced through how the BrowserManager and the PopUpManager are implemented. (For the record, I tried, and failed, to copy how BrowserManager is implemented). Does anyone know what

[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

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

2008-03-11 Thread Josh McDonald
java.lang.String.getBytes() But we're getting off-topic. -J On Wed, Mar 12, 2008 at 12:03 PM, coder3 [EMAIL PROTECTED] wrote: i don't quite understand. do you mean that i keep the current way to encode in flex, and use the commons-codec to decode in java? in flex it's encoded the image

Re: [flexcoders] IViewCursor.findAny on a typed object?

2008-03-11 Thread Ken Dunnington
Okay, when it rains it pours... I cannot get the source lookup to work in the debugging view. I've manually set the source lookup to the Flex Builer 3 Plug-in/sdks/3.0.0/frameworks/projects/framework/src directory with search subfolders turned on, but none of the framework classes are available

[flexcoders] Fit window to content?

2008-03-11 Thread Josh McDonald
Hi guys, Is there a nice programmatic way to have a popup window (TitleWindow in this case) resize to just big enough to fit the children? Or will I have to cook it up? Cheers, -J -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221

[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

RE: [flexcoders] Fit window to content?

2008-03-11 Thread Alex Harui
That should be the default behavior, as long as you did not specify a width/height for the TW From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, March 11, 2008 9:08 PM To: flexcoders@yahoogroups.com Subject:

Re: [flexcoders] Fit window to content?

2008-03-11 Thread Josh McDonald
Ah nice, I never even thought of that, cheers! *smacks forehead* On Wed, Mar 12, 2008 at 2:45 PM, Alex Harui [EMAIL PROTECTED] wrote: That should be the default behavior, as long as you did not specify a width/height for the TW -- *From:*

Re: [flexcoders] Re: Singletons - Best Practices

2008-03-11 Thread Mike Chabot
There is a chapter in the ActionScript 3 Design Patterns book on this topic that is good. -Mike Chabot On Tue, Mar 11, 2008 at 11:06 PM, andrii_olefirenko [EMAIL PROTECTED] wrote: i don't know about best practices but it's quite easy to implement package test { import

<    1   2