[flexcoders] Passing data between seperate components
I have an app where I have created a single control bar that allows the user to navigate through various components in my application. This is so that the navigiation is always located at the bottom of the screen and is visible at all times to the user without scrolling. I am doing this becuase some of my components are fairly large, and while the user scrolls down the bottom navigation will stay in view at all times. My navigation component succesfully navigates through my components through a dispatched event with no problems. What I want to do is send the data in each component to a data model. However, I have not figured a way to do this without putting the control directly inside the component. What I need is a way in which the navigation component can some how tell each component to send its data to my data model each time a navigation click event is fired. Simply put, I need a way for one component (my navigation component) to tell each individual component to send data to my data model. If anyone has worked with some sort of navigation bar that is used to direct the user from component to component while saving data along the way I would appreciate some advice on how to approach this. Thanks in advance, Ryan Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/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] Object name referencing within a TitleWindow
I am working on an app where I would like to reuse TitleWindow popup component many times throughout my app. However, depending where the user is in the app, it will change the title on the TitleWindow popup. I need to reference the specific initObject name each time a new TitleWindow instance is created and change the title depending on what the titlewindow popup is being used for. So, if my showText method creates a new popup with the initObject name of textZoom I need to know how to how to reference it in the popup (in an if statement) to change the title. I think I am on the right track, but any suggestions would be appreciated. Thanks * mainApp.mxml * public function showText():Void{ var textDescObj = new Object(); var t:Object = TitleWindow(PopUpManager.createPopUp this, textZoomPopup, false, textDescObj, false)) } * TitleWindow.mxml * pseudo code: If this objects name == textDescObj then change my title to Desired Title else if objects name == someOtherObjName then change my title to Different Title -- 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] Re: Object name referencing within a TitleWindow
I am not sure if it matters but, I am working with Flex 1.5. I declared a string and gave it a title specific to the component. Then attached that String to the new object. However I am still getting undefined as my title when it creates my popup. Is there somthing else I am missing? This is what I have: public var sTitle : String = my component specific title; showText(sTitle:String){ var textDescObj:Object = {title:sTitle}; var t:Object = TitleWindow(PopUpManager.createPopUp(this, textZoom, false, textDescObj, false)); } --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You could pass in the title: showText(sTitle:String){ var textDescObj:Object = {title:sTitle}; ... Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Monday, June 05, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Object name referencing within a TitleWindow I am working on an app where I would like to reuse TitleWindow popup component many times throughout my app. However, depending where the user is in the app, it will change the title on the TitleWindow popup. I need to reference the specific initObject name each time a new TitleWindow instance is created and change the title depending on what the titlewindow popup is being used for. So, if my showText method creates a new popup with the initObject name of textZoom I need to know how to how to reference it in the popup (in an if statement) to change the title. I think I am on the right track, but any suggestions would be appreciated. Thanks * mainApp.mxml * public function showText():Void{ var textDescObj = new Object(); var t:Object = TitleWindow(PopUpManager.createPopUp this, textZoomPopup, false, textDescObj, false)) } * TitleWindow.mxml * pseudo code: If this objects name == textDescObj then change my title to Desired Title else if objects name == someOtherObjName then change my title to Different Title -- 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 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] Passing data between two datagrids
I am working on an app (Flex 1.5) that passes data from the main apps dataGrid and sends it to a popUp with another dataGrid. I have some logic that will select all the data in the main apps datagrid and send it to the popUp, but it only sends the last value in my main apps dataGrid.. Does anyone have any suggestions of how to send all the values of my main apps data grid to the popUps datagrid? I want the user to be able to open the pop up with all the main app datagrid values so they can add or delete them within the pop-up. Below is some sample code. Thanks, ** Main component *** mx:Script ![CDATA[ public var selectedTeamMembers:String; public function addMember(){ var teamMemberObj = new Object(); var selectedIndices:Array = new Array (dgTeamMemberName.length); //loop through and pull all names in the datagrid for(var i=0; i dgTeamMemberName.length; i++) { selectedIndices[i] = i; } dgTeamMemberName.selectedIndices = selectedIndices; for(var j=0; j dgTeamMemberName.selectedIndices.length; j++){ teamMemberObj.selectedTeamMembers = dgTeamMemberName.selectedItems[j].name; } // Create a new pop-up with and add all team members to pop-up datagrid var popup:Object = mx.managers.PopUpManager.createPopUp(_root, comp.popUpBox, true, teamMemberObj); popup.addEventListener('teamMemberObject', this); } ]] /mx:Script mx:DataGrid id=dgTeamMemberName mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=name/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Add Team Member click=addMember()/ ** popUp component *** mx:Script ![CDATA[ private function initPopUp(){ if(selectedTeamMembers != ){ dgTeamMemberAssignment2.addItem({name: selectedTeamMembers}); } } ]] /mx:Script mx:DataGrid id=dgTeamMemberAssignment2 width=100% mx:columns mx:Array mx:DataGridColumn headerText=Team Member(s) assignment columnName=name / /mx:Array /mx:columns /mx:DataGrid -- 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: Passing data between two datagrids
I got it to work with the hard coded data. However, I cannot seem to pass an array in my initObj correctly. Do I need another loop for my array or is there somthing else I am not seeing? Thanks, ***Main component*public var selectedTeamMembers:Array;public function addMember(){ var teamMemberObj = new Object(); var selectedIndices:Array = new Array(dgTeamMemberName.length);//loop through and pull all names in the datagridfor(var i=0; i dgTeamMemberName.length; i++) {selectedIndices[i] = i;}dgTeamMemberName.selectedIndices = selectedIndices;for(var j=0; j dgTeamMemberName.selectedIndices.length; j++){ selectedTeamMembers = dgTeamMemberName.selectedItems[j].name; //this array does not pass anything}// Create a new pop-up with and add all team members to pop-up datagridvar popup:Object = mx.managers.PopUpManager.createPopUp(_root, comp.popUpBox, true, {teamMemberObj: selectedTeamMembers});popup.addEventListener('teamMemberObject', this);} --- In flexcoders@yahoogroups.com, "Doug Lowder" [EMAIL PROTECTED] wrote: Hi Ryan, Define a variable in your popup component that you bind to the grid's dataprovider: var teamMemberData: Array; ... mx:DataGrid id="dgTeamMemberAssignment2" width="100%" dataProvider="{teamMemberData}" Then, in your main component, pass the data for your popup's grid as the initObj. You can use this as a test: mx.managers.PopUpManager.createPopUp(_root, comp.popUpBox, true, { teamMemberData: [ {name: "A"}, {name: "B"}, {name: "C"} ] }); From there, once you get that working, just create a new array containing the selected items from your main component's grid and pass that array rather than the dummy data. The initObj should look something like: { teamMemberData: mySelectedItemsArray } Hope that helps, Doug --- In flexcoders@yahoogroups.com, "rgwilson26" ryan.wilson@ wrote: I am working on an app (Flex 1.5) that passes data from the main apps dataGrid and sends it to a popUp with another dataGrid. I have some logic that will select all the data in the main apps datagrid and send it to the popUp, but it only sends the last value in my main apps dataGrid..Does anyone have any suggestions of how to send all the values of my main apps data grid to the popUps datagrid? I want the user to be able to open the pop up with all the main app datagrid values so they can add or delete them within the pop-up.Below is some sample code. Thanks, ** Main component *** mx:Script ![CDATA[public var selectedTeamMembers:String;public function addMember(){ var teamMemberObj = new Object(); var selectedIndices:Array = new Array (dgTeamMemberName.length);//loop through and pull all names in the datagrid for(var i=0; i dgTeamMemberName.length; i++) { selectedIndices[i] = i; } dgTeamMemberName.selectedIndices = selectedIndices; for(var j=0; jdgTeamMemberName.selectedIndices.length; j++){ teamMemberObj.selectedTeamMembers = dgTeamMemberName.selectedItems[j].name; } // Create a new pop-up with and add all team members to pop-up datagrid var popup:Object = mx.managers.PopUpManager.createPopUp(_root, comp.popUpBox, true, teamMemberObj); popup.addEventListener('teamMemberObject', this); } ]] /mx:Scriptmx:DataGrid id="dgTeamMemberName" mx:columns mx:Array mx:DataGridColumn headerText="Name" columnName="name"/ /mx:Array /mx:columns /mx:DataGridmx:Button label="Add Team Member" click="addMember()"/** popUp component *** mx:Script ![CDATA[private function initPopUp(){ if(selectedTeamMembers != ""){ dgTeamMemberAssignment2.addItem({name: selectedTeamMembers}); } } ]] /mx:Script mx:DataGrid id="dgTeamMemberAssignment2" width="100%" mx:columns mx:Array mx:DataGridColumn headerText="Team Member(s) assignment" columnName="name" / /mx:Array /mx:columns /mx:DataGrid -- 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] Set focus to first index in a datagrid
I would like to set focus on load of my component to the first index of my datagrid so it is highlighted everytime the component loads. I tried have a few things like Initialize=mydataGrid.setFocus (mydataGrid.selectedIndex = 0) with no luck. Any suggestions? -- 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] combo box selectedItem not being fired
I am working on an app where I have a combo box that populates a datagrid column with the selected item from the combo box. This part works fine, but I when the user clicks on the row I want the item to be reflected back in the combo box. This worked when I manually inserted the values as strings in the combo box array, but now I have a dataprovider providing the results and when the user clicks on a row no change in the cb is seen. Is this because the results in the cb are now objects insted of strings? And, what do I need to chage in order for the change in the cb to take place? Thanks, Here is an example: /mx:Script var dp:Array; private function doResult(result:Array):Void { dp = result; } /mx:Script mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel mx:method name=serviceDeptLOV result=doResult (event.result._items)/ /mx:RemoteObject mx:DataGrid id=dgResources mx:columns mx:Array mx:DataGridColumn headerText=Department columnName=dept / mx:DataGridColumn headerText=Due Date columnName=dueDate /mx:Array /mx:columns /mx:DataGrid mx:ComboBox id=cmbDept dataProvider={dp} selectedItem=dgResources.selectedItem.dept / -- 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] Populate datagrid columns via titlewindow text input boxes
I am working on an app with a datagrid and button where the user will click a button to display a titlewindow with various intput boxes to populate rows in the datagrid. At the moment I can only get one object to populate (the very first column and no others) the dg. My question is how can I pass multiple text input box objects back to my app from the titlewindow via my dispatch events and populate each column in my dg with the text inputs from the Titlewindow? Also, is there a way to auto select the first index of a datagrid so it is highlighted when the app loads? I tried initilaize={myDG.selectedIndex = 0} with no luck. Any suggestions? Here is my code: main app mx:Script ![CDATA[ public function showPopUp():Void{ var myPopUp = new Object(); myPopUp.lessonsLearned = dgLessonsLearned.selectedItem.lessonsLearned; myPopUp.needToKnow = dgLessonsLearned.selectedItem.needToKnow; myPopUp.shareInfo = dgLessonsLearned.selectedItem.shareInfo; var t:Object = TitleWindow(PopUpManager.createPopUp(this, llPopUp, false, lessonsPopUp, false)); t.addEventListener(lessonsLearnedUpdate, this); t.addEventListener(needToKnowUpdate, this); t.addEventListener(shareInfoUpdate, this); } public function handleEvent(evt:Object):Void { //does not populate datagrid row :( if (evt.type == lessonsLearnedUpdate) dgLessonsLearned.replaceItemAt(dgLessonsLearned.selectedIndex, {lessonsLearned: evt.Result}); if (evt.type == needToKnowUpdate ) dgLessonsLearned.replaceItemAt(dgLessonsLearned.selectedIndex, {needToKnow: evt.Result}); if (evt.type == shareInfoUpdate ) dgLessonsLearned.replaceItemAt(dgLessonsLearned.selectedIndex, {shareInfo: evt.Result}); } ]] /mx:Script mx:DataGrid id=dgLessonsLearned mx:columns mx:Array mx:DataGridColumn columnName=lessonsLearned/ mx:DataGridColumn columnName=needToKnow/ mx:DataGridColumn columnName=shareInfo/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Add New Entry click=showPopUp() / TitleWindow component mx:Metadata [Event(lessonsLearnedUpdate)] [Event(needToKnowUpdate)] [Event(shareInfoUpdate)] /mx:Metadata mx:Script ![CDATA[ public var lessonsLearned:String; public var needToKnow:String; public var shareInfo:String; public function updateText(txtLessonsLearned:String, txtNeedToKnow:String, txtShareInfo:String):Void{ dispatchEvent({type:lessonsLearnedUpdate, Result:txtLessonsLearned}); dispatchEvent({type:needToKnowUpdate, Result:txtNeedToKnow}); dispatchEvent({type:shareInfoUpdate, Result:txtShareInfo}); } ]] /mx:Script mx:HBox width=100% mx:TextArea id=txtLessonsLearned width=300 height=200 text={lessonsLearned}/ mx:TextArea id=txtNeedToKnow width=300 height=200 text={needToKnow}/ mx:TextArea id=txtShareInfo width=300 height=200 text={shareInfo}/ /mx:HBox mx:Button label=Submit width=75 click=updateText (txtLessonsLearned.text, txtNeedToKnow.text, txtShareInfo.text) / -- 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] sharedObject not storing values in array
I am working on trying to get a shared object script to work, but can't seem to get it to save to my array. I am wondering if anyone can see what I am missing here. Thanks, *** main.mxml * ?xml version=1.0 encoding=iso-8859-1 ? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initApp(); mx:Script source=LSO_script.as/ mx:Panel width=100% height=100% backgroundColor=#66 mx:Form width=100% height=100% mx:FormItem label=Date of event or close call: required=true mx:DateField id=txtEventDate width=115 / /mx:FormItem mx:FormItem label=Describe the actual event or close call: required=true mx:TextArea id=txtEventDescription width=550 height=150 textAlign=left focusIn= text=/ /mx:FormItem /mx:Form mx:ControlBar mx:Button label=Set Value click=setVal(); / mx:Button label=Get Value click=getVal(); / /mx:ControlBar /mx:Panel /mx:Application AS code * var myArray:Array; var _eventDate; var _desc; var mySharedObj:SharedObject; function initApp() { // Initialize Local Shared Object. mySharedObj = SharedObject.getLocal(safetyReport); //This creates a safetyReport.sol file in the Flex application's directory. if (mySharedObj == null) { alert(Cannot create Local Shared Object,Error); } function getVal() { // Get value from mySharedObj. myArray = mySharedObj.data.val; _eventDate = myArray [0]; _desc = myArray [1]; txtEventDate.text = _eventDate; txtEventDescription.text = _desc; } function setVal() { // Set value in mySharedObj. myArray [0] = txtEventDate.text; myArray [1] = txtEventDescription.text; mySharedObj.data.val = myArray; mySharedObj.flush(); mx.controls.Alert.show(Variable 1 = + myArray [0] + Variable 2 = + myArray [1]); } -- 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: databinding issue for combobox
Tracy, Thanks for taking the time to do the example. I got it working just fine. That makes it a lot more clear now that I see how it works...much appreciated. Ryan --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: And here is an enhanced example that has both the same structure and different structures. Tracy ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initApp() horizontalAlign=left mx:Script![CDATA[ public var aDP:Array = [ {label:A, Number:0}, {label:B, Number:1}, {label:C, Number:2}]; private function initApp():Void { } private function addRow():Void{ dgTarget.addItem( cboSource.selectedItem ); } private function addRow2():Void{ var sLabel:String = cboSource2.selectedItem.label; var nNumber:Number = cboSource2.selectedItem.Number; dgTarget2.addItem( {someOtherlabel:sLabel, someOtherNumber:nNumber} ); } ]]/mx:Script mx:Label text=This example has the same item object structure for both controls / mx:HBox mx:ComboBox id=cboSource dataProvider={aDP} width=150 / mx:Button label=Add Selected Item to DataGrid click=addRow()/ mx:DataGrid id=dgTarget mx:columns mx:Array mx:DataGridColumn headerText=Label columnName=label / mx:DataGridColumn headerText=Number columnName=Number / /mx:Array /mx:columns /mx:DataGrid /mx:HBox mx:Label text=This example has different item object structures / mx:HBox mx:ComboBox id=cboSource2 dataProvider={aDP} width=150 / mx:Button label=Add Selected Item to DataGrid click=addRow2()/ mx:DataGrid id=dgTarget2 mx:columns mx:Array mx:DataGridColumn headerText=Label columnName=someOtherlabel / mx:DataGridColumn headerText=Number columnName=someOtherNumber / /mx:Array /mx:columns /mx:DataGrid /mx:HBox /mx:Application -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, March 29, 2006 8:32 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: databinding issue for combobox Here is a sample app that migh approach what you want. It assumes the item object structures are the same for both controls. Tracy ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; horizontalAlign=left mx:Script![CDATA[ public var aDP:Array = [ {label:A, Number:0}, {label:B, Number:1}, {label:C, Number:2}]; private function addRow():Void{ dgTarget.addItem( cboSource.selectedItem ); } ]]/mx:Script mx:HBox mx:ComboBox id=cboSource dataProvider={aDP} width=150 / mx:Button label=Add Selected Item to DataGrid click=addRow()/ mx:DataGrid id=dgTarget mx:columns mx:Array mx:DataGridColumn headerText=Label columnName=label / mx:DataGridColumn headerText=Number columnName=Number / /mx:Array /mx:columns /mx:DataGrid /mx:HBox -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, March 29, 2006 7:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: databinding issue for combobox Item objects(rows) contain multiple properties(columns). Is the structure of the item object the same for the combobox dataProvider and the DataGrid dataProvider? If so you should be able to simply specify the combobox selectedItem as the argument to addItem. Maybe you have to cast the selectedItem as Object? If the two item objects are not the same structure then you are on the right track, but you want to put the property balue in the new property, not the whole item object. Maybe: dgResources.addItem( {dept: cmbDept.selectedItem.dept} ); I'll see if I can do a quick example, and see what works. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Wednesday, March 29, 2006 4:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: databinding issue for combobox I actually have multiple columns in my dg which is why I am using dgResources.addItem( {dept: cmbDept.selectedItem} ); I cut down the example for simplicity. However, I did try the example you suggested and it gives me a statement incomplete error. I think it needs a identifier for each specific column. Would I have to somehow loop through the new object in the combo box and pull each specific
[flexcoders] Re: databinding issue for combobox
Basically I am calling a query that will populate a combobox. Then the user will be able to use a click event that will send that value from the combo box to a datagrid. Right now it sends a value from the combobox to the datagrid, but what is displayed is [object Object] instead of the desired value. Here is an example: SCRIPT public var dp:Array; private function addRow():Void{ dgResources.addItem( {dept: cmbDept.selectedItem} ); } private function doResult(result:Array):Void { dp = result; } SCRIPT mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel mx:method name=serviceDeptLOV result=doResult (event.result._items)/ /mx:RemoteObject mx:DataGrid id=dgResources mx:column mx:Array mx:DataGridColumn headerText=Department columnName=dept width=200 / /mx:Array /mx:columns /mx:DataGrid mx:ComboBox id=cmbDept dataProvider={dp}/ mx:Button label=Add click={addRow()} textAlign=center width=75/ **CFC Query cffunction name=serviceDeptLOV access=remote returntype=query cfquery name=getserviceDept datasource=spotDB SELECT ServiceDept FROM dbo.ServiceDeptLOV ORDER BY ServiceDept /cfquery cfreturn getserviceDept /cffunction --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: [object Object] means you are trying to display a complex object as text. Can you be more specific about what you mean when you say send the results from the combobox to a datagrid ? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, March 28, 2006 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] databinding issue for combobox I am working on an app where I am populating various combo boxes with results from my look up tables in a sql server database. I have no problem binding the results to the comboboxes dataProvider property. However, when I try to send the results from the combobox to a datagrid it populates the datagrid field with [object Object] instead of the selected item value. I can call a query and populate a datagrid directly and it doesn't seem to be an issue, so I am a little confused as to why it is a problem going from a combobox to a datagrid? Any suggestions? -- 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: databinding issue for combobox
I tried using both cmbDept.selectedItem.data or cmbDept.selectedItem.label, but it displays nothing inside the datagrid. With cmbDept.selectedItem it displays [object Object] for each click event. --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: And you are looking for cmbDept.selectedItem.data or cmbDept.selectedItem.label? - Original Message - From: rgwilson26 To: flexcoders@yahoogroups.com Sent: Wednesday, March 29, 2006 10:15 AM Subject: [flexcoders] Re: databinding issue for combobox Basically I am calling a query that will populate a combobox. Then the user will be able to use a click event that will send that value from the combo box to a datagrid. Right now it sends a value from the combobox to the datagrid, but what is displayed is [object Object] instead of the desired value. Here is an example: SCRIPT public var dp:Array; private function addRow():Void{ dgResources.addItem( {dept: cmbDept.selectedItem} ); } private function doResult(result:Array):Void { dp = result; } SCRIPT mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel mx:method name=serviceDeptLOV result=doResult (event.result._items)/ /mx:RemoteObject mx:DataGrid id=dgResources mx:column mx:Array mx:DataGridColumn headerText=Department columnName=dept width=200 / /mx:Array /mx:columns /mx:DataGrid mx:ComboBox id=cmbDept dataProvider={dp}/ mx:Button label=Add click={addRow()} textAlign=center width=75/ **CFC Query cffunction name=serviceDeptLOV access=remote returntype=query cfquery name=getserviceDept datasource=spotDB SELECT ServiceDept FROM dbo.ServiceDeptLOV ORDER BY ServiceDept /cfquery cfreturn getserviceDept /cffunction --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: [object Object] means you are trying to display a complex object as text. Can you be more specific about what you mean when you say send the results from the combobox to a datagrid ? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, March 28, 2006 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] databinding issue for combobox I am working on an app where I am populating various combo boxes with results from my look up tables in a sql server database. I have no problem binding the results to the comboboxes dataProvider property. However, when I try to send the results from the combobox to a datagrid it populates the datagrid field with [object Object] instead of the selected item value. I can call a query and populate a datagrid directly and it doesn't seem to be an issue, so I am a little confused as to why it is a problem going from a combobox to a datagrid? Any suggestions? -- 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 a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. 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 * 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: databinding issue for combobox
I actually have multiple columns in my dg which is why I am using dgResources.addItem( {dept: cmbDept.selectedItem} ); I cut down the example for simplicity. However, I did try the example you suggested and it gives me a statement incomplete error. I think it needs a identifier for each specific column. Would I have to somehow loop through the new object in the combo box and pull each specific item out? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: When you do this: dgResources.addItem( {dept: cmbDept.selectedItem} ); } you are putting the whole combobox item object into the dept property of a new object. Perhaps you just want: dgResources.addItem(cmbDept.selectedItem); Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Wednesday, March 29, 2006 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: databinding issue for combobox Basically I am calling a query that will populate a combobox. Then the user will be able to use a click event that will send that value from the combo box to a datagrid. Right now it sends a value from the combobox to the datagrid, but what is displayed is [object Object] instead of the desired value. Here is an example: SCRIPT public var dp:Array; private function addRow():Void{ dgResources.addItem( {dept: cmbDept.selectedItem} ); } private function doResult(result:Array):Void { dp = result; } SCRIPT mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel mx:method name=serviceDeptLOV result=doResult (event.result._items)/ /mx:RemoteObject mx:DataGrid id=dgResources mx:column mx:Array mx:DataGridColumn headerText=Department columnName=dept width=200 / /mx:Array /mx:columns /mx:DataGrid mx:ComboBox id=cmbDept dataProvider={dp}/ mx:Button label=Add click={addRow()} textAlign=center width=75/ **CFC Query cffunction name=serviceDeptLOV access=remote returntype=query cfquery name=getserviceDept datasource=spotDB SELECT ServiceDept FROM dbo.ServiceDeptLOV ORDER BY ServiceDept /cfquery cfreturn getserviceDept /cffunction --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: [object Object] means you are trying to display a complex object as text. Can you be more specific about what you mean when you say send the results from the combobox to a datagrid ? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, March 28, 2006 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] databinding issue for combobox I am working on an app where I am populating various combo boxes with results from my look up tables in a sql server database. I have no problem binding the results to the comboboxes dataProvider property. However, when I try to send the results from the combobox to a datagrid it populates the datagrid field with [object Object] instead of the selected item value. I can call a query and populate a datagrid directly and it doesn't seem to be an issue, so I am a little confused as to why it is a problem going from a combobox to a datagrid? Any suggestions? -- 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] databinding issue for combobox
I am working on an app where I am populating various combo boxes with results from my look up tables in a sql server database. I have no problem binding the results to the comboboxes dataProvider property. However, when I try to send the results from the combobox to a datagrid it populates the datagrid field with [object Object] instead of the selected item value. I can call a query and populate a datagrid directly and it doesn't seem to be an issue, so I am a little confused as to why it is a problem going from a combobox to a datagrid? Any suggestions? -- 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] syntax for query call in a cfc
I am wondering is anyone can help me on the sytna for a not equal to value using a cfc? I wrote this query in sql server and it works fine, but my cfc doesnt like the '' for not equal to. Does anyone know the correct way to write this? Thanks, ***my query SELECT OptionValue FROMdbo.OptionLOV WHERE (OptionType = 'CostCat') AND (OptionValue 'Total') -- 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] referencing a datamodel from another component
I am recently starting to work with datamodels in flex 1.5 and am having a bit of a time trying to pass data around my application. I figured I would use a data model using a model tag within comp#1. I will need comp#2 to access and display this data. However I cannot seem to get comp#2 to see comp#1's datamodel. Instead I get a changes to unknown property, comp#1Model, will not be detected. In comp#2 I have text={comp#1Model.userFirstName} This is my directory strucuture: main.mxml comp directory comp#1.mxml comp#2.mxml If there is possibly a better approach to passing data around within an app I am open to suggestions. 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 * 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: referencing a datamodel from another component
That is exactly what I want to do. I did try using parentDocument, and it does work by transferring the values from one component to another. However, I am recieving a Changes to unkown property, datamodel, will not be detected error. Does this just mean that any changes in comp#2 will not take effect in comp#1, and is there a way to eliminate this? Thanks, --- In flexcoders@yahoogroups.com, t_msreddy [EMAIL PROTECTED] wrote: I am not sure if i understand you right, but there is something called parentDocument which allows you to access parentDocuments objects Main mx:Application my:comp1 id=comp1/ my:comp2 id=comp2/ /mx:Application then in comp2.mxml, you can do this: parentDocument.comp1.datamodel to get you datamode defined in comp1.mxml --- In flexcoders@yahoogroups.com, rgwilson26 ryan.wilson@ wrote: I am recently starting to work with datamodels in flex 1.5 and am having a bit of a time trying to pass data around my application. I figured I would use a data model using a model tag within comp#1. I will need comp#2 to access and display this data. However I cannot seem to get comp#2 to see comp#1's datamodel. Instead I get a changes to unknown property, comp#1Model, will not be detected. In comp#2 I have text={comp#1Model.userFirstName} This is my directory strucuture: main.mxml comp directory comp#1.mxml comp#2.mxml If there is possibly a better approach to passing data around within an app I am open to suggestions. 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 * 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: dynamically destroy child from parent
Thanks, that makes sense. I have one problem though that I can't seem to figure out. I am using createChild() in Comp#1 which creates comp#2. Comp#2 includes all text inputs including a delete button. Is it possible to have that child delete itself, or is it better to have the parent delete the child? If the parent is suppose to delete the child component how do you send a reference of the child back to the parent in order to delete the correct child instance? ***Comp #1*** public var rowArray : Object = new Array() ; public var counter : Number = 0 ; //--- Add Row -- private function addRow():Void{ rowArray[counter] = comp#2(comp#1.createChild(comp#2, undefined, {childRow:rowArray})); counter++; } public function deleteRow(event){ if(rowArray[counter] 0){ destroyChild(rowArray[counter -1]); counter--; } } **Comp #2*** ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.controls.Alert; public var childRow; ]] /mx:Script mx:TextArea width=250 height=100 / mx:TextArea width=250 height=100 / mx:TextArea width=250 height=100 / mx:Button label=Delete click=deleteRow() / --- **not sure if it is possible to access the delete function in Comp#1 to delete this child component** /mx:HBox --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: You'll need to use the destroyChild function, and pass in a reference to the object (row) that you want to destroy... lessonsLearned.destroyChild(rowArray[indexToDelete]); Here's a simple example so you can see how destroyChild works: mx:Effect mx:Move name=_move duration=300/ /mx:Effect mx:VBox width=50% height=50% borderStyle=solid borderThickness=1 id=myVBox mx:HBox width=100% mx:Button label=Destroy HBox 1 click=myVBox.destroyChild(myHBox_1) / mx:Button label=Destroy HBox 2 click=myVBox.destroyChild(myHBox_2) / mx:Button label=Destroy HBox 3 click=myVBox.destroyChild(myHBox_3) / /mx:HBox mx:HBox width=100% borderStyle=solid borderThickness=1 id=myHBox_1 moveEffect=_move mx:Text text=HBox 1 width=100% / /mx:HBox mx:HBox width=100% borderStyle=solid borderThickness=1 id=myHBox_2 moveEffect=_move mx:Text text=HBox 2 width=100% / /mx:HBox mx:HBox width=100% borderStyle=solid borderThickness=1 id=myHBox_3 moveEffect=_move mx:Text text=HBox 3 width=100% / /mx:HBox /mx:VBox -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, March 07, 2006 3:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamically destroy child from parent I am working on an app where a user can click on a button and dynamically add individual rows (or HBox's) to add multiple entries. I have the createchild part working fine, but I am having difficulty getting the parent to destroy specific child instances (say the 2nd row instance out of 3). I use createChild() to create an HBox with a few inputs and a button. I would like this button to destroy this particular row(or HBox). I am assuming it is better to have the parent destroy the child, but unsure how exactly to do this. Any suggestions or possibly a better approach? Here is what I have so far: ***Comp #1*** public var rowArray : Object = new Array() ; public var counter : Number = 0 ; //--- Add Row -- private function addRow():Void{ rowArray[counter] = aggregatedRCA.components.lessonsLearnedRow (lessonsLearned.createChild (aggregatedRCA.components.lessonsLearnedRow, undefined, {rowArray:newRow[counter]})); counter++; } **Comp #2*** ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.controls.Alert; public var newRow; ]] /mx:Script mx:TextArea width=250 height=100 / mx:TextArea width=250 height=100 / mx:TextArea width=250 height=100 / mx:Button label=Delete click= / /mx:HBox -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders
[flexcoders] bind datagrid index to a combo box
I would like to know how to tie a datagrid selection to a combo box. When the user selects a datgrid selection it will change the label shown on a specified combobox. 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 * 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 and crystal reports
Has anyone used crystal reports with flex and know how well the two inegrate? -- 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] LinkBar for viewStack
I would like to know if there is a way to allow a link that has been clicked to stay highlighted with relation to what viewstack item is displayed? I have all forms under one viewstack (on the right), with multiple navigation menus/linkbars (in another viewstack on the left...vertical alignment). At the moment I am using vs.selectedChild for each link to specify which viewStack component to navigate to, but links will not stay highlighted with regards to their given component. Is there a propery that will allow this? Also, is there a way to pass an ID instead of the string for a reference in a click event as shown below? Thanks, event.id does not work...I want to pass the id of the string and not the label. mx:LinkBar click={'vs.selectedChild=' + String(event.id)} direction=vertical mx:dataProvider mx:Array mx:String id=link1Link 1/mx:String mx:String id=link2Link 2/mx:String /mx:Array /mx:dataProvider /mx:LinkBar -- 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: createChild and destroyChild
Thanks Matt, that worked great! However, I am creating a new component with my add function. That component is an HBox with various text inputs and a delete button to handle a delete function for that particular HBox. How do I get the newly created component to recognize what number it is in the array and to delete itself? Do I need to dispatch the position in the array from the first component, handle it in the 2nd component, call a delete function then dispatch that result back to the 1st component? Or, is there a better way to get this functionality? *** comp1: *** ?xml version=1.0? mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var rowArray : Object = new Array() ; var counter : Number = 0 ; private function addRow():Void { rowArray[counter] = comp2(HBox.createChild(comp2)); counter++; } public function deleteRow():Void{ //-- this function does not work if(rowArray[counter] 0){ this.destroyChild(rowArray[counter -1] ); counter--; } } ]] /mx:Script mx:Button label=Add width=60 click=addRow();/ mx:FormItem textAlign=left id=formItem mx:HBox mx:TextInput id=txtRCAParticipants width=150/ mx:TextInput id=txtTitle width=150/ mx:Button label=Delete click=deleteRow(); / /mx:HBox /mx:FormItem /mx:Form *** comp2: --- component being created from add function *** public function deleteMe(){ //delete this object instance in the array } mx:HBox height=25 xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:TextInput id=txtRCAParticipants1 width=150 text= / mx:TextInput id=txtPhoneNumber1 width=150 text= / mx:Spacer width=20 / mx:Button label=Delete click=deleteMe() textAlign=center / /mx:HBox --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think that if statement should be if (counter 0) { this.destroyChild(rowArray[counter-1]); counter--; } Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, February 21, 2006 8:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] createChild and destroyChild I am new to FLEX and am working on an app that allows the user to dynamically create a FormItem w/ various text boxes dynamically from a click event including a delete button in each form item that will allow the user to delete that specific instance of the object. I am able to create the FormItem using createChild, but don't know how to get destroyChild to work for a specific object. I am guessing you must reference this when referring to the specific FormItem object, but not sure of the correct syntax. Note: In my code my add function calls a component I have created (Start_New_Event.Components.Entry) Here is what I have: *** Main.mxml ** ?xml version=1.0? mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var rowArray : Object = new Array() ; var counter : Number = 0 ; private function addRow():Void { rowArray[counter] = Start_New_Event.Components.Entry (formItem.createChild(Start_New_Event.Components.Entry, undefined, null ) ); counter++; } public function deleteRow():Void{ //-- this function does not work if(rowArray[counter] != 0){ this.destroyChild(rowArray[counter -1] ); counter--; } } ]] /mx:Script mx:Button label=Add width=60 click=addRow();/ mx:FormItem textAlign=left id=formItem mx:HBox mx:TextInput id=txtRCAParticipants width=150/ mx:TextInput id=txtTitle width=150/ mx:Button label=Delete click=deleteRow(); / /mx:HBox /mx:FormItem /mx:Form -- 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: calling a cfc from flex
First of all I want to say thanks for your help on the last few posts. I think I am almost there. I have my CFC now returning a query and have eliminated all errors. But, when I trigger my click event it seems to return the query in my DG however no text is visible (when you scroll over the DG it highlights each item, but not text is visible). Also, since I am now returning a wuery I no longer need to loop over query result and insert each record into an individual structure and append that to an array...correct? (or is that still necessary?) I did configure my CFC both ways though and got the same result...a DG with no text, but obvisouly filled with somthing do to highlighting. I have posted what I have so far. Thanks, getPersonnel.cfc cfcomponent displayname=getPersonnel cffunction name=getPersonnel access=remote returntype=query cfquery name=getAllPersonnel datasource=spotDB SELECT * FROM dbo.ItemsInvolvedLOV /cfquery cfreturn getAllPersonnel /cffunction /cfcomponent personnelNeeded.MXML mx:Script ![CDATA[ public var dp:Array; private function doResult(result:Array):Void { dp = result; } ]] /mx:Script Remote Object mx:RemoteObject id=ro endpoint=http://IPADDRESS:PORT#/flashservices/gateway; source=cfdocs.components.getPersonnel fault=mx.controls.Alert.show (event.fault.faultstring, 'Error') showBusyCursor=true mx:method name=getPersonnel result=doResult (event.result._items)/ /mx:RemoteObject Datagrid mx:DataGrid id=dgPersonnelNeeded height=300 width=100% dataProvider={dp} mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=ITEMID width=225 / mx:DataGridColumn headerText=Title columnName=ITEMTITLE width=650/ mx:DataGridColumn headerText=Date columnName=ITEMDATE width=100 / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get Records width=100 click={ro.getPersonnel()}/ --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: The error is the type you returned. You typed as string when its or an array (of structs) or a query. Even in CF you'll have that error it's not on the Flex side the problem, is your return type in your CFC. João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: terça-feira, 21 de Fevereiro de 2006 15:32 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: calling a cfc from flex OK, I glad to know there is a way to just return a straight query from a CFC...that is good to know. I did change my columnName in my DG to all caps (is this still necessary in MX7?) and made changes to my ActionScript code, however I am still getting a value from getPersonnel() of not type string error. Do I no longer need an array of structures in my CFC, and just return a query result? Or, do I still need to put the results of the query into an array of structures? I did try both ways however in my CFC, and am still getting the same error regardless. This is what I have: getPersonnel.cfc cfcomponent displayname=getPersonnel cffunction name=getPersonnel access=remote returntype=string cfset var arrayResult = ArrayNew(1)/ cfquery name=getAllPersonnel datasource=spotDB SELECT * FROM dbo.ItemsInvolvedLOV /cfquery cfoutput query=getAllPersonnel cfset structPersonnel = StructNew()/ cfset structPersonnel[ItemId] = #getAllPersonnel.ItemId# cfset structPersonnel[ItemType] = #getAllPersonnel.ItemType# cfset structPersonnel[ItemName] = #getAllPersonnel.ItemName# cfset arrayAppend(arrayResult,structPersonnel)/ /cfoutput cfreturn getAllPersonnel /cffunction /cfcomponent personnelNeeded.MXML mx:Script ![CDATA[ public var dp:Array; private function doResult(result:Array):Void { dp = result; } ]] /mx:Script Remote Object mx:RemoteObject id=ro endpoint=http://IPADDRESS:PORT#/flashservices/gateway; source=cfdocs.components.getPersonnel fault=mx.controls.Alert.show (event.fault.faultstring, 'Error') showBusyCursor=true mx:method name=getPersonnel result=doResult (event.result._items)/ /mx:RemoteObject Datagrid
[flexcoders] Re: multiple lines in a datagrid
Hmm, I still can't seem to get mine to work. I am using FLEX 1.5 are you using 2.0? Still trying to get the user input from the text box to create a dynamically expandable datagrid column height. code mx:DataGrid id=dg height=300 wordWrap=true variableRowHeight=true rowHeight=75 mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=PersonName width=225 / mx:DataGridColumn headerText=Title columnName=PersonTitle width=650/ /mx:Array /mx:columns /mx:DataGrid mx:TextInput id=txtPersonName/ mx:TextInput id=txtPersonTitle/ --- In flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] wrote: I've got this to work, but is there a way to disable the mousewheel on the text chunk or better yet the datagrid itself? It's scrolling the text down, removing the first row even though the text fits fine in the cell. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. HealthGrades http://www.healthgrades.com/ : Guiding America to Better Healthcare(tm) NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error- free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, February 21, 2006 10:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: multiple lines in a datagrid Add wordWrap=true to the column as well. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, February 21, 2006 10:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: multiple lines in a datagrid I tried using variableRowHeight in my dataGrid with no luck. I may not have been very clear in my first post. I am trying to add text from a text input box, where if the text exceeds the length of the data grid then it will expand to more than one line and create a word wrap effect so the user can read the entire entry. Any suggestions? mx:DataGrid id=dgUserInfo headerColor=#00CC33 variableRowHeight=true mx:columns mx:Array mx:DataGridColumn headerText=Title columnName=title width=650 / /mx:Array /mx:columns /mx:DataGrid mx:TextInput id=userInput / mx:Button label=Add textAlign=center width=75 click=addRow ()/ --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Specify a specific width for your DataGridColumn(s), and then in your DataGrid add variableRowHeight=true. That should do it. Doug --- In flexcoders@yahoogroups.com, rgwilson26 ryan.wilson@ wrote: I would like to know if anyone has an example of a multi line column in a datagrid. I would like to have a datagrid with a fixed column width, where if the user inputs enough info the datagrid will allow for a word wrap effect in the column if necessary. 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 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+d es ign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr ac 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=Software +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
[flexcoders] changing date format display
I would like to change the date field format to display as such...02/22/2006. Does anyone know where to change this in FLEX? 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 * 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] coldfusion convert formatting query in flex 1.5
I am working with a query in coldfusion where I am converting the date format from the database. 2 of the 3 columns show up in my datagrid, but the 3rd (InterviewDate) does not display. However, it does if I take out the convert formatting and just query the column name. Is this due to FLEX not recognizing the columnName or somthing else? CF query - ** cfquery name=getAllPersonnel datasource=spotDB SELECT PersonName, PersonTitle, convert(datetime, InterviewDate, 101) FROM dbo.PersonnelNeeded WHERE (InterviewDate = '2/20/2005') /cfquery FLEX - *** mx:DataGridColumn headerText=Name columnName=PersonName width=225 / mx:DataGridColumn headerText=Title columnName=PersonTitle width=650 wordWrap=true/ mx:DataGridColumn headerText=Date columnName=InterviewDate width=100/ -- 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] createChild and destroyChild
I am new to FLEX and am working on an app that allows the user to dynamically create a FormItem w/ various text boxes dynamically from a click event including a delete button in each form item that will allow the user to delete that specific instance of the object. I am able to create the FormItem using createChild, but don't know how to get destroyChild to work for a specific object. I am guessing you must reference this when referring to the specific FormItem object, but not sure of the correct syntax. Note: In my code my add function calls a component I have created (Start_New_Event.Components.Entry) Here is what I have: *** Main.mxml ** ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var rowArray : Object = new Array() ; var counter : Number = 0 ; private function addRow():Void { rowArray[counter] = Start_New_Event.Components.Entry (formItem.createChild(Start_New_Event.Components.Entry, undefined, null ) ); counter++; } public function deleteRow():Void{ //-- this function does not work if(rowArray[counter] != 0){ this.destroyChild(rowArray[counter -1] ); counter--; } } ]] /mx:Script mx:Form mx:Button label=Add width=60 click=addRow();/ mx:FormItem textAlign=left id=formItem mx:HBox mx:TextInput id=txtRCAParticipants width=150/ mx:TextInput id=txtTitle width=150/ mx:Button label=Delete click=deleteRow(); / /mx:HBox /mx:FormItem /mx:Form /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: multiple lines in a datagrid
I tried using variableRowHeight in my dataGrid with no luck. I may not have been very clear in my first post. I am trying to add text from a text input box, where if the text exceeds the length of the data grid then it will expand to more than one line and create a word wrap effect so the user can read the entire entry. Any suggestions? mx:DataGrid id=dgUserInfo headerColor=#00CC33 variableRowHeight=true mx:columns mx:Array mx:DataGridColumn headerText=Title columnName=title width=650 / /mx:Array /mx:columns /mx:DataGrid mx:TextInput id=userInput / mx:Button label=Add textAlign=center width=75 click=addRow ()/ --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Specify a specific width for your DataGridColumn(s), and then in your DataGrid add variableRowHeight=true. That should do it. Doug --- In flexcoders@yahoogroups.com, rgwilson26 ryan.wilson@ wrote: I would like to know if anyone has an example of a multi line column in a datagrid. I would like to have a datagrid with a fixed column width, where if the user inputs enough info the datagrid will allow for a word wrap effect in the column if necessary. 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 * 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] calling a cfc from flex
I am new to flex and working on calling a cfc that has a simple query in it. I want my query to populate a datgrid with all pertinant information. I am having a hard time converting from an array to a string to populate the DG. Any help in what I am missing would be great, or if there is an easier way to call a query and return data would be great! getPersonnel.cfc cfcomponent displayname=getPersonnel cffunction name=getPersonnel access=remote returntype=string cfset var arrayResult = ArrayNew(1)/ cfquery name=getAllPersonnel datasource=spotDB SELECT * FROM dbo.ItemsInvolvedLOV /cfquery cfoutput query=getAllPersonnel cfset structPersonnel = StructNew()/ cfset structPersonnel[ItemId] = #getAllPersonnel.ItemId# cfset structPersonnel[ItemType] = #getAllPersonnel.ItemType# cfset structPersonnel[ItemName] = #getAllPersonnel.ItemName# cfset arrayAppend(arrayResult,structPersonnel)/ /cfoutput !--- Return Array to Flex--- cfreturn getAllPersonnel /cffunction /cfcomponent personnelNeeded.MXML ActionScript: private function doResult(result:Array):Void { var personnelObject:Object = new Object(); object var personnelResult:Array = new Array(); for(var i=0; i result.length; i++){ personnelObject = result[i]; personnelResult.push(personnelObject); } dgPersonnelNeeded.dataProvider = personnelResult; } Remote Object mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel fault=mx.controls.Alert.show (event.fault.faultstring, 'Error') showBusyCursor=true mx:method name=getPersonnel result=doResult(event.result)/ /mx:RemoteObject Datagrid mx:DataGrid id=dgPersonnelNeeded headerColor=#00CC33 height=300 textAlign=left width=100% wordWrap=true editable=true mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=name width=225 / mx:DataGridColumn headerText=Title columnName=title width=650/ mx:DataGridColumn headerText=Date columnName=date width=100 / /mx:Array /mx:columns /mx:DataGrid Click event button mx:Button label=Get Records textAlign=center width=100 click={ro.getPersonnel()}/ -- 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] referencing functions within a component
I am fairly new to Flex and wondering how to get one component to call a function within another component. How do I reference the function in component #1 from #2? **component #1* mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* private function delete():Void{ Alert.Show(you have been deleted); } mx:Vbox component2 id=c2 /mx:Vbox /mx:Form **component #2* ?xml version=1.0 encoding=utf-8? mx:HBox height=25 xmlns:mx=http://www.macromedia.com/2003/mxml; mx:TextInput id=txtRCAParticipants1 width=150 text= / mx:Button label=Delete click=delete(); / /mx:HBox -- 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] populate a dataGrid
How do you populate a datagrid from another datagrid? dgMyDataGrid.selectedItem will only send a selected item within a data grid, but I want all item within a given datagrid to be sent regardless of selection. 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 * 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 text to navigate tab navigator
I have a Tab navigator with HTML links as shown below. I want the user to be able to click on the text link, and navigate through each tab in the tab navigator depending on what link is clicked. I am calling a funtion from my component startingPoint , however it doesn't change the tabs. Instead I get a no property error. Any suggetions would be greatly appreciated. **component startingPoint* mx:Canvas public function tabNavigation():Void{ navigator.selectedChild=definitions; } mx:TextArea mx:htmlText ![CDATA[ font face=Verdanaa href=asfunction:mx.core.Application.application.tabNavigation Click here/font/ato navigate through tab bar. ]] /mx:htmlText /mx:TextArea mx:Canvas/ *Main app** mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:TabNavigator id=navigator comp:startingPoint id=startingPoint/ comp:definitions id=definitions/ /mx:TabNavigator 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] event handler for components within a viewStack
I have a LinkBar with a dataProvider that is linked to a viewStack. In the viewStack are several VBox components which populate the LinkBar. Is there a way to give a component event handler capabilities to change multiple viewStacks? I can do this with a regular link tag (like below), but would like to know how to do this with a linkbar. ** linkbar ** mx:Link label=Link1 click=vsMain.selectedIndex=0; vsSubMain.selectedIndex=1;/ * Example * mx:Panel title=navigation height=100% width=100% themeColor=#339933 panelBorderStyle=roundCorners mx:LinkBar dataProvider=vsMain direction=vertical /mx:LinkBar /mx:Panel mx:ViewStack id=vsMain comp:view1 id=v1 / comp:view2 id=v2/ /mx:ViewStack -- 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] compile all MXML files at once
I recently switched servers for FLEX and now must re-compile all my files within my application. Is there a way to compile all files at once? Also, is there a way to pre-compile components upon testing an application rather than having to compile each individual component as they are created? At the moment I must create a component...compile it...then run my main application. It seems that there should be an easier way. 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 * 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] TitleWindow width issue
I would like to know if there is a way to make a popup expand the entire screen? I have need for a pop that expands the entire screen. When I use the PopUpManager.createPopUp function to create a pop-up the TitleWindow seems to take up about 60%-70% of the screen when the width is set to 100%. I am just wondering is the is a FLEX default value for a TitleWindow or if I am just missing somthing. 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 * 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] Multiple values in a data model
I have an application I am working on where the user can input information into various text input fields layed out in a HBOX. If the user needs to add another person for the input they click on an add event that dynamically creates another row. My question is what is the best way to tie multiple entries to the data model? If there is only a one line entry it would be no problem, but what do you do when you want a data model to hold mulitple entries from dynamically created input fields to be re-used throughout the app or sent back to the database? Any suggestions would be appreciated. Thanks, ** MY CODE ** ?xml version=1.0 encoding=utf-8? mx:Application height=25 xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Model id=basicInformationModel EventDate{txtRCAParticipants1.text}/EventDate FaciltyDate{txtTitle1.text}/FaciltyDate SacActual{cmbTeamRole1.selectedItem}/SacActual SacPotential{txtPhoneNumber1.text}/SacPotential /mx:Model mx:Script ![CDATA[ var participantRowArray : Object = new Array() ; var participantCounter : Number = 0 ; //--- RCA Participants -- private function addRCAParticipantsRow():Void { participantRowArray[participantCounter] = Components.charterMemoParticipantsEntry (participantsRowHolder.createChild (Components.charterMemoParticipantsEntry,undefined, null ) ); participantCounter++; } ]] /mx:Script mx:HBox mx:Label text=3.) RCA Participants width=150/ mx:Label text=Title width=150/ mx:Label text=Team Role width=100/ mx:Label text=Phone # / mx:Button label=Add width=60 click=addRCAParticipantsRow ();/ mx:Button label=Delete width=60 click=deleteRCAParticipantsRowRow();/ /mx:HBox mx:HBox height=100% width=100% mx:TextInput id=txtRCAParticipants1 width=150 text= / mx:TextInput id=txtTitle1 width=150 text= / mx:ComboBox id=cmbTeamRole1 width=100 mx:dataProvider mx:Array mx:String/mx:String mx:StringLeader/mx:String mx:StringMember/mx:String mx:StringAdvisor/mx:String /mx:Array /mx:dataProvider /mx:ComboBox mx:TextInput id=txtPhoneNumber1 width=150 text= / mx:Spacer width=20 / mx:Button label=Delete click= / /mx:HBox /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] html text to navigate tab navigator
I have a Tab navigator with HTML links as shown below. I want the user to be able to click on the text link, and navigate through each tab in the tab navigator depending on what link is clicked. I am calling a funtion in the main application from my component, however it doesn't change the tabs. Any suggetions would be greatly appreciated. **component definitions* mx:Canvas mx:TextArea mx:htmlText ![CDATA[ font face=Verdanaa href=mx.core.Application.application.tabNavigation font color =#00529CClick here/font/ato navigate through tab bar.br /font ]] /mx:htmlText /mx:TextArea mx:Canvas/ *Main app** mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function tabNavigation():Void{ navigator.selectedChild=definitions; } ]] /mx:Script mx:TabNavigator id=navigator comp:definitions id=definitions/ /mx:TabNavigator 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: html link in text
I have a similar issue. I have a Tab navigator with HTML links as shown below. I want the user to be able to click on the text link, and navigate through each tab in the tab navigator depending on what link is clicked. I am calling a funtion in the main application from my component, it doesn't change tabs. Any suggetions would be greatly appreciated. **component definitions* mx:Canvas mx:TextArea mx:htmlText ![CDATA[ font face=Verdanaa href=mx.core.Application.application.tabNavigation font color =#00529CClick here/font/ato navigate through tab bar.br /font ]] /mx:htmlText /mx:TextArea mx:Canvas/ *Main app** mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function tabNavigation():Void{ navigator.selectedChild=definitions; } ]] /mx:Script mx:TabNavigator id=navigator comp:definitions id=definitions/ /mx:TabNavigator mx:Application/ --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Nithya, You can still use this approach, you can write a generic-function in your main application file. Invoke that function from link... So no matter textfield is located, you can invoke that function using mx.core.Application.application.functionName... Sounds good? -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R Sent: Friday, December 16, 2005 8:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] html link in text thanks abdul... i have one more issue with this... say i have the openLink() function in another mxml file and the text is not in the main application..its in a panel (a custom component)...then how should i call it by using a href? see the link should not open a new browser it shuold instead call a function which would show a popup window(a title window- which a local component) please help me in this issue... thanks in advance nithya Abdul Qabiz [EMAIL PROTECTED] wrote: Please see the code below: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=initApp() mx:Script ![CDATA[ import mx.controls.Alert; function openLink() { Alert.show(Link Clicked); } function initApp() { txt.htmlText = Click a href='asfunction:mx.core.Application.application.openLink'font color='#FF'uhere/u/font/a for more details.; } ]] /mx:Script mx:TextArea id=txt / /mx:Application You can also use javascript: in a / tag or you can put a url there... -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R Sent: Wednesday, December 14, 2005 4:08 PM To: flexcoders Subject: [flexcoders] html link in text hi, i want to have a text with a html link in between.. like click HERE for more details .. in this sentence HERE alone should be a link... how to do this thanks, nithya Send instant messages to your online friends http://uk.messenger.yahoo.com Send instant messages to your online friends http://uk.messenger.yahoo.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 Web site design development http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+d es ign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr ac 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=Software +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=Softwa re +design+and+developmentw4=Macromedia+flexw5=Software+development+bes t+ 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+de ve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s =1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice
[flexcoders] Vertical link bar
I would like to create a vertical link bar that is tied to a viewstack. The functionality I am looking for is when the user clicks on it the selected link is highlighted with relation to a particular view. Is there a way to make a Link bar direction vertical, and what would be the best way to make a vertical navigation that is tied to a viewstack to get the highlighting affect? I have tried a simple link and tied it to the viewstack like the example below, but it will not highlight the link for the user to tell which selection has been made. *** mx:Link id=searchButton label=Search Screen click=myViewStack.selectedChild=search;/ *** Any suggestions would be appreciated. Thanks, Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/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] Building a dynamic flowchart in FLEX
I am working on a project where I would like to build a flow chart that is built on data input by the user. For example, when the user inputs a flow of events via input boxes FLEX will create a flowchart boxes that will be connected to eachother. I would also like each box to be dynamic and able to be moved anywhere on the screen by the user (similar to functionality of visio or other diagramming software). First I would like to know if this is even possible in FLEX (if so what kind of container would hold such objects), and second if anyone has seen anything similar to this to give me an idea of what I am up against. Thanks for your suggestions. Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/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] Dynamically create multiple text input rows
I would like to dynamically create a row of text input boxes all located within an HBOX. When the user clicks add button a new HBOX containing all new text boxes will display below allowing for mulitple rows of inputs. My question is: What is the best way to do this, and how do you dynamically add muliple values to a Model to pass back to your database? Does your model need to be dynamically created as well? I appreciate any suggestions on this. Thanks, Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/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: embeded link text in a label tag
Actually, the link is currently in a viewstack, and I want the link to navigate to a different page in my viewstack. That seems like a lot of code for a simple link. Thanks for your help though. I will continue my search. --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: Are you looking to pop up a new window for the Environment and Equipment section? If so, you could use the mouseDown attribute: mx:Label id=trainingQuestion8 text=If equipment was involved, see the Environment and Equipment questions. mouseDown=mx.managers.PopUpManager.createPopUp(_root, com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true, {deferred: true}) mouseOver=trainingQuestion8.setStyle('color', '#FF') mouseOut=trainingQuestion8.setStyle ('color', '#00')/ Or embed a method in the mouseDown attribute that would do something similar. --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED] wrote: I would like to know how to set text in a label to linked text. I want the words Environment and Equipment linked to a section in my application. *** mx:Label id=trainingQuestion8 text=If equipment was involved, see the Environment and Equipment questions./ *** thanks 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] Re: embeded link text in a label tag
Thanks Rob for the comment...I probably haven't been clear enough. I know how to navigate a viewstack, but my problem is that I only want certain text in a label to be linked. For example; mx:Label id=myLabel text=In this section, click here to see all questions. / I only want here to be linked to a designated viewstack. I can use an onclick event but it will highlight the entire label text. I am looking for a way to differentiate text to be linked inside a label tag. --- In flexcoders@yahoogroups.com, Rob Davis [EMAIL PROTECTED] wrote: You should have said it was in a viewstack in the first place. I'm not sure about in Flex 1.5, but in 2 you simply need [viewstackID].selectedIndex = X where X is the index # of the layer you want to show. Also, AFAIK you can't just make part of a label a link, you'd have to either do all or nothing, or else make those 3 words a separate label. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, December 06, 2005 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: embeded link text in a label tag Actually, the link is currently in a viewstack, and I want the link to navigate to a different page in my viewstack. That seems like a lot of code for a simple link. Thanks for your help though. I will continue my search. --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: Are you looking to pop up a new window for the Environment and Equipment section? If so, you could use the mouseDown attribute: mx:Label id=trainingQuestion8 text=If equipment was involved, see the Environment and Equipment questions. mouseDown=mx.managers.PopUpManager.createPopUp(_root, com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true, {deferred: true}) mouseOver=trainingQuestion8.setStyle('color', '#FF') mouseOut=trainingQuestion8.setStyle ('color', '#00')/ Or embed a method in the mouseDown attribute that would do something similar. --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED] wrote: I would like to know how to set text in a label to linked text. I want the words Environment and Equipment linked to a section in my application. *** mx:Label id=trainingQuestion8 text=If equipment was involved, see the Environment and Equipment questions./ *** thanks 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 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] embeded link text in a label tag
I would like to know how to set text in a label to linked text. I want the words Environment and Equipment linked to a section in my application. *** mx:Label id=trainingQuestion8 text=If equipment was involved, see the Environment and Equipment questions./ *** thanks 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] dynamically created HBOX
What would be the best way to go about creating a function that will dynamically create rows (HBOX) for data input? I want an HBOX with various text input fields to be succesively added when the user pushes an add button. I am thinking of using a repeater, but just wondering if there is a better way to do this? Also, if someone knows of some examples of this being I would appreciate it. Thanks, 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] combo box in a data grid
I would like to know how to put a combo box in on cloumn of a datagrid. I would like the combobox to allow the user to pick from two values on the last column of the datagrid when each row is populated.Somthing like this. (but this does not work)mxataGrid id="intitalFlowchartDataGrid"mx:columns mx:Array mxataGridColumn headerText="Path #" columnName="Path" width="50" / mxataGridColumn headerText="Seq #" columnName="Seq" width="50"/ mxataGridColumn headerText="Description" columnName="Description" width="400" editable="true" / mxataGridColumn headerText="BoxType" columnName="BoxType" mx:ComboBox textAlign="left" id="cmbBoxType" mx:dataProvider mx:Array mx:String/mx:String mx:StringBox/mx:String mx:StringNotes/mx:String /mx:Array /mx:dataProvider /mx:ComboBox /mxataGridColumn /mx:Array/mx:columns/mxataGrid -- 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] Re: How to reference a child component
I would like to know how to send data between a component in one directory, and another component in a sub directory. For example: If the file structure is set as such.. Main /Comp_Level_1 /Comp_Level_2 how would you send data between Comp_Level_1 and Comp_Level_2 if Comp_Level_1 is a component in Main and Comp_Level_2 is a pop up window that is being called from Comp_Level_1. I want to get an idea how to call components that area several levels deep in the directory structure. Thanks --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Your subject seemed clear enough, but I am having a little difficulty with your message terminology, specifically, your use of the words call, directory, appear, originates and namespace in this context. Will you restate your question? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Monday, October 17, 2005 3:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to reference a child component How would i make a call from (Comp_Level_1) to (Comp_Level_2) one level down in a directory? I want to make a pop-up window appear in Comp_Level_1 that originates from Comp_Level_2. Main /Comp_Level_1 /Comp_Level_2 If (Main) creates a namespace for (Comp_Level_1) and (Comp_Level_2). Is there a way for components to references one another, or do you have to referr back to (Main) in order to get to (Comp_Level_2)? -- 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] Re: components still existing after location change
Where do you put the put the query sting you listed below? Do you place it in to each individual mxml file, or can you do a global recompile of all files in the config file? Also, do you have to create a namespace for the query string (what is the sytnax and where does it go)? I forced a recompile(F12) of all my components that changed directories, so I would think FLEX would be able to located them after this. However, when I edit a component, none of my edits take place, even after a force recompile(F12). It seems that FLEX refers to the orignal directory location of my component (even though it has changed directories and been recompiled). Thanks in advance for your help. Ryan --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, You can force recompile by adding a parameter in query string like this: http://yourserver/your_flex_app.mxml?recompile=true Let us know, if it doesn't work. There might be some other problem. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Friday, October 14, 2005 12:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] components still existing after location change I have recently changed the structure of my directories. Some of my components have changed directories, but when I compile my app FLEX will refer to the original location of the component rather than its new directory location. I am wondering if there is a way to refresh FLEX in order to edit recently moved components. -- 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] local machine directory vs. server directory
Is there a reason why my server files are not being updated while my local files are updated? I have been compiling everything as normal, but when I check my server path the directory structure and edited files have not been updated. This seems to only happen after I rearrange components into different directories. Note: I have compiled all files. Config file is set to: production-modefalse/production-mode Any suggestions? Thanks, 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: components still existing after location change
I deleted the files in flex\WEB-INF\flex\generated\* , and recompiled. It is still referencing the old components. It seems that I now have two completely different directory structures. The local machine and the server. For some reason when I move files around on the local side it doesn't move them on the server side. However, if I create completely new files (which I must rename everything) show up where I want it on the server side. It doesn't like it when I try to move an exisitng files around. shouldn't update in FLEX change the directory structure on the server side as well? Thanks --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Try deleting the contents of the folder. It is safe to do. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Monday, October 17, 2005 9:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: components still existing after location change Where do you put the put the query sting you listed below? Do you place it in to each individual mxml file, or can you do a global recompile of all files in the config file? Also, do you have to create a namespace for the query string (what is the sytnax and where does it go)? I forced a recompile(F12) of all my components that changed directories, so I would think FLEX would be able to located them after this. However, when I edit a component, none of my edits take place, even after a force recompile(F12). It seems that FLEX refers to the orignal directory location of my component (even though it has changed directories and been recompiled). Thanks in advance for your help. Ryan --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, You can force recompile by adding a parameter in query string like this: http://yourserver/your_flex_app.mxml?recompile=true Let us know, if it doesn't work. There might be some other problem. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Friday, October 14, 2005 12:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] components still existing after location change I have recently changed the structure of my directories. Some of my components have changed directories, but when I compile my app FLEX will refer to the original location of the component rather than its new directory location. I am wondering if there is a way to refresh FLEX in order to edit recently moved components. -- 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] How to reference a child component
How would i make a call from (Comp_Level_1) to (Comp_Level_2) one level down in a directory? I want to make a pop-up window appear in Comp_Level_1 that originates from Comp_Level_2. Main /Comp_Level_1 /Comp_Level_2 If (Main) creates a namespace for (Comp_Level_1) and (Comp_Level_2). Is there a way for components to references one another, or do you have to referr back to (Main) in order to get to (Comp_Level_2)? 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: Including files.
I am having a similar problem. I am trying to do the same to reference several directories with my components. for example: root /componentsDir1 /componentsDir2 /componentsDir3 I can acces /componentsDir1 by: -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:comp=componentsDir1.* comp:NewComponent / /mx:Application --- But, I need to access more than one directory. What is the correct syntax in root to access components in all three sub directories? Thanks --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: You have to set the namespace property (xmlns:xxx) on either the app or the instantiated control. I.E. Option 1: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:addsale=panels.status.* addsale:AddSale / /mx:Application Option 2 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; addsale:AddSale xmlns=panels.status.* / /mx:Application Either one of those solutions should work :-) If you need more explanation, let me know. Dustin Mercer _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Thursday, September 01, 2005 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Including files. I am not sure where to begin. My app structure is folder based start with index.mxml/application.cfm on the top teir. Then I move into folders that I can panels within the panel folder I have several folders broken up in to the different app requirements. The question I have is, what is the best way to use custom components, as I plan to develope each panel as seperate custom components. So if I wanted to include the page Add Sale that was in the following heirarchy, how would I do it. Would I use soemthing like this /panels/status/addSale to use it as a custom component? --Folder Heirachy-- Root /Panels /Status /addSale.mxml -- 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 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/ . _ 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] Component storage
I would like to know how to store and access components in more than one directory. I have a directory called components that holds my navigation components that I referr to in my main.mxml file as such xmlns:nav=Navigation_Components.*. What I want to do is create another directory with my form components, so the directory will be called form_Components. I tried referring to this directory in main.mxml as such xmlns:form=form_Components.*, but get a no property with 'componentName' error. It seems that I can only have one diretory with all components. That doesn't seem right. Does anyone know how to call multiple components in multiple directories? Thanks in advance. 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] pass multiple objects from dispatchEvent()to addEventListener()
What is the correct syntax to pass *multiple* objects between dispatchEvent()to addEventListener() and then called by handleEvent()? This is what I have and doesn't work: Thank you in advance. --- popUp.mxml --- mx:Metadata [Event(actualScore)] [Event(potentialScore)] /mx:Metadata mx:Script ![CDATA[ function insertSACScore(actual:String, potential:String):Void{ dispatchEvent({type:actualScore, Result:actual, type:potentialScore, Result:potential}); } ]] /mx:Script --- main.mxml --- public var sacActualValue:String; public var sacPotentialValue:String; function showSACWorksheet():Void{ var initObj = new Object(); var s:Object = TitleWindow(PopUpManager.createPopUp(this, SAC_Worksheet, false, initObj, false)); s.addEventListener(actualScore, potentialScore, this); } function handleEvent(evt1:Object, evt2:Object):Void { if (evt1.type == actualScore) sacActualValue = evt1.Result; if (evt2.type == potentialScore) sacPotentialValue = evt2.Result; } 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/