[flexcoders] Please explain the Tree to me!!!!! Before I die waiting!
Hi, I have a tree filled with an XMLListCollection, all nodes are named node. The structure is like this: node locationid='1' node locationid='3' node locationid='76'/ /node /node but on a much greater scale. Now I have set the Tree component to allowMultipleSelection=true so that the user can select multiple nodes, that works no problem. I have also set an itemClick function to trigger when the user selects the item or items. By doing this I can work out if one item is selected or multiple: if(Tree(event.target).selectedItem){ dosomethingforoneselection; //this works ok }else if(Tree(event.target).selectedIndicies){ for(var i:int = 0;iTree(event.target).selectedIndicies.length;i++){ var h:int = int(Tree(event.target).selectedIndicies[i]; } } Ok, now I have the index of each item selected on the Tree, so how do I get the locationid from the index? Completely mind boggled! Thanks ever so much if you can help! Kind Regards, Iain
[flexcoders] Re: Please explain the Tree to me!!!!! Before I die waiting!
Thanks for your help, I think I was close to giving up there, was even considering returning to the java and returning an arraylist instead of the XML. Your a star! Thanks again. Iain --- In flexcoders@yahoogroups.com, Ryan Graham [EMAIL PROTECTED] wrote: Instead of going through the index, you could iterate the selectedItems and use e4x syntax to get the attribute you're looking for. selectedItem and selectedItems are a direct link to the object in the dataprovider, in this case XML objects: private function onItemClick(event:ListEvent):void { trace(**); for each (var item in tree1.selectedItems) { trace([EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ); } } For your sample XMLListCollection, selecting a single item (in this example the 1st) will yield: ** 1 And selecting all will yield: ** 76 3 1 HTH, Ryan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, October 29, 2008 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Please explain the Tree to me! Before I die waiting! Hi, I have a tree filled with an XMLListCollection, all nodes are named node. The structure is like this: node locationid='1' node locationid='3' node locationid='76'/ /node /node but on a much greater scale. Now I have set the Tree component to allowMultipleSelection=true so that the user can select multiple nodes, that works no problem. I have also set an itemClick function to trigger when the user selects the item or items. By doing this I can work out if one item is selected or multiple: if(Tree(event.target).selectedItem){ dosomethingforoneselection; //this works ok }else if(Tree(event.target).selectedIndicies){ for(var i:int = 0;iTree(event.target).selectedIndicies.length;i++){ var h:int = int(Tree(event.target).selectedIndicies[i]; } } Ok, now I have the index of each item selected on the Tree, so how do I get the locationid from the index? Completely mind boggled! Thanks ever so much if you can help! Kind Regards, Iain This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] FLEX 2: SelectedIndicies in mx:tree with allowmultipleSelection
Hi, I have a tree which is populated from an XML doc returned from a remote object. I assign this to the tree object and all is well. I have enabled allowmultipleselection as I want to get the data from a number of nodes when they are selected, so I have an itemClick function on the tree that triggers the whole thing off. My problem is that I cant get any further than getting the individual indexes of the selected nodes, so to be brief: I have a function that uses a for loop and goes through the selectedindicies array and extracts the individual indexes of the tree nodes, but what then? I can't get the data I need which is on the [EMAIL PROTECTED] attribute of the node. Can you help please, I've been at this for 3 days now! Thanks in advance, Iain
[flexcoders] Change the header color of one column (1.5)
Hi, Can I change the header color of one column on a datagrid? I thought I could do this through a headerrenderer, but it seems not? Regards, Iain
[flexcoders] Oh the headerrenderer of death
Hi, Having a bit of a nightmare with a headerrenderer, it simply doesn't work for me, ahh I hear you say. This is what I have: mx:DataGridColumn headerRenderer=renderers.EmptyRenderer backgroundColor=#C0C0C0 width=75 textAlign=center headerText=black/ The Renderer is this: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off verticalAlign=top borderStyle=none mx:Script ![CDATA[ var headerText:String; public function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; headerText = str; } ]] /mx:Script mx:Text text={headerText} width=100% height=100%/ /mx:HBox All I want to show is the headerText with a backgroundColor in the header. Can anyone help please? All I get at the moment is a blank header, with nothing in it and the same as the default header colors. Cheers, Iain
[flexcoders] Re: Oh the headerrenderer of death
Hi, I'm not using the variableRowHeight attribute so that didn't work, this is soo hard to dubug. Any other suggestions? Cheers, Iain --- In flexcoders@yahoogroups.com, bobrene07 [EMAIL PROTECTED] wrote: Hello, I had the same bug, when my datagrid had variableRowHeight=true, my headerrender wouldn't work. if you have try without it. good day bob --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, Having a bit of a nightmare with a headerrenderer, it simply doesn't work for me, ahh I hear you say. This is what I have: mx:DataGridColumn headerRenderer=renderers.EmptyRenderer backgroundColor=#C0C0C0 width=75 textAlign=center headerText=black/ The Renderer is this: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off verticalAlign=top borderStyle=none mx:Script ![CDATA[ var headerText:String; public function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; headerText = str; } ]] /mx:Script mx:Text text={headerText} width=100% height=100%/ /mx:HBox All I want to show is the headerText with a backgroundColor in the header. Can anyone help please? All I get at the moment is a blank header, with nothing in it and the same as the default header colors. Cheers, Iain
[flexcoders] Custom Event handling from cellRender (1.5)
Hi, I can dispatch an event (custom) from a cellrenderer dispatchEvent({type:enableCommit,bb2:siteSelected.selected}); how can I add an event listener to the dataGridColumn or DataGrid to capture that event then trigger a function call? I thought this would work (the datagrid id is statusGrid): statusGrid.addEventListener(enableCommit,test); Where test is the name of the function to call and this is set in the initialize of the parent. Regards, Iain
[flexcoders] flex 1.5 numericstepper problem
Hi all, I have a problem with a numeric stepper in a cellrenderer of a dataGridColumn. When the cell loses focus, it goes back to the value set initially, so I lose all the changes. Here is the cellrenderer code: mx:HBox horizontalAlign=center width=100% xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var labelData:Object; var val; function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; var s = item; labelData = s; val = labelData.levels; } function changeVal(){ val = changed.value; } ]] /mx:Script mx:NumericStepper id=changed value={val} change=changeVal() maximum={labelData.fill}/ /mx:HBox I need the numericStepper to keep the value I change it to in each of the rows I change it. Cheers, Iain
[flexcoders] Re: flex 1.5 numericstepper problem
Thanks, I tried this, but the numericStepper just stops stepping. Any other ideas? CHeers, Iain New Renderer code: mx:HBox horizontalAlign=center width=100% xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var labelData:Object; var val; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; var s = item; labelData = s; val = labelData.stepper; } function changeVal(){ val = changed.value; listOwner.editField(getCellIndex().itemIndex, getDataLabel(), val); } ]] /mx:Script mx:NumericStepper id=changed value={val} change=changeVal() maximum={labelData.fill}/ /mx:HBox --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Hi Iain, You need to update the grid's data field in your change handler. Try the following: var listOwner : MovieClip; // the reference we receive to the list var getCellIndex : Function; // the function we receive from the list var getDataLabel : Function; // the function we receive from the list function changeVal() { val = changed.value; listOwner.editField(getCellIndex().itemIndex, getDataLabel(), val); } Relevant links: http://weblogs.macromedia.com/pent/archives/2004/12/cell_renderers.cfm http://weblogs.macromedia.com/pent/archives/2004/12/cell_renderers.cfm http://weblogs.macromedia.com/pent/archives/flex/solutions/cellrenderers\ .zip http://weblogs.macromedia.com/pent/archives/flex/solutions/cellrenderer\ s.zip (source) --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi all, I have a problem with a numeric stepper in a cellrenderer of a dataGridColumn. When the cell loses focus, it goes back to the value set initially, so I lose all the changes. Here is the cellrenderer code: mx:HBox horizontalAlign=center width=100% xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var labelData:Object; var val; function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; var s = item; labelData = s; val = labelData.levels; } function changeVal(){ val = changed.value; } ]] /mx:Script mx:NumericStepper id=changed value={val} change=changeVal() maximum={labelData.fill}/ /mx:HBox I need the numericStepper to keep the value I change it to in each of the rows I change it. Cheers, Iain
[flexcoders] Re: flex 1.5 numericstepper problem
That worked, thanks very much! Iain --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: I guess you could go straight to the dataProvider and instead of listOwner.editField() use: listOwner.dataProvider[getCellIndex().itemIndex].stepper = val; --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Thanks, I tried this, but the numericStepper just stops stepping. Any other ideas? CHeers, Iain New Renderer code: mx:HBox horizontalAlign=center width=100% xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var labelData:Object; var val; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; var s = item; labelData = s; val = labelData.stepper; } function changeVal(){ val = changed.value; listOwner.editField(getCellIndex().itemIndex, getDataLabel(), val); } ]] /mx:Script mx:NumericStepper id=changed value={val} change=changeVal() maximum={labelData.fill}/ /mx:HBox --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Hi Iain, You need to update the grid's data field in your change handler. Try the following: var listOwner : MovieClip; // the reference we receive to the list var getCellIndex : Function; // the function we receive from the list var getDataLabel : Function; // the function we receive from the list function changeVal() { val = changed.value; listOwner.editField(getCellIndex().itemIndex, getDataLabel (), val); } Relevant links: http://weblogs.macromedia.com/pent/archives/2004/12/cell_renderers.cf m http://weblogs.macromedia.com/pent/archives/2004/12/cell_renderers.c fm http://weblogs.macromedia.com/pent/archives/flex/solutions/cellrender ers\ .zip http://weblogs.macromedia.com/pent/archives/flex/solutions/cellrende rer\ s.zip (source) --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi all, I have a problem with a numeric stepper in a cellrenderer of a dataGridColumn. When the cell loses focus, it goes back to the value set initially, so I lose all the changes. Here is the cellrenderer code: mx:HBox horizontalAlign=center width=100% xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var labelData:Object; var val; function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; var s = item; labelData = s; val = labelData.levels; } function changeVal(){ val = changed.value; } ]] /mx:Script mx:NumericStepper id=changed value={val} change=changeVal () maximum={labelData.fill}/ /mx:HBox I need the numericStepper to keep the value I change it to in each of the rows I change it. Cheers, Iain
[flexcoders] Unable to access UserTransaction in DataService
Hi all, I am trying to use data services on a JBoss4 application server but keep getting the following error, [RPC Fault faultString=Unable to access UserTransaction in DataService. faultCode=Server.Processing faultDetail=null] at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent() at mx.data::CommitResponder/fault() at mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:107] at NetConnectionChannel.as$37::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\NetConnectionChannel.as:458] at mx.messaging::MessageResponder/status()[C:\dev\enterprise_gmc\frameworks\mx\messaging\MessageResponder.as:225] Is there some other configuration needed for JBoss to work with the transactions? Many thanks in advance. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Issue when I close a TitleWindow 1.5
Hi, I am closing a TitleWindow with this function: It closes the window but then the dubug spews out this: Info: Request sent to http://localhost:8080/webapp/amfgateway from 127.0.0.1 received at 15:43:42.710 2006-08-18 Info: Deserializing request (Message #0 targetURI=com.myCompany.GetStuff.removeEventListener, responseURI=/4) (Array #0) [0] = __NoChangeEvent__ [1] = (Object #1) _children = (Array #2) [0] = (Object #3) _children = (Array #4) [0] = (Object #5) _children = null _value = undefined _listeners = (Array #6) [0] = (Object #7) _document = undefined _destString = column7.horizontalAxis.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null [1] = (Object #8) _document = undefined _destString = column7.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null [2] = (Object #9) _document = undefined _destString = skuGrid2.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null _propertyName = result _events = (Object #10) resultForBinding = true _mangledPropertyName = __watcher__result _parentObj = (Object #11) __service = (Object #12) log = (Object #13) level = 1.0 name = RemoteObject_AMF __conn = UNSUPPORTED (Message #1 targetURI=_allowRes, responseURI= and some unprintable character(squares and things) and then the stacktrace: UNKNOWN TYPE Error: Request received was not Flash-based (not of the binary AMF protocol). flashgateway.io.NotAMFException: Request received was not Flash-based (not of the binary AMF protocol). at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:71) at flashgateway.Gateway.invoke(Gateway.java:217) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) It doesn't seem to affect the app any, but it's just a bit messy, any ideas? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Issue when I close a TitleWindow 1.5
--- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I am closing a TitleWindow with this function: public function handleClick(event){ doLater(this, deletePopUp); } It closes the window but then the dubug spews out this: Info: Request sent to http://localhost:8080/webapp/amfgateway from 127.0.0.1 received at 15:43:42.710 2006-08-18 Info: Deserializing request (Message #0 targetURI=com.myCompany.GetStuff.removeEventListener, responseURI=/4) (Array #0) [0] = __NoChangeEvent__ [1] = (Object #1) _children = (Array #2) [0] = (Object #3) _children = (Array #4) [0] = (Object #5) _children = null _value = undefined _listeners = (Array #6) [0] = (Object #7) _document = undefined _destString = column7.horizontalAxis.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null [1] = (Object #8) _document = undefined _destString = column7.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null [2] = (Object #9) _document = undefined _destString = skuGrid2.dataProvider _bindIsExecuting = false _isHandlingEvent = false _hasHadValue = false uiComponentWatcher = -1.0 twoWayCounterpart = null _propertyName = result _events = (Object #10) resultForBinding = true _mangledPropertyName = __watcher__result _parentObj = (Object #11) __service = (Object #12) log = (Object #13) level = 1.0 name = RemoteObject_AMF __conn = UNSUPPORTED (Message #1 targetURI=_allowRes, responseURI= and some unprintable character(squares and things) and then the stacktrace: UNKNOWN TYPE Error: Request received was not Flash-based (not of the binary AMF protocol). flashgateway.io.NotAMFException: Request received was not Flash-based (not of the binary AMF protocol). at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:71) at flashgateway.Gateway.invoke(Gateway.java:217) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) It doesn't seem to affect the app any, but it's just a bit messy, any ideas? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Timeout issue
For info, this is how I fixed this issue: It turns out that MSIE has a TCP receive timeout set in the registry: This ReceiveTimeout can be found at HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/INTERNET SETTINGS If it is set to 6000 the the client (browser) will timeout waiting for the reply from the AMF Gateway. This stumbled me as I was using a built in browser to eclipse through the myEclipse plugin, however I have since found out that this is actually just an embedded IE browser. I only found the resolution to the issue after testing with firefox and the problem disapeared. Weird but true, I'll just have to write off those four days pulling my hair out then! Cheers All. --- In flexcoders@yahoogroups.com, Mika Kiljunen [EMAIL PROTECTED] wrote: Yeah, well my guess is that it won't help if Array works under 60 secs... it should work after 60 secs too :-) BTW, I have always used ArrayList instead of Array. -Mika From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: 11. elokuuta 2006 16:02 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Timeout issue Hi, Yeah, I've tried to strip it down to the minimum (as you can see from the extremely bare app below, but it is tied to the 1 minute barrier as I have increased the t value by one day at a time until I get to a second return time and it fails exactly at 60 seconds, although the debuh shows the return being thrown back to the client. I'll try changing the return object from an Array of objects to an ArrayList to see if that makes any difference. Cheers! Iain --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Mika Kiljunen mika.kiljunen@ wrote: That's really weird. I would suggest to strip down the code to minimum. Drop out the showBusyCursor (set it to false), try to call service several times with different params and see what happens. On faulthandler I believe you should have mx.core.Application.alert(event.fault) instead of event.result. If that does not help anything, then I would change the data returned by the server to minimum (ie to just a String) to see if it's a data convert error (from Java to flex) and try to work from there up to the problem. I have worked with remote objects for over a year now and only problems that I've encountered have been some conversion errors (that sometimes fail silently!) and some problems with responder objects that were actually a bug in my code. And we do run long methods too, some may take as much as 5 minutes and they do return results and come back alive. -Mika From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of digital_eyezed Sent: 11. elokuuta 2006 14:18 To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Flex Timeout issue Hi, I've been working on this issue now for 3 days and I am at a complete loss. I have a simple request which uses a remoteObject, this works fine if the result is returned in under 1 minute, however if the result takes longer than 1 miinute to return the client doesn't recive the result and the busy cusror just keeps on showing. Here is the page (stripped down to focus on the problem): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml width=100% height=100% mx:Script ![CDATA[ var f = 02/Aug/2005; var t = 03/Aug/2006; var g = 100641,100643,100645,100647,100649,100651,100653,100656; function hello(event){ mx.core.Application.alert(I'm Back!); } function onRemObjError(event){ mx.core.Application.alert(event.result); } ]] /mx:Script mx:RemoteObject id=getItOOS source=com.vianet.Test result=hello (event) fault=onRemObjError(event) showBusyCursor=true/ mx:Button label=Get Report click=getItOOS.getIt (f,t,g,'1','1')/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Asynchronous calls in Flex 1.5
Hi, Silly question really, I have an app that does this in a function: getTheData.method1(datef,datet,accessGroups,1,1); getTheData.method2(datef,datet,accessGroups,1,1); However, when you look at the dubug, method2 doesn't start until method1 is finished, I thought that they were meant to be asynchronous? Have I got this all wrong? These are remoteObject calls on a POJO. Thanks for keeping me straight (who ever answers first!). Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Asynchronous calls in Flex 1.5
Thanks a lot, I thought something strange was going on! Cheers, Iain --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Tricky stuff there. Peter Ent has a really helpful article on this: http://weblogs.macromedia.com/pent/archives/2005/02/operating_in_pa.c fm http://weblogs.macromedia.com/pent/archives/2005/02/operating_in_pa. cfm\ --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, Silly question really, I have an app that does this in a function: getTheData.method1(datef,datet,accessGroups,1,1); getTheData.method2(datef,datet,accessGroups,1,1); However, when you look at the dubug, method2 doesn't start until method1 is finished, I thought that they were meant to be asynchronous? Have I got this all wrong? These are remoteObject calls on a POJO. Thanks for keeping me straight (who ever answers first!). Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Timeout issue
Hi, Yeah, I've tried to strip it down to the minimum (as you can see from the extremely bare app below, but it is tied to the 1 minute barrier as I have increased the t value by one day at a time until I get to a second return time and it fails exactly at 60 seconds, although the debuh shows the return being thrown back to the client. I'll try changing the return object from an Array of objects to an ArrayList to see if that makes any difference. Cheers! Iain --- In flexcoders@yahoogroups.com, Mika Kiljunen [EMAIL PROTECTED] wrote: That's really weird. I would suggest to strip down the code to minimum. Drop out the showBusyCursor (set it to false), try to call service several times with different params and see what happens. On faulthandler I believe you should have mx.core.Application.alert(event.fault) instead of event.result. If that does not help anything, then I would change the data returned by the server to minimum (ie to just a String) to see if it's a data convert error (from Java to flex) and try to work from there up to the problem. I have worked with remote objects for over a year now and only problems that I've encountered have been some conversion errors (that sometimes fail silently!) and some problems with responder objects that were actually a bug in my code. And we do run long methods too, some may take as much as 5 minutes and they do return results and come back alive. -Mika From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: 11. elokuuta 2006 14:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Timeout issue Hi, I've been working on this issue now for 3 days and I am at a complete loss. I have a simple request which uses a remoteObject, this works fine if the result is returned in under 1 minute, however if the result takes longer than 1 miinute to return the client doesn't recive the result and the busy cusror just keeps on showing. Here is the page (stripped down to focus on the problem): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml width=100% height=100% mx:Script ![CDATA[ var f = 02/Aug/2005; var t = 03/Aug/2006; var g = 100641,100643,100645,100647,100649,100651,100653,100656; function hello(event){ mx.core.Application.alert(I'm Back!); } function onRemObjError(event){ mx.core.Application.alert(event.result); } ]] /mx:Script mx:RemoteObject id=getItOOS source=com.vianet.Test result=hello (event) fault=onRemObjError(event) showBusyCursor=true/ mx:Button label=Get Report click=getItOOS.getIt (f,t,g,'1','1')/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Timeout on RemoteObject (flex 1.5)
Hi, here it is: mx:RemoteObject id=getDataOOS source=uk.co.mycompany.SalesDAO showBusyCursor=true mx:method name=getData result=setDataProvider(event)/ /mx:RemoteObject public function setDataProvider(event){ summaryGrid.dataProvider = event.result; } I will try to see what the remoteObject debug shows. Regards, Iain --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Can you post the RemoteObject declaration? If you haven't already done so, try setting remote-objects-debug to true in WEB-INF/flex/flex-config.xml, just to see if there's any debug info that might be useful. --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Actually it's the same amount of data being returned, it just takes longer to return it because the data that the database has to check over is a larger set because of the increase in the from and to dates. I.E. I have a sales summary report which sends the date from and the date to as arguments to a remoteObject, it uses this to do a query on the database, then returns the result as an ArrayList to the flex app (there is only ever 1 array in the list) and it then represents this in a datagrid as a single row. If I run the sales query for 1 week, it fills in the datagrid without any issues. If I run the query for a month then the busy cursor stays on forever and the result is not shown. I know that the database returns the data and that the java function also returns the ArrayList because I can see it doing so in the console, the result handler just seems to miss it and therfore nothing happens. I really don't know where to go next ;-( Cheers, Iain --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Yes, sounds like there is something different going on. So the same result handler that works for a smaller query hangs on a large query, where the only difference is the amount of data being returned by the service? --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Thanks, I 've tried all what you have suggested and I do get a return in a JSP app. I also tried changing the connectionTimout value, but that didn't work either. It's really weird as I can see Tomcat returning the object (an ArrayList)in the console (eclipse) but flex just sits their saying well, where is my return then?. --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: The underlying HTTP connection may be timing out. You can try writing a test JSP page that executes the same large sql query - if that times out as well, then the problem is not specific to Flex. Or, if you're running Tomcat as your server you can just take a look at server.xml and bump the connectionTimeout value of the Connector tag up to something higher. Hope that helps, Doug --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a simple remoteObject that returns no problem unless the remoteObject takes longer than 1 minute to return, then flex never picks up the return. Has anyone seen this before? i.e. If I run a query over a time period of 2 weeks it return no problem in about 35 seconds (it's a big sql query at the Java side). If I increase the time period to a 1 month period for the query then return from the Java side is not pcked up by Flex, it just sits there in the busy Cursor state. Is there an underlying timer that gives up waiting for a return? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Timeout on RemoteObject (flex 1.5)
Ok how weird is this: In the remote object debug you can see the return with all the data being sent: Info: Completed 'uk.co.mycompany.dao.GetSalesDAO.getData' with reply method 'onResult' in 96295ms Info: Serializing response (Message #0 targetURI=/1/onResult, responseURI=null) (Array #0) [0] = (Typed Object #1 'uk.co.mycompany.dao.SalesVO') mtotal = 143.0 avgevnt = 9.569930076599121 total = 1173.0 paffected = 0.2663846015930176 hrspermac = 36.56489562988281 lostsales = 24.324005126953125 _remoteClass = uk.co.mycompany.dao.SalesVO affected = 19.83356475830078 lostunits = 25.21294403076172 hrsout = 5228.7802734375 rosaff = 115.84265899658203 But the showbusy cursor just keeps on going and no data is shown! Where am I going wrong? I have even taken out the binding to the dataProvider and just have the result handler showing an alert, but no alert shows, just the blinking showBusyCursor! Any suggestions would be greatly received, Thanks in advance. Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, here it is: mx:RemoteObject id=getDataOOS source=uk.co.mycompany.SalesDAO showBusyCursor=true mx:method name=getData result=setDataProvider(event)/ /mx:RemoteObject public function setDataProvider(event){ summaryGrid.dataProvider = event.result; } I will try to see what the remoteObject debug shows. Regards, Iain --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Can you post the RemoteObject declaration? If you haven't already done so, try setting remote-objects- debug to true in WEB-INF/flex/flex-config.xml, just to see if there's any debug info that might be useful. --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Actually it's the same amount of data being returned, it just takes longer to return it because the data that the database has to check over is a larger set because of the increase in the from and to dates. I.E. I have a sales summary report which sends the date from and the date to as arguments to a remoteObject, it uses this to do a query on the database, then returns the result as an ArrayList to the flex app (there is only ever 1 array in the list) and it then represents this in a datagrid as a single row. If I run the sales query for 1 week, it fills in the datagrid without any issues. If I run the query for a month then the busy cursor stays on forever and the result is not shown. I know that the database returns the data and that the java function also returns the ArrayList because I can see it doing so in the console, the result handler just seems to miss it and therfore nothing happens. I really don't know where to go next ;-( Cheers, Iain --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Yes, sounds like there is something different going on. So the same result handler that works for a smaller query hangs on a large query, where the only difference is the amount of data being returned by the service? --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Thanks, I 've tried all what you have suggested and I do get a return in a JSP app. I also tried changing the connectionTimout value, but that didn't work either. It's really weird as I can see Tomcat returning the object (an ArrayList)in the console (eclipse) but flex just sits their saying well, where is my return then?. --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: The underlying HTTP connection may be timing out. You can try writing a test JSP page that executes the same large sql query - if that times out as well, then the problem is not specific to Flex. Or, if you're running Tomcat as your server you can just take a look at server.xml and bump the connectionTimeout value of the Connector tag up to something higher. Hope that helps, Doug --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a simple remoteObject that returns no problem unless the remoteObject takes longer than 1 minute to return, then flex never picks up the return. Has anyone seen this before? i.e. If I run a query over a time period of 2 weeks it return no problem in about 35 seconds (it's a big sql query at the Java side). If I increase the time period to a 1 month period
[flexcoders] Re: Timeout on RemoteObject (flex 1.5)
Tried that, still does nothing, it's just the most annoying thing ever, even worse than that frog. Here is the main code from the page: ?xml version=1.0 encoding=utf-8? mx:Application usePreloader=false xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% height=100% mx:Script ![CDATA[ var f = 01/Jul/2006; var t = 31/Jul/2006; var g = 100641,100643,100645,100647,100649,100651; function hello(event){ mx.core.Application.alert(I've Returned!); } function onRemObjError(event){ mx.core.Application.alert(event.result); } ]] /mx:Script mx:RemoteObject id=getDataOOS source='uk.co.mycompany.dao.GetSalesDAO showBusyCursor=true mx:method name=getData result=hello(event) fault=onRemObjError(event)/ /mx:RemoteObject mx:Button label=Get Report click=getDataOOS.getData(f,t,g,1,1)/ /mx:Application I can't see any errors here. Kind Regards, Iain --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: A fault handler on your RO may help. mx:RemoteObject ... fault=onRemObjError(event) Then define the handler function and maybe show an alert containing event.fault.faultstring to let you know a fault occurred. --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Ok how weird is this: In the remote object debug you can see the return with all the data being sent: Info: Completed 'uk.co.mycompany.dao.GetSalesDAO.getData' with reply method 'onResult' in 96295ms Info: Serializing response (Message #0 targetURI=/1/onResult, responseURI=null) (Array #0) [0] = (Typed Object #1 'uk.co.mycompany.dao.SalesVO') mtotal = 143.0 avgevnt = 9.569930076599121 total = 1173.0 paffected = 0.2663846015930176 hrspermac = 36.56489562988281 lostsales = 24.324005126953125 _remoteClass = uk.co.mycompany.dao.SalesVO affected = 19.83356475830078 lostunits = 25.21294403076172 hrsout = 5228.7802734375 rosaff = 115.84265899658203 But the showbusy cursor just keeps on going and no data is shown! Where am I going wrong? I have even taken out the binding to the dataProvider and just have the result handler showing an alert, but no alert shows, just the blinking showBusyCursor! Any suggestions would be greatly received, Thanks in advance. Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, here it is: mx:RemoteObject id=getDataOOS source=uk.co.mycompany.SalesDAO showBusyCursor=true mx:method name=getData result=setDataProvider(event)/ /mx:RemoteObject public function setDataProvider(event){ summaryGrid.dataProvider = event.result; } I will try to see what the remoteObject debug shows. Regards, Iain --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Can you post the RemoteObject declaration? If you haven't already done so, try setting remote-objects- debug to true in WEB-INF/flex/flex-config.xml, just to see if there's any debug info that might be useful. --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Actually it's the same amount of data being returned, it just takes longer to return it because the data that the database has to check over is a larger set because of the increase in the from and to dates. I.E. I have a sales summary report which sends the date from and the date to as arguments to a remoteObject, it uses this to do a query on the database, then returns the result as an ArrayList to the flex app (there is only ever 1 array in the list) and it then represents this in a datagrid as a single row. If I run the sales query for 1 week, it fills in the datagrid without any issues. If I run the query for a month then the busy cursor stays on forever and the result is not shown. I know that the database returns the data and that the java function also returns the ArrayList because I can see it doing so in the console, the result handler just seems to miss it and therfore nothing happens. I really don't know where to go next ;-( Cheers, Iain --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Yes, sounds like there is something different going on. So the same result handler that works for a smaller query hangs on a large query, where the only difference is the amount of data being returned by the service? --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Thanks
[flexcoders] Timeout on RemoteObject (flex 1.5)
Hi, I have a simple remoteObject that returns no problem unless the remoteObject takes longer than 1 minute to return, then flex never picks up the return. Has anyone seen this before? i.e. If I run a query over a time period of 2 weeks it return no problem in about 35 seconds (it's a big sql query at the Java side). If I increase the time period to a 1 month period for the query then return from the Java side is not pcked up by Flex, it just sits there in the busy Cursor state. Is there an underlying timer that gives up waiting for a return? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Timeout on RemoteObject (flex 1.5)
Thanks, I 've tried all what you have suggested and I do get a return in a JSP app. I also tried changing the connectionTimout value, but that didn't work either. It's really weird as I can see Tomcat returning the object (an ArrayList)in the console (eclipse) but flex just sits their saying well, where is my return then?. --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: The underlying HTTP connection may be timing out. You can try writing a test JSP page that executes the same large sql query - if that times out as well, then the problem is not specific to Flex. Or, if you're running Tomcat as your server you can just take a look at server.xml and bump the connectionTimeout value of the Connector tag up to something higher. Hope that helps, Doug --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a simple remoteObject that returns no problem unless the remoteObject takes longer than 1 minute to return, then flex never picks up the return. Has anyone seen this before? i.e. If I run a query over a time period of 2 weeks it return no problem in about 35 seconds (it's a big sql query at the Java side). If I increase the time period to a 1 month period for the query then return from the Java side is not pcked up by Flex, it just sits there in the busy Cursor state. Is there an underlying timer that gives up waiting for a return? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Popup deletion and memory issue in 1.5
Ok, I think I have narrowed the issue down to the components within the TitleWindow. I have a TabNavigator within the popup and when there is more than one tab this issue is seen. If I remove all but one tabs from the tabnavigator the popup deletes without issue. However, I can't work out why! Is this something to do with the creationpolicy? Being that the underlying tabs contents have not been drawn yet? I tried clicking on all the tabs before I closed the tabnavigator to ensure they were all initialized but this didn't cure the problem. Any thoughts would be greatly appreciated. Regards, Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I have a standard popup using: mx.managers.PopUpManager.createPopUp (this,myTitlewindow,isModal,init); where myTitlewindow is a custom TitleWindow component. This all works fine and within the TitleWindow I have a number of RemoteObjects which gather data from the server, all of this works fine. When I click the close button for the TitleWindow using click=handleClick(); function handleClick(event){ doLater(this, deletePopUp); } The popup deletes as expected, however the showBusy cursor appears and suddenly everything starts to slow down and eventually it looks like someone has stolen at least 512Mb Ram out my PC! I have checked the RemoteObject calls and none of them are being called on deletion of the popup. Please help, this is really doing my head in! Cheers, Iain Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Popup deletion and memory issue in 1.5
Hi Ralf, Thanks for the help, I tried to call destroyAllChildren() on the TabNavigator, but this did not help. Is that what you mean? Cheers, Iain --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Hi Iain What if you remove items from the tabnavigator just before closing? Cheers, Ralf. On 6/27/06, digital_eyezed [EMAIL PROTECTED] wrote: Ok, I think I have narrowed the issue down to the components within the TitleWindow. I have a TabNavigator within the popup and when there is more than one tab this issue is seen. If I remove all but one tabs from the tabnavigator the popup deletes without issue. However, I can't work out why! Is this something to do with the creationpolicy? Being that the underlying tabs contents have not been drawn yet? I tried clicking on all the tabs before I closed the tabnavigator to ensure they were all initialized but this didn't cure the problem. Any thoughts would be greatly appreciated. Regards, Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a standard popup using: mx.managers.PopUpManager.createPopUp (this,myTitlewindow,isModal,init); where myTitlewindow is a custom TitleWindow component. This all works fine and within the TitleWindow I have a number of RemoteObjects which gather data from the server, all of this works fine. When I click the close button for the TitleWindow using click=handleClick(); function handleClick(event){ doLater(this, deletePopUp); } The popup deletes as expected, however the showBusy cursor appears and suddenly everything starts to slow down and eventually it looks like someone has stolen at least 512Mb Ram out my PC! I have checked the RemoteObject calls and none of them are being called on deletion of the popup. Please help, this is really doing my head in! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Popup deletion and memory issue in 1.5
I tried to make a simple version but can't recreate the issue. I put all the contents of the tabs into the first tab and removed the others tabs but the issue was not fixed so it has nothing to do with the other tabs. The TitleWindow has 7(seven) remote object calls, all of which return without an issue. Each tab contains a datagrid and graph for each return from their corrosponding remote calls. It is soo difficult to debug this. I cannot understand why when you delete a popup suddenly the Busy Cursor is shown and the the whole app comes to a grinding halt! I guess I could just peay that it goes away! Any other suggestions would be greatfully received. Regards, Iain --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Yep, but it was just a shot in the dark. I'm not sure what really happens in your app. Maybe you can create a minmal version of your source to reproduce your problem. Cheers, Ralf. On 6/27/06, digital_eyezed [EMAIL PROTECTED] wrote: Hi Ralf, Thanks for the help, I tried to call destroyAllChildren() on the TabNavigator, but this did not help. Is that what you mean? Cheers, Iain --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Hi Iain What if you remove items from the tabnavigator just before closing? Cheers, Ralf. On 6/27/06, digital_eyezed iain.mclean@ wrote: Ok, I think I have narrowed the issue down to the components within the TitleWindow. I have a TabNavigator within the popup and when there is more than one tab this issue is seen. If I remove all but one tabs from the tabnavigator the popup deletes without issue. However, I can't work out why! Is this something to do with the creationpolicy? Being that the underlying tabs contents have not been drawn yet? I tried clicking on all the tabs before I closed the tabnavigator to ensure they were all initialized but this didn't cure the problem. Any thoughts would be greatly appreciated. Regards, Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a standard popup using: mx.managers.PopUpManager.createPopUp (this,myTitlewindow,isModal,init); where myTitlewindow is a custom TitleWindow component. This all works fine and within the TitleWindow I have a number of RemoteObjects which gather data from the server, all of this works fine. When I click the close button for the TitleWindow using click=handleClick(); function handleClick(event){ doLater(this, deletePopUp); } The popup deletes as expected, however the showBusy cursor appears and suddenly everything starts to slow down and eventually it looks like someone has stolen at least 512Mb Ram out my PC! I have checked the RemoteObject calls and none of them are being called on deletion of the popup. Please help, this is really doing my head in! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Popup deletion and memory issue in 1.5
I tried to make a simple version but can't recreate the issue. I put all the contents of the tabs into the first tab and removed the others tabs but the issue was not fixed so it has nothing to do with the other tabs. The TitleWindow has 7(seven) remote object calls, all of which return without an issue. Each tab contains a datagrid and graph for each return from their corrosponding remote calls. It is soo difficult to debug this. I cannot understand why when you delete a popup suddenly the Busy Cursor is shown and the the whole app comes to a grinding halt! I guess I could just pray that it goes away! Any other suggestions would be greatfully received. Regards, Iain --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Yep, but it was just a shot in the dark. I'm not sure what really happens in your app. Maybe you can create a minmal version of your source to reproduce your problem. Cheers, Ralf. On 6/27/06, digital_eyezed [EMAIL PROTECTED] wrote: Hi Ralf, Thanks for the help, I tried to call destroyAllChildren() on the TabNavigator, but this did not help. Is that what you mean? Cheers, Iain --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Hi Iain What if you remove items from the tabnavigator just before closing? Cheers, Ralf. On 6/27/06, digital_eyezed iain.mclean@ wrote: Ok, I think I have narrowed the issue down to the components within the TitleWindow. I have a TabNavigator within the popup and when there is more than one tab this issue is seen. If I remove all but one tabs from the tabnavigator the popup deletes without issue. However, I can't work out why! Is this something to do with the creationpolicy? Being that the underlying tabs contents have not been drawn yet? I tried clicking on all the tabs before I closed the tabnavigator to ensure they were all initialized but this didn't cure the problem. Any thoughts would be greatly appreciated. Regards, Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have a standard popup using: mx.managers.PopUpManager.createPopUp (this,myTitlewindow,isModal,init); where myTitlewindow is a custom TitleWindow component. This all works fine and within the TitleWindow I have a number of RemoteObjects which gather data from the server, all of this works fine. When I click the close button for the TitleWindow using click=handleClick(); function handleClick(event){ doLater(this, deletePopUp); } The popup deletes as expected, however the showBusy cursor appears and suddenly everything starts to slow down and eventually it looks like someone has stolen at least 512Mb Ram out my PC! I have checked the RemoteObject calls and none of them are being called on deletion of the popup. Please help, this is really doing my head in! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Popup deletion and memory issue in 1.5
Hi, the only events are fired on creation (go get the remote objects etc). I do have a change on the tab navigator which refreshes the data for the corresponding tab though, I will look into that. It seems to be linked to the firing of multiple different remote objects. i.e. if I go to remoteobect1 and get a return from method 1 thats fine, however as soon as i add remoteObject2 it causes this issue although all the remote objects fire and provide results as expected, its just when I close the Popup I see the busy cursor etc. Really weird! Iain --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 27 June 2006 14:24, digital_eyezed wrote: I cannot understand why when you delete a popup suddenly the Busy Cursor is shown and the the whole app comes to a grinding halt! Maybe you are firing some event during the hide/close event in a handler somewhere, and this is causing a blow up ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Popup deletion and memory issue in 1.5
Hi, I have a standard popup using: mx.managers.PopUpManager.createPopUp (this,myTitlewindow,isModal,init); where myTitlewindow is a custom TitleWindow component. This all works fine and within the TitleWindow I have a number of RemoteObjects which gather data from the server, all of this works fine. When I click the close button for the TitleWindow using click=handleClick(); function handleClick(event){ doLater(this, deletePopUp); } The popup deletes as expected, however the showBusy cursor appears and suddenly everything starts to slow down and eventually it looks like someone has stolen at least 512Mb Ram out my PC! I have checked the RemoteObject calls and none of them are being called on deletion of the popup. Please help, this is really doing my head in! Cheer, Iain Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Viewing a base64Binary image in flex1.5
Hi, I am accessing a web service which returns a base64Binary image. Can I convert this to a PNG or GIF in flex? This is the part of the return which includes the image: Map bitsbase64Binary/bits typestring/type /Map Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Simple Question (Flex 1.5) about LinkBar
Is there any wy to have the LinkBar color with a gradient like the headerColors of a panel? Or is it only single color fills without having to extend it? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Accessing a custom cellrenderer
Hi, I have a simple cellrenderer in a List which contains a checkbox. I want to check through the list to see which items are checked. Here is the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:HBox styleName=wizardContainer horizontalAlign=left xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% height=100% mx:Script ![CDATA[ var theLabel; var theData; function setValue(str:String, item:Object, sel:Boolean){ theLabel = String(item.label); theData = Number(item.data); } ]] /mx:Script mx:Spacer width=5/ mx:CheckBox width=20 id=siteSelected selected=false/ mx:Text width=100% text={theLabel} styleName=cellRendererText/ /mx:HBox Here is the list: mx:List cellRenderer=components.WizardCell id=list2 width=100% height=100% dataProvider={service.getMethod.result}/ There is a Submit button below this which when clicked I want to check through the list to see which items have been checked. Each object in the list has a data and label attribute from the dataProvider, ideally I would like to get an array of the data attributes of those checked. Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] I don't want a binding!
HI, I have an issue with an array which created on the result of a remoteObject call. The result is set to an array like this inside the result function: array = new Array(); array = mx.utils.ArrayUtil.toArray(event.result); The array is substantiated outside this function like so: var array:Array; The result from the remoteObject is also used as a dataProvider to a List, which has drag and drop functionality and the dataProvider is assigned as such: dataProvider={service.getMethod.result} Now, this lists' dataProvider can enlarge as objects are added to it through dragging and dropping, irrelevant I hear you say. The problem is, I set the array when the result is received in order for me to check it against the datProvider of the List before I return it to the server (i.e. I do a diff on the array from the result and the dataProvider on the List and I get a new array of the new Objects dragged to the List), like this: public function addNewObjects(){ var newArray:Array = new Array(); var newArray2:Array = new Array(); arrayOfListObjects = mx.utils.ArrayUtil.toArray(list.dataProvider); newArray = NotInB(arrayOfListObjects,array); if(newArray.length != 0){ for(var k = 0;knewArray.length;k++){ var newObjectVO:ObjectVO = new ObjectVO(); newObjectVO.label = newArray[k].label; newObjectVO.data = newArray[k].data; newArray2.push(newObjectVO); } service.addObjects(newArray2); }else{ mx.core.Application.alert(Complain a lot about not adding anything!); } } for clarity the NotInB function does this: public function NotInB(arrayA,arrayB) { var tempAry= new Array(); var i,j; for (i=0; iarrayA.length; i++) { for (j=0; jarrayB.length; j++) { if (arrayA[i].data==arrayB[j].data) { break; } } if (j==arrayB.length) { tempAry.push(arrayA[i]); } } return tempAry; } No problem, this all works first time without an issue, and the objects are passed to the server as expected, then everything goes wrong. From then on the array which is set from the result object is set ok (I have traced out the array when it is created every time and it is correct), but when I drag objects to the List they are also added to this array, why? there is no binding to it! so every time after the first time I add the new objects I 'Complain a lot about not adding anything!'. Please help. Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: I don't want a binding!
Thanks very much, that worked a treat. Best Regards, Iain --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Sorry for the typo - editableArray = originalArray.slice(); should be editableArray = array.slice(); --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: What you are doing is accessing two different references to the same array object. The mx.utils.ArrayUtil.toArray() function simply returns a reference to the parameter if it is already an array, so in that case it will always contain the same data as your list's dataprovider. What you can do instead is the following: // within the result function array = mx.utils.ArrayUtil.toArray(event.result); editableArray = originalArray.slice(); // outside the function var array:Array; var editableArray:Array; And for your list's dataprovider: dataProvider={editableArray} Now you will have two different Array objects, array and editableArray, that you can compare with your existing code. Hope that helps, Doug --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: HI, I have an issue with an array which created on the result of a remoteObject call. The result is set to an array like this inside the result function: array = new Array(); array = mx.utils.ArrayUtil.toArray(event.result); The array is substantiated outside this function like so: var array:Array; The result from the remoteObject is also used as a dataProvider to a List, which has drag and drop functionality and the dataProvider is assigned as such: dataProvider={service.getMethod.result} Now, this lists' dataProvider can enlarge as objects are added to it through dragging and dropping, irrelevant I hear you say. The problem is, I set the array when the result is received in order for me to check it against the datProvider of the List before I return it to the server (i.e. I do a diff on the array from the result and the dataProvider on the List and I get a new array of the new Objects dragged to the List), like this: public function addNewObjects(){ var newArray:Array = new Array(); var newArray2:Array = new Array(); arrayOfListObjects = mx.utils.ArrayUtil.toArray (list.dataProvider); newArray = NotInB(arrayOfListObjects,array); if(newArray.length != 0){ for(var k = 0;knewArray.length;k++){ var newObjectVO:ObjectVO = new ObjectVO(); newObjectVO.label = newArray[k].label; newObjectVO.data = newArray[k].data; newArray2.push(newObjectVO); } service.addObjects(newArray2); }else{ mx.core.Application.alert(Complain a lot about not adding anything!); } } for clarity the NotInB function does this: public function NotInB(arrayA,arrayB) { var tempAry= new Array(); var i,j; for (i=0; iarrayA.length; i++) { for (j=0; jarrayB.length; j++) { if (arrayA[i].data==arrayB[j].data) { break; } } if (j==arrayB.length) { tempAry.push(arrayA[i]); } } return tempAry; } No problem, this all works first time without an issue, and the objects are passed to the server as expected, then everything goes wrong. From then on the array which is set from the result object is set ok (I have traced out the array when it is created every time and it is correct), but when I drag objects to the List they are also added to this array, why? there is no binding to it! so every time after the first time I add the new objects I 'Complain a lot about not adding anything!'. Please help. Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 popup issue
Correct, I had a problem with MyEclipse, it wasn't refreshing the context when I changed the location of the Wizard.mxml. It works now, thanks for your help. Iain --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: So you should have a Wizard.mxml under the /components folder right? At the main application lies in the root called app.mxml or something? Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Thursday, March 16, 2006 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 popup issue It complains: There is no class or package with the name 'components.Wizard' found in package 'components'. The TitleWindow is an mxml file not an AS file. Any more ideas?? Cheers, Iain --- In flexcoders@yahoogroups.com, Dimitrios Gianninas dimitrios.gianninas@ wrote: use the fully qualified name: PopUpManager.createdPopUp( parent, some.folder.Wizard, isModal, initObj ); Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Thursday, March 16, 2006 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 popup issue Ok, the problem lies with the location of the popup TitleWindow. How do I reference the TitleWindow in the createPopUp function when it's in a sub-directory called components? Cheers, Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have an application with a number of custom components. In one of these components I have an image, which when clicked on I want a popup to open. I have a mouseDown event which dispataches an event to the parent application container mouseDown=dispatchEvent ({type:'wizard'}) The event is handled in the Application container by a function: import mx.managers.PopUpManager; public function routeWizard(event){ var parent = this; var isModal:Boolean = true; var initObj = {}; var rWiz = PopUpManager.createPopUp(parent, Wizard, isModal, initObj); } The Wizard.mxml component is a TitleWindow component and is held with all my other components in my /components directory. When I click the image nothing happens, when I click it again the whole page goes white. hhh! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+ des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+p rac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQComputer software development http://groups.yahoo.com/gads? t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Softwar e+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best +pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwSoftware design and development http://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Softw are +design+and+developmentw4=Macromedia+flexw5=Software+development+be st+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+d eve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5 s=1 66.sig=OO6nPIrz7_EpZI36cYzBjwSoftware development best practice http://groups.yahoo.com/gads? t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=So ftw are+design+and+developmentw4=Macromedia+flexw5=Software+development +be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms
[flexcoders] LabelFunction for a Tree (flex 1.5)
Hi, I am having some issues with a labelFunction for a tree component. The dataProvider for my tree is a result of a RemoteObject call, which returns an Embedded Array of VO objects. The tree displays without any issues. Within the VO there is a label attribute which is automatically chosen as the field for the label, however my app is multilingual and I have to format that label for different languages, so I want to build a labelFunction to check the value of the label then return the correct String from the current language model. No probs I hear you say. Ok, on the tree I have this: labelFunction=checkLanguage The function looks like this: public function checkLanguage(item):String{ if(item.label == 1){ return language.1; }else if(item.label == 2){ return language.2; }else if(item.label == 3){ return language.3; }else if(item.label == 4){ return language.4; }else if(item.label == 5){ return language.5; }else if(item.label == 6){ return language.6; }else if(item.label == 7){ return language.7; }else{ return item.label; } } Now this returns nothing, I have also checked to see what item.label is and it is undefined, so where am I going wrong? Thanks in advance. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: LabelFunction for a Tree (flex 1.5)
STOP: I found it: Should be item.getProperty('label'). Cheers, Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I am having some issues with a labelFunction for a tree component. The dataProvider for my tree is a result of a RemoteObject call, which returns an Embedded Array of VO objects. The tree displays without any issues. Within the VO there is a label attribute which is automatically chosen as the field for the label, however my app is multilingual and I have to format that label for different languages, so I want to build a labelFunction to check the value of the label then return the correct String from the current language model. No probs I hear you say. Ok, on the tree I have this: labelFunction=checkLanguage The function looks like this: public function checkLanguage(item):String{ if(item.label == 1){ return language.1; }else if(item.label == 2){ return language.2; }else if(item.label == 3){ return language.3; }else if(item.label == 4){ return language.4; }else if(item.label == 5){ return language.5; }else if(item.label == 6){ return language.6; }else if(item.label == 7){ return language.7; }else{ return item.label; } } Now this returns nothing, I have also checked to see what item.label is and it is undefined, so where am I going wrong? Thanks in advance. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to refresh a component
Hi, I have a tree component with which I change the label dynamically through a label function. The labelfunction works fine when the tree loads, but if a change the value of the the reference to this labelfunction the value of the tree label doesn't change. However, the label does change when I move my mouse over it. Is there any way I can make this happen immediately? Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 1.5 popup issue
Hi, I have an application with a number of custom components. In one of these components I have an image, which when clicked on I want a popup to open. I have a mouseDown event which dispataches an event to the parent application container mouseDown=dispatchEvent ({type:'wizard'}) The event is handled in the Application container by a function: import mx.managers.PopUpManager; public function routeWizard(event){ var parent = this; var isModal:Boolean = true; var initObj = {}; var rWiz = PopUpManager.createPopUp(parent, Wizard, isModal, initObj); } The Wizard.mxml component is a TitleWindow component and is held with all my other components in my /components directory. When I click the image nothing happens, when I click it again the whole page goes white. hhh! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 popup issue
Ok, the problem lies with the location of the popup TitleWindow. How do I reference the TitleWindow in the createPopUp function when it's in a sub-directory called components? Cheers, Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I have an application with a number of custom components. In one of these components I have an image, which when clicked on I want a popup to open. I have a mouseDown event which dispataches an event to the parent application container mouseDown=dispatchEvent ({type:'wizard'}) The event is handled in the Application container by a function: import mx.managers.PopUpManager; public function routeWizard(event){ var parent = this; var isModal:Boolean = true; var initObj = {}; var rWiz = PopUpManager.createPopUp(parent, Wizard, isModal, initObj); } The Wizard.mxml component is a TitleWindow component and is held with all my other components in my /components directory. When I click the image nothing happens, when I click it again the whole page goes white. hhh! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 popup issue
It complains: There is no class or package with the name 'components.Wizard' found in package 'components'. The TitleWindow is an mxml file not an AS file. Any more ideas?? Cheers, Iain --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: use the fully qualified name: PopUpManager.createdPopUp( parent, some.folder.Wizard, isModal, initObj ); Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Thursday, March 16, 2006 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 popup issue Ok, the problem lies with the location of the popup TitleWindow. How do I reference the TitleWindow in the createPopUp function when it's in a sub-directory called components? Cheers, Iain --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, I have an application with a number of custom components. In one of these components I have an image, which when clicked on I want a popup to open. I have a mouseDown event which dispataches an event to the parent application container mouseDown=dispatchEvent ({type:'wizard'}) The event is handled in the Application container by a function: import mx.managers.PopUpManager; public function routeWizard(event){ var parent = this; var isModal:Boolean = true; var initObj = {}; var rWiz = PopUpManager.createPopUp(parent, Wizard, isModal, initObj); } The Wizard.mxml component is a TitleWindow component and is held with all my other components in my /components directory. When I click the image nothing happens, when I click it again the whole page goes white. hhh! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+ des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+p rac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads? t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Softwar e+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best +pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Softw are +design+and+developmentw4=Macromedia+flexw5=Software+development+be st+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+d eve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5 s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads? t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=So ftw are+design+and+developmentw4=Macromedia+flexw5=Software+development +be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Get Parent on the Tree
Thanks, I'm using 1.5, I tried to use the rowIndex as it returned the parent row, but this is a bit unpredictable. I'll try the getParent, how would I use this? On a cellPress event? Cheers, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1.5 or 2.0? In 1.5 the TreeDataProvider interface (which your dataProvider will implement) has a getParent method. In 2.0 we don't have an abstracted way of getting the parent. If you have XML then you can just use the parent() method. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Friday, March 10, 2006 7:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Get Parent on the Tree Hi All, If I click on a node in a tree, how can I get the parent of that node? The tree dataProvider is filled from a result object of which the attributes are label and data (it only goes down one level in a hierarchy): node label= data= node label= data= node label= data= node label= data= /node node label= data= node label= data= node label= data= node label= data= node label= data= node label= data= /node If I click on one of the child nodes, I want to know the data or label of its parent, that's all, sounds easy but I'm pulling what hair I have left out! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Get Parent on the Tree
Hi All, If I click on a node in a tree, how can I get the parent of that node? The tree dataProvider is filled from a result object of which the attributes are label and data (it only goes down one level in a hierarchy): node label= data= node label= data= node label= data= node label= data= /node node label= data= node label= data= node label= data= node label= data= node label= data= node label= data= /node If I click on one of the child nodes, I want to know the data or label of its parent, that's all, sounds easy but I'm pulling what hair I have left out! Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Why Java 1.4?????
Why wont flex 1.5 work with anything other than 1.4 JDK? It doesn't even work with the latest Tomcat, why would anyone constrain an application to a version of JRE, JDK or tomcat version? This is useless if the rest of the environment want to move on to pastures new and Flex is left behind dragging everyone back. I guess this is going to be the same problem with Flex 2, as soon as it's released it's stuck in a timewarp of 'old java'. It doesn't work with the latest JBOSS either or for that matter the last 14 versions, that's how sanboxed a technology it is. Maybe they should have spent time thinking about how to suppport it rather than how to price it, it only makes life difficult for us in a lose lose situation. Please remember that Flex 2 is still in beta and they should be supporting their existing release, without trying to hype everyone up about what the future brings.. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Why Java 1.4?????
Just knew it.. Can't talk about anything else other than Flex2, hasn't even been released yet. Guess what, Flex3 is Nuclear, let's talk about that now. Iain --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Sorry for your bad day, Remeber this, Flex2 does not have to be java. Ironically, I probably never will use Flex2 with java and for the most part, there can be an infinate amount of applications without Java and Flex2. Maybe you should refrase and say, Adobe isn't supporting their Java developers well but, Flex2 is a breath of fresh air for those who don't use java. Peace, Mike On 3/7/06, digital_eyezed [EMAIL PROTECTED] wrote: Why wont flex 1.5 work with anything other than 1.4 JDK? It doesn't even work with the latest Tomcat, why would anyone constrain an application to a version of JRE, JDK or tomcat version? This is useless if the rest of the environment want to move on to pastures new and Flex is left behind dragging everyone back. I guess this is going to be the same problem with Flex 2, as soon as it's released it's stuck in a timewarp of 'old java'. It doesn't work with the latest JBOSS either or for that matter the last 14 versions, that's how sanboxed a technology it is. Maybe they should have spent time thinking about how to suppport it rather than how to price it, it only makes life difficult for us in a lose lose situation. Please remember that Flex 2 is still in beta and they should be supporting their existing release, without trying to hype everyone up about what the future brings.. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com SPONSORED LINKS Web site design developmenthttp://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2= Computer+software+developmentw3=Software+design+and+developmentw4=M acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L -4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads? t=msk=Computer+software+developmentw1=Web+site+design+developmentw 2=Computer+software+developmentw3=Software+design+and+developmentw4 =Macromedia+flexw5=Software+development+best+practicec=5s=166.sig =lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1=Web+site+design+development w2=Computer+software+developmentw3=Software+design+and+development w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s ig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ I36cYzBjw Software development best practicehttp://groups.yahoo.com/gads? t=msk=Software+development+best+practicew1=Web+site+design+developm entw2=Computer+software+developmentw3=Software+design+and+developme ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166 .sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED]flexcoders- [EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Why Java 1.4?????
Really? We tried this and got Java Class Adapter errors on every service call that uses Remote Objects. Are you using Remote Object calls? Cheers, Iain --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: Your statements are not accurate. We run under Tomcat 5.5.15 (latest release) and under JDK 1.5. in development and in production for several clients. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Why wont flex 1.5 work with anything other than 1.4 JDK? It doesn't even work with the latest Tomcat, why would anyone constrain an application to a version of JRE, JDK or tomcat version? This is useless if the rest of the environment want to move on to pastures new and Flex is left behind dragging everyone back. I guess this is going to be the same problem with Flex 2, as soon as it's released it's stuck in a timewarp of 'old java'. It doesn't work with the latest JBOSS either or for that matter the last 14 versions, that's how sanboxed a technology it is. Maybe they should have spent time thinking about how to suppport it rather than how to price it, it only makes life difficult for us in a lose lose situation. Please remember that Flex 2 is still in beta and they should be supporting their existing release, without trying to hype everyone up about what the future brings.. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Why Java 1.4?????
Great, I'll try this now on an app and see if it works, we tried with jdk1.5 and tomcat 4.1.34 and it failed. Cheers, Iain --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: Yes really. RemoteObject, HttpService, WebService, all of it. We've written several applications for major clients in production today. Works like an absolute champ with JDK 1.5 and Tomcat 5.5.15. That said, we very much prefer WebService and HttpService over RemoteObject, but it works just dandy. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Really? We tried this and got Java Class Adapter errors on every service call that uses Remote Objects. Are you using Remote Object calls? Cheers, Iain --- In flexcoders@yahoogroups.com, Dave Wolf gatorj24@ wrote: Your statements are not accurate. We run under Tomcat 5.5.15 (latest release) and under JDK 1.5. in development and in production for several clients. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: dave.wolf@ Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Why wont flex 1.5 work with anything other than 1.4 JDK? It doesn't even work with the latest Tomcat, why would anyone constrain an application to a version of JRE, JDK or tomcat version? This is useless if the rest of the environment want to move on to pastures new and Flex is left behind dragging everyone back. I guess this is going to be the same problem with Flex 2, as soon as it's released it's stuck in a timewarp of 'old java'. It doesn't work with the latest JBOSS either or for that matter the last 14 versions, that's how sanboxed a technology it is. Maybe they should have spent time thinking about how to suppport it rather than how to price it, it only makes life difficult for us in a lose lose situation. Please remember that Flex 2 is still in beta and they should be supporting their existing release, without trying to hype everyone up about what the future brings.. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SSL and IE using flex 1.5
I'm using neither, I'm using a security-constraint within the web.xml to redirect the context to https. Like this: security-constraint web-resource-collection web-resource-nameTest Context/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint It works fine on firefox, just IE goes into an infinite loop. I guess the answer to your question is CONFIDENTIAL. Cheers, Iain --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: What do you have in your content.xml file? What kind of auth are you using? Basic or Form? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SSL and IE using flex 1.5 Is their a known issue with IE and Flex 1.5 when using Tomcat and SSL? It seems that Firefox works fine, but when using IE 6 flex just redirects to /flex-internal/?action=history_html_secure. and sits their forever. Anyone seen this issue? I have tried using the context.xml file in the Meta-Inf directory, but this doesn't work. Tomcat Version 5.5.15 Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SSL and IE using flex 1.5
I dont receive the swf it just stays white, it shows the url in the address bar and in the status bar at the bottom of the page it reads: /flex-internal/?action=history_html_secure. And it just hangs around like that forever. Maybe I should go look into Tomcat and see if there is a way to disable the caching of the headers in 5.5.15 Cheers, Iain --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: Got it. At what point does this happen? Does the swf load or is this upon the initial page load? I know you're using remote objects so I want to make sure I know what the context is - page load or remote object invocation over amf. I reread your message and it's not entirely clear what behavior you're seeing. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 8:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SSL and IE using flex 1.5 I'm using neither, I'm using a security-constraint within the web.xml to redirect the context to https. Like this: security-constraint web-resource-collection web-resource-nameTest Context/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint It works fine on firefox, just IE goes into an infinite loop. I guess the answer to your question is CONFIDENTIAL. Cheers, Iain --- In flexcoders@yahoogroups.com, Carson Hager carson.hager@ wrote: What do you have in your content.xml file? What kind of auth are you using? Basic or Form? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: carson.hager@ Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SSL and IE using flex 1.5 Is their a known issue with IE and Flex 1.5 when using Tomcat and SSL? It seems that Firefox works fine, but when using IE 6 flex just redirects to /flex-internal/?action=history_html_secure. and sits their forever. Anyone seen this issue? I have tried using the context.xml file in the Meta-Inf directory, but this doesn't work. Tomcat Version 5.5.15 Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SSL and IE using flex 1.5
OK, thanks I'll look into this. Cheers for your help. Iain --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: Hey Iain, I would be willing to be anything this is caused by a header from Tomcat. IE is particularly finicky about this. The fix to context.xml for basic/form auth turns off a particular header that IE chokes on under SSL with binary content such as SWF, PDF, etc. If you're familiar with J2EE filters, that's the best way to deal with this since you can't intercept the http header using SSL with any tools like tcptunnel, etc. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 9:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SSL and IE using flex 1.5 I dont receive the swf it just stays white, it shows the url in the address bar and in the status bar at the bottom of the page it reads: /flex-internal/?action=history_html_secure. And it just hangs around like that forever. Maybe I should go look into Tomcat and see if there is a way to disable the caching of the headers in 5.5.15 Cheers, Iain --- In flexcoders@yahoogroups.com, Carson Hager carson.hager@ wrote: Got it. At what point does this happen? Does the swf load or is this upon the initial page load? I know you're using remote objects so I want to make sure I know what the context is - page load or remote object invocation over amf. I reread your message and it's not entirely clear what behavior you're seeing. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: carson.hager@ Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 8:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SSL and IE using flex 1.5 I'm using neither, I'm using a security-constraint within the web.xml to redirect the context to https. Like this: security-constraint web-resource-collection web-resource-nameTest Context/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport- guarantee /user-data-constraint /security-constraint It works fine on firefox, just IE goes into an infinite loop. I guess the answer to your question is CONFIDENTIAL. Cheers, Iain --- In flexcoders@yahoogroups.com, Carson Hager carson.hager@ wrote: What do you have in your content.xml file? What kind of auth are you using? Basic or Form? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: carson.hager@ Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Tuesday, March 07, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SSL and IE using flex 1.5 Is their a known issue with IE and Flex 1.5 when using Tomcat and SSL? It seems that Firefox works fine, but when using IE 6 flex just redirects to /flex-internal/?action=history_html_secure. and sits their forever. Anyone seen this issue? I have tried using the context.xml file in the Meta-Inf directory, but this doesn't work. Tomcat Version 5.5.15 Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo
[flexcoders] Re: It's simple but.......
Great thanks! --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: Format the incoming data into an ArrayCollection of an array of objects, and set that array as the dataProvider of the chart. Something like this ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; creationComplete=initApp() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var chartData:ArrayCollection; private function initApp(){ var a:Array = new Array(); var o:Object = new Object(); o.name=firstValue; o.value=150.0; a.push(o); o= new Object(); o.name=secondValue; o.value=3670.27001953125; a.push(o); chartData = new ArrayCollection(a); } ]] /mx:Script mx:PieChart id=chart width=100% height=100% dataProvider={chartData} mx:series mx:Array mx:PieSeries labelPosition=insideWithCallout field=value/ /mx:Array /mx:series /mx:PieChart /mx:Application At 11:38 AM 12/1/2005, you wrote: I have a returned VO from a remote Object call which contains these values: firstValue = 150.0 secondValue = 3670.27001953125 Ok, I want to put this into a pie Chart, how do I do it? The VO is called myRatio. Thanks in advance. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] It's simple but.......
I have a returned VO from a remote Object call which contains these values: firstValue = 150.0 secondValue = 3670.27001953125 Ok, I want to put this into a pie Chart, how do I do it? The VO is called myRatio. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Style of a DataTip
Hi, Is there any way to style the dataTip of a Chart? At the moment the dataTip has a slight alpha to it, which is really annoying if you have a background with elements in it. Can I make it opaque? I am using a dataTipFunction: dataTipFunction=formatDataTip function formatDataTip(obj) { var name=obj.hitData.element.name; var month=df.format(obj.hitData.item.dateOfSale); var value=cf2.format(obj.hitData.item.totalSalesValue); return b+name+/bbr+month+br+value; } Where is the style of this dataTip set? Somehow it has a red border and a slight alpha on a white background with black text. Cheers, Iain Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Close a Tab on a TabNavigator
Hi, Is it posible to have an 'x' on the Tab Navigator tabs to close them? I want to have them all capable of being closed apart from index 0. Regards, Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Create an Object with Custom event.
Hi, I'm creating an object dynamically (a tab of a tabNavigator) and that object has a Custom event ('myEvent'), how do I initialize the handler for this when I create it dynamically? Normally you would do this: quick:SalesQuery2 myEvent=doPrintForm(event)/ But I am creating it dynamically like this (but it doesn't work!): var printThing; reportVO = new ReportVO(); reportVO = mainService.getReportVO.result; var cReports:VBox = null; var init:Object = null; init = new Object(); init.id=cnvReports+printThing; init.label=Report Output +printThing; init.myReportVO = reportVO; init.myEvent = doPrintForm(event); cReports=VBox(myTabNavigator.createChild (SalesQuery2,cnvReports,init)); myTabNavigator.selectedIndex = printThing; printThing++; Any help would be most appreciated. Regards, Iain Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Popup Issue
I have a popup which works ok: function testTable(){var cReports:TitleWindow = TitleWindow(popupWindow (MyTest,false));} The problem is: It's meant to be Modal but it's not, and when I close it (it has a handled close button in the TitleWindow) the underlying main application is frozen. Any Help would be most appreciated. Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Datagrid columns resize
Can you explain a bit more about what you need? Thanks Iain --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Thank you, that's perfect. Would you be able to tell me the correct syntax to get compute the colums in the datagrid? thanks CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. digital_eyezed [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 09/12/2005 03:26 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Re: Datagrid columns resize Sorry, remove the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key / mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing
[flexcoders] Re: Datagrid columns resize
Hi, I tend to do this by adding another element to the dataprovider which has the totals, then you use the same dataprovider for the second dataGrid but use the columnName of the totals to display them. I have modified your code below to show this. --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: I have a data grid with three columns. NAME AGE and WEIGHT. I want to be able to get the total of the age and weight columns and place them in the bottom row which you showed me how to do previously. Thanks. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function setWidth(event){ if(event.target == _level0.mygrid){ mygrid2.getColumnAt(event.columnIndex).width = mygrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:VBox verticalGap=-1 width=400 mx:DataGrid id=mygrid width=100% columnStretch=setWidth (event); mx:Model id=TestSource source=test.xml/ mx:dataProvider{TestSource.testinfo}/mx:dataProvider mx:columns mx:Array mx:DataGridColumn headerText=name columnName=names / mx:DataGridColumn headerText=age columnName=age textAlign=right / mx:DataGridColumn headerText=weight columnName=weight textAlign=right/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:dataProvider{TestSource.totals}/mx:dataProvider mx:columns mx:Array mx:DataGridColumn/ mx:DataGridColumn columnName=text textAlign=right / mx:DataGridColumn columnName=weighttextAlign=right / /mx:Array /mx:columns /mx:DataGrid /mx:VBox /mx:Application test testinfo namesname 1/names age32/age weight200/weight /testinfo testinfo namesname 2/names age40/age weight100/weight /testinfo testinfo namesname 3/names age23/age weight150/weight /testinfo testinfo namesname 2/names age55/age weight330/weight /testinfo totals textTotal Weight:/text weight780/weight /totals /test CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. digital_eyezed [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 09/13/2005 12:50 AM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Re: Datagrid columns resize Can you explain a bit more about what you need? Thanks Iain --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Thank you, that's perfect. Would you be able to tell me the correct syntax to get compute the colums in the datagrid? thanks CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. digital_eyezed [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 09/12/2005 03:26 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Re: Datagrid columns resize Sorry, remove the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key / mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100
[flexcoders] Re: Datagrid columns resize
For Clarity: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:Model id=TestSource source=test.xml/ mx:DataGrid dataProvider={TestSource.testinfo} rowCount=4 width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth(event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Names columnName=names / mx:DataGridColumn headerText=Ages columnName=age textAlign=right / mx:DataGridColumn headerText=Weights columnName=weight textAlign=right/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid dataProvider={TestSource.testinfo} rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth (event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn fontWeight=bold textAlign=right columnName=text / mx:DataGridColumn fontWeight=bold textAlign=right columnName=weights/ /mx:Array /mx:columns /mx:DataGrid /mx:Application And the XML: ?xml version=1.0 encoding=UTF-8? test testinfo namesname 1/names age32/age weight200/weight textTotal Weight/text weights780/weights /testinfo testinfo namesname 2/names age40/age weight100/weight text/ weights/ /testinfo testinfo namesname 3/names age23/age weight150/weight text/ weights/ /testinfo testinfo namesname 2/names age55/age weight330/weight text/ weights/ /testinfo /test --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I tend to do this by adding another element to the dataprovider which has the totals, then you use the same dataprovider for the second dataGrid but use the columnName of the totals to display them. I have modified your code below to show this. --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: I have a data grid with three columns. NAME AGE and WEIGHT. I want to be able to get the total of the age and weight columns and place them in the bottom row which you showed me how to do previously. Thanks. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function setWidth(event){ if(event.target == _level0.mygrid){ mygrid2.getColumnAt(event.columnIndex).width = mygrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:VBox verticalGap=-1 width=400 mx:DataGrid id=mygrid width=100% columnStretch=setWidth (event); mx:Model id=TestSource source=test.xml/ mx:dataProvider{TestSource.testinfo}/mx:dataProvider mx:columns mx:Array mx:DataGridColumn headerText=name columnName=names / mx:DataGridColumn headerText=age columnName=age textAlign=right / mx:DataGridColumn headerText=weight columnName=weight textAlign=right/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:dataProvider{TestSource.totals}/mx:dataProvider mx:columns mx:Array mx:DataGridColumn/ mx:DataGridColumn columnName=text textAlign=right / mx:DataGridColumn columnName=weighttextAlign=right / /mx:Array /mx:columns /mx:DataGrid /mx:VBox /mx:Application test testinfo namesname 1/names age32/age weight200/weight /testinfo testinfo namesname 2/names age40/age weight100/weight /testinfo testinfo namesname 3/names age23/age weight150/weight /testinfo testinfo namesname 2/names age55/age weight330/weight /testinfo totals textTotal Weight:/text weight780/weight /totals /test CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may
[flexcoders] Using a Repeater tag with an Array of VO's
Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Coaches:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using a Repeater tag with an Array of VO's
yeah, I tried that, but all I got was: Players: player player player player player. hmmmph. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Players:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using a Repeater tag with an Array of VO's
Yip found it, it was a problem in the extraction from the database (forgot to put a teamVO.setPlayer(rs.getString(player)) and put a teamVO.setPlayer (player) instead, doh! All works now, but A repeater inside a tabNavigator VBox, why does the repeater fill the whole page and when you scroll down the repeater elements scroll up the whole page instead of inside the VBox of the tabNavigator Cheers, Iain --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Doublecheck the data in the VO. In a result handler, try something like: trace(myPojo.getTeams.result[0].players[0].player) Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using a Repeater tag with an Array of VO's yeah, I tried that, but all I got was: Players: player player player player player. hmmmph. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Players:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Bug in tabNavigator
Hi, I think I have found a bug in the tabNavigator. I have created a tabNavigator as per the documentation: It all works fine when it first compiles, but after you click the tabs a few times, the contents in the vBox start to scroll over the whole of the application. View an example here: http://www.shortbreadandhaggis.com:8080/panmure/home.mxml Instructions: Look at the about tab, scroll it , no problem, it's content is all contained within the VBox, now... click all the tabs once (quickly) from left to right, then go back to the about tab, now the text scrolls all the way down and up the page! (need to be above 800x600 res to see the bottom). I've changed the colors to black to make it more noticeable. Any ideas about this Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Bug in tabNavigator
It has a repeater in it: mx:VBox hScrollPolicy=off label=About width=800 height=600 creationComplete=panmure.getTeams(); mx:Label text=Teams fontWeight=bold fontSize=18/ mx:Repeater id=r dataProvider={panmure.getTeams.result} mx:Label fontSize=16 fontWeight=bold color=#00 text={r.currentItem.teamName}/ mx:Label fontSize=14 color=#00 text=Manager: {r.currentItem.manager}/ mx:HBox width=100% horizontalAlign=left mx:Text color=#00 text=Coaches: fontSize=14/ mx:Repeater id=r2 dataProvider={r.currentItem['coaches']} mx:Label color=#00 text={r2.currentItem.coach} fontSize=14/ /mx:Repeater /mx:HBox mx:HBox horizontalAlign=left mx:Text color=#00 text=Players: fontSize=14/ mx:Repeater id=r3 dataProvider={r.currentItem['players']} mx:Label color=#00 text={r3.currentItem.player} fontSize=12/ /mx:Repeater /mx:HBox /mx:Repeater /mx:VBox I'm confused! --- In flexcoders@yahoogroups.com, Patrick [EMAIL PROTECTED] wrote: Hard to say what's going wrong there, I can see what's happening in your sample, but I wasn't able to reproduce something which behaves the same way on my side ;) Can you paste the mxml of your about-tab? --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I think I have found a bug in the tabNavigator. I have created a tabNavigator as per the documentation: It all works fine when it first compiles, but after you click the tabs a few times, the contents in the vBox start to scroll over the whole of the application. View an example here: http://www.shortbreadandhaggis.com:8080/panmure/home.mxml Instructions: Look at the about tab, scroll it , no problem, it's content is all contained within the VBox, now... click all the tabs once (quickly) from left to right, then go back to the about tab, now the text scrolls all the way down and up the page! (need to be above 800x600 res to see the bottom). I've changed the colors to black to make it more noticeable. Any ideas about this Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Datagrid columns resize
This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Datagrid columns resize
Sorry, remove the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key / mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Make a PopUp non-draggable
Hi, How do I make a popUp TitleWindow non-draggable (i.e. fixed in position so that trying to drag it around the parent container is not allowed) Thanks in advance, Iain Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Make a PopUp non-draggable
Thanks, that worked a treat! --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 9/6/05, digital_eyezed [EMAIL PROTECTED] wrote: How do I make a popUp TitleWindow non-draggable (i.e. fixed in position so that trying to drag it around the parent container is not allowed) There's no documented way to do this, AFAIK. [undocumented] Here's a little hack: TitleWindow Script public function createChildren():Void { super.createChildren(); back_mc.onPress = back_mc.onRelease = null; } /Script /TitleWindow Remove the onPress and onRelease handlers. Should work, I haven't tried. [/undocumented] Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Set Icon on tree
Hi, I'm trying to set the icon of the nodes on my tree based on some logic and am using the iconFunction tag to do this but it doesn't seem to work. The tree is populated from a returned Array of Value objects from a remoteObject call. One of the variables within each Value Object is called percent_full and is a number between 0 and 100 inclusive. Here is the icon function I have used: [Embed(assets/vgreen.png)] var greenIcon:String; [Embed(assets/vamber.png)] var amberIcon:String; [Embed(assets/vred.png)] var redIcon:String; public function setIcon(item){ var type:Number = item.percent_full; if (type = 0 type 33){ return redIcon; }else if(type = 33 type 66){ return amberIcon; }else if(type = 66 type = 100){ return greenIcon; } } I get green Icons for ever node! Regards, Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h72a7ed/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124193327/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Set Icon on tree
Sorry, I fixed it: just changed the first line to: var type:Number = item.getProperty('percent_full'); Doh! --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I'm trying to set the icon of the nodes on my tree based on some logic and am using the iconFunction tag to do this but it doesn't seem to work. The tree is populated from a returned Array of Value objects from a remoteObject call. One of the variables within each Value Object is called percent_full and is a number between 0 and 100 inclusive. Here is the icon function I have used: [Embed(assets/vgreen.png)] var greenIcon:String; [Embed(assets/vamber.png)] var amberIcon:String; [Embed(assets/vred.png)] var redIcon:String; public function setIcon(item){ var type:Number = item.percent_full; if (type = 0 type 33){ return redIcon; }else if(type = 33 type 66){ return amberIcon; }else if(type = 66 type = 100){ return greenIcon; } } I get green Icons for ever node! Regards, Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h06a4n3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124193505/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] scrolling a tree to a selected node.
If I select a node on a tree dynamically (by clicking somewhere else in the application), how do I scroll the tree automatically to see the selected item (it's a long list). Cheers, Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hk7217m/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123690055/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: scrolling a tree to a selected node.
Thanks, I did it with this: tree.firstVisibleNode=tree.selectedNode; Cheers, Iain --- In flexcoders@yahoogroups.com, Niklas Richardson [EMAIL PROTECTED] wrote: Try using vPosition. On 10/08/05, digital_eyezed [EMAIL PROTECTED] wrote: If I select a node on a tree dynamically (by clicking somewhere else in the application), how do I scroll the tree automatically to see the selected item (it's a long list). Cheers, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Niklas Richardson Prismix Ltd Flex and ColdFusion Experts! Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hum1ctr/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123693514/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Charting from a TreeNode
I have a tree which is populated from a return from a RemoteObject call. The returned object is an array of VO objects. The tree populates no problem. I also have a chart which is populated from the the same RemoteObject Result. This chart is a simple column chart which shows seven elements of each VO in the array. What I want to do now is populate another chart (chart2) with just the seven elements of the VO from the selected node in the tree. I have tried to set the dataProvider of the chart2 to tree.selectedItem and even tried to build another VO object based on the tree change event and set that as the dataProvider, no matter what I try the second chart will not populate. Here is the mxml: mx:Panel title=Machines width=250 height=100% panelBorderStyle=roundCorners mx:Tree id=tree dataProvider={getEverything.getSites.result} width=100% height=100% cellPress=showStuff(event)/ /mx:Panel /mx:VBox mx:VBox width=100% height=100% mx:Panel width=100% height=50% marginTop=1 marginBottom=1 marginLeft=1 marginRight=1 mx:VBox width=100% height=100% mx:ColumnChart id=chart dataProvider={results} dataTipFunction=formatDataTipSales showDataTips=true width=100% height=100% mx:horizontalAxis mx:CategoryAxis dataProvider={results} categoryField=label/ /mx:horizontalAxis mx:series mx:Array mx:ColumnSeries yField=sevensales name=Sales -7/ mx:ColumnSeries yField=sixsales name=Sales -6/ mx:ColumnSeries yField=fivesales name=Sales -5/ mx:ColumnSeries yField=foursales name=Sales -4/ mx:ColumnSeries yField=threesales name=Sales -3/ mx:ColumnSeries yField=twosales name=Sales -2/ mx:ColumnSeries yField=onesales name=Sales -1/ /mx:Array /mx:series /mx:ColumnChart mx:ColumnChart id=chart2 dataProvider={tree.selectedItem} dataTipFunction=formatDataTipSales showDataTips=true width=100% height=100% mx:horizontalAxis mx:CategoryAxis dataProvider={tree.selectedItem} categoryField=label/ /mx:horizontalAxis mx:series mx:Array mx:ColumnSeries yField=sevensales name=Sales -7/ mx:ColumnSeries yField=sixsales name=Sales -6/ mx:ColumnSeries yField=fivesales name=Sales -5/ mx:ColumnSeries yField=foursales name=Sales -4/ mx:ColumnSeries yField=threesales name=Sales -3/ mx:ColumnSeries yField=twosales name=Sales -2/ mx:ColumnSeries yField=onesales name=Sales -1/ /mx:Array /mx:series /mx:ColumnChart /mx:VBox /mx:Panel Thanks, Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hn822fb/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123525200/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Charting from a TreeNode
Ok, I have a tree on the left of the app, which is populated from the returned InfoVO Array, this works no problem. On the right of the app is a panel with two columncharts, the top one takes the same dataProvider as the tree on the left and it shows the data okay for all infoVO's. Under that chart is another chart (a kind of drill down chart) which when you click on the infoVO in the tree should show the data specific to that infoVO, thats about it. Each info VO has seven data elements (sales associated to each day of the week) and a label (the Id of each infoVO). I can't get the infoVO (drilldown) to show the data on the bottom chart. Sorry for not making it clear enough before. --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Still not quite clear on what you're trying to do here. You have an array of InfoVO objects...but you don't want to display the entire array, just a subset of the array? Is that correct? Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, August 08, 2005 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Charting from a TreeNode Importance: High This is the VO: class uk.co.company.InfoVO { public function InfoVO() { _remoteClass = uk.co.company.InfoVO; } public var _remoteClass : String; public var label:String; public var sevensales:Number; public var sixsales:Number; public var fivesales:Number; public var foursales:Number; public var threesales:Number; public var twosales:Number; public var onesales:Number; public function setLabel(lab:String):Void{ this.label = lab; } public function setSevenSales(sales:Number):Void{ this.sevensales = sales; } public function setSixSales(sales:Number):Void{ this.sixsales = sales; } public function setFiveSales(sales:Number):Void{ this.fivesales = sales; } public function setFourSales(sales:Number):Void{ this.foursales = sales; } public function setThreeSales(sales:Number):Void{ this.threesales = sales; } public function setTwoSales(sales:Number):Void{ this.twosales = sales; } public function setOneSales(sales:Number):Void{ this.onesales = sales; } } The RemoteObject returns an array of these. I want to show the data from the onesales ... sevensales with the label as the categoryfield label. Cheers, Iain --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Can you send a sample of the data you're loading from the RO? And point out which sub-section you want to display in the chart. Thanks, Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, August 08, 2005 9:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting from a TreeNode I have a tree which is populated from a return from a RemoteObject call. The returned object is an array of VO objects. The tree populates no problem. I also have a chart which is populated from the the same RemoteObject Result. This chart is a simple column chart which shows seven elements of each VO in the array. What I want to do now is populate another chart (chart2) with just the seven elements of the VO from the selected node in the tree. I have tried to set the dataProvider of the chart2 to tree.selectedItem and even tried to build another VO object based on the tree change event and set that as the dataProvider, no matter what I try the second chart will not populate. Here is the mxml: mx:Panel title=Machines width=250 height=100% panelBorderStyle=roundCorners mx:Tree id=tree dataProvider={getEverything.getSites.result} width=100% height=100% cellPress=showStuff(event)/ /mx:Panel /mx:VBox mx:VBox width=100% height=100% mx:Panel width=100% height=50% marginTop=1 marginBottom=1 marginLeft=1 marginRight=1 mx:VBox width=100% height=100% mx:ColumnChart id=chart dataProvider={results} dataTipFunction=formatDataTipSales showDataTips=true width=100% height=100% mx:horizontalAxis mx:CategoryAxis dataProvider={results} categoryField=label/ /mx:horizontalAxis mx:series mx:Array mx:ColumnSeries yField=sevensales name=Sales -7/ mx:ColumnSeries yField=sixsales name=Sales -6/ mx:ColumnSeries yField=fivesales name=Sales -5/ mx:ColumnSeries yField=foursales name=Sales -4/ mx:ColumnSeries yField=threesales name=Sales -3
[flexcoders] Dynamic Tree and VO's
Hi, I have a tree which is populated (through the dataProvider) from a returned array of VO's from a RemoteObject Call. Within the VO is a number of attributes, two of the attributes are called data and label. The tree shows ok. I want to be able to extract the other attributes that are associated with this selectedItem and can't seem to get the data out. How do I do this? For example, another attribute is call 'postcode' so I tried to use change=myVariable = event.selectedItem.getProperty('postcode') but this did not work, although if I change the 'postcode' to 'label' then I get the label. Can you help? Regards, Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h8he5ib/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123247052/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics. Click and talk back!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] My Head is in a bin, getUrl with javascript.
Hi, I'm working with an IFrame in html and I am passing info from an mxml custom component to an IFrame which contains a javascript function called 'myTest', when I use getUrl with static text in my mxml to call the javascript function in the IFrame it works, this is the function in the mxml page: function set aler(aler:String):Void { if (aler) { __aler = aler; getURL(javascript:myFrame.myTest ('hrjhgjhfhkgfhgfh')); } } This works fine, but I really want to send the value of 'aler', how do I do this, I have tried everything from quotes to concatenation. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12ht7camu/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123264629/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] My Head is in a bin, getUrl with javascript.
Hi, I'm working with an IFrame in html and I am passing info from an mxml custom component to an IFrame which contains a javascript function called 'myTest', when I use getUrl with static text in my mxml to call the javascript function in the IFrame it works, this is the function in the mxml page: function set aler(aler:String):Void { if (aler) { __aler = aler; getURL(javascript:myFrame.myTest ('hrjhgjhfhkgfhgfh')); } } This works fine, but I really want to send the value of 'aler', how do I do this, I have tried everything from quotes to concatenation. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h2do8gb/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123265719/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: My Head is in a bin, getUrl with javascript.
Your right! That's it, had enough, Friday afternoon I'm going home! Best Regards, Iain --- In flexcoders@yahoogroups.com, Geoffrey Williams [EMAIL PROTECTED] wrote: Perhaps you were missing the single quotes around the variable?: function set aler (aler:String):Void { if (aler) { __aler = aler; getURL (javascript:myFrame.myTest (' + aler + ');); } } } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Friday, August 05, 2005 11:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] My Head is in a bin, getUrl with javascript. Hi, I'm working with an IFrame in html and I am passing info from an mxml custom component to an IFrame which contains a javascript function called 'myTest', when I use getUrl with static text in my mxml to call the javascript function in the IFrame it works, this is the function in the mxml page: function set aler(aler:String):Void { if (aler) { __aler = aler; getURL(javascript:myFrame.myTest ('hrjhgjhfhkgfhgfh')); } } This works fine, but I really want to send the value of 'aler', how do I do this, I have tried everything from quotes to concatenation. Thanks in advance. Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hpj9f4j/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123265986/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to make two seperate grid columns equal
Hi, How do I make the column of one datarid equal in width to that of a different datagrid? So if a user stretches a column on one datagrid, the same column on the second datagrid also resizes to the same width dynamically. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h3nu7vd/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122849919/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics. Click and talk back!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to make two seperate grid columns equal
Ok I did it: create a columnStretch event handler which uses this function: public function setWidth(event){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } Needs some logic to make it work both ways but it's nearly there. Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, How do I make the column of one datarid equal in width to that of a different datagrid? So if a user stretches a column on one datagrid, the same column on the second datagrid also resizes to the same width dynamically. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hn4m9km/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122854257/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics. Click and talk back!/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to make two seperate grid columns equal
Full code with logic: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid columnStretch=setWidth (event); mx:columns mx:Array mx:DataGridColumn columnName=key headerText=Key/ mx:DataGridColumn columnName=value headerText=Value/ mx:DataGridColumn columnName=test headerText=Test/ mx:DataGridColumn columnName=test2 headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid width=100% id=myGrid2 columnStretch=setWidth (event); mx:columns mx:Array mx:DataGridColumn columnName=key headerText=Key/ mx:DataGridColumn columnName=value headerText=Value/ mx:DataGridColumn columnName=test headerText=Test/ mx:DataGridColumn columnName=test2 headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Ok I did it: create a columnStretch event handler which uses this function: public function setWidth(event){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } Needs some logic to make it work both ways but it's nearly there. Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, How do I make the column of one datarid equal in width to that of a different datagrid? So if a user stretches a column on one datagrid, the same column on the second datagrid also resizes to the same width dynamically. Thanks in advance. Iain Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h7lirk3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122855253/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: ComboBox 'Please Select' first Item
Thanks, Added this and it worked: function addSelect(event){ var theTargetId = event.target; theTargetId.addItemAt(0,Please Select,0); theTargetId.selectedIndex = 0; } Small typo in yours, its addItemAt not addItemsAt, took me a wee while to notice it. Best Regards, Iain --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: Should be function addSelect(event){ var theTarget = event.target http://event.target.id/; theTarget.addItemsAt(0,new Array([{label:Please Select,data:0}]); } Or the easiest way would be to add the Item to the result when you get it back event.result.push({label:Please Select, data:0}); the label and data properties of the object should coincide with the properties of your VO if you can give me the definition of the VO maybe I can elaborate On 6/29/05, digital_eyezed [EMAIL PROTECTED] wrote: Hi, How do I have the first item in the combobox read 'please select' with a corrosponding data value of 0(zero). The rest of the combobox should be filled with a return from a remote object call and the resulting VO objects (with label / Data pairs). I can fill the comboBox with the VO's no problem, but How do I add the 'Please Select'? I have tried this function on the creationComplete event of the Combobox: function addSelect(event){ var theTargetId = event.target.id http://event.target.id; theTargetId.addItemAt(0,Please Select,0); } any help most appreciated. Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: ComboBox 'Please Select' first Item
I've tried that and it didn't work. Cheers, Iain --- In flexcoders@yahoogroups.com, alex_harui [EMAIL PROTECTED] wrote: mx:ComboBox prompt=Please Select ... / --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: Should be function addSelect(event){ var theTarget = event.target http://event.target.id/; theTarget.addItemsAt(0,new Array([{label:Please Select,data:0}]); } Or the easiest way would be to add the Item to the result when you get it back event.result.push({label:Please Select, data:0}); the label and data properties of the object should coincide with the properties of your VO if you can give me the definition of the VO maybe I can elaborate On 6/29/05, digital_eyezed [EMAIL PROTECTED] wrote: Hi, How do I have the first item in the combobox read 'please select' with a corrosponding data value of 0(zero). The rest of the combobox should be filled with a return from a remote object call and the resulting VO objects (with label / Data pairs). I can fill the comboBox with the VO's no problem, but How do I add the 'Please Select'? I have tried this function on the creationComplete event of the Combobox: function addSelect(event){ var theTargetId = event.target.id http://event.target.id; theTargetId.addItemAt(0,Please Select,0); } any help most appreciated. Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Layering content
Hi, I want to have an image layered over the top of an HBox, but the image will overlap the corners of the HBox. Is there anyway I can achieve this? maybe by alpha on a viewstack or such like? Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] HTTPService Fails
Hi, I'm doing something really simple, Calling an HTTPservice and showing it in a grid. The code for the mxml is: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=myService.send(); mx:HTTPService id=myService url=http://tiger:8080/simple/props; showBusyCursor=true/ mx:DataGrid id=myGrid dataProvider={myService.result.props}/ /mx:Application The Servlet returns this: ?xml version=1.0 encoding=utf-8 ? - props propjava.vendor=Sun Microsystems Inc./prop propcatalina.base=C:\ProgramFiles\jboss\jboss-3.2.7 \server\default/prop propcatalina.useNaming=false/prop propos.name=Windows XP/prop propsun.boot.class.path=C:\ProgramFiles\jboss\jboss-3.2.7 \bin\\..\lib\endorsed\xercesImpl.jar;C:\ProgramFiles\jboss\jboss- 3.2.7\bin\\..\lib\endorsed\xml- apis.jar;c:\programfiles\j2se\jre\lib\rt.jar;c:\programfiles\j2se\jre \lib\i18n.jar;c:\programfiles\j2se\jre\lib\sunrsasign.jar;c:\programf iles\j2se\jre\lib\jsse.jar;c:\programfiles\j2se\jre\lib\jce.jar;c:\pr ogramfiles\j2se\jre\lib\charsets.jar;c:\programfiles\j2se\jre\classes /prop propsun.java2d.fontpath=/prop propjava.vm.specification.vendor=Sun Microsystems Inc./prop /props But it wont show in the dataGrid! What am I doing wrong? Redards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Drag and Drop from tree to List
That worked! Thanks. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Use the TreeDataProvider methods to get the label, myObj[0].getProperty('label') Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and Drop from tree to List This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using a drag proxy
Hi, I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ And here is the List I drag to: mx:List id=theList width=150 height=25 dragEnter=doDragEnter (event) dragExit=doDragExit(event); dragOver=doDragOver(event); dragDrop=doDragDrop(event)/ Where do I put the code to add the drag Proxy? I have already embedded an image (image1) in my actionscript and want to allow that image to show, with an offset (which is coded to offsetX and offsetY) of 0 and no initialization paramaters. Normally I would have thought that creating a mouseDown even on the tree would enable me to create a dragsource and doDrag method but this seems to screw up the rest of the drag operation as it is mostly handled in the doDragDrop(event)(and it completely froze IE6). Thanks in advance for any help! Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using a drag proxy
Thanks for your help so far: Where is the documentation on this kind of class extension, where do I find the constructor for dragProxy in order for me to know how to add the image in the createChilren function? Do I just add: var image1 = createClassObject(mx.controls.image, something, something, something Thanks Iain --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/26/05, digital_eyezed [EMAIL PROTECTED] wrote: I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ [...] You can do it by making your own drag proxy. See example below. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=white MyTree dragEnabled=true dataProvider mx:Array mx:Object label=foo / mx:Object label=bar / /mx:Array /dataProvider /MyTree /mx:Application // MyTree.as class MyTree extends mx.controls.Tree { function get dragImage() { return MyDragProxy; } } //MyDragProxy.as class MyDragProxy extends mx.controls.listclasses.DragProxy { public function createChildren():Void { super.createChildren(); var label = createClassObject(mx.controls.Label, , getNextHighestDepth(), {text: Watch me move}); label.y += 20; } } You can put your image in createChildren() Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Drag and Drop from tree to List
Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Drag and Drop from tree to List
This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Kill Process on Server
Hi, How do I have a stateful object terminated upon exiting the application? When the user logs in, upon initialization I start a remote object call which kicks off a runnable instance of an object. I want the instance to be terminated when the user closes the browser, can flex do this? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm Result Question
I have an application which upon initialisation triggered a remote object request which returned an Array of VO objects as a result. I assigned this result as the dataProvider to a dataGrid. No problem. Now I am redesigning into Cairngorm and am a bit stuck on how to deal with the result. I followed the architecture and try to pass the result (VO Array) into a viewhelper method but the datGrid does not show the result. It's really difficult to debug this, as flex builder wont even load the mxml due to the cairgormApplication root. Any help or suggestions would be appreciated. Thanks Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm Result Question
Cheers Steven, I thought a bug was to blame, but have pasted some code for a quick browse: My command class has this result method: public function onResult( event : Object ) : Void{ var getInboxViewHelper = ViewLocator.getInstance().getViewHelper ( ControlView ); getInboxViewHelper.fillInbox(event.result); } //---The result is an Array of VO's My Viewhelper code to deal with this is: public function fillInbox(inboxVOArray:Object):Void { view.inboxGrid.dataProvider = inboxVOArray; view.retreivalStatus.text = Update Complete; } Having looked at this out of eclipse, I have a sneeky feeling it may have something to do with event.result or event : Object? Either way, the component mxml file looks like this: mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:demoView=com.iterationtwo.demo.view.* title=Control Assets themeColor=#FF headerColors=[0xFFCC55,0xFF] width=50% horizontalAlign=center creationComplete=initControl(); demoView:InboxViewHelper name=ControlView view={ this } / mx:Script ![CDATA[ import uk.co.vianet.InboxVO; import com.iterationtwo.cairngorm.control.EventBroadcaster; var call; var interval: Number=3; public function initControl(){ call=setInterval(this, doGetInbox, interval); EventBroadcaster.getInstance().broadcastEvent ( startApp ); } public function doGetInbox(){ EventBroadcaster.getInstance().broadcastEvent ( getInbox ); } ]] /mx:Script mx:Form label=Inbox for Last Hour mx:DataGrid id=inboxGrid width=100% height=175 mx:columns mx:Array mx:DataGridColumn columnName=dateReceived headerText=Date / Time Received / mx:DataGridColumn columnName=origin headerText=Originating Number / mx:DataGridColumn columnName=message headerText=Message / /mx:Array /mx:columns /mx:DataGrid mx:ControlBar width=100% mx:Text id=retreivalStatus text=Initializing Database/ /mx:ControlBar /mx:Form mx:ControlBar width=100% mx:Text id=statusBar text=Application Stopped/ /mx:ControlBar /mx:Panel I know, its a mess! Cheers, Iain --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: Iain, You may want to consider not using the CairngormApplication tag so you can debug in Flexbuilder... In the meantime, can you post your onResult method in your command class, post the method on your view helper that you are calling, and show us how and where you are instantiating your DataGrid ? You're not doing anything fundamentally wrong, so there must be a bug sneaked into your code. The imminent release of Cairngorm 0.99 will give you another way of handling the data grid update from the Command class, without needing to use the View Helper in this instance more shortly Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: 05 May 2005 20:24 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm Result Question I have an application which upon initialisation triggered a remote object request which returned an Array of VO objects as a result. I assigned this result as the dataProvider to a dataGrid. No problem. Now I am redesigning into Cairngorm and am a bit stuck on how to deal with the result. I followed the architecture and try to pass the result (VO Array) into a viewhelper method but the datGrid does not show the result. It's really difficult to debug this, as flex builder wont even load the mxml due to the cairgormApplication root. Any help or suggestions would be appreciated. Thanks Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04
[flexcoders] Re: Set a tooltip accross a Datagrid
Yeah, I tried that, the Datagrid tooltip only shows for the top of the grid, not the whole grid and the dataTipFunction doesn't work either. Heres what I tried: on the dataGridColumn tag I inserted this: dataTipFunction=showDataTip and my function looks like this: function showDataTip(eventObj:Object){ return Click a row to select it; } But nothing shows :-( That is what the docs say too, which is confusing. I'll have to keep on trying. Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I assume setting the toolTip for the DataGrid didn't cut it? Look into dataTipFunction and just have it return the same string. You may need to supply a dataTipFunction for every column (but it can be the same function). Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, May 02, 2005 5:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Set a tooltip accross a Datagrid How can I set a tooltip accross the whole datagrid? I have customCellRenderers set to some of the columns that hold images and I can add a tooltip to those columns but the other columns hold dynamic data through a dataProvider and I can't seem to get tooltips to work. The same tooltip will apply to the whole datagrid just to try and get the user to select a row. Thanks in advance. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Set a tooltip accross a Datagrid
Got It! Of course it's better if you set showDataTips to true! Doh! Iain --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Yeah, I tried that, the Datagrid tooltip only shows for the top of the grid, not the whole grid and the dataTipFunction doesn't work either. Heres what I tried: on the dataGridColumn tag I inserted this: dataTipFunction=showDataTip and my function looks like this: function showDataTip(eventObj:Object){ return Click a row to select it; } But nothing shows :-( That is what the docs say too, which is confusing. I'll have to keep on trying. Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I assume setting the toolTip for the DataGrid didn't cut it? Look into dataTipFunction and just have it return the same string. You may need to supply a dataTipFunction for every column (but it can be the same function). Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, May 02, 2005 5:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Set a tooltip accross a Datagrid How can I set a tooltip accross the whole datagrid? I have customCellRenderers set to some of the columns that hold images and I can add a tooltip to those columns but the other columns hold dynamic data through a dataProvider and I can't seem to get tooltips to work. The same tooltip will apply to the whole datagrid just to try and get the user to select a row. Thanks in advance. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Noobie - Center App
I have always found it easier to put your horizontalAlign on a container inside the application tags, but also make sure you put the width=100% height=100% in as well or the app wont stretch. Hope this helps. --- In flexcoders@yahoogroups.com, David Terry [EMAIL PROTECTED] wrote: Hello, I am trying to center my application, but can't seem to make it work. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; height=50% width=50% horizontalAlign=center verticalAlign=middle /mx:Application Why don't the horizontalAlign and verticalAlign properties work? Many thanks, ~David T. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Noobie - Center App
Here's an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:HBox verticalAlign=middle horizontalAlign=center width=100% height=100% mx:Panel mx:Form mx:FormItem label=Some text mx:TextInput/ /mx:FormItem /mx:Form /mx:Panel /mx:HBox /mx:Application Cheers. --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: I have always found it easier to put your horizontalAlign on a container inside the application tags, but also make sure you put the width=100% height=100% in as well or the app wont stretch. Hope this helps. --- In flexcoders@yahoogroups.com, David Terry [EMAIL PROTECTED] wrote: Hello, I am trying to center my application, but can't seem to make it work. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; height=50% width=50% horizontalAlign=center verticalAlign=middle /mx:Application Why don't the horizontalAlign and verticalAlign properties work? Many thanks, ~David T. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Making a visible property really invisible
Thats kinda done the trick, thanks. --- In flexcoders@yahoogroups.com, Ashish Goyal [EMAIL PROTECTED] wrote: You can set width to 100% in first panel and height and width to 0 in the second one. This will enable the first panel to cover the whole HBox. When you click on the checkbox, in AS set visible to true for second panel and width and height to 100%. Now since both panels has width 100%, they'll share the equal width in HBox. I've tried to create a small mock up of what you are trying to achive. Let me know if that doesn't work for you. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml backgroundColor=white mx:Script ![CDATA[ function makeVisible() { p2.visible= true; p2.height=100%; p2.width=100%; } ]] /mx:Script mx:HBox borderThickness=2 borderStyle=solid width=500 mx:Panel id=p1 title=panel 1 width=100% mx:Button / mx:Button / mx:CheckBox id=c1 click=makeVisible()/ /mx:Panel mx:Panel id=p2 title=panel 2 visible=false height=0 width=0 mx:TextInput / mx:TextInput / /mx:Panel /mx:HBox /mx:Application Thanks -Ashish _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, May 02, 2005 11:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Making a visible property really invisible That doesn't seem to work, it looks even more messy now, any more ideas? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Set height = 0; Then to restore the view, set height= undefined; I have not done this myself, any you might have to do something like call invalidateLayout to get it to work right. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, May 02, 2005 1:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Making a visible property really invisible How can I make a container completely invisible? i.e. if I have two panels, both in an HBox and when I check a box in panel 1 it enables the visibility of panel 2, but panel two was completely invisible before I checked the box, including the space it was invisibly taking up. I want to be able to enable the panel and the panels should re-arrange themselves with the available space instead of them both having space allocated before the visibility is changed. I have a number of items and methods attached to panel 2, so I think createChild wouldn't work. Yahoo! Groups Links _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Images and borders
I have four embedded images in an HBox: mx:HBox width=100% horizontalAlign=left mx:Image source=@Embed('assets/standrew.gif') width=30 height=15 borderStyle=solid/ mx:Image source=@Embed('assets/stgeorge.gif') width=30 height=15 borderStyle=solid/ mx:Image source=@Embed('assets/stpatrick.gif') width=30 height=15 borderStyle=solid/ mx:Image source=@Embed('assets/stdavid.gif') width=30 height=15 borderStyle=solid/ /mx:HBox But, their is a 2 or 3 pixel gap between the end of the images and the right hand border, why? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Date object addition
How do I make a date object in a rangeEnd = selectedDate - 1? i.e. I have one dateField with a disabledRange / rangeEnd set to today. When a user changes that field, it triggers a function which sets the second dateField's disabledRange / rangeEnd to the selectedDate of the first dateField. But I want to set the the rangeEnd date to the day before the selectedDate so the user can still choose the same day as DateField 1. I know this will be simple to some of you Actionscript gurus, but I'm away on some Java date object expidition with no map or a torch! Cheers Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Set a tooltip accross a Datagrid
How can I set a tooltip accross the whole datagrid? I have customCellRenderers set to some of the columns that hold images and I can add a tooltip to those columns but the other columns hold dynamic data through a dataProvider and I can't seem to get tooltips to work. The same tooltip will apply to the whole datagrid just to try and get the user to select a row. Thanks in advance. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/