[flexcoders] mx:Tree being populated by a CF Array?
I can't quite seem to recall on whether or not you can populate a mx:TREE via a RemoteObject (which returns an ArrayOfStructs). Its possible isn't it? ie i'm using cairngorm ModelLocator to bind the view and remote together? -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hlsqqkp/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124094108/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/
RE: [flexcoders] Flex Newbies Mail List
Title: RE: [flexcoders] Flex Newbies Mail List On the whole newbies list I don't think newbies should feel dissuaded from posting to flexcoders; as the list matures, we establish generations and tiers of people willing to invest their time helping those who follow just a little behind them. Flexcoders has, by the sheer novelty of the technology, always been about helping newcomers get up to speed with the technology. All that we ask, is that as the knowledge of the list members coalesce into FAQs, and other generally available information, that people spend some time becoming familiar with what is available to them, before jumping in and asking questions. The Flexcoders FAQ does it's very best to ensure that people are given a single document, that should take only 5 minutes to read, and points them at all the information considered "must check first". We send the FAQ out to each and every list member upon subscription, so there's no excuse for not spending that 5 minutes to read it. If a question isn't covered by the FAQ, or any of the immediate resources pointed to by the FAQ, then it's fair game. There's always a risk when multiple lists popup with overlapping purposes, that the knowledge and talent available to answer questions becomes diluted. Right now, we have an incredible concentration of Flex knowledge on flexcoders, and that's an incredible resource to the newcomer - both in terms of the archive of material that is available to them, and the assistance that is subsequently available when they come unstuck. No-one here, irrespective of their experience with Flex, is unwilling to profer their time to the beginner - on the contrary. Inconsiderate requests to "please fix my code because I have a deadline at 5pm" or, people that continually refuse to inject any effort of their own in their learning, will infuriate those on a newbie list as much as this list. Maybe we could have a list just for these people - I'd be fully in support of that :-) Just a different perspective, Steven -- Steven WebsterTechnical 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. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: 15 August 2005 05:35To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Newbies Mail List I answered a little less than 98% of all inquiries when flexcoders started :-) We seem to be doing pretty well. I haven't been able to answer questions all week but most folks seem to be surviving. With that said, if things like the FAQ aren't stressed we could be in for a long road ahead, but I'd be in support of a forum where newbies can feel more comfortable if flexcoders isn't it.Matt -- 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 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.
Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type
No love. I ran this to try and reference all the links within the application scope, but it returned just those properties of the application scope. I am looking to reference the Links within all views/containers.: -- public function showProfileByRole () : Void { for(var p in mx.core.Application.application) { _root.taDisplayData.text += p + '\n'; if(this[p] instanceof Link) { this[p]._visible = false; } } } -- On 8/14/05, JesterXL [EMAIL PROTECTED] wrote: for(var p in this) { if(this[p] instanceof Link) { this[p].visible = false; } } - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 14, 2005 11:14 PM Subject: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type Hello, In Flash, I've swept the stage in search of certain object types (like TextFields), so I could disable the objects by either removing them or changing their visibility. In Flex, is there a way to sweep all objects in search of specific component types, including those that are part of another view? I have Links where the visibility needs to be toggled off and on. I thought about making the Link a sub-class, too and adding the instance name to an array when the Link is created. Ideas, thoughts and suggestions are welcome. Dave -- 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 ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hs5hjbr/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124121653/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/
Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type
All Views', all containers? Um, no, in that case, you'll need a global registry, much like how ViewHelper's are registered by ID, etc. However, I question why you need such sweeping changes? Why not toggle the enabled/disabledness of each view when it needs to be? - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 15, 2005 10:00 AM Subject: Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type No love. I ran this to try and reference all the links within the application scope, but it returned just those properties of the application scope. I am looking to reference the Links within all views/containers.: -- public function showProfileByRole () : Void { for(var p in mx.core.Application.application) { _root.taDisplayData.text += p + '\n'; if(this[p] instanceof Link) { this[p]._visible = false; } } } -- On 8/14/05, JesterXL [EMAIL PROTECTED] wrote: for(var p in this) { if(this[p] instanceof Link) { this[p].visible = false; } } - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 14, 2005 11:14 PM Subject: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type Hello, In Flash, I've swept the stage in search of certain object types (like TextFields), so I could disable the objects by either removing them or changing their visibility. In Flex, is there a way to sweep all objects in search of specific component types, including those that are part of another view? I have Links where the visibility needs to be toggled off and on. I thought about making the Link a sub-class, too and adding the instance name to an array when the Link is created. Ideas, thoughts and suggestions are welcome. Dave -- 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 Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hevdrpr/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124122576/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] Tree component help - please
Hi Everyone, I have looked through old messages in this group and did not see anything that addresses my question - or at least it was not clear that it did. Here is what I am trying to do. Using the Cairngorm framework, I am making a remote call to my server to retrieve something I wrote called a TreeNodeVO ( which has a public label property ). My ViewHelper adds the Root node like this (which works ): public function addRootTreeNode(treeNode:TreeNodeVO) : Void { view.contentMgmtTree.removeAll(); var node:Object = view.contentMgmtTree.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } when I open the tree node, I make another remote call to get the children as an Array of TreeNodeVO objects. The ViewHelper method to add the other nodes under the opened node looks like: public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) : Void { trace(treeNode: + treeNode.toString()); var node:Object = view.contentMgmtTree.selectedItem.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } what I see happening is the root node renders correctly as a folder with the right label. When I open the folder the server is returning the correct array of TreeNodeVO objects but what is rendered under the root node is a document icon ( which is correct ) but with the label [type Function],[type Function],... Can someone please point me in the right direction on the correct way to add nodes that DO NOT use the XML model? Any help is greatly appreciated. Thanks Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h8uuto3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124123449/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] html--- swf object focusing out problem!
Hi, Everyone I want to be notified when user focus in the embed swf file, and when focus out, this is my code: object classid='' codebase='' width='100%' height='100%' id='Framset' color=red>top.flash.tpBlr() color=red>top.flash.tpFcs() param name='src' value='http://localhost:8080/0805/svppl/DeskTop.mxml.swf'/ embed pluginspage='http://www.macromedia.com/go/getflashplayer' width='100%' height='100%' flashvars='' src='' name='http://localhost:8080/0805/svppl/DeskTop.mxml.swf' / /object My problem is the onfocus event works gr8, but the onblur never worked. Anyone help, thank you!! -- 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 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] Re: Tree component help - please
Hi, Maybe try something like this: mx:Tree nodeOpen=getNodes(event.node) / you might want to store a reference to this node rather than using contentMgmtTree.selectedItem. So you script block might look like this: public function getNodes( treeNode ) { treeSelectedNode = treeNode; EventBroadcaster.getInstance().broadcastEvent( getTheNodez, treeNode.getData().oid ); } //and for adding the nodes public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) { var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode ); //or break it down even further with this //var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode.label, treeNode ); if( treeNode.hasChildren == true ) { tempNode.setProperty( 'isBranch', true, true ); } else { tempNode.setProperty( 'isBranch', false, true ); } } The only real difference is that I store a reference to the selected node from the nodeOpen event using event.node. This is then what I would use to add the child nodes to. See how that goes. Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, pat_ryan_99 [EMAIL PROTECTED] wrote: Hi Everyone, I have looked through old messages in this group and did not see anything that addresses my question - or at least it was not clear that it did. Here is what I am trying to do. Using the Cairngorm framework, I am making a remote call to my server to retrieve something I wrote called a TreeNodeVO ( which has a public label property ). My ViewHelper adds the Root node like this (which works ): public function addRootTreeNode(treeNode:TreeNodeVO) : Void { view.contentMgmtTree.removeAll(); var node:Object = view.contentMgmtTree.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } when I open the tree node, I make another remote call to get the children as an Array of TreeNodeVO objects. The ViewHelper method to add the other nodes under the opened node looks like: public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) : Void { trace(treeNode: + treeNode.toString()); var node:Object = view.contentMgmtTree.selectedItem.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } what I see happening is the root node renders correctly as a folder with the right label. When I open the folder the server is returning the correct array of TreeNodeVO objects but what is rendered under the root node is a document icon ( which is correct ) but with the label [type Function],[type Function],... Can someone please point me in the right direction on the correct way to add nodes that DO NOT use the XML model? Any help is greatly appreciated. Thanks Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hsihsdg/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124126261/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] Invalidating flashproxy JSESSIONID value.
Can anyone suggest how I might implement a 'logout' facility by completely invalidating a users session within Flex? From what I can deduce, Flex initially passes the JSESSIONID through the flashproxy as a cookie, using it to construct the appropriate headers for the subsequent http call. With a _freshly_started_ server and a _new_browser_session_, this works great. However, when I call 'session.invalidate()' within a JSP page to force the user to re-authenticate themselves (which works), the flashproxy appears to hold both the original (now invalid) JSESSIONID and a new one. The upshot is that the main client session and the internal http connections are out of sync;ie not sharing the same session. This means that although the user is authenticated to view the flex client, none of the underlying service connections are authenticated. I've tried calling 'session.invalidate()' within an HTTPService call, and setting the 'JSESSION' cookie to immediately expire, but with no luck. Has anyone else run into this issue? Thanks, in advance. ...Col BTW, I'm using form based authentication against Tomcat 5.5. Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12htsb4b3/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124127141/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: Tree component help - please
Thank you for the response, but that produced the same results. Other thoughts? I assume that since my TreeNodeVO has a label attribute, that is all that is really required? Is it having trouble understanding this VO? Thanks again Pat --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: Hi, Maybe try something like this: mx:Tree nodeOpen=getNodes(event.node) / you might want to store a reference to this node rather than using contentMgmtTree.selectedItem. So you script block might look like this: public function getNodes( treeNode ) { treeSelectedNode = treeNode; EventBroadcaster.getInstance().broadcastEvent( getTheNodez, treeNode.getData().oid ); } //and for adding the nodes public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) { var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode ); //or break it down even further with this //var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode.label, treeNode ); if( treeNode.hasChildren == true ) { tempNode.setProperty( 'isBranch', true, true ); } else { tempNode.setProperty( 'isBranch', false, true ); } } The only real difference is that I store a reference to the selected node from the nodeOpen event using event.node. This is then what I would use to add the child nodes to. See how that goes. Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, pat_ryan_99 [EMAIL PROTECTED] wrote: Hi Everyone, I have looked through old messages in this group and did not see anything that addresses my question - or at least it was not clear that it did. Here is what I am trying to do. Using the Cairngorm framework, I am making a remote call to my server to retrieve something I wrote called a TreeNodeVO ( which has a public label property ). My ViewHelper adds the Root node like this (which works ): public function addRootTreeNode(treeNode:TreeNodeVO) : Void { view.contentMgmtTree.removeAll(); var node:Object = view.contentMgmtTree.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } when I open the tree node, I make another remote call to get the children as an Array of TreeNodeVO objects. The ViewHelper method to add the other nodes under the opened node looks like: public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) : Void { trace(treeNode: + treeNode.toString()); var node:Object = view.contentMgmtTree.selectedItem.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } what I see happening is the root node renders correctly as a folder with the right label. When I open the folder the server is returning the correct array of TreeNodeVO objects but what is rendered under the root node is a document icon ( which is correct ) but with the label [type Function],[type Function],... Can someone please point me in the right direction on the correct way to add nodes that DO NOT use the XML model? Any help is greatly appreciated. Thanks Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hh0lo59/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124129694/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] custom data grid solution
I have a requirement for a custom data grid: 1. 1st column will be a link value. you click on it and it takes you to a different view in a viewStack. 2. columns 2 through n-1 will be regular Strings 3. column n will be a checkbox. What's the best approach for building such a custom data grid object? Are there any examples out there that show something like this? I imagine that I will need to extend the DataGrid object to add 2 different column Renders for columns 1 and n? Any pointers/references appreciated. Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h5o9lgf/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124131847/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/
Re: [flexcoders] array question.
Tracy, I am still not able to get the results. following is my HttpService and below that is the XML code and function reading results from the service .. mx:HTTPService id=posterinfo_srv url=http://x/.php; fault=faultHandler(event.fault.faultstring, event.fault.faultcode) method=POST showBusyCursor=true useProxy=false / ... it returns following XML posters poster firstnamexxx/firstname lastname/lastname /poster poster firstname/firstname lastnameyyy/lastname /poster posters function popInvoice(sessionid){ posterinfo_srv.send({query_type:'getposterinfo_sessionid2', sessionid: sessionid}); posteradminstack.selectedChild = invoicepanel; var posterdata = posterinfo_srv.result.posters.poster; lbl_fname.text = posterdata[0].firstname; lbl_lname.text = posterdata[0].lastname; lbl_date.text = posterdata[0].date; } On 8/12/05, Tracy Spratt [EMAIL PROTECTED] wrote: If your resultFormat is xml or object, and there is an array in the data returned, there will be an array in the result object. The trick is finding it. When you do you can assign it directly to the variable. Do you know exactly what the httpservice is returning? Use a result event handler and a debugger to inspect the result object. If result format is object, the default, then you will dot down to the array. If it is xml, you will use the xml api to nav to the data, then use childNodes to return the array. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of juyalmanu Sent: Friday, August 12, 2005 4:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] array question. Hi all.. I am trying to call a httpservice to fetch some data. Basically this data will be in the form number of records from database. Then I want to populate this data NOT in a datagrid but in some kind of form. Can anyone please help me with how can I assign get data from the httpservice results to some array variable. 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 -- 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 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hblt7n0/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124132739/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/
RE: [flexcoders] Re: Tree component help - please
I think the label property need to be at the top level of the treeNode. So your example: var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode.label, treeNode ); Should work. Remember when accessing the treeNode, use the TreeDataProvider API, like getProperty(label), and getData() Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pat_ryan_99 Sent: Monday, August 15, 2005 12:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tree component help - please Thank you for the response, but that produced the same results. Other thoughts? I assume that since my TreeNodeVO has a label attribute, that is all that is really required? Is it having trouble understanding this VO? Thanks again Pat --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: Hi, Maybe try something like this: mx:Tree nodeOpen=getNodes(event.node) / you might want to store a reference to this node rather than using contentMgmtTree.selectedItem. So you script block might look like this: public function getNodes( treeNode ) { treeSelectedNode = treeNode; EventBroadcaster.getInstance().broadcastEvent( getTheNodez, treeNode.getData().oid ); } //and for adding the nodes public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) { var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode ); //or break it down even further with this //var tempNode:TreeNode = treeSelectedNode.addTreeNode( treeNode.label, treeNode ); if( treeNode.hasChildren == true ) { tempNode.setProperty( 'isBranch', true, true ); } else { tempNode.setProperty( 'isBranch', false, true ); } } The only real difference is that I store a reference to the selected node from the nodeOpen event using event.node. This is then what I would use to add the child nodes to. See how that goes. Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, pat_ryan_99 [EMAIL PROTECTED] wrote: Hi Everyone, I have looked through old messages in this group and did not see anything that addresses my question - or at least it was not clear that it did. Here is what I am trying to do. Using the Cairngorm framework, I am making a remote call to my server to retrieve something I wrote called a TreeNodeVO ( which has a public label property ). My ViewHelper adds the Root node like this (which works ): public function addRootTreeNode(treeNode:TreeNodeVO) : Void { view.contentMgmtTree.removeAll(); var node:Object = view.contentMgmtTree.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } when I open the tree node, I make another remote call to get the children as an Array of TreeNodeVO objects. The ViewHelper method to add the other nodes under the opened node looks like: public function addTreeNodeUnderSelected(treeNode:TreeNodeVO) : Void { trace(treeNode: + treeNode.toString()); var node:Object = view.contentMgmtTree.selectedItem.addTreeNode(treeNode); if( treeNode.hasChildren == true ) { view.contentMgmtTree.setIsBranch(node,true); } } what I see happening is the root node renders correctly as a folder with the right label. When I open the folder the server is returning the correct array of TreeNodeVO objects but what is rendered under the root node is a document icon ( which is correct ) but with the label [type Function],[type Function],... Can someone please point me in the right direction on the correct way to add nodes that DO NOT use the XML model? Any help is greatly appreciated. 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 ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hohv8e7/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124133933/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
RE: [flexcoders] array question.
Because data calls are asynchronous, you can't use the result in the same function that you call it, you must do it in a result handler. Put this line in the result handler function: var posterdata = posterinfo_srv.result.posters.poster; Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Juyal Sent: Monday, August 15, 2005 1:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] array question. Tracy, I am still not able to get the results. following is my HttpService and below that is the XML code and function reading results from the service .. mx:HTTPService id=posterinfo_srv url=http://x/.php; fault=faultHandler(event.fault.faultstring, event.fault.faultcode) method=POST showBusyCursor=true useProxy=false / ... it returns following XML posters poster firstnamexxx/firstname lastname/lastname /poster poster firstname/firstname lastnameyyy/lastname /poster posters function popInvoice(sessionid){ posterinfo_srv.send({query_type:'getposterinfo_sessionid2', sessionid: sessionid}); posteradminstack.selectedChild = invoicepanel; var posterdata = posterinfo_srv.result.posters.poster; lbl_fname.text = posterdata[0].firstname; lbl_lname.text = posterdata[0].lastname; lbl_date.text = posterdata[0].date; } On 8/12/05, Tracy Spratt [EMAIL PROTECTED] wrote: If your resultFormat is xml or object, and there is an array in the data returned, there will be an array in the result object. The trick is finding it. When you do you can assign it directly to the variable. Do you know exactly what the httpservice is returning? Use a result event handler and a debugger to inspect the result object. If result format is object, the default, then you will dot down to the array. If it is xml, you will use the xml api to nav to the data, then use childNodes to return the array. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of juyalmanu Sent: Friday, August 12, 2005 4:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] array question. Hi all.. I am trying to call a httpservice to fetch some data. Basically this data will be in the form number of records from database. Then I want to populate this data NOT in a datagrid but in some kind of form. Can anyone please help me with how can I assign get data from the httpservice results to some array variable. 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 -- 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 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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=12hin8335/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124134306/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/
RE: [flexcoders] mx:Tree being populated by a CF Array?
Yes you can bind the dataprovider of the mx:Tree to the RemoteObject result. I am using Cairngorm too and returning array of VO. Thanks, Shahnavaz From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes Sent: Sunday, August 14, 2005 11:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Tree being populated by a CF Array? I can't quite seem to recall on whether or not you can populate a mx:TREE via a RemoteObject (which returns an ArrayOfStructs). Its possible isn't it? ie i'm using cairngorm ModelLocator to bind the view and remote together? -- Regards, Scott Barnes http://www.mossyblog.com -- 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 Computer software testing Macromedia flex Development Software developer 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] can flex build dynamic form
I was wondering if Flex has the equivalent of the Struts logic:iterate tag and the JSTL c:if tag to perform conditional rendering? I have alist of polymorphic objects that I need to both display and allow updates to by the user. Each object (based on its type) may have 1, 2, or 3 input fields. I need to loop through the object list and build a dynamic form, outputting the correct number of input fields for each object. I can do this in Struts/JSTL but is there a way to do it Flex? Thanks in advance -- 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/
RE : [flexcoders] Re: DepthManager
Hi, The method swapDepths accepts a UIObject as a parameter and not a number. Regards Rajesh J --- In flexcoders@yahoogroups.com, Philippe Maegerman [EMAIL PROTECTED] wrote: You might try to manualy adjust your menu's depth to be the max depth : menu.swapDepths(Number.MAX_VALUE) I hope it helps //Philippe De: flexcoders@yahoogroups.com de la part de Rajesh Jayabalan Date: sam. 13/08/2005 1:35 À: flexcoders@yahoogroups.com Objet : [flexcoders] Re: DepthManager Hi Manish, I created my menu adjustMenuDepths from your blog thanks :-), but it does have a problem in that after the title window is created the menu does appear above it, but when I move the window a bit or just click on the title window, the window become the topmost and menu is again below the title window. The menu is part of the application fram and title windows are created by menu events. (think of it a MDI application) Regards Rajesh J --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 8/13/05, Rajesh Jayabalan [EMAIL PROTECTED] wrote: How do I use DepthManager, my menu is appearing below title windows, a work around I found was to use setdepthabove and pass the window to it for the menu, but this does not work if the window is moved. Man, it sure does help to have blogged some of this already. :) Here you go: http://manish.revise.org/2005/04/menu-depths-in-modal-windows.html Manish -- 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 Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg 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] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. -- Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hi7370q/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124135800/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/
Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type
I thought it would work to sweep through the Stage and all containers. I could sweep through the registered view, but I have nested views where the links are visible. It's not the views that need to be disabled, it's the link within the view. On 8/15/05, JesterXL [EMAIL PROTECTED] wrote: All Views', all containers? Um, no, in that case, you'll need a global registry, much like how ViewHelper's are registered by ID, etc. However, I question why you need such sweeping changes? Why not toggle the enabled/disabledness of each view when it needs to be? - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 15, 2005 10:00 AM Subject: Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type No love. I ran this to try and reference all the links within the application scope, but it returned just those properties of the application scope. I am looking to reference the Links within all views/containers.: -- public function showProfileByRole () : Void { for(var p in mx.core.Application.application) { _root.taDisplayData.text += p + '\n'; if(this[p] instanceof Link) { this[p]._visible = false; } } } -- On 8/14/05, JesterXL [EMAIL PROTECTED] wrote: for(var p in this) { if(this[p] instanceof Link) { this[p].visible = false; } } - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 14, 2005 11:14 PM Subject: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type Hello, In Flash, I've swept the stage in search of certain object types (like TextFields), so I could disable the objects by either removing them or changing their visibility. In Flex, is there a way to sweep all objects in search of specific component types, including those that are part of another view? I have Links where the visibility needs to be toggled off and on. I thought about making the Link a sub-class, too and adding the instance name to an array when the Link is created. Ideas, thoughts and suggestions are welcome. Dave -- 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! Groups Links Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hklkc05/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124136851/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/
RE: [flexcoders] can flex build dynamic form
Yes. The Repeater tag offers this sort of functionality. Building each element to render the correct number of input fields would be encapsulated in the object itself, depending on its type. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cruegger2000 Sent: Monday, August 15, 2005 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] can flex build dynamic form I was wondering if Flex has the equivalent of the Struts logic:iterate tag and the JSTL c:if tag to perform conditional rendering? I have alist of polymorphic objects that I need to both display and allow updates to by the user. Each object (based on its type) may have 1, 2, or 3 input fields. I need to loop through the object list and build a dynamic form, outputting the correct number of input fields for each object. I can do this in Struts/JSTL but is there a way to do it Flex? Thanks in advance -- 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=12hatat3n/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124137379/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: DepthManager
Hi Manish, Thanx, that helped a lot. Rajesh J --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 8/13/05, Rajesh Jayabalan [EMAIL PROTECTED] wrote: I created my menu adjustMenuDepths from your blog thanks :-), but it does have a problem in that after the title window is created the menu does appear above it, but when I move the window a bit or just click on the title window, the window become the topmost and menu is again below the title window. Well then I think you should call adjustMenuDepths in the click or mouseDown or move handler of the TitleWindow. Manish Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hpgnoac/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124137525/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/
Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type
There are a plethora of ways to enable/disable controls. Most controls and forms repond to: myObject.enabled = false; And visually update to that effect, as well as no longer accepting input, mouse or keyboard. Links respond the same thing: myLink.enabled = false; However, I can't remember if containers automatically turn off all of their children; I know they certainly don't in Flash unless you specificy a click handler on the container. Suffice it to say, it's pretty easy; either: - register for an event, internally, to the component, and when it's enabled state changes, set all children to the enabled property that the container will have - override setEnabled, and call super.setEnabled, and then set all of your children to the state - bind each controls' enabled property to its container As an old skooler, I'd do the override, but binding may work well here. However you desire to disable ALL Links EVERYWHERE is quite confusing; hopefully one of the above solutions should work. - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 15, 2005 2:14 PM Subject: Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type I thought it would work to sweep through the Stage and all containers. I could sweep through the registered view, but I have nested views where the links are visible. It's not the views that need to be disabled, it's the link within the view. On 8/15/05, JesterXL [EMAIL PROTECTED] wrote: All Views', all containers? Um, no, in that case, you'll need a global registry, much like how ViewHelper's are registered by ID, etc. However, I question why you need such sweeping changes? Why not toggle the enabled/disabledness of each view when it needs to be? - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 15, 2005 10:00 AM Subject: Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type No love. I ran this to try and reference all the links within the application scope, but it returned just those properties of the application scope. I am looking to reference the Links within all views/containers.: -- public function showProfileByRole () : Void { for(var p in mx.core.Application.application) { _root.taDisplayData.text += p + '\n'; if(this[p] instanceof Link) { this[p]._visible = false; } } } -- On 8/14/05, JesterXL [EMAIL PROTECTED] wrote: for(var p in this) { if(this[p] instanceof Link) { this[p].visible = false; } } - Original Message - From: dave buhler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 14, 2005 11:14 PM Subject: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type Hello, In Flash, I've swept the stage in search of certain object types (like TextFields), so I could disable the objects by either removing them or changing their visibility. In Flex, is there a way to sweep all objects in search of specific component types, including those that are part of another view? I have Links where the visibility needs to be toggled off and on. I thought about making the Link a sub-class, too and adding the instance name to an array when the Link is created. Ideas, thoughts and suggestions are welcome. Dave -- 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! 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 ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h2kt79h/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124138159/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics.
Re: [flexcoders] can flex build dynamic form
Dynamic forms can be done. There's some articles out there that may help: http://www.waldosmeets.com/index.cfm?entryID=546 http://www.macromedia.com/devnet/flex/articles/flexprimer_03.html And the iteration::two book also talks about it. http://www.iterationtwo.com/flexbook/index.html cruegger2000 wrote: I was wondering if Flex has the equivalent of the Struts logic:iterate tag and the JSTL c:if tag to perform conditional rendering? I have alist of polymorphic objects that I need to both display and allow updates to by the user. Each object (based on its type) may have 1, 2, or 3 input fields. I need to loop through the object list and build a dynamic form, outputting the correct number of input fields for each object. I can do this in Struts/JSTL but is there a way to do it Flex? Thanks in advance -- 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=12hdmkc8e/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124138475/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] Dinamically adding itens to a grid
Title: Dinamically adding itens to a grid Hi all ! I'm new at the list and a new flex coder. I'm trying to add GridRows to a Grid using the following code: function addFilterCondition(){ var fieldName = new ComboBox(); var operation = new TextInput(); var condition = new TextInput(); var addButton = new Button(); var removeButton = new Button(); var row = new GridRow(); row.createChild(mx.controls.ComboBox,,); row.createChild(mx.controls.TextInput,,); row.createChild(mx.controls.TextInput,,); row.createChild(mx.controls.Button,,); row.createChild(mx.controls.Button,,); grid.createChild(row); grid.layoutChildren(); } I called the function above from a click event of a button, but no GridRow has been add to the Grid. Did I miss something ? Is my code right ? Thanks in advance ! Michel. -- 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 Computer software testing Macromedia flex Development Software developer 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.
RE: [flexcoders] Dinamically adding itens to a grid
Title: Dinamically adding itens to a grid Hello Michael, You should use the DataProvider API to get the databinding to fire. HTH, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel Bertrand Sent: 15 August 2005 19:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Dinamically adding itens to a grid Hi all ! I'm new at the list and a new flex coder. I'm trying to add GridRows to a Grid using the following code: function addFilterCondition(){ var fieldName = new ComboBox(); var operation = new TextInput(); var condition = new TextInput(); var addButton = new Button(); var removeButton = new Button(); var row = new GridRow(); row.createChild(mx.controls.ComboBox,,); row.createChild(mx.controls.TextInput,,); row.createChild(mx.controls.TextInput,,); row.createChild(mx.controls.Button,,); row.createChild(mx.controls.Button,,); grid.createChild(row); grid.layoutChildren(); } I called the function above from a click event of a button, but no GridRow has been add to the Grid. Did I miss something ? Is my code right ? Thanks in advance ! Michel. -- 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 Computer software testing Macromedia flex Development Software developer 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. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005
Re: [flexcoders] custom data grid solution
sounds like a job for 2 custom cell renderers. Take a look at the CheckCellRenderer example (i think its in the docs) for syntax At 12:47 PM 8/15/2005, cruegger2000 wrote: I have a requirement for a custom data grid: 1. 1st column will be a link value. you click on it and it takes you to a different view in a viewStack. 2. columns 2 through n-1 will be regular Strings 3. column n will be a checkbox. What's the best approach for building such a custom data grid object? Are there any examples out there that show something like this? I imagine that I will need to extend the DataGrid object to add 2 different column Renders for columns 1 and n? Any pointers/references appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12holpc8q/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124141606/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/
RES: [flexcoders] Dinamically adding itens to a grid
Title: Mensagem Hi Allen ! Thanks for your answer ! I tried to use aDataGrid and it's property of type DataProvider but I didn't have success. I got a message saying that this kind of container cannot display visual components. I will try do build my component in another way. Thanks again ! Michel. -Mensagem original-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Allen ManningEnviada em: segunda-feira, 15 de agosto de 2005 16:07Para: flexcoders@yahoogroups.comAssunto: RE: [flexcoders] Dinamically adding itens to a grid Hello Michael, You should use the DataProvider API to get the databinding to fire. HTH, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel BertrandSent: 15 August 2005 19:25To: flexcoders@yahoogroups.comSubject: [flexcoders] Dinamically adding itens to a grid Hi all ! I'm new at the list and a new flex coder. I'm trying to add GridRows to a Grid using the following code: function addFilterCondition(){ var fieldName = new ComboBox(); var operation = new TextInput(); var condition = new TextInput(); var addButton = new Button(); var removeButton = new Button(); var row = new GridRow(); row.createChild(mx.controls.ComboBox,"",""); row.createChild(mx.controls.TextInput,"",""); row.createChild(mx.controls.TextInput,"",""); row.createChild(mx.controls.Button,"",""); row.createChild(mx.controls.Button,"",""); grid.createChild(row); grid.layoutChildren(); } I called the function above from a "click" event of a button, but no GridRow has been add to the Grid. Did I miss something ? Is my code right ? Thanks in advance ! Michel. --No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005 --No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/08/2005 -- 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 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.
RE: [flexcoders] Calling ArrayStructures in CFCs from Flex
Hi Malcolm, Thanks for your advice. Jeff's solutions worked well if you want to take a look. I'm going to try to post my completed solution on some site. Darius -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of MalcolmSent: Wednesday, August 10, 2005 4:48 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Calling ArrayStructures in CFCs from FlexHi Darius,I too went through the same pain (days days of trying see what data typesI could successfully return from a CFC).I'm still learning but in my somewhat limited experience I could find no wayto return an array datatype, it just wouldn't do it no matter what I tried,same goes for structures. I have successfully returned the followingdatatypes::String:Query:Boolean:Numeric (yet to try):Date (yet to try)It's interesting to note that Flex (somehow) in the background actuallyconverts a ColdFusion query to an array. (Search the group on how these canbe accessed)At the moment I am mostly using queries to get data back. This has theunfortunate side effect of losing typing (everything in the query is astring), thus you may need cast some results etc to their correct type inFlex.Malcolm-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of coldfsSent: Friday, 5 August 2005 7:29 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Calling ArrayStructures in CFCs from FlexHi,Using Tom Link's blog (http://tomlink.net/blog/index.cfm?mode=entryentry=B662BEF9-7E97-A3B0-E3FB286E23BDAA50) and other sources, I've been trying for days to translate queries to arrays of structures (and vice versa). Whatever I do, the cfc doesn't except my values from Flex as arrays. I know it's a chunk of code to review, but you'd help a sane man going slowly mad...:-)Many thanks,Darius---index.mxml:---?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script ![CDATA[ var RecordSetModel; private function doResult(event:Object):Void{ var method: String = event.call.methodName; if (method == "GetUpdateAuthorization"){ RecordSetModel = event.result; } } private function doClick():Void{ var UserId = "rgatta"; var CountyCode = 37; var CaseFlag = "No"; var CourtOrderAvailableFlag = "No"; var Dsn = "TssDev"; ro.GetUpdateAuthorization(UserId,CountyCode,CaseFlag,CourtOrderAvailableFlag,Dsn); } ]] /mx:Script mx:RemoteObject id="ro" endpoint="http://gx270dev.net/flashservices/gateway" source="Model.mUtilities.mUpdate.qry_UpdateAuthorization" fault="mx.controls.Alert.show(event.fault.faultstring)" showBusyCursor="true" mx:method name="GetUpdateAuthorization" result="doResult(event.result)"/ /mx:RemoteObject mx:Panel width="100%" title="Forms" height="22%" mx:DataGrid id="UpdatesDG" width="166" height="156" wordWrap="true" dataProvider="{RecordSetModel}" mx:columns mx:Array mx:DataGridColumn width="200" headerText="Update Form" columnName="Function"/ mx:DataGridColumn width="320" headerText="Description" columnName="Description"/ /mx:Array /mx:columns /mx:DataGrid mx:Button label="Get Records" click="doClick()"/ /mx:Panel /mx:Application--fx_UpdateAuthorization.cfc--cfcomponent extends="Base" cfset obj = createObject("component","qry_UpdateAuthorization") !--- cffunction name="getEmployees" access="remote" returntype="array" cfreturn queryToArrayOfStructures(emp.getEmployees()) /cffunction --- cffunction name="GetUpdateAuthorization" access="remote" returntype="array" cfargument name="AuthorizedUserIdObject" type="array" required="yes" cfargument name="CountyCodeObject" type="array" required="yes" cfargument name="CaseFlagObject" type="array" required="yes" cfargument name="CourtOrderAvailableFlagObject" type="array" required="yes" cfargument name="DsnObject" type="array" required="yes" cfreturn queryToArrayOfStructures(obj.GetUpdateAuthorization(AuthorizedUserIdObject,CountyCodeObject,CaseFlagObject,CourtOrderAvailableFlagObject,DsnObject)) /cffunction /cfcomponent-qry_UpdateAuthorization.cfc-cfcomponent extends="Base" cffunction name="GetUpdateAuthorization" access="remote" returntype="query" cfargument name="AuthorizedUserId" type="array" required="yes" cfargument name="CountyCode" type="array" required="yes" cfargument name="CaseFlag" type="array" required="yes" cfargument
[flexcoders] move window up
Hi, My application uses multiple titlewindows, and I am storing the reference of them in a arraylist, and creating a dynamic menu. Now in the script how do I set the depth of the window so that the window can be on the top. I cannot use setdepthabove since I do not know which window is on the top currently. Regards Rajesh J Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hm727nb/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124149883/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/
RE: [flexcoders] Calling ArrayStructures in CFCs from Flex
Great, will definitely take a look, agreed, we certainly need some sort of referenceThe dark art of Flex CFCs. Malcolm From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 16 August 2005 6:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Calling ArrayStructures in CFCs from Flex Hi Malcolm, Thanks for your advice. Jeff's solutions worked well if you want to take a look. I'm going to try to post my completed solution on some site. Darius -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Malcolm Sent: Wednesday, August 10, 2005 4:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Calling ArrayStructures in CFCs from Flex Hi Darius, I too went through the same pain (days days of trying see what data types I could successfully return from a CFC). I'm still learning but in my somewhat limited experience I could find no way to return an array datatype, it just wouldn't do it no matter what I tried, same goes for structures. I have successfully returned the following datatypes: :String :Query :Boolean :Numeric (yet to try) :Date (yet to try) It's interesting to note that Flex (somehow) in the background actually converts a ColdFusion query to an array. (Search the group on how these can be accessed) At the moment I am mostly using queries to get data back. This has the unfortunate side effect of losing typing (everything in the query is a string), thus you may need cast some results etc to their correct type in Flex. Malcolm -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of coldfs Sent: Friday, 5 August 2005 7:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling ArrayStructures in CFCs from Flex Hi, Using Tom Link's blog (http://tomlink.net/blog/index.cfm? mode=entryentry=B662BEF9-7E97-A3B0-E3FB286E23BDAA50) and other sources, I've been trying for days to translate queries to arrays of structures (and vice versa). Whatever I do, the cfc doesn't except my values from Flex as arrays. I know it's a chunk of code to review, but you'd help a sane man going slowly mad...:-) Many thanks, Darius --- index.mxml: --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ var RecordSetModel; private function doResult(event:Object):Void{ var method: String = event.call.methodName; if (method == GetUpdateAuthorization){ RecordSetModel = event.result; } } private function doClick():Void{ var UserId = rgatta; var CountyCode = 37; var CaseFlag = No; var CourtOrderAvailableFlag = No; var Dsn = TssDev; ro.GetUpdateAuthorization (UserId,CountyCode,CaseFlag,CourtOrderAvailableFlag,Dsn); } ]] /mx:Script mx:RemoteObject id=ro endpoint=http://gx270dev.net/flashservices/gateway source=Model.mUtilities.mUpdate.qry_UpdateAuthorization fault=mx.controls.Alert.show(event.fault.faultstring) showBusyCursor=true mx:method name=GetUpdateAuthorization result=doResult(event.result)/ /mx:RemoteObject mx:Panel width=100% title=Forms height=22% mx:DataGrid id=UpdatesDG width=166 height=156 wordWrap=true dataProvider={RecordSetModel} mx:columns mx:Array mx:DataGridColumn width=200 headerText=Update Form columnName=Function/ mx:DataGridColumn width=320 headerText=Description columnName=Description/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get Records click=doClick()/ /mx:Panel /mx:Application -- fx_UpdateAuthorization.cfc -- cfcomponent extends=Base cfset obj = createObject (component,qry_UpdateAuthorization) !--- cffunction name=getEmployees access=remote returntype=array cfreturn queryToArrayOfStructures(emp.getEmployees()) /cffunction --- cffunction name=GetUpdateAuthorization access=remote returntype=array cfargument name=AuthorizedUserIdObject type=array required=yes cfargument name=CountyCodeObject type=array required=yes cfargument name=CaseFlagObject type=array required=yes cfargument name=CourtOrderAvailableFlagObject type=array required=yes cfargument name=DsnObject type=array required=yes cfreturn queryToArrayOfStructures (obj.GetUpdateAuthorization (AuthorizedUserIdObject,CountyCodeObject,CaseFlagObject,CourtOrderAvai lableFlagObject,DsnObject)) /cffunction /cfcomponent - qry_UpdateAuthorization.cfc - cfcomponent extends=Base cffunction name=GetUpdateAuthorization access=remote returntype=query cfargument name=AuthorizedUserId type=array required=yes cfargument name=CountyCode type=array required=yes cfargument name=CaseFlag type=array required=yes cfargument
RE: [flexcoders] move window up
Rajesh, Because each title window has a parent you can simply get the top child with the getChildAt() method and then set your target above that. function popToTop( target : mx.core.UIObject ) { var parent = target.parent; var topSibling = parent.getChildAt( parent.numChildren - 1 ); if ( topSibling != target ) target.setDepthAbove( topSibling ); } HTH, Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, August 15, 2005 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] move window up Hi, My application uses multiple titlewindows, and I am storing the reference of them in a arraylist, and creating a dynamic menu. Now in the script how do I set the depth of the window so that the window can be on the top. I cannot use setdepthabove since I do not know which window is on the top currently. Regards Rajesh J -- 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=12h9k6s9l/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124157331/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: move window up
Hi Rob, That does not work.. in cases its hiding the window, and in some cases it is not doing anything. I am comparing the depth of all the windows that I have in the array and then setting the window depth above the most highest one. and that seems to work. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rob Rusher [EMAIL PROTECTED] wrote: Rajesh, Because each title window has a parent you can simply get the top child with the getChildAt() method and then set your target above that. function popToTop( target : mx.core.UIObject ) { var parent = target.parent; var topSibling = parent.getChildAt( parent.numChildren - 1 ); if ( topSibling != target ) target.setDepthAbove( topSibling ); } HTH, Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, August 15, 2005 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] move window up Hi, My application uses multiple titlewindows, and I am storing the reference of them in a arraylist, and creating a dynamic menu. Now in the script how do I set the depth of the window so that the window can be on the top. I cannot use setdepthabove since I do not know which window is on the top currently. Regards Rajesh J -- 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=12hc5qeiu/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124158174/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] What I wish Flex/Flash Player could do...
If any of you have had any experience using an embedded database like HyperSonic HSQLDB then you know how wonderful it is to have the power of a SQL database that resides on the client. Less than 200K, it performs complex SQL against text files allowing filtering, sorting, joining and most everything you would expect from a lightweight database. I am converting an Occasionally Connected Client application from a java app to a Flex app and duplicating HSQLDB functionality in Flex is painful (not to mention the slow performance). Matt Chotin and others have done alot to address the large dataset and filtering problem but it really could be easier. To the Macromedia engineers that frequent this group - Is this on the strategic roadmap of Flash Player development??? Anybody else like to see this? Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hed5cra/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124159864/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: move window up
Hi, Well did u read the source code of TitleWindow? This is my swap up function: private function swapObjUp( obj:mx.core.UIObject ){ var depth = ( obj[ modalWindow ] == undefined )?DepthManager.kTop : DepthManager.kTopmost; var o = obj._parent.createChildAtDepthWithStyles(BoundingBox, depth, {_visible:false}); obj.swapDepths(o); o.removeMovieClip(); } Regards -邮件原件- 发件人: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 代表 Rajesh Jayabalan 发送时间: 2005年8月16日 8:10 收件人: flexcoders@yahoogroups.com 主题: [flexcoders] Re: move window up Hi Rob, That does not work.. in cases its hiding the window, and in some cases it is not doing anything. I am comparing the depth of all the windows that I have in the array and then setting the window depth above the most highest one. and that seems to work. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rob Rusher [EMAIL PROTECTED] wrote: Rajesh, Because each title window has a parent you can simply get the top child with the getChildAt() method and then set your target above that. function popToTop( target : mx.core.UIObject ) { var parent = target.parent; var topSibling = parent.getChildAt( parent.numChildren - 1 ); if ( topSibling != target ) target.setDepthAbove( topSibling ); } HTH, Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, August 15, 2005 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] move window up Hi, My application uses multiple titlewindows, and I am storing the reference of them in a arraylist, and creating a dynamic menu. Now in the script how do I set the depth of the window so that the window can be on the top. I cannot use setdepthabove since I do not know which window is on the top currently. Regards Rajesh J -- 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 ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hg7uesb/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124162303/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/
Re: [flexcoders] What I wish Flex/Flash Player could do...
I forwarded your request to the Central Dev group for Ethan Malasky to hopefully pick up. Since Central is hopefully the future of Flash, and ultimately Flex on the desktop, things like this are perfect. It just so happens SQL on the client was requested by multiple people already there, so your request from a different demographic WITH the keywords of occasionally connected just adds mad credence. - Original Message - From: azhofeling [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 15, 2005 8:37 PM Subject: [flexcoders] What I wish Flex/Flash Player could do... If any of you have had any experience using an embedded database like HyperSonic HSQLDB then you know how wonderful it is to have the power of a SQL database that resides on the client. Less than 200K, it performs complex SQL against text files allowing filtering, sorting, joining and most everything you would expect from a lightweight database. I am converting an Occasionally Connected Client application from a java app to a Flex app and duplicating HSQLDB functionality in Flex is painful (not to mention the slow performance). Matt Chotin and others have done alot to address the large dataset and filtering problem but it really could be easier. To the Macromedia engineers that frequent this group - Is this on the strategic roadmap of Flash Player development??? Anybody else like to see this? -- 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=12h50hka2/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124162899/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/
Re: [flexcoders] Calling ArrayStructures in CFCs from Flex
Absolumont! Tracy Spratt wrote: Message Im sure Tarik will be happy to post it on CFLEX.net. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Monday, August 15, 2005 4:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Calling ArrayStructures in CFCs from Flex Jeff, You were right! The problem was that I had to hard code my structure keys. For example: cfoutput query="qGetUpdateAuthorization" cfset stItem = StructNew()/ cfset stItem["Function"] = #qGetUpdateAuthorization.Function# cfset stItem["Description"] = #qGetUpdateAuthorization.Description# cfset arrayAppend(arrResult,stItem)/ /cfoutput I've spent so long working out all the details of calling a facade cfc from Flex that I want to post the completed solution on some blog/site having to do with Flex. I really think others will benefit from a simple, straight-forward example. Do you have any suggestions on where to post this? Thanks again for all your help, Darius -- 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 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.