RE: [flexcoders] How to force construction when creationPolicy=all' does not work?

2009-08-20 Thread Alex Harui
Not sure when you're running that code. Did you try applicationComplete? But this kind of practice doesn't scale. In a model-view design, the views pull their data from the model so you don't end up with code that pushes stuff downward. Alex Harui Flex SDK Developer Adobe Systems

[flexcoders] Re: ComboBox not updating

2009-08-20 Thread mitek17
The really proper solution is called why do you need it anyway? (c)(tm) :) --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Maybe the solution is not to bind the selectedItem but set it explicitly? Tracy Spratt, Lariat Services, development services available

[flexcoders] Changing ResultHandler of WebService Operation

2009-08-20 Thread Angelo Anolin
Hi FlexCoders, How do I change the Result property of a web service operation? For example, I have declared my WebService as follows: mx:WebService id=ws   mx:operation name=Call_One result=Call_OneRH(event) fault=Call_OneFH(event) /   mx:operation name=Call_Two result=Call_TwoRH(event)

Re: [flexcoders] Changing ResultHandler of WebService Operation

2009-08-20 Thread Purnima S
Hello, Iam getting the following error in my application . please help me in solving this problem. [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL:

Re: [flexcoders] VBox constrains - A simple question :-p

2009-08-20 Thread Wesley Acheson
Sorry no I meant the min height. I didn't have a lot of time to answer when I typed this reply out before. I've seen this behaviour with dataGrid and I got stuck with it too, I asked here on the flexcoders mailing list. Basically when the items in a container are larger than its height. The

Re: [flexcoders] Flex 3.3 SDK and DataVisualization

2009-08-20 Thread Tom Chiverton
On Wednesday 19 Aug 2009, Angelo Anolin wrote: the datavisualization.swc to a folder where the MXMLC compiler is located and when I run the compiler, I include the folder as library in the command line. There are proper instructions for this :

Re: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-20 Thread Gautam P
if you need to load an external xml file from the file system rather than from the server, compile your flex project using the option * -use-network=false*. however, compiling in this fashion will not allow the swf to make calls to the server. On Thu, Aug 13, 2009 at 1:57 AM,

Re: [flexcoders] VBox constrains - A simple question :-p

2009-08-20 Thread Fotis Chatzinikos
Thanks! Setting the minimum height works but still its counterintuitive at the least... Can somebody from Adobe point me to the docs explaining this behaviour? TIA, Fotis On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson wesley.ache...@gmail.comwrote: Sorry no I meant the min height. I

Re: [Spam] RE: [flexcoders] 5 Datagrids ontop of each other, one resizes andthe ones below shift up or down?

2009-08-20 Thread Nick Middleweek
Alex, Awesome, that makes total sense now! of course, the VBox will naturally flow the objects downwards... Thanks!!! :-) 2009/8/20 Alex Harui aha...@adobe.com Should just be VBox with 5 DG’s in it. Set rowCount to change its size. Alex Harui Flex SDK Developer Adobe Systems

[flexcoders] Air bundle strips Mac executable permissions

2009-08-20 Thread christofink
There is a bug where an air app cannot maintain the permissions of executable (r-x) files within the project. If you put any executable file like a applescript.app or say a flash projector within a project (in the src directory), when you create the air package (.air) and install it the

Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread flexjunker
Hey Nick, yeah ImageSnapShot is a class that basically takes a UI component and spits out the bitmapData, which you can encode as a jpg / png. http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.html I just don't want the 'snap' of a container to have any scroll bars,

Re: [flexcoders] VBox constrains - A simple question :-p

2009-08-20 Thread Wesley Acheson
I agree its counter intuative. There is some documentation on the measure method of box. This behaviour isn't explictly mentioned however It may be covered if you delve into the rules on

[flexcoders] Re: Instant messaging example

2009-08-20 Thread valdhor
In that case, can you post your weborb-services-config.xml file? --- In flexcoders@yahoogroups.com, Andrew roly...@... wrote: Thanks valdhor. I have double checked but I am already referencing 'weborb-services-config.xml' and i and still having the same issue. --- In

[flexcoders] Re: Coding The itemClick event of the List Control

2009-08-20 Thread valdhor
The datagrid is a good example of a list control. There are many examples of the ListEvent.ITEM_CLICK event for a data grid. --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi. I looked up the documentation for Flex and was not able to find a good sample of

[flexcoders] Re: Changing ResultHandler of WebService Operation

