[flexcoders] Re: drag and drop in repeater control
I tried the drag and drop with List and itemrenderer, but drag and drop does not seems to work if I am using the control inside a popup window. --- In flexcoders@yahoogroups.com, deepu_verma [EMAIL PROTECTED] wrote: The following code does not work for me to allow the Combobox to be dragged and dropped inside the repeater control Is this the right approach, any help is appreciated. Thanks, Deepak mx:Repeater id=productRepeater recycleChildren=false mx:HBoxheight=50 mouseMove=webPageUpdateViewHelper.dragIt(event,null,'data'); dragEnter=webPageUpdateViewHelper.doDragEnter(event); dragDrop=webPageUpdateViewHelper.doDragDrop(event); borderStyle=solid mx:ComboBox id=relatedProduct dataProvider={webPageUpdateViewHelper.modelLocator.productVersionModel.productVersionCollection} selectedIndex={webPageUpdateViewHelper.relatedProductSelectedIndex(productRepeater.currentItem.id)} labelFunction=webPageUpdateViewHelper.productVersion_label / /mx:HBox /mx:Repeater public function dragIt(event:MouseEvent, obj:Object, format:String):void { // Get the drag initiator component from the event object. var dragInitiator:HBox=HBox(event.currentTarget); // Create a DragSource object. var ds:DragSource = new DragSource(); // Add the data to the object. ds.addData(obj,format); DragManager.doDrag(dragInitiator, ds, event); } // Called if the user dragged a proxy onto the drop target canvas. public function doDragEnter(event:DragEvent):void { // Get the drop target component from the event object. var dropTarget:HBox=HBox(event.currentTarget); DragManager.acceptDragDrop(dropTarget); } public function doDragDrop(event:DragEvent):void { // Get the data identified by the color format from the drag source. var data:Object = event.dragSource.dataForFormat('data'); // Set the canvas color. } -- 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] drag and drop in repeater control
The following code does not work for me to allow the Combobox to be dragged and dropped inside the repeater control Is this the right approach, any help is appreciated. Thanks, Deepak mx:Repeater id=productRepeater recycleChildren=false mx:HBoxheight=50 mouseMove=webPageUpdateViewHelper.dragIt(event,null,'data'); dragEnter=webPageUpdateViewHelper.doDragEnter(event); dragDrop=webPageUpdateViewHelper.doDragDrop(event); borderStyle=solid mx:ComboBox id=relatedProduct dataProvider={webPageUpdateViewHelper.modelLocator.productVersionModel.productVersionCollection} selectedIndex={webPageUpdateViewHelper.relatedProductSelectedIndex(productRepeater.currentItem.id)} labelFunction=webPageUpdateViewHelper.productVersion_label / /mx:HBox /mx:Repeater public function dragIt(event:MouseEvent, obj:Object, format:String):void { // Get the drag initiator component from the event object. var dragInitiator:HBox=HBox(event.currentTarget); // Create a DragSource object. var ds:DragSource = new DragSource(); // Add the data to the object. ds.addData(obj,format); DragManager.doDrag(dragInitiator, ds, event); } // Called if the user dragged a proxy onto the drop target canvas. public function doDragEnter(event:DragEvent):void { // Get the drop target component from the event object. var dropTarget:HBox=HBox(event.currentTarget); DragManager.acceptDragDrop(dropTarget); } public function doDragDrop(event:DragEvent):void { // Get the data identified by the color format from the drag source. var data:Object = event.dragSource.dataForFormat('data'); // Set the canvas color. } -- 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] menu control in flex 2.0 beta 3
Following is my code and I am trying to capture the change event. But it seems that the change event does not trigger for menu bar controls only. mx:MenuBar labelField=@label showRoot=false width=100% change={mainViewStackHelper.getSearchResultView(event)} mx:dataProvider mx:XMLList xmlns= menuitem label=Menu1 menuitem label=Files data=""> menuitem label=Web Pages data=""> /menuitem /mx:XMLList /mx:dataProvider /mx:MenuBar -- Deepak Verma -- 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] update data through data service
I am using the following code to update the Arraycollection binding with the Dataservice And I get the error variable x is not defined What I understand is the updated collection is not going to coldfusion co.isUpdate() is returning false. What am I missing? Thanks Flex code === public function modifyItem(obj:ProductFileDetail,index:Number):void { fileCollection.setItemAt(obj,index) ; } And my cfm code is === cffunction name=sync output=no returnType=array access=remote cfargument name=changes type=array required=yes !-- array for the returned changes -- cfset var newchanges=ArrayNew(1) !-- Loop over the changes and apply them --- cfloop from=1 to=#ArrayLen(changes)# index=i cfset co = changes[i] cfif co.isCreate() cfset x = doCreate(co) cfelseif co.isUpdate() cfset x = doUpdate(co) /cfif cfset ArrayAppend(newchanges, x) /cfloop !-- Return the change objects, as this is how success or failure is indicated --- cfreturn newchanges /cffunction The flex server dump displays the following after updating the arraycollection content [1] = (Typed Object #8 'flex.data.messages.DataMessage') operation = 0 body = (Typed Object #9 'downloads.softwarepublishingtool.vo.ProductF l') language = Portuguese (Brazilian) createdDate = null createdBy = 1 status = INACTIVE platformCode = J2EE productName = Authorware 1.1 fileSize = 1 downloadTypeId = 1 fileType = fileUrl = test sku = 4 productVersionId = 1 modifiedBy = 0 localeCode = PT_BR id = 15 modifiedDate = Thu May 11 17:40:16 GMT+05:30 2006 11 17:40:16 GMT+05:30 2006 uid = B79B31BD-4EAF-0AE6-DC83-235ABC13B518 identity = (Object #11) id = 15 correlationId = D73884ED-B4A9-D4B7-37D4-235ABC1D10A0 destination = file timestamp = 0 body = (Ref #9) clientId = 34D1A8DC-3A95-D6FB-96B6-234C0AF48C22 timeToLive = 0 messageId = 16C1884E-ED22-2E3B-3C84-235ABC132DA8 headers = (Object #12) [2] = (Typed Object #13 'flex.data.messages.UpdateCollectionMessage') updateMode = 0 replace = false collectionId = (Array #14) [0] = 1 [1] = 1 operation = 17 body = (Array #15) [0] = (Typed Object #16 'flex.data.messages.UpdateCollectionRange') identities = (Array #17) [0] = DE4975A3-5BF5-446E-93DA-234D2514BFA3 position = 6 updateType = 1 [1] = (Typed Object #18 'flex.data.messages.UpdateCollectionRange') identities = (Array #19) [0] = 16C1884E-ED22-2E3B-3C84-235ABC132DA8 position = 6 updateType = 0 identity = null correlationId = D73884ED-B4A9-D4B7-37D4-235ABC1D10A0 destination = file timestamp = 0 body = (Ref #15) clientId = 312E4B57-0B0E-C9C6-000E-638064C18F69 timeToLive = 0 messageId = 63D3212C-DB5A-2A9B-641D-235ABC1354D6 headers = (Object #20) -- 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] reply to messaged from outlook
I am using outlook and gmail id to receive posts on flex group. How can I reply or post messages to the group from outlook. Thanks, Deepak -- 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] customized component
Can a developer file a patent for customized developed component? -- 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: data service in craingorm
Thanks Matt for the reply. I tried the following code in my service.mxml and alert message was not being display cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml xmlns:cairngorm=org.nevis.cairngorm.business.* mx:Script ![CDATA[ import mx.controls.Alert; ]] /mx:Script !--remoting service -- mx:RemoteObject id=SoftwarePublishingToolFacade destination=ColdFusion source=downloads.softwarepublishingtool.services.SoftwarePublishingToolFacade showBusyCursor=true result=event.call.resultHandler( event ) fault=event.call.faultHandler( event ) /mx:RemoteObject !-- data service for product -- mx:DataService id=productDataService destination=product autoCommit=false result=event.call.resultHandler( event ); fault=event.call.faultHandler( event ) message=Alert.show('got a message') /mx:DataService /cairngorm:ServiceLocator --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I don't know how many folks have tried the DataService using a Cairngorm approach yet. But in this case I think if you want your second app to hear changes it's going to need to add event listeners to the service itself, not just the token that's returned from an individual service call. So using the responder approach might not be what you really want for this particular system. For your previous question about what event to listen for, the message event is I think the right one, what was happening when you tried listening? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Friday, April 28, 2006 4:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] data service in craingorm I have declared the following two methods in my delegate and call them from the commands // //get the products public function fill():void { var call:Object = service.fill(modelLocator.productModel.ProductVersion); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } public function commit():void { var call:Object = service.commit(); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } And I have used modelLocator.productModel.ProductVersion as the dataprovider binding for a list box. modelLocator.productModel.ProductVersion.addItem(obj); to add a new product I am trying to access the application on two diferrent browsers and after I add a new product the product is not pushed to the other connected client. view the following in the server dump [CFDataServicesAdapter] invoking SYNC method, 1 change(s) to process. [CFDataServicesAdapter] invoking Fill method... Am I missing something so that if one client adds a product then other client should be able to view it -- 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] Re: data service in craingorm
I tried to modify the existing contact data service app , and the data is neither getting refreshed in the same session nor across multiple sessions, I am using Cf adapter . (The data is getting inserted into the database correctly) After adding a record the flex dump shows correctly the following message [CFDataServicesAdapter] invoking SYNC method, 1 change(s) to process. [CFDataServicesAdapter] invoking Fill method... [Flex] After invoke service: data-service reply: Flex Message (flex.messaging.messages.AcknowledgeMessage) and only the record which is added is shown in this dump My flex code == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* pageTitle=data service creationComplete=initApp() mx:Script ![CDATA[ import com.adobe.downloads.softwarepublishingtool.vo.ProductVersion; import mx.controls.*; import mx.collections.ArrayCollection; import mx.data.DataService; import mx.data.IManaged; import mx.data.events.*; import mx.messaging.events.*; import mx.rpc.*; import mx.rpc.events.*; import samples.contact.*; [Bindable] public var contacts:ArrayCollection; [Bindable] public var contact:ProductVersion; private var ds:DataService; private function initApp():void { contacts = new ArrayCollection(); ds = new DataService(product); ds.addEventListener(ResultEvent.RESULT, resultHandler); ds.addEventListener(DataServiceFaultEvent.FAULT, faultHandler); ds.addEventListener(DataConflictEvent.CONFLICT, conflictHandler); ds.autoCommit = false; var token:AsyncToken = AsyncToken(ds.fill(contacts)); token.kind = fill; } private function resultHandler(event:ResultEvent):void { if (event.token.kind == create) { dg.selectedIndex = contacts.length - 1; } else if (event.token.kind == delete contacts.length0) { var index:int = event.token.index contacts.length ? event.token.index : contacts.length -1; dg.selectedIndex = index; contact = contacts[index]; } else if (event.token.kind == fill contacts.length0) { dg.selectedIndex = 0; contact = contacts[0]; } } private function faultHandler(event:DataServiceFaultEvent):void { Alert.show(event.fault.faultstring, Error); if (event.item != null) { ds.revertChanges(event.item as IManaged); dg.selectedItem = event.item; contact = event.item as ProductVersion; } } private function conflictHandler(event:DataConflictEvent):void { var conflicts:Conflicts = ds.conflicts; var c:Conflict; for (var i:int=0; iconflicts.length; i++) { c = Conflict(conflicts.getItemAt(i)); Alert.show(Reverting to server value, Conflict); c.acceptServer(); } ds.commit(); } private function newContact():void { dg.selectedIndex = -1; contact = new ProductVersion(); } private function updateContact():void { if (!contacts.contains(contact)) { ds.createItem(contact); var token:AsyncToken = ds.commit(); token.kind = create; } else if (ds.commitRequired) { var token:AsyncToken = ds.commit(); token.kind = update; } } private function deleteContact():void { var index:int = dg.selectedIndex; ds.deleteItem(contact); var token:AsyncToken = ds.commit(); token.kind = delete; token.index = index; } private function searchContacts():void { var token:AsyncToken = AsyncToken(ds.fill(contacts, [searchText.text])); token.kind = fill; } ]] /mx:Script mx:Binding source=firstName.text destination=contact.name/ mx:Binding source=lastName.text destination=contact.version/ mx:Binding source=address.text destination=contact.productId/ mx:HDividedBox width=100% height=100% mx:Panel title=Contact List width=100% height=100% mx:DataGrid id=dg dataProvider={contacts} width=100% height=100% change=contact=ProductVersion(dg.selectedItem) mx:columns mx:DataGridColumn dataField=productId headerText=id/ mx:DataGridColumn dataField=name headerText=Name/ mx:DataGridColumn dataField=version headerText=version/ /mx:columns /mx:DataGrid mx:ControlBar mx:TextInput id=searchText width=100% enter=searchContacts()/ mx:Button label=Search click=searchContacts() width=60/ /mx:ControlBar /mx:Panel mx:Panel title=Details [{dg.selectedIndex!=-1?contact.name+' '+contact.version:'New Contact'}] width=100% height=100% mx:Form width=100% height=100% label=General mx:FormItem label=Name required=true mx:TextInput id=firstName width=250 text={contact.name}/ /mx:FormItem mx:FormItem label=Version required=true mx:TextInput id=lastName width=250 text={contact.version}/ /mx:FormItem mx:FormItem label=Id mx:TextInput id=address width=250 text={contact.productId}/ /mx:FormItem /mx:Form mx:ControlBar mx:Button label={dg.selectedIndex!=-1?'Update':'Add'} click=updateContact()
[flexcoders] data service in craingorm
I have declared the following two methods in my delegate and call them from the commands // //get the products public function fill():void { var call:Object = service.fill(modelLocator.productModel.ProductVersion); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } public function commit():void { var call:Object = service.commit(); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } And I have used modelLocator.productModel.ProductVersion as the dataprovider binding for a list box. modelLocator.productModel.ProductVersion.addItem(obj); to add a new product I am trying to access the application on two diferrent browsers and after I add a new product the product is not pushed to the other connected client. view the following in the server dump [CFDataServicesAdapter] invoking SYNC method, 1 change(s) to process. [CFDataServicesAdapter] invoking Fill method... Am I missing something so that if one client adds a product then other client should be able to view it -- 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] Data service method
Which event will be fired after the data is pushed to the client for a dataservice coldfusion adapter? I tried message event but it does not seem to work -- 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] AS3 API generation
Is there any application that is updated to generate the AS3 doc? (AS3 API for my classes) Thanks, Deepak -- 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] Data service
How to fit in the data service component into Craingorm framework. I have added a getDataService method to the service locator. Am not able to get the sync result in the command -- 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] Flex2 dataservice composite primary key
Is this a correct way to define the composite primary key destination id=product adapter ref=coldfusion-dao / properties metadata identity property=id/ identity property=productId/ /metadata -- 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] Flex Mystic connectivity
Hi All, I have installed flex and mystic on JRun server. What will be the flex configuration settings so as to access the cfc using remote object. On this page http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity I was able to find the settings for Flex builder. -- 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 creating a remote object
Thanks Tracy, but the example is for web service. Where can I get the syntax for RemoteObject call. Thanks dv --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: This is not supported in 1.5, but is possible to do. See this article: http://jeff.mxdj.com/calling_a_webservice_purely_through_as.htm Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Wednesday, March 22, 2006 6:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamically creating a remote object How can I dynamically create an instance of remote object in flex 1.5 I am trying the following testRemote = mx.core.Application.application.createClassObject(mx.servicetags.RemoteO bject, text_mc, 0, {endpoint:http://dverma01.corp.adobe.com:8300/cfusion/flashservices/gat eway/, source:webreqapp.test,result:testText.text=event.result}); mx.core.Application.application.text_mc.test(); Thanks dv -- 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] dynamically creating a remote object
How can I dynamically create an instance of remote object in flex 1.5 I am trying the following testRemote = mx.core.Application.application.createClassObject(mx.servicetags.RemoteObject, text_mc, 0, {endpoint:http://dverma01.corp.adobe.com:8300/cfusion/flashservices/gateway/;, source:webreqapp.test,result:testText.text=event.result}); mx.core.Application.application.text_mc.test(); Thanks dv -- 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] datagrid filter
How can I filter data from a datagrid? Is there a function to filter data for the data provider? (I was able to find a Dataset component for Flash which has the capability to filter the data.) -- 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] mx.control.alert
Hi all, I am using mx.controls.Alert.show in flex 1.5 The text in the alert box is displayed with a vertical scroll bar. How can I increase the size of the alert box. Thanks, Deepak -- 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] radio button group inside repeater
Hi, When I create radio buttons inside a repeater control. The UI creats the all the radio button in a single group. Following is the code : mx:Repeater dataProvider={searchControlHelper.repeaterModel} id=searchControlRepeater recycleChildren=true mx:VBox mx:RadioButton id=andRadio label=And data=and selected=true click={orRadio[event.target.instanceIndices].selected=false}/ mx:RadioButton id=orRadio label=Or data=or click={andRadio[event.target.instanceIndices].selected=false}/ /mx:VBox /mx:Repeater -- 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] sortCompareFunction
How does sortcompare function workd for a data grid. I want to sort a date column for a datagrid in Flex 1.5 Thanks, Deepak -- 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 from object of object
Hi, I am trying to populate a datagrid from object object as in the below example (this is a dummy example, i am getting the result from a VO) var arr = new Array() arr[0] = new Object() arr[0].j=10; arr[0].k=new Object() arr[0].k.l=20; mx:DataGrid dataProvider={arr} mx:columns mx:Array mx:DataGridColumn columnName=j headerText=j / mx:DataGridColumn columnName=k.l headerText=k l / /mx:Array /mx:columns /mx:DataGrid The second column is not displayed (k.l is not picked by the data grid) -- 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: unsubscribe
1. Login to yahoo group 2. Edit membership 3. Click on leave group --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: how to unsubscribe? the way written in footer doesn't work. -- 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: Value objects
Hi Abdul, One more thing I had noticed that the private variables with getter and setter methods run fine with Java. What I understood is that for Java the flash gateway calls the get/set method and return the object. Is this a problem with gateway for CF? Thanks, Deepak --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Well, I don't see anything you are doing in getters/setters except setting values. I know, if you are a OO purist then you might want to have getters/setters everywhere. For me, it makes sense wherever it is required, f.ex. where you want to validate the data before setting it or returing it. In case of ValueObject, we generally don't have a much business-logic inside them, so getters/setters dont make much sense. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Wednesday, January 25, 2006 1:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Value objects Thanks for the Reply But don't you think by declaring the variables as public we are defeating the object encapsulation concept. And moreover then there would be no need to define the getter and setter methods for the class. Thanks and Regards dv --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, There are two things:- * I think, variables in actionscript should be in captial-case because the Coldfusion remoting adapter sends all variables in capital case. * Second, though I am not sure, variables in actionscript should be public. Use the following code and let us know if it works. -abdul import org.nevis.cairngorm.vo.ValueObject; class com.macromedia.webreqapp.vo.UserVO implements ValueObject { public static var registered:Boolean = Object.registerClass(webreqapp.webrequest.vo.user, com.macromedia.webreqapp.vo.UserVO ); public function setUserID(userID:Number):Void { this.USERID = userID; } public function getUserID():Number { return USERID } public function setName(name:String):Void { this.NAME = NAME; } public function getName():String { return NAME; } public function setEmail(email:String):Void { this.EMAIL = email; } public function getEmail():String { return EMAIL; } public function setPassword(password:String):Void { this.PASSWORD = password; } public function getPassword():String { return PASSWORD; } public function setRole(role:String):Void { this.ROLE = role; } public function getRole():String { return ROLE; } public var USERID:Number; public var NAME:String; public var EMAIL:String; public var PASSWORD:String; public var ROLE:String; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Tuesday, January 24, 2006 5:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Value objects I am stuck up with how to map VO between flex and Coldfusion My AS class is import org.nevis.cairngorm.vo.ValueObject; class com.macromedia.webreqapp.vo.UserVO implements ValueObject { public static var registered:Boolean = Object.registerClass(webreqapp.webrequest.vo.user, com.macromedia.webreqapp.vo.UserVO ); public function setUserID(userID:Number):Void { this.userID = userID; } public function getUserID(Void):Number { return userID } public function setName(name:String):Void { this.name = name; } public function getName(Void):String { return name; } public function setEmail(email:String):Void { this.email = email; } public function getEmail(Void):String { return email; } public function setPassword(password:String):Void { this.password = password; } public function getPassword(Void):String { return password; } public function setRole(role:String):Void { this.role = role; } public function getRole(Void):String { return role; } private var userID:Number; private var name:String; public var email:String
[flexcoders] Value objects
I am stuck up with how to map VO between flex and Coldfusion My AS class is import org.nevis.cairngorm.vo.ValueObject; class com.macromedia.webreqapp.vo.UserVO implements ValueObject { public static var registered:Boolean = Object.registerClass(webreqapp.webrequest.vo.user, com.macromedia.webreqapp.vo.UserVO ); public function setUserID(userID:Number):Void { this.userID = userID; } public function getUserID(Void):Number { return userID } public function setName(name:String):Void { this.name = name; } public function getName(Void):String { return name; } public function setEmail(email:String):Void { this.email = email; } public function getEmail(Void):String { return email; } public function setPassword(password:String):Void { this.password = password; } public function getPassword(Void):String { return password; } public function setRole(role:String):Void { this.role = role; } public function getRole(Void):String { return role; } private var userID:Number; private var name:String; public var email:String; private var password:String; private var role:String; } My coldfusion code is cffunction name=signin access=remote cfargument name=user type=any required=yes cfobject type=JAVA class=flashgateway.io.ASObject name=myclass action=CREATE cfset myObj = myclass.init() cfset myobj.setType(com.macromedia.webreqapp.vo.UserVO) cfset myobj.put(email, test) cfset myobj.put(password, test) cfreturn myobj /cffunction How will the returned data from CF be automatically mapped to the flash VO. Any help is greatly appreciated Thanks Deepak -- 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: Value objects
Thanks for the Reply But don't you think by declaring the variables as public we are defeating the object encapsulation concept. And moreover then there would be no need to define the getter and setter methods for the class. Thanks and Regards dv --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, There are two things:- * I think, variables in actionscript should be in captial-case because the Coldfusion remoting adapter sends all variables in capital case. * Second, though I am not sure, variables in actionscript should be public. Use the following code and let us know if it works. -abdul import org.nevis.cairngorm.vo.ValueObject; class com.macromedia.webreqapp.vo.UserVO implements ValueObject { public static var registered:Boolean = Object.registerClass(webreqapp.webrequest.vo.user, com.macromedia.webreqapp.vo.UserVO ); public function setUserID(userID:Number):Void { this.USERID = userID; } public function getUserID():Number { return USERID } public function setName(name:String):Void { this.NAME = NAME; } public function getName():String { return NAME; } public function setEmail(email:String):Void { this.EMAIL = email; } public function getEmail():String { return EMAIL; } public function setPassword(password:String):Void { this.PASSWORD = password; } public function getPassword():String { return PASSWORD; } public function setRole(role:String):Void { this.ROLE = role; } public function getRole():String { return ROLE; } public var USERID:Number; public var NAME:String; public var EMAIL:String; public var PASSWORD:String; public var ROLE:String; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Tuesday, January 24, 2006 5:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Value objects I am stuck up with how to map VO between flex and Coldfusion My AS class is import org.nevis.cairngorm.vo.ValueObject; class com.macromedia.webreqapp.vo.UserVO implements ValueObject { public static var registered:Boolean = Object.registerClass(webreqapp.webrequest.vo.user, com.macromedia.webreqapp.vo.UserVO ); public function setUserID(userID:Number):Void { this.userID = userID; } public function getUserID(Void):Number { return userID } public function setName(name:String):Void { this.name = name; } public function getName(Void):String { return name; } public function setEmail(email:String):Void { this.email = email; } public function getEmail(Void):String { return email; } public function setPassword(password:String):Void { this.password = password; } public function getPassword(Void):String { return password; } public function setRole(role:String):Void { this.role = role; } public function getRole(Void):String { return role; } private var userID:Number; private var name:String; public var email:String; private var password:String; private var role:String; } My coldfusion code is cffunction name=signin access=remote cfargument name=user type=any required=yes cfobject type=JAVA class=flashgateway.io.ASObject name=myclass action=CREATE cfset myObj = myclass.init() cfset myobj.setType(com.macromedia.webreqapp.vo.UserVO) cfset myobj.put(email, test) cfset myobj.put(password, test) cfreturn myobj /cffunction How will the returned data from CF be automatically mapped to the flash VO. Any help is greatly appreciated Thanks Deepak -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http
[flexcoders] Re: microphone object in AS3
Now the attachAudio function of the movieclip has been removed in AS3, the document (http://livedocs.macromedia.com/labs/1/flex/langref/migration.html) says to use the addChild method instead. But that does not seem to work. If you have any example of attaching a microphone to an object it would help a lot. Thanks, Deepak --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: What problem, are you facing? -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: Tuesday, January 24, 2006 1:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] microphone object in AS3 Any body tried to work with the microphone on AS3? -- 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/ . -- 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 does remote object works for coldfusion backend
I am using the remote object with endpoint set to the coldfusion server on a different box. 1. How will the remote object work in this case (will the call to the remote server go from the flash client or it will use the flex proxy) 2. http://livedocs.macromedia.com/flashremoting/mx2004/using_flash_remoting/0071.htm shows how to work with flash remoting while passing objects. Don;t you think by passing the name of the classes between the two layers will create more dependency between the two. -- 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] line break in the formitem label
How can wrap the text for a form label? Here is an example mx:FormItem label=Tracking amp; Reporting Requirements required=true mx:HBox mx:TextArea id=reportingRequirement textAlign=left width=500 height=80 cornerRadius=0/ mx:Link label=? / /mx:HBox /mx:FormItem In the output I want to wrap the label to show Tracking in oneline and reporting requirements in another. I tried \n in the label but it does not works. -- 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] microphone object in AS3
Any body tried to work with the microphone on AS3? -- 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/