[flexcoders] int not serializing properly from Java to ActionScript
I'm properly retrieving a result set from my database, but the serialization from Java to ActionScript screws up my id field along the way. -- My Java VO: public class TestVO { private int id; private String data; public TestVO() { } public TestVO(int id, String data) { this.id = id; this.data = data; } public getID() { return id; } public setID(int id) { this.id = id; } public getData() { return data; } public setData(String data) { this.data = data; } } --- My ActionScript VO: public class TestVO { public var id:int; public var data:String; } ActionScript outputting the data (the ArrayCollection of my TestVO's are bound to a list with the following renderer: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.events.FlexEvent; import test.vo.TestVO; private var vo:TestVO; [Bindable] private var str:String; override public function set data(val:Object):void { if(val != null) { super.data = val; vo = val as TestVO; str = vo.id + + vo.data; } dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } ]] /mx:Script mx:Label text={str} / /mx:HBox When displaying the data in a list I see data field properly, but every id displays as 0 in Flex. I've output the records on a JSP page which uses the same DAO, and the records output properly, so I know it's getting out of the database properly. Any suggestions?
Re: [flexcoders] duplicate function definition
Yes, it's because the name is duplicated. Adding an underscore is the usual practice to mark properties. I don't think though, that an internal setter is created automatically. I guess it's just the error message, which is a little bit misleading. Cheers, Ralf. On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED] wrote: Hi Mayur, When you define a member variable, a setter method is internally created. You have to rename your variable vbox and define it as private. private var _vbox:VBox; public function set vbox(val:VBox):void { _vbox = val; } Rgds, Olivier -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *learner *Sent:* Tuesday, February 13, 2007 7:54 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] duplicate function definition Hello all, When I am doing this : public var vbox:VBox; public function set vbox(val):void{ vbox = val } Why am i getting a error like *Duplicate function definition *when i am defining my set vbox function. Regards Mayur - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] duplicate function definition
Thanks I got that :) On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED] wrote: Hi Mayur, When you define a member variable, a setter method is internally created. You have to rename your variable vbox and define it as private. private var _vbox:VBox; public function set vbox(val:VBox):void { _vbox = val; } Rgds, Olivier -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *learner *Sent:* Tuesday, February 13, 2007 7:54 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] duplicate function definition Hello all, When I am doing this : public var vbox:VBox; public function set vbox(val):void{ vbox = val } Why am i getting a error like *Duplicate function definition *when i am defining my set vbox function. Regards Mayur - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] int not serializing properly from Java to ActionScript
On Tuesday 13 Feb 2007, ytseshred wrote: When displaying the data in a list I see data field properly, but every id displays as 0 in Flex. I've output the records on a JSP page Your VO doesn't have [Bindable] set, does that help ? -- Tom Chiverton Helping to preemptively maximize internet bandwidth This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] filter AS syntax question
On Saturday 10 Feb 2007, nasawebguy wrote: return(ProductItem.Product == item.Product OR ProductItem.Product ~= item.ProductRelatedProducts); return (a == b || a == c) || is the or operator, and and. -- Tom Chiverton Helping to heterogeneously target next-generation web-readiness This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Bitmap or BitmapData used for backgroundImage
On Monday 12 Feb 2007, polestar11 wrote: My reason for this is that I store all my styling assets in a swf file have a method that extracts them as MovieClips transforms them into Bitmaps. Why can't you just have PNG's or whatever in the style sheet and have it Just Work ? -- Tom Chiverton Helping to apprehensively embrace eligible products This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Missing SDK Source Code
On Friday 09 Feb 2007, j.conley wrote: Just wondering why the source for I/O related classes are mysteriously missing from the Flex2 SDK when it is present for most other components. At a guess, the same reason most flash.* classes are missing - they are part of the player. -- Tom Chiverton Helping to dramatically create transparent e-tailers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataGrid Header Randar Example......
Hi All, I was looking into DataGrid Example from FB's Help of rendaring a header. I have used TextArea to display ColIndex in each corresponding header, which is working fine. Here, I want to display a combobox with unique value of that purticular coloumn. When I changed TextArea to ComboBox and compiled, It doesnt show anything on the screen. Can anyone tell me, Why? If I use HBox in place of TextArea and add ComboBox inside HBox, Combobox appears on the screen but it doesnt listData as it is a public property of TextArea. How can I get the dataField Name of Randared column? Or Is there any other way to rendar a grid header to populate the combobox with using column value? Please help me to resolve this issue. Thanks, Sanjay sharma = GridHeaderRendar.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* xmlns:gridCode=* mx:Script ![CDATA[ import mx.collections.*; [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ {sNo: 1, Selected: , Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, {sNo: 2, Selected: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, {sNo: 3, Selected: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, {sNo: 4, Selected: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {sNo: 5,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); ]] /mx:Script mx:Panel title=Header Filter width=700 height=400 !-- gridCode:gridCode dataProvider={authorsDataProvider} / -- mx:DataGrid id=grid width=100% height=300 dataProvider={authorsDataProvider} mx:columns mx:DataGridColumn id=sNo headerText=Serial Number dataField=sNo headerRenderer=testCombo / mx:DataGridColumn id=Selected headerText=Selected Item itemRenderer=MyContactEditable headerRenderer=testCombo dataField=Selected / mx:DataGridColumn id=Country headerText=Country name dataField=Country headerRenderer=testCombo / mx:DataGridColumn id=Status width=300 headerText=Status dataField=Status headerRenderer=testCombo sortable=false/ mx:DataGridColumn id=Gold headerText=Gold dataField=Gold / /mx:columns /mx:DataGrid /mx:Panel /mx:Application testCombo.mxml (withTextArea) = ?xml version=1.0? mx:TextArea xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); text=row Name: + String(myListData.dataField) } ]] /mx:Script /mx:TextArea testCombo.mxml (with ComboBox) = ?xml version=1.0? mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); //text=row Name: + String(myListData.dataField) } ]] /mx:Script /mx:ComboBox testCombo.mxml (with HBox) = ?xml version=1.0? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); //text=row Name: + String(myListData.dataField) } ]] /mx:Script mx:ComboBox id=te / /mx:HBox
[flexcoders] Actual location of UIComponent
Hi All, How can I find the coordinates/location of a component at runtime when the component is inside a container like Panel and has been rendered as per parent's layout. Thanks
Re: [flexcoders] Re: Flickr and Flash Player Sandbox
Hello List, Is there anyone who can shed a light on how to deploy a Flex / Flickr mashup without those domain security errors ?
[flexcoders] Re: Using setSyle on dynamic created button not working
Gordon, Thanks for your suggestion. I tried 10 insteead of 10 and it still doesn't work. I'm trying to set other style properties as well and they do not seem to work on a dynamically created item. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: It would be newButton.setStyle(bottom, 10); because the 'bottom' style has type Number. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Friday, February 09, 2007 1:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using setSyle on dynamic created button not working I'm creating a number of objects dynamically in actionscript. then I'm using setStyle to set certain styles before addChild actually adds the object to the container. The setStyle is not working. Below is a small piece of the code. varnewButton:Button = new Button; newButton.label=Update; newButton.setStyle(bottom,10); newButton.addEventListener(MouseEvent.CLICK,clickUpdate); newHBox.addChild(newButton);
[flexcoders] Dynamically created list with AllowMultipleSelection=true-can not load selected
Dynamically created list with AllowMultipleSelection=true - I can not load selectedItems or selectedIndices. When I set either array, they are there at debug time, but do not show as selected in the list. //add list field var newList:List = new List; newList.percentWidth=100; newList.allowMultipleSelection=true; var newListDP:Array = new Array; var newListSelected:Array = new Array; //here's where the dataprovider (newListDP) array and selectedItems //(newListSelected) array. for (var y:int=0; yfieldsAC[x].dropdownvalues.value.length; y++) { newListDP[y] = fieldsAC[x].dropdownvalues.value[y]; for (var z:int=0; zfieldsAC[x].data.id.length; z++) { var indexString:String = fieldsAC[x].dropdownvalues.value[y].id if (indexString.indexOf(fieldsAC[x].data.id[z]) != -1) { newListSelected.push(fieldsAC[x].dropdownvalues.value[y].label); } } } newList.selectedItems = newListSelected; newList.dataProvider = newListDP; BindingUtils.bindProperty(fieldsAC [x],data,newList,selectedIndices); newFormItem.addChild(newList);
[flexcoders] Re: Cross domain confusion
I'm also in the same case: working with FlexBuilder 2. How does the trust file works? Pedro --- In flexcoders@yahoogroups.com, John buono [EMAIL PROTECTED] wrote: That is a great suggestion, but I am using FlexBuilder 2, and can not find that option anyplace, anyone have any ideas? On Saturday 10 Feb 2007, Pedro Pastor wrote: cause for this error, but I supposed that by default an SWF file have granted access to a local data file. You suppose wrong. You'll need to set use-network to false in your compiler options. Or use a trust file. -- Tom Chiverton Helping to simultaneously foster distributed m-commerce
[flexcoders] Populating DataGrid from XML attributes
I have xml that looks like this: user name=john param name=type value=nok/ param name=username value=john/ param name=password value=smith/ param name=p2p value=yes/ param name=host value=dynamic/ param name=port value=6954/ /user and I want to populate a DataGrid so that the first column gets populated by the value attribute of the param with name attribute type and so on. Do I have to transform the xml to another data model format first? Hopefully there is a way use xml attributes as data sources for the columns directly. Thanks in advance for any help or pointers. --- Shidan
[flexcoders] Re: Urgent: Is there an upperlimit to Flex plugin memory ?
Initially the data comes up really fast...only when we try to scroll through it , the screen freezes. The datagrid has almost 25 columns and 20 visible rows at a time --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Is it slow to show the data initially, or slow to scroll through it? How many columns does your DataGrid have? How many visible rows does it have? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of newtoflexworld Sent: Monday, February 12, 2007 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Urgent: Is there an upperlimit to Flex plugin memory ? Around 5000 rows from the DB (25 columns per row) and pagination is not an option for the application...we need to display all the data at a time...this results in slow traversal through the datagrid.. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Gordon Smith gosmith@ wrote: What is a large amount in your case? - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of newtoflexworld Sent: Monday, February 12, 2007 2:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Urgent: Is there an upperlimit to Flex plugin memory ? Hi All, I am trying to display a large amount of data in a datagrid and the performance takes a dip as the number of data increases. I want to know if there is an upper limit to the memory that can be used by the Flex plugin? Also if such a limit exists , is it possible to increase that limit so that my application can handle more data volume. All the data is being displayed is directly linked to the dataprovider of the datagrid and is not being stored locally anywhere else in the application. Please help Thanks in advance Sweta
[flexcoders] Re: OSS, framework for functional testing. Error including automation_agent.swc
Thank you Matt, thats what I was forgetting. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: There should be an automation_agent_rb.swc somewhere that needs to go in your locale folder I think. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pmotzfeldt Sent: Monday, February 12, 2007 6:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] OSS, framework for functional testing. Error including automation_agent.swc Hi, I am new to this group. Hope I am not posting wrong. I am on my last year at The Norwegian University of Science and Technology (NTNU) and in my last assignment I will try to develop a open source framework for functional testing of Flex application. I see from other messages that there are others out there doing the same :-) I have just started, and I am having trouble with including the library automation_agent.swc. I get the error message: Unable to resolve the class for the ResourceBundle: automation_agent I have installed the Automation Package with the FDS2 serial and entered the following lines in the flex-config.xml: (the files are infact in the libs folder) include-libraries library/libs/automation.swc/library library/libs/automation_agent.swc/library library/libs/qtp.swc/library /include-libraries Does anybody know what I am doing wrong? Is it something wrong with the license... Thank you for any answer!
[flexcoders] Re: int not serializing properly from Java to ActionScript
Try changing getID to getId and setID to setId. --- In flexcoders@yahoogroups.com, ytseshred [EMAIL PROTECTED] wrote: I'm properly retrieving a result set from my database, but the serialization from Java to ActionScript screws up my id field along the way. -- My Java VO: public class TestVO { private int id; private String data; public TestVO() { } public TestVO(int id, String data) { this.id = id; this.data = data; } public getID() { return id; } public setID(int id) { this.id = id; } public getData() { return data; } public setData(String data) { this.data = data; } } --- My ActionScript VO: public class TestVO { public var id:int; public var data:String; } ActionScript outputting the data (the ArrayCollection of my TestVO's are bound to a list with the following renderer: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.events.FlexEvent; import test.vo.TestVO; private var vo:TestVO; [Bindable] private var str:String; override public function set data(val:Object):void { if(val != null) { super.data = val; vo = val as TestVO; str = vo.id + + vo.data; } dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } ]] /mx:Script mx:Label text={str} / /mx:HBox When displaying the data in a list I see data field properly, but every id displays as 0 in Flex. I've output the records on a JSP page which uses the same DAO, and the records output properly, so I know it's getting out of the database properly. Any suggestions?
[flexcoders] No core library?
Hi there, does someone know if there is still a core library in AS3 as it was in AS2? A library where all basic classes (Number, String but also Sprite) are defined as intrinsic or native classes? In the Flex builder is the Global.as for the primitives, but without Sprite or similar. I need these definitions for the tool I wrote to get Information about these clases (inheritance, methods etc.). I could write such definitions by hand but that would be error prone. Are there such clases or is there a different way for AS3? Thanks for your help, Arne
[flexcoders] On E4X Programming
From a previous discussion, it seems like people coming from XPath language (like me) meed a kind or re-training on the E4X way of dealing with XML traversing and query. Does anybody know a source of documentation for E4X with examples and extended information about have E4X interpreter works. I've been reading the official E4X reference documentation, but it seems that's not enough (at least for a XPath biased people like me). Regards. Pedro
RE: [flexcoders] On E4X Programming
There's a lot in the Flex help docs... or do you mean outside of the Flex docs? Try this: http://life.neophi.com/danielr/2006/04/flex_2_beta_2_actionscript_3_a.ht ml Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Pastor Sent: Tuesday, February 13, 2007 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] On E4X Programming From a previous discussion, it seems like people coming from XPath language (like me) meed a kind or re-training on the E4X way of dealing with XML traversing and query. Does anybody know a source of documentation for E4X with examples and extended information about have E4X interpreter works. I've been reading the official E4X reference documentation, but it seems that's not enough (at least for a XPath biased people like me). Regards. Pedro
RE: [flexcoders] Re: Cross domain confusion
Not all compiler options have matching GUI controls. In that case: 1) Select Project Properties. 2) Select Flex Compiler. 3) Add -use-network=false in the Additional Compiler Arguments field. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John buono Sent: Monday, February 12, 2007 2:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cross domain confusion That is a great suggestion, but I am using FlexBuilder 2, and can not find that option anyplace, anyone have any ideas? On Saturday 10 Feb 2007, Pedro Pastor wrote: cause for this error, but I supposed that by default an SWF file have granted access to a local data file. You suppose wrong. You'll need to set use-network to false in your compiler options. Or use a trust file. -- Tom Chiverton Helping to simultaneously foster distributed m-commerce
[flexcoders] Re: Using data in an Array Collection
Brilliant thanks for all your help. Can you do one more thing and explain exactly what the line below is doing please? checkData(item:Object,column:Object):String Is it converting the parsed XML data in my ArrayCollection to a String before searching the converted string for the number 2? Thanks once again. --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: oops, at the bottom of the function put return retString; On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status DataGridColumn and I get an error in Flex stating: 1170: Function does not return a value. Is the checkData function checking both my customer and status columns for '2' or do I have to (as I expect) enter in the column name I want to check in the code you provided? I appreciate your help and patience! --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Clint Tredway grumpee@ wrote: use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String{ var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 jryan@ wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Controlling embedded SWF files, within Flex Application
Hi Mike, This might help a bit: http://www.bridel.org/?p=9 Hilary -- On 2/13/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, I am presently using SWFLoader, to bring in my Vector Maps, but now the time has come where these compiled SWF Files, will be multi-framed, as well as containing Properties and Methods, visible layers (which can be toggled), etc. - for added functionality. How can I access properties execute functions that are embedded in the SWF Files, from within Flex? I am not trying to remote control these SWF's in another browser window, what I need to do is talk to them directly from within the same application. I've seen the LocalConnection topic come up a few times, as that's the method 1.5 version of Yahoo Maps uses, to allow the API to work from inside of Flex (this will of course, go away when the 2.0 version of the Yahoo Maps API comes out). Must I use the LocalConnection method, in order to simply speak to my Embedded SWF Files? Or is there a more direct approach? Just for a quick example, I was hoping to use something to this effect: mySWFLoader.content.gotoAndPlay(10); Well, you get the idea... Any suggestions, would be greatly appreciated. Mike -- Hilary --
Re: [flexcoders] Re: Using data in an Array Collection
the item param is row data, what is in that row of the array collection and the column is that column in the grid. basically what happens in this particular labelFunction is that it looks at a specific field in the array collection and determine its value, then it sets a string to be returned and displayed in that column for that row. You could return a number, boolean etc just by changing the return type of the function. make sense? On 2/13/07, jryano001 [EMAIL PROTECTED] wrote: Brilliant thanks for all your help. Can you do one more thing and explain exactly what the line below is doing please? checkData(item:Object,column:Object):String Is it converting the parsed XML data in my ArrayCollection to a String before searching the converted string for the number 2? Thanks once again. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: oops, at the bottom of the function put return retString; On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status DataGridColumn and I get an error in Flex stating: 1170: Function does not return a value. Is the checkData function checking both my customer and status columns for '2' or do I have to (as I expect) enter in the column name I want to check in the code you provided? I appreciate your help and patience! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Clint Tredway grumpee@ wrote: use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String{ var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 jryan@ wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] No core library?
Hi Arne, it looks like the flex_sdk_2\frameworks\libs directory contains a few swc components with the data you need. Cheers Ralf. On 2/13/07, arne.deutsch [EMAIL PROTECTED] wrote: Hi there, does someone know if there is still a core library in AS3 as it was in AS2? A library where all basic classes (Number, String but also Sprite) are defined as intrinsic or native classes? In the Flex builder is the Global.as for the primitives, but without Sprite or similar. I need these definitions for the tool I wrote to get Information about these clases (inheritance, methods etc.). I could write such definitions by hand but that would be error prone. Are there such clases or is there a different way for AS3? Thanks for your help, Arne -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Controlling embedded SWF files, within Flex Application
maybe could help you in some uses. http://www.igorcosta.org/?p=18 Best. On 2/13/07, Hilary Bridel [EMAIL PROTECTED] wrote: Hi Mike, This might help a bit: http://www.bridel.org/?p=9 Hilary -- On 2/13/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, I am presently using SWFLoader, to bring in my Vector Maps, but now the time has come where these compiled SWF Files, will be multi-framed, as well as containing Properties and Methods, visible layers (which can be toggled), etc. - for added functionality. How can I access properties execute functions that are embedded in the SWF Files, from within Flex? I am not trying to remote control these SWF's in another browser window, what I need to do is talk to them directly from within the same application. I've seen the LocalConnection topic come up a few times, as that's the method 1.5 version of Yahoo Maps uses, to allow the API to work from inside of Flex (this will of course, go away when the 2.0 version of the Yahoo Maps API comes out). Must I use the LocalConnection method, in order to simply speak to my Embedded SWF Files? Or is there a more direct approach? Just for a quick example, I was hoping to use something to this effect: mySWFLoader.content.gotoAndPlay(10); Well, you get the idea... Any suggestions, would be greatly appreciated. Mike -- Hilary -- -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
[flexcoders] Re: Cross domain confusion
Matt, thanks so much that is what I figured it had to be something simple. Now is there any way to that the .swf can be distributed by itself. Right now the onlyway it works is to send out the entire bin folder, with the .AC_OETags.js, history.js and debug files included? This is great news, I was really worried I was going to have to recommend that we continue with VB instead of switching to flexbuilder. john Not all compiler options have matching GUI controls. In that case: 1) Select Project Properties. 2) Select Flex Compiler. 3) Add -use-network=false in the Additional Compiler Arguments field. hth, matt horn flex docs
RE: [flexcoders] Re: Cross domain confusion
Could it be that by setting -use-network= false the workings of the history Iframe misbehaves (starts to want to pop it up?) I noticed that at a colleague and was wondering where it came from... Not all compiler options have matching GUI controls. In that case: 1) Select Project Properties. 2) Select Flex Compiler. 3) Add -use-network=false in the Additional Compiler Arguments field. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John buono Sent: Monday, February 12, 2007 2:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cross domain confusion That is a great suggestion, but I am using FlexBuilder 2, and can not find that option anyplace, anyone have any ideas? On Saturday 10 Feb 2007, Pedro Pastor wrote: cause for this error, but I supposed that by default an SWF file have granted access to a local data file. You suppose wrong. You'll need to set use-network to false in your compiler options. Or use a trust file. -- Tom Chiverton Helping to simultaneously foster distributed m-commerce -- 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] Re: Cross domain confusion
Under Flex Compiler in the project properties, there is an HTML wrapper section. uncheck all the boxes and most if not all of those extra files will no longer be required. The debug files do not need to be deployed and probably should not be deployed with the application. --- In flexcoders@yahoogroups.com, John buono [EMAIL PROTECTED] wrote: Matt, thanks so much that is what I figured it had to be something simple. Now is there any way to that the .swf can be distributed by itself. Right now the onlyway it works is to send out the entire bin folder, with the .AC_OETags.js, history.js and debug files included? This is great news, I was really worried I was going to have to recommend that we continue with VB instead of switching to flexbuilder. john
[flexcoders] Changing TextFormat
Hello all, I posted a note earlier about using Mathematical Equations in Flex / Flash. I know that mx.core.UITextFormat (which inherits from flash.text.TextFormat) controls how text in a text field is displayed. Does anyone know how I would create a new class to manage a text field so that the tags which are normally parsed (bi, etc...) are parsed normally. but if it is wrapped in a mathml tag, it would be parsed by another class? I hope this makes sense. Basically, I am trying to implement a system for displaying MathML information within a Flex app. Thanks in advance. David Tucker
Re: [flexcoders] On E4X Programming
http://www.actionscript.org/resources/articles/222/1/Intro-to-E4X/Page1.html That's a pretty good article on beginning E4X in Flex 2 / AS3. Cheers, Brian On 2/13/07, Merrill, Jason [EMAIL PROTECTED] wrote: There's a lot in the Flex help docs... or do you mean outside of the Flex docs? Try this: http://life.neophi.com/danielr/2006/04/flex_2_beta_2_actionscript_3_a.html Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Pastor Sent: Tuesday, February 13, 2007 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] On E4X Programming From a previous discussion, it seems like people coming from XPath language (like me) meed a kind or re-training on the E4X way of dealing with XML traversing and query. Does anybody know a source of documentation for E4X with examples and extended information about have E4X interpreter works. I've been reading the official E4X reference documentation, but it seems that's not enough (at least for a XPath biased people like me). Regards. Pedro -- Brian Dunphy
[flexcoders] Re: Using data in an Array Collection
It does kind of make sense but I'm just wondering how the checkData function knows to look at my ArrayCollection and how the item:object refers specifically to the row. As I said before I am very new to all of this and it is a very steep learning curve at the moment. --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: the item param is row data, what is in that row of the array collection and the column is that column in the grid. basically what happens in this particular labelFunction is that it looks at a specific field in the array collection and determine its value, then it sets a string to be returned and displayed in that column for that row. You could return a number, boolean etc just by changing the return type of the function. make sense? On 2/13/07, jryano001 [EMAIL PROTECTED] wrote: Brilliant thanks for all your help. Can you do one more thing and explain exactly what the line below is doing please? checkData(item:Object,column:Object):String Is it converting the parsed XML data in my ArrayCollection to a String before searching the converted string for the number 2? Thanks once again. --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Clint Tredway grumpee@ wrote: oops, at the bottom of the function put return retString; On 2/12/07, jryano001 jryan@ wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status DataGridColumn and I get an error in Flex stating: 1170: Function does not return a value. Is the checkData function checking both my customer and status columns for '2' or do I have to (as I expect) enter in the column name I want to check in the code you provided? I appreciate your help and patience! --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Clint Tredway grumpee@ wrote: use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String { var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 jryan@ wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
[flexcoders] disable Bind
Hi All. I have one MXML component MainLoginForm fields receives data through bind. Also I have another MXML component LocalLoginForm that child of previous one: MainLoginForm ^ | LocalLoginForm And I want that in LocalLoginForm similar fileds (inherited from MainLoginForm) dont receive data over bind. How I can realized that?
[flexcoders] DataGrid Sort Arrow
Hi: I've spent a good deal (too much) time trying to change the data grid sort arrow location. My header row is all custom renderers with text that is rotated 90 degrees. Because of that, the sort arrow ends up in a horrible location. Any ideas on how to move it to the bottom/center of the header row cell? Will I need to extend the datagrid class and rewrite the function that creates the sort arrow or can I is there a simpler way to do this? Thanks, Dana
Re: [flexcoders] No core library?
There's a manifest XML file that should list all the components that get compiled into the main framework SWC. flex_sdk\frameworks\core-framework-manifest.xml Take a look at that or check the mxml-manifest.xml file as well. Doug Ralf Bokelberg wrote: Hi Arne, it looks like the flex_sdk_2\frameworks\libs directory contains a few swc components with the data you need. Cheers Ralf. On 2/13/07, * arne.deutsch* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, does someone know if there is still a core library in AS3 as it was in AS2? A library where all basic classes (Number, String but also Sprite) are defined as intrinsic or native classes? In the Flex builder is the Global.as http://Global.as for the primitives, but without Sprite or similar. I need these definitions for the tool I wrote to get Information about these clases (inheritance, methods etc.). I could write such definitions by hand but that would be error prone. Are there such clases or is there a different way for AS3? Thanks for your help, Arne -- Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: int not serializing properly from Java to ActionScript
Ah, didn't realize that was case-sensitive. The getId and setId change did the trick, thanks a lot. --- In flexcoders@yahoogroups.com, lepusmars [EMAIL PROTECTED] wrote: Try changing getID to getId and setID to setId. --- In flexcoders@yahoogroups.com, ytseshred ytseshred@ wrote: I'm properly retrieving a result set from my database, but the serialization from Java to ActionScript screws up my id field along the way. -- My Java VO: public class TestVO { private int id; private String data; public TestVO() { } public TestVO(int id, String data) { this.id = id; this.data = data; } public getID() { return id; } public setID(int id) { this.id = id; } public getData() { return data; } public setData(String data) { this.data = data; } } --- My ActionScript VO: public class TestVO { public var id:int; public var data:String; } ActionScript outputting the data (the ArrayCollection of my TestVO's are bound to a list with the following renderer: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.events.FlexEvent; import test.vo.TestVO; private var vo:TestVO; [Bindable] private var str:String; override public function set data(val:Object):void { if(val != null) { super.data = val; vo = val as TestVO; str = vo.id + + vo.data; } dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } ]] /mx:Script mx:Label text={str} / /mx:HBox When displaying the data in a list I see data field properly, but every id displays as 0 in Flex. I've output the records on a JSP page which uses the same DAO, and the records output properly, so I know it's getting out of the database properly. Any suggestions?
[flexcoders] Re: Actual location of UIComponent
If you have a references to the panel and the component: var pnl:Panel; var cmp:UIComponent; import flash.geom.Point; var pnt:Point = pnl.localToGlobal(new Point(cmp.x, cmp.y)); pnt.x and pnt.y will contain the global coordinates of the UIComponent. Is that what you're looking for? --- In flexcoders@yahoogroups.com, Bhuvan Gupta [EMAIL PROTECTED] wrote: Hi All, How can I find the coordinates/location of a component at runtime when the component is inside a container like Panel and has been rendered as per parent's layout. Thanks
[flexcoders] Inverting a Shape
Hi there, I want to create a mask which prevents a component from being shown, but the following code is doing the exact opposite: var surroundingMask:Shape = new Shape(); surroundingMask.blendMode = BlendMode.INVERT; surroundingMask.graphics.beginFill(0x00, 0.5); surroundingMask.graphics.drawRoundRect(x, y, width, height, 0); surroundingMask.graphics.endFill(); I thought that the BlendMode.INVERT is going to help but it doesn't. Any ideas? masu
[flexcoders] RemoteObject and SOAP
Hi all, Really just asking for a confirmation on this - does RemoteObject in Flex 2.0 only communicate via AMF? Therefore SOAP is no longer an option and is only supported by WebService? I know about the performance and general efficiency gains to be had by adopting AMF over SOAP, however I would like to do some comparison testing. Thanks for any help, Leon
[flexcoders] convert e4x xml results to arraycollection or xmllistcollection
I want to filter the results (which are in e4x format) of an HTTPService call (display_samples) and push certain ones into a new arrayCollection. This code populates a Tree just fine: mx:XMLListCollection id = all_samples source={display_samples.lastResult.sample}/ But when I do this: Alert.show(all_samples.length.toString()); It's showing the size as 0. I can't seem to interact with the data at all. I also tried an arraycollection and I'm making sure I set it after I send() the HTTPService request. These also don't work: new ArrayCollection(display_samples.lastResult.sample) display_samples.lastResult.sample as ArrayCollection Any ideas? Thanks THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.
[flexcoders] Flex 1.5: List problem: CellRenderer not selectable
Currently i have a strange problem with the list component in Flex 1.5. Sometimes some of the rows are not selectable for no obvious reason. It seems like the list creates my CellRenderers twice and lays them on top of each other. Does anybody know an old trick to make it work correctly? Cheers, Ralf -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] ColdFusion and Flex, composite CFCs, and Arrays
I have ran across this issue before and seem to have finally come across a solution. The issue: say I have a CFC called Person which has a property addressArray that is a array of Address CFCs. If the associated Person.asobject has addressArray: ArrayCollection(); things don't work, addressArray has to be a Array(). I blogged about away to get around this with a mutator. http://www.cubicleman.com/2007/02/13/coldfusion-and-flex-composite-cfcs-and-arrays/ HTH someone -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
RE: [flexcoders] Re: Animated Drag Tile
Hi Nate. I updated DragTile a while back, and didn't update the sample files, which is what you're seeing. Grab the source again, that should be fixed. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of napearson99 Sent: Monday, February 12, 2007 3:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Animated Drag Tile Ely, the tiles disappear when you rearrange inside the same data provider. It happens your demos and in the code I downloaded. -Nate --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , napearson99 [EMAIL PROTECTED] wrote: woohoo it works. Now I'm going to try to edit ur program to do the vertical shuffling. gl to me. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@ wrote: I think you just forgot the images in the img folder. I put some in named img1.jpg, img2.jpg ect and they came up, although these pictures are at 1900x1680 so i might want to rescale them first to make sure it works. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@ wrote: Nice, use me all you like. I enjoy it and I think I'll learn a lot. Now I get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. the page comes up but there aren't any tiles. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@ wrote: Hi Nate. Now you get to be my guineapig :) I think the zip file should now container all the files you need. Please clear your cache, download it again, and see if that works. Ely. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of napearson99 Sent: Monday, February 12, 2007 1:42 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Animated Drag Tile I cant find the BitmapTile file for the Drag Tile custom itemrenderer. Am i making a mistake? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@ wrote: I was able to dl the source with IE 6. Firefox 2.0 throws that error. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@ wrote: When I right click to view source I get the error: Routing Error Recognition failed for /DragTile/DragDropViewSource/index.html I'm going to try to adjust your drag tile so that the images get out of the way in a vertical sense instead of horizontal like your demo shows. I'm also going to put just one item per line. This will create a sort of drag and drop list. Do you think this will be hard to do? On a personal note I love love love your site. I work at a fortune 500 company and upper management is really excited about the flex apps with charting that I am making. I've only been using Flex/AS for 20 days now and I have more than one functional app pulling data from SQL Servers. Management wants to use Flex as an enhanced GUI for SAP. Your blog greatly helped me make these cool apps. Keep those posts coming! SO THANKS! :) oh yah, they think im a genius now and I'll probably get a raise ;). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@ wrote: Hi Nate. The source should be downloadable. Please try again. My site has gone through some changes over the past few months which have resulting in some broken view source links. If people have been looking to download source and are getting errors, please post here or email me directly and I'll get them patched up. Sorry about the hassle. Ely. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of napearson99 Sent: Monday, February 12, 2007 10:46 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Animated Drag Tile Anyone know how to make an animated drag tile component? I saw
RE: [flexcoders] convert e4x xml results to arraycollection or xmllistcollection
I ended up using a filterfunction on the XMLListCollection and it works like a charm. Here's the code if anyone's interested: mx:XMLListCollection id = all_samples filterFunction=myFilter source={display_samples.lastResult.sample}/ public function myFilter(item:Object):Boolean { return [EMAIL PROTECTED] == complete; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cashorali, Tanya M. Sent: Tuesday, February 13, 2007 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] convert e4x xml results to arraycollection or xmllistcollection I want to filter the results (which are in e4x format) of an HTTPService call (display_samples) and push certain ones into a new arrayCollection. This code populates a Tree just fine: mx:XMLListCollection id = all_samples source={display_samples.lastResult.sample}/ But when I do this: Alert.show(all_samples.length.toString()); It's showing the size as 0. I can't seem to interact with the data at all. I also tried an arraycollection and I'm making sure I set it after I send() the HTTPService request. These also don't work: new ArrayCollection(display_samples.lastResult.sample) display_samples.lastResult.sample as ArrayCollection Any ideas? Thanks THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.
RE: [flexcoders] Missing SDK Source Code
The messaging, rpc, and data classes are primarily part of FDS and therefore source is not provided. We may make adjustments in the future. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Tuesday, February 13, 2007 1:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Missing SDK Source Code On Friday 09 Feb 2007, j.conley wrote: Just wondering why the source for I/O related classes are mysteriously missing from the Flex2 SDK when it is present for most other components. At a guess, the same reason most flash.* classes are missing - they are part of the player. -- Tom Chiverton Helping to dramatically create transparent e-tailers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Re: No core library?
The problem with the xml files (that are in the SWCs, too) is, that they only contain descriptions which classes exist. What I need is not only the names but also a desription of the interface of these classes (methods, method arguments, return types etc.). That is not in the xml, is it?
Re: [flexcoders] should i convert pngs to jpegs before embedding them in a flash movie?
On Monday 12 Feb 2007, jpc14_99 wrote: When I make a website I design it with PNGs and when it's all good and done I convert to jpegs to shrink the file sizes. It is not a given this will always create smaller files. I'm doing the same with my flash/flex movies, but based on the file sizes it looks like when the .swf is compiled the PNGs are already being compressed. PNG is a compressed format. -- Tom Chiverton Helping to centrally cultivate eigth-generation CEOs This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] should i convert pngs to jpegs before embedding them in a flash movie?
PNG is a compressed format. Which flavor of PNG? Some PNGs are, but try an unflattened Fireworks PNG, it's huge and does not compress that I am aware of. Even so, Fireworks PNGs are much larger than regular flat PNG files or JPGs. Jason Merrill Bank of America Learning Organizational Effectiveness
Re: [flexcoders] How to get the current build options FB uses?
My thinking here was that I could dump out a configuration XML file that I could specify on the commandline that the compiler would use. So: 1. Use a batch file to get the config file: mxmlc -dump-config AppName-config.xml 2. Use a batch file to generate the SWF: mxmlc -load-config AppName-config.xml Here's the output from step 1: D:\Flex\testmxmlc -dump-config test-config.xml Loading configuration file C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\fram eworks\flex-config.xml Writing configuration dump to test-config.xml Error: a target file must be specified I got the commandline code from the docs. From here I would assume step 2 wouldn't work and it doesn't: D:\Flex\testmxmlc -load-config test-config.xml Loading configuration file D:\Flex\test\test-config.xml D:\Flex\test\test-config.xml(91): Error: unable to open 'libs' /library-path The test-config.xml file is written to my project directory. And just having the test-config.xml file there causes Flex Builder to produce the following error in the Problems view: unable to open 'mxml-manifest.xml'test-config.xmltestline 101 But, if your response is any indication, this should be working. So why am I getting these errors? Is there something obvious here that I missed? On 2/12/07, Gordon Smith [EMAIL PROTECTED] wrote: -dump-config dumps the configuration used for a particular compilation. The format is that of a config file, not a command line, but it is not a generic config file. Apparently this isn't the case. What's leading you to think it's not working? - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Derek Vadneau *Sent:* Monday, February 12, 2007 7:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] How to get the current build options FB uses? I thought the point of dump-config was to dump the configuration used for a particular project. Apparently this isn't the case. dump-config dumps out a generic config file. What's the point of this? Would it not be so much more useful to have FB be able to dump out a file that can simply be used by the commandline compiler? I know it would be for me. I build and test using Flex Builder but my projects are then integrated into a build system. The build system is not based on Eclipse. What would be ideal is to have FB be able to dump out a config file that I can simply pass along with my source for the build process. As it stands now I need to write my own (or modify the dump) config file any time I make certain changes to my project. Doesn't Flex Builder already have this information when it performs a build? Could it not dump THAT out instead? Maybe this is already possible - can anyone confirm/deny? -- Derek Vadneau -- Derek Vadneau
[flexcoders] Link in DataGridColumn
How do I add a hyperlink in a DataGridColumn and for the value displayed in the cell I want the link to be like this: http:\\thesite.com\the value
[flexcoders] Text component that allows tabbing
Hi all I need a multi-line text component that keeps the function of TAB button, just like windows notepad. How can I do it? thanks! :) -- André Rodrigues Pena
[flexcoders] Can I use mx:Image to load images dynamically from an image.cfm page?
Our flex developer recently left our company, and I've been given the task of resuming work on an enormous project he was involved in. Right now, I'm trying to do something where I display a tile list of images depending on the results from a database query returned by a call to a method in a CFC. I've written a coldfusion page called image.cfm that can take a URL parameter (the ID of the image from the database), retrieve the file from our filesystem, and simulate the content of the image by doing a cfcontent to spit out the binary data of the image. This is obviously handy, because I don't need to know the location of any of the image files on my fileserver. I can simply request image.cfm?id=12345 and the ColdFusion page will handle the rest, returning the image with ID 12345. This works beautifully on our web site. The problem I'm having now is that I'm trying to implement something similar using Flex. Each time I try, Flex only displays a broken image. As I was trying to figure this out, I broke things down to as simple as I could make them. I created a sample image called test.jpg. I also modified image.cfm so that it only loads test.jpg. When I navigate directly to image.cfm with my web browser http://myserver.com/image.cfm It displays the image just exactly as I'd expect it to. However, when I run my Flex application with the following code: mx:Image x=0 y=0 source=image.cfm/ mx:Image x=100 y=0 source=test.jpg/ The second mx:Image displays just fine, but the first one does not. Does anyone know if it's possible to do something like this from inside Flex? I'm very new to Flex, but not to development in general. I'd appreciate any information you might have. Thanks!
[flexcoders] compiled swf does not show changes
Hi guys, this is a little OT as it more the tool than a code question but we keep running into this issue. We compile on windows using the flex ide, and sometimes I'll change an mxml file, save it and it builds but the change is not seen in the browser. I've got caching disabled and we've tested in both firefox and IE. We have to backup the project, delete it and then re-add it to eclipse and then it starts working ok again.. I removed all the componets from main.mxml and compiled it and it still showed stale components. Even running it through the debugger... its driving me nuts, has anyone else seen this (flex builder version 2.0.1) Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cashorali, Tanya M. Sent: Tuesday, February 13, 2007 12:21 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] convert e4x xml results to arraycollection or xmllistcollection I ended up using a filterfunction on the XMLListCollection and it works like a charm. Here's the code if anyone's interested: mx:XMLListCollection id = all_samples filterFunction=myFilter source={display_samples.lastResult.sample}/ public function myFilter(item:Object):Boolean { return [EMAIL PROTECTED] == complete; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cashorali, Tanya M. Sent: Tuesday, February 13, 2007 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] convert e4x xml results to arraycollection or xmllistcollection I want to filter the results (which are in e4x format) of an HTTPService call (display_samples) and push certain ones into a new arrayCollection. This code populates a Tree just fine: mx:XMLListCollection id = all_samples source={display_samples.lastResult.sample}/ But when I do this: Alert.show(all_samples.length.toString()); It's showing the size as 0. I can't seem to interact with the data at all. I also tried an arraycollection and I'm making sure I set it after I send() the HTTPService request. These also don't work: new ArrayCollection(display_samples.lastResult.sample) display_samples.lastResult.sample as ArrayCollection Any ideas? Thanks THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. attachment: small.jpg
[flexcoders] Re: Html in Flex?
Hey, this sounds pretty cool. I'll definitely give it a shot and let you know how it goes. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown [EMAIL PROTECTED] wrote: I have been secretly working on an html component for the last 2 months that is close to release. It has support for iframes but also support for straight html without iframes. I will be doing a beta in a few weeks and post a link to examples in the next couple of days. I've tested a bunch of cool features (beta) but I can only work on about one more before beta. So check my blog in the next few days http://www.judahfrangipane.com and leave some good comments. On 1/10/07, gtuhl [EMAIL PROTECTED] wrote: We have an existing application that has a feature enabling a user to set content for and preview html newsletters. We are in the process of researching Flex2 and determining whether the client-side of this application (currently xul/html/js) should be converted. Is there any way to render html in Flex2? The htmlText property on Text won't cut it as it only supports a trivial subset of html. I essentially need to embed Gecko or another appropriate rendering engine so that the users can get a rough guess of what their content looks like. The same pages allow the user to quickly send test e-mails to whichever accounts they desire, but the quick-preview feature provided by the current version of the application is heavily used and cannot be cut. Ideally Flex2 has something similar to the browser component in xul. -- 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] New Version of Flex Style Explorer with Tons on New Features
Hello All, I wanted to let you all know that we¹ve just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I¹ve got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter / \® PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\
[flexcoders] Re: Can I use mx:Image to load images dynamically from an image.cfm page?
if you go to umage.cfm in a web browser does the image appear? Are you setting the ContentType header on the response correctly? I've found the Image component to be very difficult to debug myself, but those are places I would start. --- In flexcoders@yahoogroups.com, k.hemmen [EMAIL PROTECTED] wrote: Our flex developer recently left our company, and I've been given the task of resuming work on an enormous project he was involved in. Right now, I'm trying to do something where I display a tile list of images depending on the results from a database query returned by a call to a method in a CFC. I've written a coldfusion page called image.cfm that can take a URL parameter (the ID of the image from the database), retrieve the file from our filesystem, and simulate the content of the image by doing a cfcontent to spit out the binary data of the image. This is obviously handy, because I don't need to know the location of any of the image files on my fileserver. I can simply request image.cfm?id=12345 and the ColdFusion page will handle the rest, returning the image with ID 12345. This works beautifully on our web site. The problem I'm having now is that I'm trying to implement something similar using Flex. Each time I try, Flex only displays a broken image. As I was trying to figure this out, I broke things down to as simple as I could make them. I created a sample image called test.jpg. I also modified image.cfm so that it only loads test.jpg. When I navigate directly to image.cfm with my web browser http://myserver.com/image.cfm It displays the image just exactly as I'd expect it to. However, when I run my Flex application with the following code: mx:Image x=0 y=0 source=image.cfm/ mx:Image x=100 y=0 source=test.jpg/ The second mx:Image displays just fine, but the first one does not. Does anyone know if it's possible to do something like this from inside Flex? I'm very new to Flex, but not to development in general. I'd appreciate any information you might have. Thanks!
[flexcoders] Inverting a Shape
Hi there, I want to create a mask which prevents a component from being shown, but the following code is doing the exact opposite: var surroundingMask:Shape = new Shape(); surroundingMask.blendMode = BlendMode.INVERT; surroundingMask.graphics.beginFill(0x00, 0.5); surroundingMask.graphics.drawRoundRect(x, y, width, height, 0); surroundingMask.graphics.endFill(); I thought that the BlendMode.INVERT is going to help but it doesn't. Any ideas? masu
Re: [flexcoders] duplicate function definition
Hey guys... In the function mentioned above, the set modifier was used but I couldn't find it's reference at the official Actionscript 3.0 manual http://livedocs.macromedia.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm I searched google with no return either. Is it really allowed at Actionscript 3.0? If yes, where can I find it's reference? On 2/13/07, learner [EMAIL PROTECTED] wrote: Thanks I got that :) On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED] wrote: Hi Mayur, When you define a member variable, a setter method is internally created. You have to rename your variable vbox and define it as private. private var _vbox:VBox; public function set vbox(val:VBox):void { _vbox = val; } Rgds, Olivier -- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *learner *Sent:* Tuesday, February 13, 2007 7:54 AM *To:* [EMAIL PROTECTED] ups.com *Subject:* [flexcoders] duplicate function definition Hello all, When I am doing this : public var vbox:VBox; public function set vbox(val):void{ vbox = val } Why am i getting a error like *Duplicate function definition *when i am defining my set vbox function. Regards Mayur - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
RE: [flexcoders] Re: Can I use mx:Image to load images dynamically from an image.cfm page?
Yes, I'm setting the contenttype header correctly, and when I navigate to the .cfm file in a web browser the image appears as I expect it to. When the image is originally uploaded, I'm capturing the image's mime type and storing it in the database so that I can use it for my cfcontent when retrieving it for display later. I've been using a process similar to this for 3+ years on a website without any problems, but I want to transfer the same idea to Flex now, and am only getting broken images. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lepusmars Sent: Tuesday, February 13, 2007 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can I use mx:Image to load images dynamically from an image.cfm page? if you go to umage.cfm in a web browser does the image appear? Are you setting the ContentType header on the response correctly? I've found the Image component to be very difficult to debug myself, but those are places I would start. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , k.hemmen [EMAIL PROTECTED] wrote: Our flex developer recently left our company, and I've been given the task of resuming work on an enormous project he was involved in. Right now, I'm trying to do something where I display a tile list of images depending on the results from a database query returned by a call to a method in a CFC. I've written a coldfusion page called image.cfm that can take a URL parameter (the ID of the image from the database), retrieve the file from our filesystem, and simulate the content of the image by doing a cfcontent to spit out the binary data of the image. This is obviously handy, because I don't need to know the location of any of the image files on my fileserver. I can simply request image.cfm?id=12345 and the ColdFusion page will handle the rest, returning the image with ID 12345. This works beautifully on our web site. The problem I'm having now is that I'm trying to implement something similar using Flex. Each time I try, Flex only displays a broken image. As I was trying to figure this out, I broke things down to as simple as I could make them. I created a sample image called test.jpg. I also modified image.cfm so that it only loads test.jpg. When I navigate directly to image.cfm with my web browser http://myserver.com/image.cfm http://myserver.com/image.cfm It displays the image just exactly as I'd expect it to. However, when I run my Flex application with the following code: mx:Image x=0 y=0 source=image.cfm/ mx:Image x=100 y=0 source=test.jpg/ The second mx:Image displays just fine, but the first one does not. Does anyone know if it's possible to do something like this from inside Flex? I'm very new to Flex, but not to development in general. I'd appreciate any information you might have. Thanks!
RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter / \(r) PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\ *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Also, I noticed when I select new colors for the Application background, it doesn't refresh and show that color unless I first select a background image, then select none to force it to redraw. On 2/13/07, Brian Holmes [EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Peter Baird *Sent:* Tuesday, February 13, 2007 11:33 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter */ \**(r) PETER BAIRD 888/ \888*User Experience Consultant *88/ / \88*Adobe Consulting | Adobe Systems, Inc *8/ /8\ \8*275 Grove St. Newton, MA */ /888\ \ * *\8\ * -- *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] svn and flex not getting along
Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588 .html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Eh, personal preference I guess. Personally, I didn¹t care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer. html), and you can go into the colorPicker components (components/colorPicker, components/doubleColorPicker, and components/quadColorPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we¹ve just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I¹ve got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter / \® PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\ *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** / \® PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \Office: 617.219.2126 \8\ Cell: 617.803.6804
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
I love it. And thanks for the source. That functionality for mini-nav on the left looks like it might make a pretty awesome standalone extended list component. I'd agree with the suggestion of always showing the advanced color picker icon. Doug Nick Collins wrote: Also, I noticed when I select new colors for the Application background, it doesn't refresh and show that color unless I first select a background image, then select none to force it to redraw. On 2/13/07, *Brian Holmes* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. *From:* flexcoders@yahoogroups.com http://ups.com [mailto:flexcoders@ mailto:flexcoders@yahoogroups.com http://yahoogroups.com] *On Behalf Of *Peter Baird *Sent:* Tuesday, February 13, 2007 11:33 AM *To:* flexcoders@yahoogroups.com http://ups.com *Subject:* [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter */ \**® PETER BAIRD 888/ \888*User Experience Consultant *88/ / \88*Adobe Consulting | Adobe Systems, Inc *8/ /8\ \8*275 Grove St. Newton, MA */ /888\ \ * *\8\ * *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
Re: [flexcoders] svn and flex not getting along
You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED] wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- : : ) Scott attachment: small.jpg
Re: [flexcoders] svn and flex not getting along
I've been playing with the ANT tasks, and if you use ANT to do your compilation the task for the html-wrapper will output your html stuff without needing to have the html-template directory in your project directory structure at all. Not really a direct answer to your question, but if you're doing a project using SVN you might want to convert over to doing everything using ANT anyway. Doug slangeberg wrote: You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED]com wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... › b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED]com › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate -- : : ) Scott
RE: [flexcoders] svn and flex not getting along
ok... was hoping it was fixed in the new flex ide 2.1 but i guess not :) thanks for the tips.. Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of slangeberg Sent: Tuesday, February 13, 2007 2:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] svn and flex not getting along You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588 .html http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/17258 8.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- : : ) Scott attachment: small.jpg attachment: small.jpg
Re: [flexcoders] Changing TextFormat
1. subclass mx.core.UITextField. 2. override function set htmlText(value:String) or override whatever other you are using to set the text 3. read the string coming into above function. If it's in an html tag, just call super.html. Otherwise do what you want. - Dan On 2/13/07, mindmillmedia [EMAIL PROTECTED] wrote: Hello all, I posted a note earlier about using Mathematical Equations in Flex / Flash. I know that mx.core.UITextFormat (which inherits from flash.text.TextFormat) controls how text in a text field is displayed. Does anyone know how I would create a new class to manage a text field so that the tags which are normally parsed (bi, etc...) are parsed normally. but if it is wrapped in a mathml tag, it would be parsed by another class? I hope this makes sense. Basically, I am trying to implement a system for displaying MathML information within a Flex app. Thanks in advance. David Tucker
Re: [flexcoders] Text component that allows tabbing
The TextFormat object has a property call tabStops. Unfortunately I don't think any component implements them as a property or style so you might have to override a component and manually set the textformat of the UITextField inside it. - Dan On 2/13/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: Hi all I need a multi-line text component that keeps the function of TAB button, just like windows notepad. How can I do it? thanks! :) -- André Rodrigues Pena
[flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
--- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: PNG is a compressed format. Which flavor of PNG? Some PNGs are, but try an unflattened Fireworks PNG, it's huge and does not compress that I am aware of. Even so, Fireworks PNGs are much larger than regular flat PNG files or JPGs. Jason Merrill Bank of America Learning Organizational Effectiveness You got it Jason. I'm using unflattened Fireworks PNGs when I design the graphics. They are huge. But I'm not sure I need to make them JPEGs because the swf file sizes aren't as big as I'd assume they were if the unflatted fireworks PNG was being loaded in uncompressed.
RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Peter, Yeah I saw that. Just so you guys know, MyriadWebPro.ttf and MyriadWebPro-Bold.ttf isn't included in the download, so it won't compile until you go get the files off your server or remove the reference from the css. thanks again, B.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Eh, personal preference I guess. Personally, I didn't care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo rer.html), and you can go into the colorPicker components (components/colorPicker, components/doubleColorPicker, and components/quadColorPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter / \(r) PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\ *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** / \(r) PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \Office: 617.219.2126 \8\ Cell: 617.803.6804 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
There is no reason to switch to JPEG, unless you like degraded pixel- based images. Ok but I'm using unflatted fireworks PNGs that are very large in file size. Will they compress upon being loaded into the SWF or do I need to compress them before embedding them?
Re: [flexcoders] Re: Inverting a Shape
This is because I want to use the mx.effects.Move effect which should be applied to a different component to slide out of the masked area. masu On 2/13/07, lepusmars [EMAIL PROTECTED] wrote: Maybe I'm missing something here but can't you just set the visible property on the component to false? Why do you need to create a mask? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sebastian Mohr [EMAIL PROTECTED] wrote: Hi there, I want to create a mask which prevents a component from being shown, but the following code is doing the exact opposite: var surroundingMask:Shape = new Shape(); surroundingMask.blendMode = BlendMode.INVERT; surroundingMask.graphics.beginFill(0x00, 0.5); surroundingMask.graphics.drawRoundRect(x, y, width, height, 0); surroundingMask.graphics.endFill(); I thought that the BlendMode.INVERT is going to help but it doesn't. Any ideas? masu
RE: [flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
You'll need to save them as flattened regular png files (or .jpg files). Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99 Sent: Tuesday, February 13, 2007 2:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Merrill, Jason [EMAIL PROTECTED] wrote: PNG is a compressed format. Which flavor of PNG? Some PNGs are, but try an unflattened Fireworks PNG, it's huge and does not compress that I am aware of. Even so, Fireworks PNGs are much larger than regular flat PNG files or JPGs. Jason Merrill Bank of America Learning Organizational Effectiveness You got it Jason. I'm using unflattened Fireworks PNGs when I design the graphics. They are huge. But I'm not sure I need to make them JPEGs because the swf file sizes aren't as big as I'd assume they were if the unflatted fireworks PNG was being loaded in uncompressed.
Re: [flexcoders] Java developer is glad to participate in open source Flex project.
Why use OpenAMF when it hasn't been updated in quite a while? I say come help us out with Red5 (http://osflash.org/red5). It does the same things that OpenAMF does and much much more; it is also currently being developed. Please fill out the sign up form on the site and send it to John and me. -Chris On 2/12/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: Hi Alex, It sounds like OpenAMF might be a good place to start as well. I would personally like to see more support (documentation, installation docs) on this project. Let me know what you decide (contact offlist). On 2/12/07, Igor Costa [EMAIL PROTECTED] wrote: Hi Alexander you could start looking at Code Google and www.riaforge.com www.osflash.org Best. On 2/12/07, alex_s9v [EMAIL PROTECTED] wrote: Hi all! My name is Alexander. I have a passion for Flex and I'd like to participate in open source flex project. I have 2 years experience with server-side java (Struts, JSF and Hibernate) and a little experience with Eclipse RCP. I am searching for open source flex project where I can avail and can improve my Flex skills. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Hey Peter Thanks for kind realese, but loved the ASCII Adobe logo than Style Explorer hehehe. Best. On 2/13/07, Peter Baird [EMAIL PROTECTED] wrote: Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter */ \**(r) PETER BAIRD 888/ \888*User Experience Consultant *88/ / \88*Adobe Consulting | Adobe Systems, Inc *8/ /8\ \8*275 Grove St. Newton, MA */ /888\ \ * *\8\ * -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Yes, those were not included intentionally (license issues with distributing the font and all). So, you would have to select a different font for the header as well, just replace references to Myriad with Arial, or something. -p On 2/13/07 2:45 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, Yeah I saw that. Just so you guys know, MyriadWebPro.ttf and MyriadWebPro-Bold.ttf isn't included in the download, so it won't compile until you go get the files off your server or remove the reference from the css. thanks again, B.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Eh, personal preference I guess. Personally, I didn¹t care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.ht ml), and you can go into the colorPicker components (components/colorPicker, components/doubleColorPicker, and components/quadColorPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we¹ve just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I¹ve got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- 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 Software development tool http://groups.yahoo.com/gads;_ylc=X3oDMTJkaGVkbmVqBF9TAzk3NDc2NTkwBF9wAzEEZ3J wSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTcxMzk2MTA1? t=msk=Software+development+toolw1=Software+development+toolw2=Software+deve lopmentw3=Software+deSoftware development http://groups.yahoo.com/gads;_ylc=X3oDMTJkMDJxaWFqBF9TAzk3NDc2NTkwBF9wAzIEZ3J wSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTcxMzk2MTA1? t=msk=Software+developmentw1=Software+development+toolw2=Software+developme ntw3=Software+developSoftware development services http://groups.yahoo.com/gads;_ylc=X3oDMTJkaWpvdWdhBF9TAzk3NDc2NTkwBF9wAzMEZ3J wSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTcxMzk2MTA1? t=msk=Software+development+servicesw1=Software+development+toolw2=Software+ developmentw3=Softwar Home design software http://groups.yahoo.com/gads;_ylc=X3oDMTJkcDBiZjRrBF9TAzk3NDc2NTkwBF9wAzQEZ3J wSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTcxMzk2MTA1? t=msk=Home+design+softwarew1=Software+development+toolw2=Software+developme ntw3=Software+developSoftware development company http://groups.yahoo.com/gads;_ylc=X3oDMTJkMmg2dTY0BF9TAzk3NDc2NTkwBF9wAzUEZ3J wSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTcxMzk2MTA1? t=msk=Software+development+companyw1=Software+development+toolw2=Software+d evelopmentw3=Software Your email settings: Individual Email|Traditional Change settings via the Web http://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnN3A3bjZnBF9TAzk3ND
[flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
The SWF compiler when it embeds them should be flattening them. The Fireworks PNG files are layered, but the Flash Player does not support layered PNGs. If I recall correctly the Fireworks PNG files have a composite layer that is rendered by default and the swf compiler simply pulls in that layer and discards the rest. I could be wrong, it has been a while (6-9 months) since I've used Fireworks, I'm a photoshop guy. --- In flexcoders@yahoogroups.com, jpc14_99 [EMAIL PROTECTED] wrote: There is no reason to switch to JPEG, unless you like degraded pixel- based images. Ok but I'm using unflatted fireworks PNGs that are very large in file size. Will they compress upon being loaded into the SWF or do I need to compress them before embedding them?
Re: [flexcoders] Text component that allows tabbing
Thank you Freiman.. I'll study about your tips and call you back. Cheers On 2/13/07, Daniel Freiman [EMAIL PROTECTED] wrote: The TextFormat object has a property call tabStops. Unfortunately I don't think any component implements them as a property or style so you might have to override a component and manually set the textformat of the UITextField inside it. - Dan On 2/13/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: Hi all I need a multi-line text component that keeps the function of TAB button, just like windows notepad. How can I do it? thanks! :) -- André Rodrigues Pena -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
Re: [flexcoders] Html in Flex?
Hi there Gtuhl The most excited idea of Flex it's because flexible, using or not using the iFrame as suggested as work arround, I might admit that fits perfect but instead of that, why don't you think a litle bit more and based on your request, you could also work with the Flex / Ajax Bridge. The Flex Ajax Bridged could in some upper case help you on this kind of request, once you just need to open-up and show or preview a html page. You have to considerable that Flex or better Flash Player 9 has more support for HTML but not XHTML. Best. On 1/10/07, gtuhl [EMAIL PROTECTED] wrote: We have an existing application that has a feature enabling a user to set content for and preview html newsletters. We are in the process of researching Flex2 and determining whether the client-side of this application (currently xul/html/js) should be converted. Is there any way to render html in Flex2? The htmlText property on Text won't cut it as it only supports a trivial subset of html. I essentially need to embed Gecko or another appropriate rendering engine so that the users can get a rough guess of what their content looks like. The same pages allow the user to quickly send test e-mails to whichever accounts they desire, but the quick-preview feature provided by the current version of the application is heavily used and cannot be cut. Ideally Flex2 has something similar to the browser component in xul. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Text component that allows tabbing
Andre Basicly as Daniel pointed you out, you could get a chance to start doing an extended TextArea Component, here a very good resource to get you start. http://flashtexteditor.com/flexdemo/full/ Right-click to se the source code. Best On 2/13/07, Daniel Freiman [EMAIL PROTECTED] wrote: The TextFormat object has a property call tabStops. Unfortunately I don't think any component implements them as a property or style so you might have to override a component and manually set the textformat of the UITextField inside it. - Dan On 2/13/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: Hi all I need a multi-line text component that keeps the function of TAB button, just like windows notepad. How can I do it? thanks! :) -- André Rodrigues Pena -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Any chance of import functionality? or perhaps, if one was so inclined, what might be a good direction to start in to implement something like that? B.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 1:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Yes, those were not included intentionally (license issues with distributing the font and all). So, you would have to select a different font for the header as well, just replace references to Myriad with Arial, or something. -p On 2/13/07 2:45 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, Yeah I saw that. Just so you guys know, MyriadWebPro.ttf and MyriadWebPro-Bold.ttf isn't included in the download, so it won't compile until you go get the files off your server or remove the reference from the css. thanks again, B.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Eh, personal preference I guess. Personally, I didn't care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo rer.html), and you can go into the colorPicker components (components/colorPicker, components/doubleColorPicker, and components/quadColorPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- 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 Software development tool http://groups.yahoo.com/gads;_ylc=X3oDMTJkaGVkbmVqBF9TAzk3NDc2NTkwBF9wA zEEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxM TcxMzk2MTA1?t=msk=Software+development+toolw1=Software+development+too lw2=Software+developmentw3=Software+de http://groups.yahoo.com/gads;_ylc=X3oDMTJkaGVkbmVqBF9TAzk3NDc2NTkwBF9wA
RE: [flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
The SWF compiler when it embeds them should be flattening them. The Fireworks PNG files are layered, but the Flash Player does not support layered PNGs. yes it does. We have a Flash 8 app that shows layered Fireworks .pngs just fine. We even open the graphics back up in Fireworks, make edits, save back to the server, load in Flash, and repeat. Never lost any data doing that (though the files are huge). Jason Merrill Bank of America Learning Organizational Effectiveness
Re: [flexcoders] Link in DataGridColumn
Shidan Dont' really got you point but here we go for a basic solution mx:DataGrid id=shidan mx:columns mx:DataGridColumns id=linked mx:itemRender mx:component mx:linkButton label=Click here mouseDown= parentDocument.shidan.selectedIndex.navigateToURL();/ mx:component /mx:itemRender mx:DataGridColumns /mx:columns /mx:DataGrid Best. On 2/13/07, Shidan [EMAIL PROTECTED] wrote: How do I add a hyperlink in a DataGridColumn and for the value displayed in the cell I want the link to be like this: http:\\thesite.com\the value -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
[flexcoders] Re: should i convert pngs to jpegs before embedding them in a flash movie?
What I mean is the Flash Player only displays the composite layer, all other layers are discarded. If you are loading png files directly rather than embeding them then you should flatten them. But if you Embed them in the swf then the compiler does the work of stripping out the extra layers. And of course you never lost data, the player can't alter your source files. --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: The SWF compiler when it embeds them should be flattening them. The Fireworks PNG files are layered, but the Flash Player does not support layered PNGs. yes it does. We have a Flash 8 app that shows layered Fireworks .pngs just fine. We even open the graphics back up in Fireworks, make edits, save back to the server, load in Flash, and repeat. Never lost any data doing that (though the files are huge). Jason Merrill Bank of America Learning Organizational Effectiveness
Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
Peter, isn't that a bug in the Flex compiler? CSS specification is pretty clear that bad rules should be ignored. Compilation errors are an inherent flaw in the Flex compiler if they are generated by CSS rules, especially if those rules include specific binary font requirements. - Original Message From: Brian Holmes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 13, 2007 11:45:21 AM Subject: RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Peter, Yeah I saw that. Just so you guys know, MyriadWebPro. ttf and MyriadWebPro- Bold.ttf isn't included in the download, so it won't compile until you go get the files off your server or remove the reference from the css. thanks again, B.. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 12:13 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Eh, personal preference I guess. Personally, I didnt care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples. adobe.com/ flex2/consulting /styleexplorer/ Flex2StyleExplor er.html), and you can go into the colorPicker components (components/ colorPicker, components/doubleCo lorPicker, and components/quadColo rPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] com wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that weve just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. Ive got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs. macromedia. com/mc/archives/ 2007/02/new_ flex_style. cfm Enjoy, and happing styling. -Peter / \® PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\ *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** / \® PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \Office: 617.219.2126 \8\ Cell: 617.803.6804 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
[flexcoders] Re: Can I use mx:Image to load images dynamically from an image.cfm page?
Try using the cfm page's full URL as the source property, just to make sure you aren't running into a problem with relative paths. mx:Image x=0 y=0 source=http://myserver.com/image.cfm/ If that still doesn't work, you can try setting some handlers, probably on the ioError event, to see if more information on the error condition is available. --- In flexcoders@yahoogroups.com, k.hemmen [EMAIL PROTECTED] wrote: Our flex developer recently left our company, and I've been given the task of resuming work on an enormous project he was involved in. Right now, I'm trying to do something where I display a tile list of images depending on the results from a database query returned by a call to a method in a CFC. I've written a coldfusion page called image.cfm that can take a URL parameter (the ID of the image from the database), retrieve the file from our filesystem, and simulate the content of the image by doing a cfcontent to spit out the binary data of the image. This is obviously handy, because I don't need to know the location of any of the image files on my fileserver. I can simply request image.cfm?id=12345 and the ColdFusion page will handle the rest, returning the image with ID 12345. This works beautifully on our web site. The problem I'm having now is that I'm trying to implement something similar using Flex. Each time I try, Flex only displays a broken image. As I was trying to figure this out, I broke things down to as simple as I could make them. I created a sample image called test.jpg. I also modified image.cfm so that it only loads test.jpg. When I navigate directly to image.cfm with my web browser http://myserver.com/image.cfm It displays the image just exactly as I'd expect it to. However, when I run my Flex application with the following code: mx:Image x=0 y=0 source=image.cfm/ mx:Image x=100 y=0 source=test.jpg/ The second mx:Image displays just fine, but the first one does not. Does anyone know if it's possible to do something like this from inside Flex? I'm very new to Flex, but not to development in general. I'd appreciate any information you might have. Thanks!
RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features
It makes sense to ignore CSS errors when a CSS file is first parsed at runtime. You want a best effort rendering of the CSS. Web pages aren't required to be compiled and typechecked before they're put on the server. If they were, you would in fact want to catch the error at authoring time. Basically, it doesn't make any sense for a compiler to ignore CSS errors, particularly since in Flex they result in code generation. If we moved to runtime parsed CSS where the compiler never sees it, I'd expect that should do the best effort approach, though. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck White Sent: Tuesday, February 13, 2007 12:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Peter, isn't that a bug in the Flex compiler? CSS specification is pretty clear that bad rules should be ignored. Compilation errors are an inherent flaw in the Flex compiler if they are generated by CSS rules, especially if those rules include specific binary font requirements. - Original Message From: Brian Holmes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 13, 2007 11:45:21 AM Subject: RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Peter, Yeah I saw that. Just so you guys know, MyriadWebPro. ttf and MyriadWebPro- Bold.ttf isn't included in the download, so it won't compile until you go get the files off your server or remove the reference from the css. thanks again, B.. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 12:13 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Eh, personal preference I guess. Personally, I didn't care for all the visual clutter that a million color wheels added. The good news, however, is that the source code is available to you with view source (from the online version at http://examples. adobe.com/ flex2/consulting /styleexplorer/ Flex2StyleExplor er.html), http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExpl orer.html), and you can go into the colorPicker components (components/ colorPicker, components/doubleCo lorPicker, and components/quadColo rPicker) and change the visibilty of the images to be always visible and recompile for your very own version where color wheels are always visible. -Peter On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] com wrote: Peter, The new style explorer's great, but man you guys are killing me with the roll over to show the advanced color picker. Makes the whole thing look buggy IMHO, can you just show them all the time? Brian.. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird Sent: Tuesday, February 13, 2007 11:33 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] New Version of Flex Style Explorer with Tons on New Features Hello All, I wanted to let you all know that we've just released a new version of the Flex Style Explorer with Tons of new features, including export all CSS functionality, advanced color picker, support for style names, inclusion of new components, and several other features. I've got a full article on all the new features, and the new style explorer can be downloaded at the below URL. http://weblogs. macromedia. com/mc/archives/ 2007/02/new_ flex_style. cfm http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm Enjoy, and happing styling. -Peter / \(r) PETER BAIRD 888/ \888User Experience Consultant 88/ / \88Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8275 Grove St. Newton, MA / /888\ \ \8\ *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please
[flexcoders] Re: coords on dragged object
any clues? On 2/12/07, Douglas Knudsen [EMAIL PROTECTED] wrote: ok, I have a List populated from a AC of objects. I have drag+drop setup to drag one of the items from the list and drop it onto a VBox contained view. I need to get the x-coord relative to the object being dropped. Anyone have a idea? in 1.5 I used a undocumented piece DragManager[_dragProxy] to get it, of course that bit me in the backside now, eh? I used this to get the mouse coord relative to the dragged object, combined with the mouse coord relative to the stage I can get the x-coord of the object dropped. Diggning through the docs so far, I can't seem to find this. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] CFC issue with fresh install of Flex 2.0.1
The machine I have been working on was imaged from win2k to XP. When I installed a fresh copy of flex from the 2.0.1 installer I also installed the CF extensions that are included. First thing that I noticed is that I had to un-select Ignore features not applicable to this environment. So install the zip extension included with the download and restart. It included the wizard but not cfc support. I can force the creation of a cfc by typing in sample.cfc but it reacts like a basic text file with none of the type prompting available and other features. Before the computer was imaged I had installed 2.0.0 and the cf extensions then upgrading to 2.0.1 with now issues and I would simply do the same thing but I don't have a 2.0.0 installer. Has anyone else run into this yet or know a way around it? Any help would be appreciated.
[flexcoders] addEventListener and additional arguments?
Is there a way to use the addEventListener method and pass additional arguments along with the event? I have a form where I must create the form objects dynamically so I need to use addEventListener for formatting, etc. I can not use inline mxml to add the listeners.
[flexcoders] Calling web services from IE does not work, but FireFox does?
I have a problem that I am tearing my hair out about. We have a Flex application that works without a problem when it is run in FireFox. When we run it from IE, however, the SWF loads, but the web service calls are never made. What is even stranger is that when we fire up ServiceCapture to have a look, everything starts working. I can duplicate this on any machine running IE, and fix it on any machine by installing and running ServiceCapture. The moment I don't fire up ServiceCapture though, the app stops working (no web service calls). Any thoughts, suggestions, etc. would be GREATLY appreciated! Thanks in advance... Martin Longo VP Products Demandbase, Inc.
Re: [flexcoders] coords on dragged object
Take a look at DragEvent... -Scott On 2/12/07, Douglas Knudsen [EMAIL PROTECTED] wrote: ok, I have a List populated from a AC of objects. I have drag+drop setup to drag one of the items from the list and drop it onto a VBox contained view. I need to get the x-coord relative to the object being dropped. Anyone have a idea? in 1.5 I used a undocumented piece DragManager[_dragProxy] to get it, of course that bit me in the backside now, eh? I used this to get the mouse coord relative to the dragged object, combined with the mouse coord relative to the stage I can get the x-coord of the object dropped. Diggning through the docs so far, I can't seem to find this. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- : : ) Scott
[flexcoders] dataTipFunction on DataGridColumn with custom itemRenderer?
Is it just me, or is it not possible to set a dataTipFunction on a DataGridColumn that uses a custom itemRenderer? I have the following DataGridColumn defined: mx:DataGridColumn headerText=Days dataField=daysOfWeek sortable=false editable=false itemRenderer=com.meredith.newmedia.bhgdesktop.view.admin.blogDaysIcon width=40 showDataTips=true dataTipFunction=showDaysToolTip/ And my function is defined like this: public function showDaysToolTip(obj:Object): String { trace(in showDaysToolTip); return testing; } But this is never getting called. Am I doing something unsupported? Thanks! Todd
[flexcoders] Using CheckBox as ItemEditor
I am having troubles while using a CheckBox control inside a DataGridColumn as an itemEditor. First i tried this: mx:DataGridColumn dataField=idDoctoEnvio headerText= itemEditor=mx.controls.CheckBox editorDataField=selected editable = true/ And it didn't work, so i tried this instead: mx:DataGridColumn dataField=idDoctoEnvio headerText= editable=true rendererIsEditor=true itemEditor=com.legosoft.mxml.ItemEditorCheckBox editorDataField=cbSelected width=45/ where ItemEditorCheckBox is: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:CheckBox id=editorCB height=100% width=100% selected={data.FollowUp} click=cbSelected=editorCB.selected updateComplete=cbSelected=editorCB.selected;/ mx:Script ![CDATA[ [Bindable] public var cbSelected : Boolean; ]] /mx:Script /mx:VBox And that didn't work either, so what's the deal here? How can i use a CheckBox control as an itemEditor? By the way, both attempts to make this work were taken from the Flex Developer's Guide...it was supposed to be working, i mean its on the dev guide, right?
Re: [flexcoders] Source formatting
I'm sure that's the case, and I'm not trying to trivialize the immense amount of work that the FlexBuilder team put into the tool. I love it, and by and large the code editing is heads and tails above the Flash IDE or Dreamweaver, IMO. I just really like that feature, and am surprised that we haven't seen anything even attempting it from either Adobe or the OSS/Eclipse community. On 2/12/07, Gordon Smith [EMAIL PROTECTED] wrote: why do we not have something similar in FlexBuilder I think the answer is that the FlexBuilder team believed other feaures deserved higher priority. Autoformatting a language like AS3 isn't a trivial amount of work. - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Nick Collins *Sent:* Monday, February 12, 2007 11:26 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Source formatting Ok, maybe I'm just lazy, or maybe I'm the only one that doesn't like to do some things manually, but I love the source formatting tools in Dreamweaver and Flash, and I have to wonder, why do we not have something similar in FlexBuilder? Yes I know I can select a block of text, right click and click shift right, or shift left, but I'd like a menu item or shortcut that will go through and align my code according to my preferences, like in Flash and Dreamweaver. Anybody know of anything out there that will do this for me?
[flexcoders] Reading SharedObjects as Arrays
Hi all: I have found there is plenty of info out there on how to do simple reads from Shared Objects in Flex 2.0/AS3.0, but whenever I try to read it in as an array I get stack overflow errors. I would post my code but it's such a basic question that I am not yet willing to parse out the proprietary stuff. I'm just sort of wondering if there is some better documentation on reading sharedObject arrays than I have found so far (pretty hard core googling has left me empty to this point). I don't think I am encountering a type casting issue but I am not discounting it, so any generic tips would be appreciated. Sorry, no code yet. I'll try to set up a specific use case if I don't hear back. -- chuck Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
RE: [flexcoders] Using CheckBox as ItemEditor
Try this: mx:DataGridColumn headerText=Dropship dataField=dropship textAlign=center width=40 editable=false mx:itemRenderer mx:Component mx:VBox horizontalAlign=center mx:CheckBox click=data.dropship=!data.dropship selected={data.dropship} / /mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dmiramontesval Sent: Tuesday, February 13, 2007 5:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using CheckBox as ItemEditor I am having troubles while using a CheckBox control inside a DataGridColumn as an itemEditor. First i tried this: mx:DataGridColumn dataField=idDoctoEnvio headerText= itemEditor=mx.controls.CheckBox editorDataField=selected editable = true/ And it didn't work, so i tried this instead: mx:DataGridColumn dataField=idDoctoEnvio headerText= editable=true rendererIsEditor=true itemEditor=com.legosoft.mxml.ItemEditorCheckBox editorDataField=cbSelected width=45/ where ItemEditorCheckBox is: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:CheckBox id=editorCB height=100% width=100% selected={data.FollowUp} click=cbSelected=editorCB.selected updateComplete=cbSelected=editorCB.selected;/ mx:Script ![CDATA[ [Bindable] public var cbSelected : Boolean; ]] /mx:Script /mx:VBox And that didn't work either, so what's the deal here? How can i use a CheckBox control as an itemEditor? By the way, both attempts to make this work were taken from the Flex Developer's Guide...it was supposed to be working, i mean its on the dev guide, right?
[flexcoders] Mystery space
Anyone experience any issues where Flex just throws extra space into the layout, causing elements to jump or get bumped out of their parent containers? I have this issue with an application and have spent the majority of the day trying to resolve it. There are three custom components loaded into a TabNavigator (ive tried other layout containers too). The first element has about a 50px space below it when it loads, and on certain events the screen also jumps. The space does not exist below the other two components and they utilize almost the exact same layout and code. I have also tried changing the order of these and the same component will always behave the same way regardless of the position. Any help would be greatly appreciated.
Re: [flexcoders] Flex 2 and the Browser
you could try this: mx:Button x=10 y=200 label=Button click={trace( ExternalInterface.call('eval','document.location.href'));}/ put in a feature request to get the wrapper url and parameters. Feature Request http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform On 8/2/06, Rick Root [EMAIL PROTECTED] wrote: Matt Horn wrote: Two questions. #1 - Can a Flex 2 app know the URL of the browser window it is currently loaded into? Yes. var baseurl:String = Application.application.url; Matt, That returns the URL of the swf itself, not the URL of the parent browser window in which the swf lives (unless the swf was called directly, not within an HTML page, I suppose). Same goes for the Application.application.parameters - it returns the URL parameters of the SWF itself, not the parent browser window. No matter though, as I posted earlier in the thread, that's good enough :) Rick -- 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