2009-08-20 Thread valdhor
Probably not. In ActionScript, you would add an event listener. For a remote object it is... theRemoteObject.theOperation.removeEventListener(ResultEvent.RESULT, firstResultHandler) theRemoteObject.theOperation.addEventListener(ResultEvent.RESULT, secondResultHandler) I would think it would

Re: [Spam] Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread Nick Middleweek
OK, that's amazing... Is there not a way to test if the scrollbars are actually visible? Different from the scrollbar visible policy?... You could always crop the image I guess? can you do that in Flex/ AS? Or you could force scrollbars to be visible and then always crop the image that's

[flexcoders] Re: Changing ResultHandler of WebService Operation

2009-08-20 Thread valdhor
Can you get to http://localhost:8084/Projects/projectdelete.do from a browser? ie. Just type the url in the browser. What do you get? Also, what does Charles show? --- In flexcoders@yahoogroups.com, Purnima S purnima2...@... wrote: Hello, Iam getting the following error in my application .

[flexcoders] How to add fragments to debug url in Flex Builder

2009-08-20 Thread valdhor
I need to debug deep linking in my project (When a user pastes a URL in the browser and presses Go). If I just paste the URL, the browser is not connected to the debugger. So, I need to be able to add the fragments to the debug URL in Flex Builder. I thought I could just do that in the

[flexcoders] How do I test if the DG row is a grouping row?

2009-08-20 Thread Nick Middleweek
Hi, I've been asked to fix a problem with an existing project that has some icons rendered (using an ItemRenderer) in the 1st column. I need to NOT display these icons when the grouping function is activated and the row is a grouping tree. The ItemRenderer component has a get and set override

[flexcoders] Flex Data Services, Hibernate and Eclipse available for early access

2009-08-20 Thread mike_slinn
This book explains how to design, build and test the Flex Data Services and the server-side Java stack of an application built with the Adobe Flash Platform. Java EE technology such as Tomcat and Hibernate are covered in detail, including reverse engineering ORM POJOs from a database schema,

[flexcoders] Flex Data Services, Hibernate and Eclipse

2009-08-20 Thread mike_slinn
...oops, the URL is http://www.slinnbooks.com

[flexcoders] BrowserManagerShim, the workaround to fix preloader issues throws error...

2009-08-20 Thread djhatrick
Any suggestions how to overcome this error with the BroswerManagerShim: ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined. I need a preloader to work with anchor tags... thanks. Software should operate like a German car, not a French car. Thanks, Patrick

Re: [Spam] RE: [flexcoders] 5 Datagrids ontop of each other, one resizes andthe ones below shift up or down?

