RE: [flexcoders] Garbage collection and removeChild [Flex 2 beta 3]?
Opps sorry, the remove event. No they are not swfs. Jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Gordon SmithEnvoyé: samedi 24 juin 2006 01:13À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] Garbage collection and removeChild [Flex 2 beta 3]? in the removed view I get ride of the listeners in the unload eventThe only 'unload' event I know of in Flex 2 is in SWFLoader. Are your views SWFs that you're loading into a SWFLoader?- GordonFrom: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jason HawrylukSent: Friday, June 23, 2006 12:21 AMTo: [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Garbage collection and removeChild [Flex 2 beta 3]?Thank you, this clears some things up. :)I was actually allocating memory up to 100mb and then seeing if it'scollected by letting it sit there with no activity, and watching the processmemory usage (couldn't think of another way)."You can later remove a component from a container using the removeChild()method. If there are no references to the component, it is eventuallydeleted from memory by the garbage collection mechanism of Flash Player."The above taken from the doc's, lead me to believe that there was a garbagecollection process every (x)min's. If the player only does this when itneeds to get back memory, then that would explain why I did not see itcollected.What lead me to the question was the following scenario:I have a single component based on the viewstack for the views, thiscomponent listens for event state changes in the program to load new views,the events it gets come from another class (think observer pattern). So withthis I can load multiple copies of a view with different data(this is whereI seen a problem). Even though a view was removed from the viewstack itstill received data change events (which it listens to in order to see if itneeds to load new data (think chain of responsibility here) where each viewgets the event and decides if the data is destined for it (the data it selfis just a guid that I use to reference the xml data needed to be loaded).The scenario may seem weird, but no object knows what data is being accessedexcept the view that is responsible for displaying it.If the view was really unloaded then the event should not get through. Sonow I remove a view, and in the removed view I get ride of the listeners inthe unload event, clean up any child objects/classes/data providers etc..So the view dataprovider modelloader etc.. controller etc..From what I understand from your answer is that if the view is removed, andI clean up the listeners and "local" references i.e. (set dataprovider andcontroller to null)view dataprovider controllerThen I should be alright. Is this correct?My original thinking was that if it's removed to the garbage collection howis it that it's still getting the events? I was thinking that this was aprotected space. I can't get the instance back from the garbage collection,however the instance is still very much alive and kicking.Is this making sense? Are these correct assumptions?Thank you for your help.Jason-Message d'origine-De : [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com]De lapart de Gordon SmithEnvoyé : vendredi 23 juin 2006 08:30À : [EMAIL PROTECTED]ups.comObjet : RE: [flexcoders] Garbage collection and removeChild [Flex 2 beta 3]? it does not seem to be collectedWhat are you doing that you think should cause it to be collected? Do youkeep allocating memory indefinitely? An object may never get garbagecollected unless the Player decides it needs the memory. Should one have to remove all objects created through the or just on the child being removed?I'm not really following your texavery toto titi example because youdidn't explain which one you're removing. Let's suppose you're removing totoas a child of texavery. If you're not keeping any references to toto ortiti, then both become eligible for garbage collection; the fact that totoholds a reference to its child titi doesn't matter, because the two of themare isolated from all other objects. Is there a way to force the garbage collection clean up, or destroy an object completely?There are no APIs for controlling garbage collection. Once there are noreferences to an object, it becomes eligible for garbage collection. Itdoesn't mean that it actually gets garbage collected.Is your app exhibiting unbounded memory growth to the point where itconsumes all the machine's memory?- GordonFrom: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of Harald DehnSent: Thursday, June 22, 2006 3:55 AMTo: [EMAIL PROTECTED]ups.comSubject:
Re: [Junk E-Mail - LOW] [flexcoders] FP 9 for Intel-based Macs?
lol. I didn't read that blurb. A site visitor sent it and I skimmed the first paragraph. :-) Thx for pointing it out.Yes, I heard the #'s were down. I think MM's products and vision will help Adobe a great deal. We'll see as time goes on. ;-) On 6/22/06, Shannon Hicks [EMAIL PROTECTED] wrote: The text you provided says that Flash Player 9 for Intel macs will be released sometime after the release for windows PPC Mac. So, I'd guess that means, no... not next week, but sometime after that. Considering Adobe isn't launching any Intel versions of their applications till 2007, I'm not feeling terribly confident that it will be soon. Speculation says that Adobe's latest earnings were hurt because a lot of customers are waiting for intel versions of their apps. Shan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John C. Bland IISent: Thursday, June 22, 2006 6:25 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] FP 9 for Intel-based Macs? I don't have one but one of our customers wrote and provide the text below. It is regarding FP 8 so my next thought was...what about 9? We're about to Flex (trick) out our site so this is a crucial component to the success of our site. Troubleshooting Macromedia Flash Player for Intel-based Macs This document provides troubleshooting guidelines for users of the Macromedia Flash Player by Adobe and Intel-based Macs. Adobe has provided a preview release of Flash Player 8 for Intel-based Mac users, which is available for download from this TechNote. The preview release of Flash Player 8 runs natively on Intel-based Macs, but it has not been extensively tested and customers may run into compatibility, performance, and other issues. Alternatively, users can view Flash content on Intel-based Macs with Safari in Rosetta mode. Running the Flash Player preview release in Rosetta mode may be noticeably slower than when running on a PowerPC-based Mac. Adobe plans to support the new Intel-based Macs with Flash Player 9, after the initial release of the Windows and PowerPC-based Mac versions. The preview release of Flash Player 8 for Intel-based Macs will then be replaced with a final release version of Flash Player9 for the platform. For more information about Flash Player and Intel-based Macs, see... FULL Text here: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=2dda3d81Thanks!-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az __._,_.___ -- 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: programatically assigning an ArrayCollection as the DataProvider bug...
Hi Johnathan, I took everything that wasn't necessary out of ResourceVO and it seems to work as expected. No focus border problems that I'm seeing. -TH package com.crap.vo { import org.nevis.cairngorm.vo.ValueObject; import mx.resources.Locale; // changed resource to resources [Bindable] public class ResourceVO implements ValueObject{ public var key:String = ""; public var value:String = ""; public var locale:Locale = new Locale("eng_us"); }}}--- In flexcoders@yahoogroups.com, "hank williams" [EMAIL PROTECTED] wrote: The exact thing that Jonathan describes below in the referenced email is happening to me. I am attempting to programatically create a bindable arrayCollection and use that arrayCollection as a dataProvider for a dataGrid. When I do this, only the last item in the list is selectable with the mouse. I am getting the exact same results as jonathan. But according to the documentation, this is totally legal. In this thread, the theory was that the IUID was not there or that the object needed to be dynamic, but that cant relate to an ArrayCollection. This really feels like a bug because I should be able to create and modify a bindable arrayCollection without worrying about any wierd scenario. This should be flex 101. So I am curious if anyone else can dynamically (not from a data service) create a dataProvider for a dataGrid using an arrayCollection and select any item in the list with the mouse. Betcha cant. Hank On 4/12/06, box110a [EMAIL PROTECTED] wrote: I didn't see this in the known issues. but I'll attempt to explain whats going on: Here is my Code (i'll explain the bug at the end): *DGTest.mxml *?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="init();" pageTitle="DataGrid Test" mx:Script ![CDATA[ import mx.utils.ArrayUtil; import com.crap.vo.ResourceVO; import mx.collections.ArrayCollection; [Bindable] public var dataObj:ArrayCollection; [Bindable] public var objTemp:ResourceVO = new ResourceVO(); private function init():void{ dataObj = new ArrayCollection(); var obj1:ResourceVO = new ResourceVO(); obj1.value = "foo-0"; obj1.key = "bar-0"; dataObj.addItem(obj1); var obj2:ResourceVO = new ResourceVO(); obj2.value = "foo-1"; obj2.key = "bar-1"; dataObj.addItem(obj2); var obj3:ResourceVO = new ResourceVO(); obj3.value = "foo-2"; obj3.key = "bar-2"; dataObj.addItem(obj3); dg.dataProvider = dataObj; } private function selectRow():void{ objTemp = ResourceVO(dg.selectedItem); } ]] /mx:Script mx:HBox width="90%" height="90%" horizontalCenter="0" verticalCenter="0" mx:Panel layout="absolute" height="50%" width="50%" mx:VBox width="443" height="90%" horizontalCenter="1" verticalCenter="-1" mx:DataGrid id="dg" width="100%" height="100%" change="selectRow();" editable="true"mx:columns mx:DataGridColumn headerText="Key" dataField="key"/ mx:DataGridColumn headerText="Value" dataField="value"/ /mx:columns /mx:DataGrid /mx:VBox /mx:Panel mx:Panel width="50%" height="50%" layout="absolute" mx:Form x="10" y="10" height="156" width="445" mx:FormItem label="Key:" mx:TextInput id="txtKey" data=""/ /mx:FormItem mx:FormItem label="Value:" mx:TextInput id="txtValue" data=""/ /mx:FormItem /mx:Form /mx:Panel /mx:HBox /mx:Application *ResourceVO.as *package com.crap.vo { import com.crap.mvc.vo.ValueObject; import mx.resource.Locale; import mx.controls.listClasses.BaseListData; import mx.controls.listClasses.IDropInListItemRenderer; import mx.data.IManaged; import mx.data.utils.Managed; import mx.core.mx_internal; [Bindable] public class ResourceVO implements ValueObject{ public var key:String = ""; public var value:String = ""; public var locale:Locale = new Locale("eng_us");} } *The Issue:* When I view this application, it works as expected: it shows the datagrid with the three items and when I click on it, the fields to the right are populated. However, the blue selection highlight doesn't move off of the last item in the list! I have also sceen this issue in a ComboBox. Any ideas as to why this is happening? -JB-- 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 "flexcodershttp://groups.yahoo.com/group/flexcoders" on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED]@yahoogroups.com?subject=Unsubscribe - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/.-- __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED
Re: [flexcoders] Can Flex 1.5 coexist on the same machine with 2.0?
Hi Roscoe, though they surely can coexist, it doesn't make sense to use 2 to find errors in 1.5. There are too much differences i think. Cheers,RalfOn 6/24/06, Carson Hager [EMAIL PROTECTED] wrote: They can absolutely coexist on the same machine. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roscoe P ColtraneSent: Friday, June 23, 2006 6:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Can Flex 1.5 coexist on the same machine with 2.0? I am positive that this question has been answered before, but aftersearching the Adobe site, the web, and this site, I still can't findthe answer : (I would like to install the beta 3 and see how many compile errors Iget out of my 1.5 version, which I will still need to support until2.0 goes production status.Thanks,Roscoe __._,_.___ -- 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: programatically assigning an ArrayCollection as the DataProvider bug...
One other thought, when you say the blue selection highlight, are you refering to the DataGrid's selectionColor that extends the entire row? -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Johnathan, I took everything that wasn't necessary out of ResourceVO and it seems to work as expected. No focus border problems that I'm seeing. -TH package com.crap.vo { import org.nevis.cairngorm.vo.ValueObject; import mx.resources.Locale; // changed resource to resources [Bindable] public class ResourceVO implements ValueObject{ public var key:String = ; public var value:String = ; public var locale:Locale = new Locale(eng_us); } } } --- In flexcoders@yahoogroups.com, hank williams hank777@ wrote: The exact thing that Jonathan describes below in the referenced email is happening to me. I am attempting to programatically create a bindable arrayCollection and use that arrayCollection as a dataProvider for a dataGrid. When I do this, only the last item in the list is selectable with the mouse. I am getting the exact same results as jonathan. But according to the documentation, this is totally legal. In this thread, the theory was that the IUID was not there or that the object needed to be dynamic, but that cant relate to an ArrayCollection. This really feels like a bug because I should be able to create and modify a bindable arrayCollection without worrying about any wierd scenario. This should be flex 101. So I am curious if anyone else can dynamically (not from a data service) create a dataProvider for a dataGrid using an arrayCollection and select any item in the list with the mouse. Betcha cant. Hank On 4/12/06, box110a jonathanbmail-flash@ wrote: I didn't see this in the known issues. but I'll attempt to explain whats going on: Here is my Code (i'll explain the bug at the end): *DGTest.mxml *?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=absolute creationComplete=init(); pageTitle=DataGrid Test mx:Script ![CDATA[ import mx.utils.ArrayUtil; import com.crap.vo.ResourceVO; import mx.collections.ArrayCollection; [Bindable] public var dataObj:ArrayCollection; [Bindable] public var objTemp:ResourceVO = new ResourceVO(); private function init():void{ dataObj = new ArrayCollection(); var obj1:ResourceVO = new ResourceVO(); obj1.value = foo-0; obj1.key = bar-0; dataObj.addItem(obj1); var obj2:ResourceVO = new ResourceVO(); obj2.value = foo-1; obj2.key = bar-1; dataObj.addItem(obj2); var obj3:ResourceVO = new ResourceVO(); obj3.value = foo-2; obj3.key = bar-2; dataObj.addItem(obj3); dg.dataProvider = dataObj; } private function selectRow():void{ objTemp = ResourceVO(dg.selectedItem); } ]] /mx:Script mx:HBox width=90% height=90% horizontalCenter=0 verticalCenter=0 mx:Panel layout=absolute height=50% width=50% mx:VBox width=443 height=90% horizontalCenter=1 verticalCenter=-1 mx:DataGrid id=dg width=100% height=100% change=selectRow(); editable=true mx:columns mx:DataGridColumn headerText=Key dataField=key/ mx:DataGridColumn headerText=Value dataField=value/ /mx:columns /mx:DataGrid /mx:VBox /mx:Panel mx:Panel width=50% height=50% layout=absolute mx:Form x=10 y=10 height=156 width=445 mx:FormItem label=Key: mx:TextInput id=txtKey data={objTemp.key}/ /mx:FormItem mx:FormItem label=Value: mx:TextInput id=txtValue data={objTemp.value}/ /mx:FormItem /mx:Form /mx:Panel /mx:HBox /mx:Application *ResourceVO.as *package com.crap.vo { import com.crap.mvc.vo.ValueObject; import mx.resource.Locale; import mx.controls.listClasses.BaseListData; import mx.controls.listClasses.IDropInListItemRenderer; import mx.data.IManaged; import mx.data.utils.Managed; import mx.core.mx_internal; [Bindable] public class ResourceVO implements ValueObject{ public var key:String = ; public var value:String = ; public var locale:Locale = new Locale(eng_us); } } *The Issue:* When I view this application, it works as expected: it shows the datagrid with the three items and when I click on it, the fields to the right are populated. However, the blue selection highlight doesn't move off of the last item in the list! I have also sceen this issue in a ComboBox. Any ideas as to why this is happening? -JB -- 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
AW: [flexcoders] converting from screen display to print ready PDF
Hi Mark, which pdf generator do you use? Harald Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von MarkGesendet: Samstag, 24. Juni 2006 00:02An: flexcoders@yahoogroups.comBetreff: [flexcoders] converting from screen display to print ready PDF First off, I want to say thanks much for all the efforts not only ofthe team that has created Flex but also a thanks to everyone in theFlex community.Now I'm gonna pose my question just to see if anyone can point me inthe right direction. I have a flex application that has a few imageelements drawn within a panel. I am then passing the X and Y coordsof those elements to a pdf generator and I'd like to create a hiresPDF that looks just like the view on the panel but with all hireselements. The problem is that I can't figure out a smart way toconvert the pixel coords over to inch/mm/pt measurements needed by myPDF generator.Has anyone had to do hi-res prints via PDF before? Is there a betterway for me to do this than to try and generate a PDF on the fly? Thanks for any help.::Mark __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: programatically assigning an ArrayCollection as the DataProvider bug...
Just to make things simple, I created the simples possible example of the problem.If you take the below text, drop it into an app, You should see four hello items in the dataGrid. If you move your mouse over the items, you should see that only the last item in the list of 4 hellos highlights, no matter where the mouse is. (at least hopefully you will see it... if not that would be*really* wierd) RegardsHank?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml initialize=initList() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var selectedChannels:ArrayCollection = new ArrayCollection(); private function initList():void{selectedChannels.addItem(hello);selectedChannels.addItem(hello);selectedChannels.addItem (hello);selectedChannels.addItem(hello); } ]] /mx:Script mx:DataGrid id = lChannelList x=10 y = 10dataProvider={selectedChannels} width = 200 height=150//mx:Canvas - END OF CODE --On 6/24/06, Tim Hoff [EMAIL PROTECTED] wrote: One other thought, when you say the blue selection highlight, areyou refering to the DataGrid's selectionColor that extends the entire row?-TH--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Johnathan, I took everything that wasn't necessary out of ResourceVO and it seems to work as expected.No focus border problems that I'm seeing. -TH package com.crap.vo {import org.nevis.cairngorm.vo.ValueObject;import mx.resources.Locale ;// changed resource to resources[Bindable]public class ResourceVO implements ValueObject{public var key:String = ;public var value:String = ; public var locale:Locale = new Locale(eng_us);}} } --- In flexcoders@yahoogroups.com, hank williams hank777@ wrote: The exact thing that Jonathan describes below in the referencedemail is happening to me. I am attempting to programatically create abindable arrayCollection and use that arrayCollection as a dataProvider for a dataGrid. When I do this, only the last item in the list isselectable with the mouse. I am getting the exact same results as jonathan. But according to the documentation, this is totally legal. In this thread, the theorywas that the IUID was not there or that the object needed to be dynamic,but that cant relate to an ArrayCollection. This really feels like a bug because I should be able to create and modify a bindable arrayCollectionwithout worrying about any wierd scenario. This should be flex 101. So I am curious if anyone else can dynamically (not from a data service) create a dataProvider for a dataGrid using an arrayCollection and select any item in the list with the mouse. Betcha cant. Hank On 4/12/06, box110a jonathanbmail-flash@ wrote: I didn't see this in the known issues. but I'll attempt toexplain whats going on: Here is my Code (i'll explain the bug at the end): *DGTest.mxml *?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxmlxmlns=* layout=absolute creationComplete=init(); pageTitle=DataGrid Test mx:Script ![CDATA[ import mx.utils.ArrayUtil; import com.crap.vo.ResourceVO; import mx.collections.ArrayCollection; [Bindable] public var dataObj:ArrayCollection; [Bindable] public var objTemp:ResourceVO = new ResourceVO(); private function init():void{ dataObj = new ArrayCollection(); var obj1:ResourceVO = new ResourceVO(); obj1.value = foo-0; obj1.key = bar-0; dataObj.addItem(obj1); var obj2:ResourceVO = new ResourceVO(); obj2.value = foo-1; obj2.key = bar-1; dataObj.addItem(obj2); var obj3:ResourceVO = new ResourceVO(); obj3.value = foo-2; obj3.key = bar-2; dataObj.addItem (obj3); dg.dataProvider = dataObj; } private function selectRow():void{ objTemp = ResourceVO(dg.selectedItem); } ]] /mx:Script mx:HBox width=90% height=90% horizontalCenter=0 verticalCenter=0 mx:Panel layout=absolute height=50% width=50% mx:VBox width=443 height=90% horizontalCenter=1 verticalCenter=-1 mx:DataGrid id=dg width=100% height=100% change=selectRow(); editable=true mx:columns mx:DataGridColumn headerText=Key dataField=key/ mx:DataGridColumn headerText=Value dataField=value/ /mx:columns /mx:DataGrid /mx:VBox /mx:Panel mx:Panel width=50% height=50% layout=absolute mx:Form x=10 y=10 height=156 width=445 mx:FormItem label=Key: mx:TextInput id=txtKey data="" objTemp.key}/ /mx:FormItem mx:FormItem label=Value: mx:TextInput id=txtValue data="" /mx:FormItem /mx:Form /mx:Panel /mx:HBox /mx:Application * ResourceVO.as *package com.crap.vo { import com.crap.mvc.vo.ValueObject; import mx.resource.Locale; import mx.controls.listClasses.BaseListData; import mx.controls.listClasses.IDropInListItemRenderer; import mx.data.IManaged; import mx.data.utils.Managed; import mx.core.mx_internal; [Bindable]
Re: [flexcoders] Re: programatically assigning an ArrayCollection as the DataProvider bug...
Oh there is a slight bug in the last example. The problem occurs for a List or a DataGrid. I was playing with both and in the example, I add strings to the dataProvider instead of objects. Flex really doesnt mind except for the fact that it makes the word length the column header. But even if you make the dataGrid a list, it doesnt work. Nothing works. But the documentation does say it *should* work. http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0502.html HankOn 6/24/06, hank williams [EMAIL PROTECTED] wrote: Just to make things simple, I created the simples possible example of the problem.If you take the below text, drop it into an app, You should see four hello items in the dataGrid. If you move your mouse over the items, you should see that only the last item in the list of 4 hellos highlights, no matter where the mouse is. (at least hopefully you will see it... if not that would be*really* wierd) RegardsHank?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml initialize=initList() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var selectedChannels:ArrayCollection = new ArrayCollection(); private function initList():void{selectedChannels.addItem(hello);selectedChannels.addItem(hello);selectedChannels.addItem (hello);selectedChannels.addItem(hello); } ]] /mx:Script mx:DataGrid id = lChannelList x=10 y = 10dataProvider={selectedChannels} width = 200 height=150//mx:Canvas - END OF CODE --On 6/24/06, Tim Hoff [EMAIL PROTECTED] wrote: One other thought, when you say the blue selection highlight, areyou refering to the DataGrid's selectionColor that extends the entire row?-TH--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Johnathan, I took everything that wasn't necessary out of ResourceVO and it seems to work as expected.No focus border problems that I'm seeing. -TH package com.crap.vo {import org.nevis.cairngorm.vo.ValueObject;import mx.resources.Locale ;// changed resource to resources[Bindable]public class ResourceVO implements ValueObject{public var key:String = ;public var value:String = ; public var locale:Locale = new Locale(eng_us);}} } --- In flexcoders@yahoogroups.com, hank williams hank777@ wrote: The exact thing that Jonathan describes below in the referencedemail is happening to me. I am attempting to programatically create abindable arrayCollection and use that arrayCollection as a dataProvider for a dataGrid. When I do this, only the last item in the list isselectable with the mouse. I am getting the exact same results as jonathan. But according to the documentation, this is totally legal. In this thread, the theorywas that the IUID was not there or that the object needed to be dynamic,but that cant relate to an ArrayCollection. This really feels like a bug because I should be able to create and modify a bindable arrayCollectionwithout worrying about any wierd scenario. This should be flex 101. So I am curious if anyone else can dynamically (not from a data service) create a dataProvider for a dataGrid using an arrayCollection and select any item in the list with the mouse. Betcha cant. Hank On 4/12/06, box110a jonathanbmail-flash@ wrote: I didn't see this in the known issues. but I'll attempt toexplain whats going on: Here is my Code (i'll explain the bug at the end): *DGTest.mxml *?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxmlxmlns=* layout=absolute creationComplete=init(); pageTitle=DataGrid Test mx:Script ![CDATA[ import mx.utils.ArrayUtil; import com.crap.vo.ResourceVO; import mx.collections.ArrayCollection; [Bindable] public var dataObj:ArrayCollection; [Bindable] public var objTemp:ResourceVO = new ResourceVO(); private function init():void{ dataObj = new ArrayCollection(); var obj1:ResourceVO = new ResourceVO(); obj1.value = foo-0; obj1.key = bar-0; dataObj.addItem(obj1); var obj2:ResourceVO = new ResourceVO(); obj2.value = foo-1; obj2.key = bar-1; dataObj.addItem(obj2); var obj3:ResourceVO = new ResourceVO(); obj3.value = foo-2; obj3.key = bar-2; dataObj.addItem (obj3); dg.dataProvider = dataObj; } private function selectRow():void{ objTemp = ResourceVO(dg.selectedItem); } ]] /mx:Script mx:HBox width=90% height=90% horizontalCenter=0 verticalCenter=0 mx:Panel layout=absolute height=50% width=50% mx:VBox width=443 height=90% horizontalCenter=1 verticalCenter=-1 mx:DataGrid id=dg width=100% height=100% change=selectRow(); editable=true mx:columns mx:DataGridColumn headerText=Key dataField=key/ mx:DataGridColumn headerText=Value dataField=value/ /mx:columns /mx:DataGrid /mx:VBox /mx:Panel mx:Panel width=50% height=50%
[flexcoders] Using Eclipse to create a central library
I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? Hank __._,_.___ -- 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: working with XML data
Hi! Tnx for all the help...it was very usefull. But still I'm getting some strange errors when running the application for the first time. When I for the first time try to submit blank text fields I get this error: Error #1088: The markup in the document following the root element must be well-formed. As soon as I type something in the text fields the application starts to work. Even if I again supply blank fields. What could be the problem? Below is my XML file and MXML: XML file izhod spremenljivke spremlogin/sprem vrednost1/vrednost /spremenljivke /izhod If 1 then user can proceed otherwise wrong password/username. MXML ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; public function onResult(oEvent:ResultEvent):void { var xmlResult:XML = new XML(oEvent.result); tekst.text = xmlResult.spremenljivke[0].vrednost; } ]] /mx:Script mx:HTTPService resultFormat=e4x result=onResult(event) url=http://localhost/~iztok/rokus_v2.com/vstop.php; method=POST showBusyCursor=true id=reqLogin mx:request uporabnik{txtUporabnik.text}/uporabnik geslo{txtGeslo.text}/geslo /mx:request /mx:HTTPService mx:Canvas x=0 y=0 width=400 height=300 mx:VBox x=0 y=0 width=400 height=300 horizontalAlign=center verticalAlign=top verticalGap=0 mx:Text text=[EMAIL PROTECTED] fontSize=30 width=283 textAlign=center height=57/ mx:Form height=131 mx:FormItem label=Uporabnik: required=true mx:TextInput id=txtUporabnik/ /mx:FormItem mx:FormItem label=Geslo: required=true mx:TextInput displayAsPassword=true id=txtGeslo/ /mx:FormItem mx:FormItem mx:Button label=Prijava click=reqLogin.send();/ /mx:FormItem /mx:Form mx:TextArea id=tekst/ /mx:VBox /mx:Canvas /mx:Canvas --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: If you are currently binding to the dataGrid's dataProvider property, you could intead use a result handler function. mx:HTTPService result=onResult(event)... resultFormat=e4x / import mx.rpc.events.ResultEvent; Private function onResult(oEvent:ResultEvent):void { var xmlResult:XML = XML(oEvent.result); //traverse the xml as needed to perform desired logic myDataGrid.dataProvider = xmlResult; //same reference as you use in the binding expression } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, June 22, 2006 10:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: working with XML data On Thursday 22 June 2006 12:29, arnold_charming wrote: 1. How to transfer XML I got from HTTPService to AS so I can check if he/she is allowed to enter the application? If you are displaying it in a datagrid, it must all ready be in AS. You want to read up on E4X etc. from the manual. 2. What is the best way/method to redirect a user to a different screen? Is it wise just to turn components from 'visible=true' to 'visible=false' or should I destroy the component with removeChild()? Look at changing the selectedIndex of a viewstack. stupid We're all new to it :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more
[flexcoders] Re: Using Eclipse to create a central library
Ignore this one. Figured it out.HankOn 6/24/06, hank williams [EMAIL PROTECTED] wrote: I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? Hank __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: Using Eclipse to create a central library
I would be interested in the answer... On 6/24/06, hank williams [EMAIL PROTECTED] wrote: Ignore this one. Figured it out. Hank On 6/24/06, hank williams [EMAIL PROTECTED] wrote: I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? Hank -- Hilary-- __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: Using Eclipse to create a central library
Here's how you include other directories as part of source code in a project in eclipse1. right click on the folder that is your flex project.2. select properties down at the bottom of the menu3. in the panel on the left side, select Flex Build Path 4. in the source path tab, press on the button add folder5. Navigate to the folder *containing the folder or folders that you want to include. For my structure I had a directory called src that contained folders like com. So in my case I selected src. This is necessary so that you can find fully qualified package paths. RegardsHankOn 6/24/06, Hilary Bridel [EMAIL PROTECTED] wrote: I would be interested in the answer... On 6/24/06, hank williams [EMAIL PROTECTED] wrote: Ignore this one. Figured it out. Hank On 6/24/06, hank williams [EMAIL PROTECTED] wrote: I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? Hank -- Hilary-- __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: Using Eclipse to create a central library
Thanks for that Hank, That should help anyone looking for a solution to this issue. Hilary -- On 6/24/06, hank williams [EMAIL PROTECTED] wrote: Here's how you include other directories as part of source code in a project in eclipse1. right click on the folder that is your flex project.2. select properties down at the bottom of the menu 3. in the panel on the left side, select Flex Build Path 4. in the source path tab, press on the button add folder5. Navigate to the folder *containing the folder or folders that you want to include. For my structure I had a directory called src that contained folders like com. So in my case I selected src. This is necessary so that you can find fully qualified package paths. RegardsHank On 6/24/06, Hilary Bridel [EMAIL PROTECTED] wrote: I would be interested in the answer... On 6/24/06, hank williams [EMAIL PROTECTED] wrote: Ignore this one. Figured it out. Hank On 6/24/06, hank williams [EMAIL PROTECTED] wrote: I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? Hank -- Hilary-- -- Hilary-- __._,_.___ -- 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] Javadoc like comments for AS3
I am wondering what the MM strategy is for commenting AS3. I would really love to be able to add javadoc comments, and compile some kind of code documentation. It seems as though the editor, on some level, understands the idea of javadoc because if on a blank line you type /* the stuff below turns green. It knows its a comment. But if you type /** (the signal for this is javadoc) it turns blue. But it doesnt auto create the parameter signatures and I dont see any other reference to documentation in flex. Of course it is very possible I have missed something, so I am just curious if anyone else has any insight. Hank __._,_.___ -- 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. __,_._,___
RE: [flexcoders] how do you dispatch event from a custom class?
Hi Jon, Event bubbling exists specifically for display objects. It is generally used for events like mouse clicks and keyboard presses. A limited subset of Flex events bubble so that they can be intercepted all the way up the display list. There is some good documentation on this at the link below: http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/ html/wwhelp.htm?context=LiveDocs_Partsfile=0475.html If you really need bubbling, then you will need to put your object on the display list. Alternatively you can use a solution that doesn't require bubbling. The simplest solution would be to create your listener directly on your WebServiceCheck object. I've pasted a demo app that may be helpful. Create a new project, and place both files in the project's root directory. The project shows event capturing from instances of a custom class. CustomObject1 is not placed on the display list; customObject2 is placed on the display list in actionscript; and customObject3 is placed on the display list in MXML. When you run it you will see that bubbling up to the Application only happens for customObjects 2 and 3. Since customObject1 is not on the display list, the only way to receive events dispatched from it is to create an event listener directly on the object. Note that I have used UIComponent as the base class for my custom class rather than Sprite because it is more compatible with the other flex classes. If you are creating objects that dispatch events but do not use bubbling, then you do not need to descend from UIComponent. For example, Validator descends directly from EventDispatcher. Paul = Main.mxml == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:comp=* layout=horizontal creationComplete=initialise() mx:Script ![CDATA[ import mx.controls.List; public var customObject1 : CustomClass = new CustomClass(); public var customObject2 : CustomClass = new CustomClass(); public function initialise() : void { this.addEventListener( CustomClass.MY_CUSTOM_EVENT, appListener ); vBox1.addEventListener( CustomClass.MY_CUSTOM_EVENT, vBoxListener1 ); vBox2.addEventListener( CustomClass.MY_CUSTOM_EVENT, vBoxListener2 ); vBox3.addEventListener( CustomClass.MY_CUSTOM_EVENT, vBoxListener3 ); customObject1.addEventListener( CustomClass.MY_CUSTOM_EVENT, objListener1 ); customObject2.addEventListener( CustomClass.MY_CUSTOM_EVENT, objListener2 ); customObject3.addEventListener( CustomClass.MY_CUSTOM_EVENT, objListener3 ); // Make customObject2 a child of vBox2 - this puts it into the display list vBox2.addChild( customObject2 ); } public function appListener( event : Event ) : void { if ( event.target == customObject1 ) { text1.text += Application's event listener fired\n } else if ( event.target == customObject2 ) { text2.text += Application's event listener fired\n } else if ( event.target == customObject3 ) { text3.text += Application's event listener fired\n } } public function vBoxListener1( event : Event ) : void { text1.text += VBox1's event listener fired\n } public function vBoxListener2( event : Event ) : void { text2.text += VBox2's event listener fired\n } public function vBoxListener3( event : Event ) : void { text3.text += VBox3's event listener fired\n } public function objListener1( event : Event ) : void { text1.text += Object1's event listener fired\n } public function objListener2( event : Event ) : void { text2.text += Object2's event listener fired\n } public function objListener3( event : Event ) : void { text3.text += Object3's event listener fired\n } ]] /mx:Script mx:VBox id=vBox1 mx:Label text=Object1 is not on DisplayList/ mx:Button label=Generate Event click=customObject1.generateEvent()/ mx:TextArea height=500 width=300 id=text1/ /mx:VBox mx:VBox id=vBox2 mx:Label text=Object2 was added to DisplayList/ mx:Button label=Generate Event click=customObject2.generateEvent()/ mx:TextArea height=500 width=300 id=text2/ /mx:VBox mx:VBox id=vBox3 !-- Custom Class instantiated as a child of vBox3 in MXML -- comp:CustomClass id=customObject3
Re: [flexcoders] Javadoc like comments for AS3
no, you are not missing anything, Adobe says they will release their in-house AS2DOC-alike documenting tools later, hopefully they mean it :-) I've been searching for a high-quality documening tools for AS3 for sometime too. Jeremy.On 6/24/06, hank williams [EMAIL PROTECTED] wrote: I am wondering what the MM strategy is for commenting AS3. I would really love to be able to add javadoc comments, and compile some kind of code documentation. It seems as though the editor, on some level, understands the idea of javadoc because if on a blank line you type /* the stuff below turns green. It knows its a comment. But if you type /** (the signal for this is javadoc) it turns blue. But it doesnt auto create the parameter signatures and I dont see any other reference to documentation in flex. Of course it is very possible I have missed something, so I am just curious if anyone else has any insight. Hank __._,_.___ -- 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: Javadoc like comments for AS3
While there is no doc generating tool available at the moment, you can auto insert a template comment of sorts. Source Add ASDoc Comment. Ctrl+Shift+D --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote: I am wondering what the MM strategy is for commenting AS3. I would really love to be able to add javadoc comments, and compile some kind of code documentation. It seems as though the editor, on some level, understands the idea of javadoc because if on a blank line you type /* the stuff below turns green. It knows its a comment. But if you type /** (the signal for this is javadoc) it turns blue. But it doesnt auto create the parameter signatures and I dont see any other reference to documentation in flex. Of course it is very possible I have missed something, so I am just curious if anyone else has any insight. Hank Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Breeze, SyncSWF and Flash 9?
This is mostly a question for the Adobe folks who monitor this list but happy to hear from anyone who knows the answer. Is there a timetable of any kind for updating the Sync SWF product to permit the inclusion of Flash 9-based SWFs in Breeze? My understanding is that the current iteration only permits Flash 8 and below. Not being able to embed Flex 2-based SWFs in Breeze seems like it could be a detriment to both products. Thanks, -Mark Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Javadoc like comments for AS3
I always just doc-o-matic :) Works like charm supports all kind of languages :) Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: mxmlc - context root - any root
Hey Is there no way to do this? - Saba --- In flexcoders@yahoogroups.com, ssundke [EMAIL PROTECTED] wrote: Hi, I have a framework product for which im using flex. I would like to distribute as a compiled swf. In my mxml I need to make an HTTP Service call to the same server on which this swf is used i.e the context root can vary on deployment but I always want to reach the same url given a context root /context-root/RouterServlet. Now my problem is how do I give the url in the mxml and or mxmlc so that my swf can be placed in any context root but it always need to reach the url /context-root/RouterServlet Im using Flex 1.5 right now and intend to go live with this since Flex 2.0 is not out yet. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] accessing from custom component
Hi! I have a main.mxml file. This file holds inself a viewstack. One viewstack is filled with a custom component (login.mxml). The question now is, how can I access a text field (mx:Text) which is in main.mxml from login.mxml. Tnx. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Can Flex 1.5 coexist on the same machine with 2.0?
Depends on the size of the app... although I migrated my apps through 1.5 to B1, B2, and now B3 I found it helpful to just load them in and check out the Errors...Brendan On 6/24/06, Ralf Bokelberg [EMAIL PROTECTED] wrote: Hi Roscoe, though they surely can coexist, it doesn't make sense to use 2 to find errors in 1.5. There are too much differences i think. Cheers,Ralf On 6/24/06, Carson Hager [EMAIL PROTECTED] wrote: They can absolutely coexist on the same machine. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roscoe P ColtraneSent: Friday, June 23, 2006 6:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Can Flex 1.5 coexist on the same machine with 2.0? I am positive that this question has been answered before, but aftersearching the Adobe site, the web, and this site, I still can't findthe answer : (I would like to install the beta 3 and see how many compile errors Iget out of my 1.5 version, which I will still need to support until2.0 goes production status.Thanks,Roscoe __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Breeze, SyncSWF and Flash 9?
This will probably be updated in the next version of Breeze.On 6/24/06, mark_g_wales [EMAIL PROTECTED] wrote: This is mostly a question for the Adobe folks who monitor this list but happy to hear from anyone who knows the answer. Is there a timetable of any kind for updating the Sync SWF product to permit the inclusion of Flash 9-based SWFs in Breeze? My understanding is that the current iteration only permits Flash 8 and below. Not being able to embed Flex 2-based SWFs in Breeze seems like it could be a detriment to both products. Thanks, -Mark -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az __._,_.___ -- 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. __,_._,___
RE: [Junk E-Mail - LOW] [flexcoders] accessing from custom component
According to Macro... uh... Adobe's docs, you should not have components access the text field. What you do is pass the value in to the component... mx:Text id="myText"text="foo"/ comp:someComponent myData="{myText.text}"/ Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arnold_charmingSent: Saturday, June 24, 2006 12:16 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] accessing from custom component Hi!I have a main.mxml file. This file holds inself a viewstack. Oneviewstack is filled with a custom component (login.mxml). The questionnow is, how can I access a text field (mx:Text) which is inmain.mxml from login.mxml. Tnx. --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 6/23/2006 __._,_.___ -- 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. __,_._,___ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 6/23/2006
[flexcoders] Shouldn't we use Flex to built website
Read somewhere that flex should be used for web application and shouldn't be used for building a website I am not agree with this. How many agreee? Jignesh Dodiya... Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: mxmlc - context root - any root
You can use flashVars in your html object/embed tag. By using Application.application you can access this values. If you set up a var named contextRoot in your flashVars then you can concat your url's.BestX. On 6/24/06, ssundke [EMAIL PROTECTED] wrote: Hey Is there no way to do this?- Saba--- In flexcoders@yahoogroups.com, ssundke [EMAIL PROTECTED] wrote: Hi, I have a framework product for which im using flex. I would like to distribute as a compiled swf. In my mxml I need to make an HTTP Service call to the same server on which this swf is used i.e the context root can vary on deployment but I always want to reach the same url given a context root /context-root/RouterServlet. Now my problem is how do I give the url in the mxml and or mxmlcso that my swf can be placed in any context root but it always need to reach the url /context-root/RouterServlet Im using Flex 1.5 right now and intend to go live with this sinceFlex 2.0 is not out yet. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email.http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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. __,_._,___
RE: [flexcoders] Enjoyed this article on Flex 2 (Cynergy Systems)
Writing it right now. :) We've been pretty slammed the last few monthsand haven't had time to continue with the series but we're very focused now on getting the rest of it written and published. Glad you enjoyed it. Thanks for the feedback. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of judahSent: Saturday, June 24, 2006 4:06 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Enjoyed this article on Flex 2 (Cynergy Systems) I really enjoyed this article and where it was going. http://www.adobe.com/devnet/flex/articles/frontback_pt1.htmlWhat is the status on part two? Or did I miss the link?Judah-- "Always bear in mind that your own resolution to succeed is more important than any one thing." "You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Shouldn't we use Flex to built website
I heard that too. I'd like to know why for one and two, what happens if we are caught using it for that anyway? Judah PS just between you and me (and the 4000 other members on this list) i'm probably going to use it for that anyway. so...shhh... (holds finger over mouth) Jignesh M. Dodiya wrote: Read somewhere that flex should be used for web application and shouldn't be used for building a website I am not agree with this. How many agreee? Jignesh Dodiya... -- 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 -- Always bear in mind that your own resolution to succeed is more important than any one thing. You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. - Abraham Lincoln Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/
RE: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question
Ok... I did more research, and have found that in Flex 2, you DO NOT have to do any special conversions on the ColdFusion side. The Flex 2 Gateway automatically changes the query object to an ArrayCollection. I fixed up my application, and the app source code is below. My CFC just returns query objects. http://flex.work.iotashan.com/hlstatsx/hlstatsx.html Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shannon HicksSent: Thursday, June 22, 2006 4:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Ah-hah! I was trying to return a query. The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back. Ineversuspected that Adobe would take away behaviors from flash remoting flash CFFORM's... I didn't notice that I had to transform a query into an array of structures before sending it back to flex. Seems like a huge oversight to me, Adobe now I can't re-use my already built CFC's from existing applications... I have to tweak them all. Am I missing something, or is that the only way to return a query? Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim HoffSent: Thursday, June 22, 2006 2:44 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Let's back-out a little. What does your cfc look like? What are you trying to return?-TH--- In [EMAIL PROTECTED]ups.com, "Shannon Hicks" [EMAIL PROTECTED] wrote: Did that, and when I view the debugger, I find the arraycollection, and it contains what the datagrid is *literally* showing... * serverLoadDataArray = Array * [0] = mx.collections.ArrayCollection * filterFunction = null * length = 100 * list = mx.collections.ArrayList * length = 100 * source = Array * uid = D414D735-DA38-AC66-6D7A-FD208817F35E * sort = null * source = Array * length = 1 On the flip side... that is also exactly what I see under event.result in the debugger. Shan _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Tim Hoff Sent: Thursday, June 22, 2006 12:11 PM To: [EMAIL PROTECTED]ups.com Subject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding questionHi Shannon, Set a breakpoint right after you cast the result to the array collection and inspect the array contents in debug mode. Check to see if the array looks correct and what the dataField names are exactly. If everything looks good, use the same dataField names for the coulmns. It does look like you have data. -TH --- In HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@..., "Shannon Hicks" shan@ wrote: The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back.Now I've got the data back, and it won't display (I was getting an empty datagrid). So, I removed my user-defined columns, to see what was coming back, and the result is:FilterFunction, length, list, sort, source HYPERLINK "HYPERLINK "http://work.iotashan.com/hlstatsx/hlstatsx.html"http://work.-iotashan.-com/ hlstatsx/-hlstatsx.-html"HYPERLINK "http://work.iotash"http://work.-iotash an.com/hl statsx/hlstatsx.-html Those are not the columns of the query... I'm guessing they're properties of the ArrayCollection, or maybe even the datagrid itself.Shan _ From: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... [mailto:HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@...] On Behalf Of Tracy Spratt Sent: Thursday, June 22, 2006 11:39 AM To: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question "When I remove my columns from the datagrid, the datagrid shows these columns from the dataprovider:-" I do not understand this. Did I miss something in a previous post? Can you re-phrase the problem?Tracy _ From: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... [mailto:HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@...] On Behalf Of Shannon Hicks Sent: Thursday, June 22, 2006 12:15 PM To: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Noob binding questionOh... URL to the problem: HYPERLINK "HYPERLINK "http://work.iotashan.com/hlstatsx/hlstatsx.html"http://work.-iotashan.-com/ hlstatsx/-hlstatsx.-html"HYPERLINK "http://work.iotash"http://work.-iotash an.com/hl statsx/hlstatsx.-html ShanHYPERLINK "HYPERLINK "http://work.iotashan.com/"http://work.-iotashan.-com/" _ From: HYPERLINK
[Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question
That's cool - didn't know that. I'm using web services for now. The return result is an object. It can be accessed directly. But, I've found that by casting the result to an Array, which is used by multiple ArrayCollections, you can have multiple bound views, each with different filter functions, that don't affect the underlying data. Just my personal use. -TH --- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote: Ok... I did more research, and have found that in Flex 2, you DO NOT have to do any special conversions on the ColdFusion side. The Flex 2 Gateway automatically changes the query object to an ArrayCollection. I fixed up my application, and the app source code is below. My CFC just returns query objects. HYPERLINK http://flex.work.iotashan.com/hlstatsx/hlstatsx.htmlhttp://flex.w ork.iotas han.com/hlstatsx/hlstatsx.html Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks Sent: Thursday, June 22, 2006 4:20 PM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Ah-hah! I was trying to return a query. The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back. I never suspected that Adobe would take away behaviors from flash remoting flash CFFORM's... I didn't notice that I had to transform a query into an array of structures before sending it back to flex. Seems like a huge oversight to me, Adobe now I can't re-use my already built CFC's from existing applications... I have to tweak them all. Am I missing something, or is that the only way to return a query? Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Thursday, June 22, 2006 2:44 PM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Let's back-out a little. What does your cfc look like? What are you trying to return? -TH --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Shannon Hicks shan@ wrote: Did that, and when I view the debugger, I find the arraycollection, and it contains what the datagrid is *literally* showing... * serverLoadDataArray = Array * [0] = mx.collections.-ArrayCollection * filterFunction = null * length = 100 * list = mx.collections.-ArrayList * length = 100 * source = Array * uid = D414D735-DA38--AC66-6D7A--FD208817F35E * sort = null * source = Array * length = 1 On the flip side... that is also exactly what I see under event.result in the debugger. Shan _ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Thursday, June 22, 2006 12:11 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Hi Shannon, Set a breakpoint right after you cast the result to the array collection and inspect the array contents in debug mode. Check to see if the array looks correct and what the dataField names are exactly. If everything looks good, use the same dataField names for the coulmns. It does look like you have data. -TH --- In HYPERLINK mailto:flexcoders%-40yahoogroups.-comflexcoders@, Shannon Hicks shan@ wrote: The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back. Now I've got the data back, and it won't display (I was getting an empty datagrid). So, I removed my user-defined columns, to see what was coming back, and the result is: FilterFunction, length, list, sort, source HYPERLINK HYPERLINK HYPERLINK http://work.iotashan.com/hlstatsx/hlstatsx.htmlhttp://work.- iotashan.-com/ hlstatsx/-hlstatsx.-htmlHYPERLINK http://work.-http://work.-- iotashan.-com/ hlstatsx/-hlstatsx.-- htmlHYPERLINK HYPERLINK http://work.iotashhttp://work.- iotashHYPERLINK http://work.-iotashhttp://work.--iotash an.com/hl statsx/hlstatsx.--html Those are not the columns of the query... I'm guessing they're properties of the ArrayCollection, or maybe even the datagrid itself. Shan _ From: HYPERLINK mailto:flexcoders%-40yahoogroups.-comflexcoders@ [mailto:HYPERLINK mailto:flexcoders%-40yahoogroups.-com[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, June 22, 2006 11:39 AM To: HYPERLINK
RE: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question
Actually (I may be wrong)... You can have one ArrayCollection, and several ICollectionView's with different filter functions. If I'm right, that should be faster use less memory on the client. Anyone using ICollectionView's? Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim HoffSent: Saturday, June 24, 2006 8:14 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question That's cool - didn't know that. I'm using web services for now. The return result is an object. It can be accessed directly. But, I've found that by casting the result to an Array, which is used by multiple ArrayCollections, you can have multiple bound views, each with different filter functions, that don't affect the underlying data. Just my personal use.-TH--- In [EMAIL PROTECTED]ups.com, "Shannon Hicks" [EMAIL PROTECTED] wrote: Ok... I did more research, and have found that in Flex 2, you DO NOT have to do any special conversions on the ColdFusion side. The Flex 2 Gateway automatically changes the query object to an ArrayCollection. I fixed up my application, and the app source code is below. My CFC just returns query objects. HYPERLINK "http://flex.work.iotashan.com/hlstatsx/hlstatsx.html"http://flex.work.iotas han.com/hlstatsx/hlstatsx.html Shan _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Shannon Hicks Sent: Thursday, June 22, 2006 4:20 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail -LOW] [flexcoders] Re: Noob binding question Ah-hah! I was trying to return a query. The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back. I never suspected that Adobe would take away behaviors from flash remoting flash CFFORM's... I didn't notice that I had to transform a query into an array of structures before sending it back to flex. Seems like a huge oversight to me, Adobe now I can't re-use my already built CFC's from existing applications... I have to tweak them all. Am I missing something, or is that the only way to return a query? Shan _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Tim Hoff Sent: Thursday, June 22, 2006 2:44 PM To: [EMAIL PROTECTED]ups.com Subject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding questionLet's back-out a little. What does your cfc look like? What are you trying to return? -TH --- In HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@..., "Shannon Hicks" shan@ wrote: Did that, and when I view the debugger, I find the arraycollection, and it contains what the datagrid is *literally* showing... * serverLoadDataArray = Array* [0] = mx.collections.-ArrayCollection* filterFunction = null * length = 100 * list = mx.collections.-ArrayList* length = 100 * source = Array * uid = D414D735-DA38--AC66-6D7A--FD208817F35E* sort = null * source = Array* length = 1On the flip side... that is also exactly what I see under event.result in the debugger. Shan _ From: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... [mailto:HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@...] On Behalf Of Tim Hoff Sent: Thursday, June 22, 2006 12:11 PM To: HYPERLINK "mailto:flexcoders%40yahoogroups.com"flexcoders@... Subject: [Junk E-Mail - LOW] [Junk E-Mail - LOW] [flexcoders] Re: Noob binding question Hi Shannon,Set a breakpoint right after you cast the result to the array collection and inspect the array contents in debug mode. Check to see if the array looks correct and what the dataField names are exactly. If everything looks good, use the same dataField names for the coulmns. It does look like you have data.-TH --- In HYPERLINK "mailto:flexcoders%-40yahoogroups.-com"flexcoders@, "Shannon Hicks" shan@ wrote: The problem is I'm trying to get data from a query returned by a CFC into a datagrid. Before, I was having problems getting data back. Now I've got the data back, and it won't display (I was getting an empty datagrid). So, I removed my user-defined columns, to see what was coming back, and the result is: FilterFunction, length, list, sort, source HYPERLINK "HYPERLINK "HYPERLINK "http://work.iotashan.com/hlstatsx/hlstatsx.html"http://work.-iotashan.-com/ hlstatsx/-hlstatsx.-html"HYPERLINK "http://work.-"http://work.-- iotashan.-com/ hlstatsx/-hlstatsx.-- html"HYPERLINK "HYPERLINK "http://work.iotash"http://work.-iotash"HYPERLINK "http://work.-iotash"http://work.--iotash an.com/hl statsx/hlstatsx.--html Those are not the
Re: [flexcoders] accessing from custom component
arnold_charming wrote: Hi! I have a main.mxml file. This file holds inself a viewstack. One viewstack is filled with a custom component (login.mxml). The question now is, how can I access a text field (mx:Text) which is in main.mxml from login.mxml. Tnx. You can use something like this.ParentApplication.myTextFieldId. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Define property options in custom class
I'm writing an AS3 class extending Canvas and have defined a property of currentTemplate but am having trouble figuring out how to define the variable options for the code completion. Like when you add the borderStyle property it gives you the dropdown of inset, none, outset and solid as options. How can I do that for my class property? __._,_.___ -- 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] Site of Flex components?
Who knows a good site for sharing Flex Components? (Free or Share components) I think that is important to this new comunity. __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Shouldn't we use Flex to built website
You're saying you don't agree with the statement that Flex should be reserved for applications? I would say that Flex should most definitely NOT be used for building a website. Just because it could, does not mean it should. IMO, those who decide to use Flex to do website designs rank right with those who did all that other crap in the early days of flash with bouncing balls and forced site intros and such. And you ALL know what I'm talking about. __._,_.___ -- 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] Define property options in custom class
I'm writing an AS3 class extending Canvas and have defined a property of currentTemplate but am having trouble figuring out how to define the variable options for the code completion. Like when you add the borderStyle property it gives you the dropdown of inset, none, outset and solid as options. How can I do that for my class property? Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Shouldn't we use Flex to built website
You're saying you don't agree with the statement that Flex should be reserved for applications? I would say that Flex should most definitely NOT be used for building a website. Just because it could, does not mean it should. IMO, those who decide to use Flex to do website designs rank right with those who did all that other crap in the early days of flash with bouncing balls and forced site intros and such. And you ALL know what I'm talking about. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Shouldn't we use Flex to built website
judah wrote: I heard that too. I'd like to know why for one and two, what happens if we are caught using it for that anyway? Judah PS just between you and me (and the 4000 other members on this list) i'm probably going to use it for that anyway. so...shhh... (holds finger over mouth) Jignesh M. Dodiya wrote: Well given all I have ever heard of the hype on flex.. I am just going to use it for RIA development :) Just how rich is up to the person looking at it Impudent1 LeapFrog Productions Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Define property options in custom class
This ishow you canemunerate the style and have it show in the:[Style(name="currentTemplate", type="String", enumeration="template1,template2,template3", inherit="no")] -TH--- In flexcoders@yahoogroups.com, "Nick Collins" [EMAIL PROTECTED] wrote: I'm writing an AS3 class extending Canvas and have defined a property of currentTemplate but am having trouble figuring out how to define the variable options for the code completion. Like when you add the borderStyle property it gives you the dropdown of inset, none, outset and solid as options. How can I do that for my class property? __._,_.___ -- 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: Site of Flex components?
Hi Luis, I recommend CFlex. It's a great resource site for article, tips, jobs, etc... You could add and get free Flex components from the code library. http://www.cflex.net/ There a lot of other site that also offer this kind of thing. I imagine that once Flex2 gets going, Adobe might have something similar to the Flash exchange for Flex. There you could get free, share and pay components. Until then, keep browsing. -TH--- In flexcoders@yahoogroups.com, "Luís Gustavo Sanabio" [EMAIL PROTECTED] wrote: Who knows a good site for sharing Flex Components? (Free or Share components) I think that is important to this new comunity. __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: Shouldn't we use Flex to built website
thanx all for reply and wish many other give their ideas on thisRegards, Jignesh Dodiya __._,_.___ -- 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. __,_._,___