RE: [flexcoders] More print woes ;-)
1) Set your application background color to white in MXML. Then you can set it to another color (e.g. 0x99) when application is initializing. This way the background on the screen will be the value set later but the background value for printing is white. I don't why this works but it just does. Markus -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: 21. syyskuuta 2005 14:10 To: flexcoders@yahoogroups.com Subject: [flexcoders] More print woes ;-) Hi, I found in the archives of this group some code to print a datagrid. It doesn't work so well and this was reported in the Flex Macromedia forum: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm? catid=346threadid=966370highlight_key=ykeyword1=print There is some new code listed there, from Mike Collins, which does a much better job - but there are still problems that I can't seem to resolve with it... I wonder if anyone here has any ideas... (1) When you use that code to print, the area outside the grid is printed in dark grey... how can this be stopped - ie have it white ?! (2) Is there any way to have the print job default to landscape ? Thanks - any help much appreciated. Jamie. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM -- --~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Metamorphosing RadioButtonGroup
Umm.. well... maybe I could use mxml. RadioButtonGroup and the RadioButtons constitue a boolean component in our software. And if there are several RadioButtonGroups with the same id in a form, focus transition with tab key won't work correctly. So the need was to set unique id dynamically and I thought it cannot be done with mxml. But why not, maybe I should try that. However, it still would be nice to know the reason for the metamorphosis since unsolved mysteries are irritating. I would love to dig deeper to find out why this is happening, but currently I'm more interested in the future than the past. ;) Would it help if you used an undocumented property called 'group' instead of 'groupName'? No guarantees it'll make life easier for you or even work at all (without quietly breaking something else), but give it a try. See RadioButton.as in your flexforflash.zip. Just to let you know, I solved the problem by not creating the RadioButtonGroup at all. Instead, the getter function for a group property in RadioButton creates it for me. I don't know why it works and my initial solution didn't, but anyway, now it's time to move on. Markus Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Metamorphosing RadioButtonGroup
Title: Message I have been trying to dynamically create RadioButtonGroup (due to the problem I posted earlier). I managed to create the group but getting access to the RadioButtonGroup object seems to be quite hard.I create the groupduring initialize event, but when I try to access the group, it seems to be totally different object. For example, if I set id property for the group during initialization it has disappeared when accessed later. Here's some sample code demonstrating the problem: RadioProblem.mxml: ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"xmlns:my="*"my:RadioGroup width="500" height="200"//mx:Application RadioGroup.as: import mx.controls.*;import mx.containers.*; class RadioGroup extends Panel{public var radioTrue;public var radioFalse;public var radioUnknown;public var radioGroup;public var label1;public var label2;public function RadioGroup(){super();addEventListener( "initialize", mx.utils.Delegate.create( this, onInitialization ) );addEventListener( "creationComplete", mx.utils.Delegate.create( this, onCreationComplete ) );}private function onInitialization(){var id:String = getId();radioGroup = createChild( RadioButtonGroup, undefined, { id:id } );radioTrue = createChild( RadioButton, undefined, { groupName:id, id:"radioTrue", marginRight:20 } );radioFalse = createChild( RadioButton, undefined, { groupName:id, id:"radioFalse", marginRight:20 } );radioUnknown = createChild( RadioButton, undefined, { groupName:id, id:"radioUnknown", marginRight:20 } );label1 = createChild( Label, undefined, {} );label2 = createChild( Label, undefined, {} ); label1.text = "label1: " + radioGroup.id; //"myId"}private function onCreationComplete(){label2.text = "label2: " + radioGroup.id; // undefined}private function getId():String{return "myId";}} -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Tab key and consecutive radio button groups
Title: Message In our system there's a component for presenting yes/no/unknown (boolean) selections. Basically, the structure of the component is following: mx:HBox mx:RadioButtonGroup id="myGroup" mx:RadioButton id="radioTrue" groupName="myGroup"/ mx:RadioButton id="radioFalse" groupName="myGroup"/ mx:RadioButton id="radioUnknown" groupName="myGroup"/ /mx:HBox The component is dynamically added to a form like the other components. The problem is with the tab key focus transition when there are many boolean components one after another, for example: Text Boolean1_Yes _No XUnknown Boolean2_Yes XNo _Unknown Integer If the focus is in the Text component and I press tab key, the focus moves to No option of the Boolean2. Apparently FocusManager.walkTree works as planned when searching the component to set to focus in. I just need to somehow tell the FocusManager that the focus should be set to Boolean1. Markus -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Closing TitleWindow crashes program
Title: Message I have a search dialog (TitleWindow), which also shows the results of the search. User is able to select a value from the result list to be used in the main window. To improve the usability I have been adding a possibility to use double-click to both select the value andclose the popup (the previous version of the dialog required a separate OK-button clicking). The problem I am facing is that if I delete the dialog when cellPress event is called it causes program to crash. I have included sample code to demonstrate the problem. Popup dialog can be closed and reopened if closing is done with Close-button. But if closing is done by pressing a cell in DataGrid the dialog cannot be reopened. What may cause this to happen? Is there any workaround for the problem? Markus -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. DeletePopUpProblem.mxml Description: Binary data DeletePopUpDialog.mxml Description: Binary data
[flexcoders] Disappearing server call parameter
I'm totally confused with one of my server calls. It seems to be that in certain circumstances one of the parameter object's properties disappear. I have debugged the application to the point where the server call is made and debugger says the property exists. But when the server side code is called there is no value for the property. I know the problem sounds weird, but I simply can't find the cause of the problem. Has anyone any suggestions? In below, there are some details from the Network Monitor. Markus 13:43:12.691RemoteObjectRPC 13.43:12.942HTTPHeader POST 13.43.12.942AMF AMF/Post Message Here are details for the RPC: Method: observationFacade.saveObservationDefinition Parameter 1: name : param1 type : object value[object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][object] : definition[null] : null id[object] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[object] : code OK - code[String] : as ... And for the AMF Post Message: Message Target : observationFacade.saveObservationDefinition data[array] : length[Number] : 1 [0][object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][com.intensium.iwiser.business.observation.ObservationVO] : definition[undefined] : undefined id[com.intensium.iwiser.business.IdVO] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO] : code missing - code[undefined] : undefined ... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Disappearing server call parameter
Title: Message The code property is "public var code:String;". And yes, Java class has that property. The server call is used when an object is added or edited. It has worked fine and actually the feature which uses the call has already been deployed to a customer as a part of our software. Yesterday we got an error report from the customer and the cause of the error turned out to be disappearing code property. It only happens if another property is changed. I know there are plenty of places in the UI that could mess up with the value, but the debugger revealed that the value should be OK when it is send to the server. I tried to use implicit getter/setter but the setter was never called with null value. I noticed that if I change the value of code property, it does not disappear. I also tried adding an additional property as you suggested andthere was no problem passing it to server side. I hope that you (or someone else) have some kind of suggestion since I'm stucked with this. Markus -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: 11. heinäkuuta 2005 23:36To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Disappearing server call parameter Is the code property a getter/setter? What if you add an additional property named something else? Does your Java class have that property declared? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Markus AnsamaaSent: Monday, July 11, 2005 4:11 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Disappearing server call parameter I'm totally confused with one of my server calls. It seems to be that incertain circumstances one of the parameter object's properties disappear. Ihave debugged the application to the point where the server call is made anddebugger says the property exists. But when the server side code is calledthere is no value for the property. I know the problem sounds weird, but Isimply can't find the cause of the problem. Has anyone any suggestions?In below, there are some details from the Network Monitor.Markus13:43:12.691 RemoteObject RPC13.43:12.942 HTTPHeader POST13.43.12.942 AMF AMF/Post MessageHere are details for the RPC:Method: observationFacade.saveObservationDefinitionParameter 1: name : param1 type : object value[object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][object] : definition[null] : null id[object] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[object] : code OK - code[String] : as ...And for the AMF Post Message:Message Target : observationFacade.saveObservationDefinitiondata[array] : length[Number] : 1 [0][object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][com.intensium.iwiser.business.observation.ObservationVO] : definition[undefined] : undefined id[com.intensium.iwiser.business.IdVO] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO]: code missing - code[undefined] : undefined ...--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Width of a label when setting font size
Title: Message Thanks. Simple answer for a simple question. Markus -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe MaegermanSent: 30. kesäkuuta 2005 10:33To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Width of a label when setting font size I managed to get it working this way: mx:Label fontSize="14" htmlText="lt;font size='14'gt;Not so long textfieldlt;/fontgt;"/ If I'm not wrong, text formatting won't apply on htmlText fields, but specifying a font size might help flash toanticipate the necessary space. Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Markus AnsamaaSent: jeudi 30 juin 2005 9:03To: flexcoders@yahoogroups.comSubject: [flexcoders] Width of a label when setting font size I have a label, which value is set via htmlText property. If I don't specifyany font size, label field is scaled to show the entire text. However, if Iset font size, the text will be clipped. How do I tell the label to takeinto account the font size when it's calculating its preferred width?Here's a short demonstration of the problem:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Label htmlText="Not so long text field"/ mx:Label htmlText="lt;font size='14'gt;Not so long textfieldlt;/fontgt;"//mx:ApplicationMarkus Ansamaa--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.-- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
List.getLength
Title: Message I have wondered why there isn't a getLength method for a List. I have used List.dataProvider.length which feels clumsy to use. Today I just happened to try if such a method exists and there it was! I think most of you already knew that, but to me it was a totally new discovery. List seems to use DataSelector internally, which is the reason why getLength is not mentioned in the API. Iamjust wondering, how should I know that List uses DataSelector and getLength methodexists?! List's API says nothing about getLength or DataSelector. And how many other "hidden" interfaces there are? Markus Ansamaa