2009-08-20 Thread Nick Middleweek
Alex... I've tested it out and it works nicely... Thanks again! No I just need to learn about animated transistions so it's bounces between the sizes... :-) mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute styleName=plain mx:Script ![CDATA[ private function

Re: [flexcoders] Cannot select identical item in my tree component...

2009-08-20 Thread - -
Hi Alex, if I need both objects to be identical, how can I assign different UID? If I double click the object on the parent node, I enable a view to edit the object. The same object is found nested deeper in the tree, if I double click it, it must edit the same object on the parent branch.

RE: [flexcoders] BrowserManagerShim, the workaround to fix preloader issues throws error...

2009-08-20 Thread Alex Harui
I think that's a player version problem. Make sure you're running the version of the player that the SWF is compiled for. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com

RE: [flexcoders] Cannot select identical item in my tree component...

2009-08-20 Thread Alex Harui
It is a Tree, not a DAG. The same node cannot appear in a tree. You can have proxy objects in the collection that update a shared object. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com

[flexcoders] how to wait for one event to finish?

2009-08-20 Thread coder3
Hi I have a module, that needs to wait for the parentApplication to finish the httpservice so that it can get the data and do some stuff. so the httpservice has a result handling function, how can the module know when to get the result? i guess i need to use eventlistener, how? thanks! c

[flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread coder3
Hi my application needs to wait until two (or more) resultHandlers to get their results and use them together. for example, mx:RemoteObject id=myRO destination=test fault=FaultHandler(event) mx:method name=getList1 result=handleList1Result(event)/ mx:method name=getList2

[flexcoders] call remoteObject muliple times

2009-08-20 Thread kpjj31
Is it possible to call remoteObject multiple times. This number would be based on the number of records in an arrayCollection. This calls it only for the first record. for (var i:int = 0; 1 departmentlist.length; i++) {

[flexcoders] Re: how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread valdhor
If you need to wait for both results, then that is the best way. --- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote: Hi my application needs to wait until two (or more) resultHandlers to get their results and use them together. for example, mx:RemoteObject id=myRO

Re: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Wesley Acheson
private var list1Result:ResultEvent; private var list2Result:ResultEvent; private function handleList1Result(event:ResultEvent):void { list1Result = event; if(list2Result) { handleResults(list1Result, list2Result); } } private function handleList2Result(event:ResultEvent):void {

RE: [flexcoders] Re: Changing ResultHandler of WebService Operation

2009-08-20 Thread Tracy Spratt
Look into AsyncToken. All the RPC calls, inclusing WebService return an AsyncToken, which is a dynamic object to which you can add any property you want, and you can retrieve the value of that property in the result handler. Set a called property and use a switch statement to decide how t handle

RE: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-20 Thread Tracy Spratt
You can use mx:XML source=myFile.xml . for compile time embedding or you can use HTTPService for run-time retrieval. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gautam P Sent:

[flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread lanekelly5
I'm trying to load a few elements of an RSS feed into a DataGrid, and I'm having trouble with the code to pre-sort the data before the grid gets it. Here's a snippet of the code: private function requestRSS(e:FlexEvent):void { initVars();

Re: [flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread Wesley Acheson
I've not experienced it yet my self but the problem is probably the dates. Flex does string comparison on the dates not object comparison. (even if they were dates which they're probably strings by the time they get into your application. I haven't verified the accuracy of said post but at a

[flexcoders] Create XML for AnyChart component

2009-08-20 Thread fumeng5
Hi, I'm writing XML for an AnyChart component and I am having troubles setting the value of a node attribute to a dynamic element, i.e. // The method accepts a DTO private function createSemiCircularGaugeXML( gauge:GaugeDTO ):XML // I can write it here text{gauge.label}/text // But not here

[flexcoders] Re: ReferenceError #1069 property not found on native class

2009-08-20 Thread dhchang77
Thanks for the response Wesley but this is an IR-specific issue. A couple more findings, now it's no longer just my machine. Another team member has also ran into this when is reencrypt called while running the production build within AIR and using adl to run it however it's fine for him in

[flexcoders] Re: how to wait for one event to finish?

2009-08-20 Thread vishwas_gagrani
--- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote: Hi I have a module, that needs to wait for the parentApplication to finish the httpservice so that it can get the data and do some stuff. so the httpservice has a result handling function, how can the module know when to

Re: [flexcoders] Parser Error | Itemrender

2009-08-20 Thread Rajan Jain
Hi Alex Thanks ilikeflex From: Alex Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Thursday, August 20, 2009 1:44:50 AM Subject: RE: [flexcoders] Parser Error | Itemrender mx:Component defines a sub-document within

RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Tim Rowe
You don't really get much in the way of thread control in Flex, but a neater way might still be to create something of a pseudo-barrier. At the time each object is fired, you would also add a token to the barrier, latching it and increasing the counter on that token. Each event listener could

RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Tracy Spratt
This may be essentially the same thing Tim is suggesting, but you could set a property on an associative array (Object) in the send function and delete the corresponding property value in the result or fault handlers. When for..in returns zero iterations, all calls have returned. Tracy

RE: [flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread Tracy Spratt
If it is not a date format issue then you might want to put the XML list into a collection array and sort that. If you want to keep the xml (as I often do), use setChildren to assign the sorted XML list back to the root xml. If you do not need to keep the xml (as I sometimes do not) Put the

[flexcoders] Determine Drag Source Control

2009-08-20 Thread Angelo Anolin
Hi FlexCoders, I have some inquiry with regards to Drag and Drop. Supposedly I have 5 List controls with IDs: lstControl_Source1 lstControl_Source2 lstControl_Source3 lstControl_Source4 lstControl_Source5 All these list controls are possible source of drag items. I am dropping the dragged

[flexcoders] Re: How to add fragments to debug url in Flex Builder

2009-08-20 Thread mike_morearty
Browsers don't allow fragments such as #anchor to be appended to file: URLs, as they do for http: URLs. The workaround for your scenario is to have Flex Builder compile the SWF into a directory where an HTTP server can find it. For example, suppose you are on a Mac; /Users/johndoe/Sites can be

RE: [flexcoders] Determine Drag Source Control

2009-08-20 Thread Alex Harui
Should be: event.dragInitiator.id Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Angelo Anolin Sent: Thursday, August 20, 2009 5:13 PM To: