Re: [flexcoders] [Bindable] not binding
It doesn't look like you instantiate the controller, are you doing that somewhere else in your code? public var controller: QController = new QController(); - Original Message From: polestar11 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, September 13, 2007 6:20:12 AM Subject: [flexcoders] [Bindable] not binding Hi there I've used the [Bindabe] meta-tag 100's of times, but for some reason it seems to have stopped working. I have a very straight-forward setup with a controller, properties and a view. I have a bindable reference to the controller in the view, while the controller has a bindable 'title' property. Setting breakpoints at various steps of the code I can confirm that the 'title' property is bound to the label in the view (titleText.text = My Title), yet it is not displayed. I even tried view.validateNow( ); to try force validation / displaying of the label. What could I be doing wrong, is there possibly a bug in the new Flash Player that isnt updating bound properties correctly? This is the 2nd time I've come across this in 3 days. Here is a summary of my code: View.mxml - [Bindable] public var controller: QController; mx:Label id=titleText text={controller. title} fontWeight= bold / QController. as -- [Bindable] public function get title():String { return _title; } public function set title(value: String):void { _title = value; _view.validateNow( ); } !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} -- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Re: [flexcoders] Re: [Bindable] not binding
You have bound your label to null. I think your problem is that the label never realizes the property changes so it doesn't redraw. As a test try adding titleText.invalidateProperties() at the end of your onCreationComplete - Original Message From: polestar11 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, September 13, 2007 8:08:46 AM Subject: [flexcoders] Re: [Bindable] not binding I instantiate the controller in the controller class, in the view's onCreationComplete event: public function QController( ):void { _view.addEventListe ner(FlexEvent. CREATION_ COMPLETE, onCreationComplete) ; } private function onCreationComplete( e: FlexEvent):void { _view.removeEventLi stener(FlexEvent .CREATION_ COMPLETE, onCreationComplete) ; _view.controller = this; } --- In [EMAIL PROTECTED] ups.com, Sean Sell rough68fish@ ... wrote: It doesn't look like you instantiate the controller, are you doing that somewhere else in your code? public var controller: QController = new QController( ); - Original Message From: polestar11 polestar11@ ... To: [EMAIL PROTECTED] ups.com Sent: Thursday, September 13, 2007 6:20:12 AM Subject: [flexcoders] [Bindable] not binding Hi there I've used the [Bindabe] meta-tag 100's of times, but for some reason it seems to have stopped working. I have a very straight-forward setup with a controller, properties and a view. I have a bindable reference to the controller in the view, while the controller has a bindable 'title' property. Setting breakpoints at various steps of the code I can confirm that the 'title' property is bound to the label in the view (titleText.text = My Title), yet it is not displayed. I even tried view.validateNow( ); to try force validation / displaying of the label. What could I be doing wrong, is there possibly a bug in the new Flash Player that isnt updating bound properties correctly? This is the 2nd time I've come across this in 3 days. Here is a summary of my code: View.mxml - [Bindable] public var controller: QController; mx:Label id=titleText text={controller. title} fontWeight= bold / QController. as -- [Bindable] public function get title():String { return _title; } public function set title(value: String):void { _title = value; _view.validateNow( ); } !-- #ygrp-mkp{ border:1px solid #d8d8d8;font- family:Arial; margin:14px 0px;padding: 0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a; font-size: 85%;font- weight:bold; line-height: 122%;margin: 10px 0px;} #ygrp-mkp #ads{ margin-bottom: 10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff; text-decoration: none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family: Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight: bold;font- size:78%; line-height: 122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom: 10px;padding: 0 0;} -- !-- #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit; font:100% ;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height: 1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family: Arial; clear:both;} #ygrp-vitnav{ padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin: 25px 0;white-space: nowrap;color: #666;text- align:right; } #ygrp-actbar .left{ float:left;white- space:nowrap; } .bld{font-weight: bold;} #ygrp-grft{ font-family: Verdana;font- size:77%; padding:15px 0;} #ygrp-ft{ font-family: verdana;font- size:77%; border-top: 1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom: 10px;} #ygrp-vital{ background-color: #e0ecee;margin- bottom:20px; padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77% ;font-family: Verdana;font- weight:bold; color:#333; text-transform: uppercase; } #ygrp-vital ul{ padding:0;margin: 2px 0;} #ygrp-vital ul li{ list-style-type: none;clear: both;border: 1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight: bold;color: #ff7900;float: right;width: 2em;text- align:right; padding-right: .5em;} #ygrp-vital ul li .cat{ font-weight: bold;} #ygrp-vital a{ text-decoration: none;} #ygrp-vital a:hover{ text-decoration: underline; } #ygrp
Re: [flexcoders] Re: [Bindable] not binding
Event better would be to do it like cairngorm and create your controller before the view then your view objects well be correctly bound from the beginning. Look in the asdocs at what you do to bind things in as. It gives you a clearer picture of what is going on. The Label is bound to controller and then specifically the title attribute. When you do your binding controller is null. - Original Message From: Sean Sell [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, September 13, 2007 9:36:37 AM Subject: Re: [flexcoders] Re: [Bindable] not binding You have bound your label to null. I think your problem is that the label never realizes the property changes so it doesn't redraw. As a test try adding titleText.invalidat eProperties( ) at the end of your onCreationComplete - Original Message From: polestar11 [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Thursday, September 13, 2007 8:08:46 AM Subject: [flexcoders] Re: [Bindable] not binding I instantiate the controller in the controller class, in the view's onCreationComplete event: public function QController( ):void { _view.addEventListe ner(FlexEvent. CREATION_ COMPLETE, onCreationComplete) ; } private function onCreationComplete( e: FlexEvent):void { _view.removeEventLi stener(FlexEvent .CREATION_ COMPLETE, onCreationComplete) ; _view.controller = this; } --- In [EMAIL PROTECTED] ups.com, Sean Sell rough68fish@ ... wrote: It doesn't look like you instantiate the controller, are you doing that somewhere else in your code? public var controller: QController = new QController( ); - Original Message From: polestar11 polestar11@ ... To: [EMAIL PROTECTED] ups.com Sent: Thursday, September 13, 2007 6:20:12 AM Subject: [flexcoders] [Bindable] not binding Hi there I've used the [Bindabe] meta-tag 100's of times, but for some reason it seems to have stopped working. I have a very straight-forward setup with a controller, properties and a view. I have a bindable reference to the controller in the view, while the controller has a bindable 'title' property. Setting breakpoints at various steps of the code I can confirm that the 'title' property is bound to the label in the view (titleText.text = My Title), yet it is not displayed. I even tried view.validateNow( ); to try force validation / displaying of the label. What could I be doing wrong, is there possibly a bug in the new Flash Player that isnt updating bound properties correctly? This is the 2nd time I've come across this in 3 days. Here is a summary of my code: View.mxml - [Bindable] public var controller: QController; mx:Label id=titleText text={controller. title} fontWeight= bold / QController. as -- [Bindable] public function get title():String { return _title; } public function set title(value: String):void { _title = value; _view.validateNow( ); } !-- #ygrp-mkp{ border:1px solid #d8d8d8;font- family:Arial; margin:14px 0px;padding: 0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a; font-size: 85%;font- weight:bold; line-height: 122%;margin: 10px 0px;} #ygrp-mkp #ads{ margin-bottom: 10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff; text-decoration: none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family: Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight: bold;font- size:78%; line-height: 122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom: 10px;padding: 0 0;} -- !-- #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit; font:100% ;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height: 1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family: Arial; clear:both;} #ygrp-vitnav{ padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin: 25px 0;white-space: nowrap;color: #666;text- align:right; } #ygrp-actbar .left{ float:left;white- space:nowrap; } .bld{font-weight: bold;} #ygrp-grft{ font-family: Verdana;font- size:77%; padding:15px 0;} #ygrp-ft{ font-family: verdana;font- size:77%; border-top: 1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom: 10px;} #ygrp-vital
Re: [flexcoders] Re: Selecting which Child Components to add at runtime
Not quite. I have items 0 through 5 I want them to be displayed in that order but if 4 is not displayed then I get an out of bounds error when I addChild At 5. It may happen when 2 is drawn even if 0 and 1 are going to be drawn but since I have no control over order it evaluates the variables in the MXML invocation that will generate an error also i.e. reportComps:OrderBy id=userOrderBy showAssociate=true showArrival=true showPDeparture=true showHost=true/ - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, June 5, 2007 1:20:41 PM Subject: RE: [flexcoders] Re: Selecting which Child Components to add at runtime The order of items in HBox/VBox is their childIndex order. addChildAt(myButton , 0) should put it first. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of rough68fish Sent: Tuesday, June 05, 2007 10:05 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Re: Selecting which Child Components to add at runtime When showAssociate is set to true the button shows up, but I want it always to show up first. Here's my code: ?xml version=1.0 encoding=utf- 8? mx:HBox xmlns:mx=http://www.adobe. com/2006/ mxml mx:Script ![CDATA[ import mx.controls. RadioButton; // Associate Order By public function set showAssociate( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( associateRB , Associate Name, Associate) ; myButton.selected = true; this.addChild( myButton) ; } else { if (this.getChildByNam e(associateRB ) != null) { this.removeChild( this.getChildByN ame(associateRB )); } } } // Host Order By public function set showHost(val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( hostRB, Host Name, Host); this.addChild( myButton) ; } else { if (this.getChildByNam e(hostRB ) != null) { this.removeChild( this.getChildByN ame(hostRB )); } } } // Arrival Order By public function set showArrival( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( arrivalRB , Arrival Date, Arrival); this.addChild( myButton) ; } else { if (this.getChildByNam e(arrivalRB ) != null) { this.removeChild( this.getChildByN ame(arrivalRB )); } } } // Departure Order By public function set showDeparture( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( departureRB , Departure Date, Departure) ; this.addChild( myButton) ; } else { if (this.getChildByNam e(departureRB ) != null) { this.removeChild( this.getChildByN ame(departureRB )); } } } // Pending Arrival Order By public function set showPArrival( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( pArrivalRB , Pending Arrival Date, PArrival); this.addChild( myButton) ; } else { if (this.getChildByNam e(pArrivalRB ) != null) { this.removeChild( this.getChildByN ame(pArrivalRB )); } } } // Pending Departure Order By public function set showPDeparture( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( pDepartureRB , Pending Departure Date, PDeparture ); this.addChild( myButton) ; } else { if (this.getChildByNam e(pDepartureRB ) != null) { this.removeChild( this.getChildByN ame(pDepartureR B)); } } } protected function getNewButton( id : String, label : String, value : String) : RadioButton { var myButton : RadioButton = new RadioButton( ); myButton.id = id; myButton.groupName = orderByGrp ; myButton.label = label; myButton.value = value; return myButton; } public function reset() : void { if (this.getChildByNam e(associateRB ) != null) { RadioButton( this.getChildByN ame(associateRB )).selected = true; } } ]] /mx:Script mx:RadioButtonGrou p id=orderByGrp / !--mx:RadioButton id=associateRB groupName=orderByG rp label=Associate Name value=Associate visible={this. showAssociate} selected=true /-- !--mx:RadioButton id=hostRB groupName=orderByG rp label=Host Name value=Host visible={this. showHost} /-- !--mx:RadioButton id=arrivalRB groupName=orderByG rp label=Arrival Date value=Arrival visible={this. showArrival} /-- !--mx:RadioButton id=departureRB groupName=orderByG rp label=Departure Date value=Departure visible={this. showDeparture} /-- !--mx:RadioButton id=pArrivalRB groupName=orderByG rp label=Pending Arrival Date value=PArrival visible={this. showPArrival} /-- !--mx:RadioButton id=pDepartureRB groupName=orderByG rp label=Pending Departure Date value=PDeparture visible={this. showPDeparture} /-- /mx:HBox --- In [EMAIL PROTECTED] ups.com, rough68fish rough68fish@ ... wrote: Can you extend this concept slightly for me. I have several dynamic items to display in the view (whether they are displayed is controled through binding
Re: [flexcoders] Re: Selecting which Child Components to add at runtime
do you have an example of this technique? - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, June 5, 2007 3:35:10 PM Subject: RE: [flexcoders] Re: Selecting which Child Components to add at runtime You could try changing .visible and .includeInLayout instead of adding/removing. The best practice for resolving multiple properties is to use the invalidatePropertie s/commitProperti es technique. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sean Sell Sent: Tuesday, June 05, 2007 11:13 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: Selecting which Child Components to add at runtime Not quite. I have items 0 through 5 I want them to be displayed in that order but if 4 is not displayed then I get an out of bounds error when I addChild At 5. It may happen when 2 is drawn even if 0 and 1 are going to be drawn but since I have no control over order it evaluates the variables in the MXML invocation that will generate an error also i.e. reportComps: OrderBy id=userOrderBy showAssociate= true showArrival= true showPDeparture= true showHost=true / - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, June 5, 2007 1:20:41 PM Subject: RE: [flexcoders] Re: Selecting which Child Components to add at runtime The order of items in HBox/VBox is their childIndex order. addChildAt(myButton , 0) should put it first. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of rough68fish Sent: Tuesday, June 05, 2007 10:05 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Re: Selecting which Child Components to add at runtime When showAssociate is set to true the button shows up, but I want it always to show up first. Here's my code: ?xml version=1.0 encoding=utf- 8? mx:HBox xmlns:mx=http://www.adobe. com/2006/ mxml mx:Script ![CDATA[ import mx.controls. RadioButton; // Associate Order By public function set showAssociate( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( associateRB , Associate Name, Associate) ; myButton.selected = true; this.addChild( myButton) ; } else { if (this.getChildByNam e(associateRB ) != null) { this.removeChild( this.getChildByN ame(associateRB )); } } } // Host Order By public function set showHost(val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( hostRB, Host Name, Host); this.addChild( myButton) ; } else { if (this.getChildByNam e(hostRB ) != null) { this.removeChild( this.getChildByN ame(hostRB )); } } } // Arrival Order By public function set showArrival( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( arrivalRB , Arrival Date, Arrival); this.addChild( myButton) ; } else { if (this.getChildByNam e(arrivalRB ) != null) { this.removeChild( this.getChildByN ame(arrivalRB )); } } } // Departure Order By public function set showDeparture( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( departureRB , Departure Date, Departure) ; this.addChild( myButton) ; } else { if (this.getChildByNam e(departureRB ) != null) { this.removeChild( this.getChildByN ame(departureRB )); } } } // Pending Arrival Order By public function set showPArrival( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( pArrivalRB , Pending Arrival Date, PArrival); this.addChild( myButton) ; } else { if (this.getChildByNam e(pArrivalRB ) != null) { this.removeChild( this.getChildByN ame(pArrivalRB )); } } } // Pending Departure Order By public function set showPDeparture( val : Boolean) : void { if (val == true) { var myButton : RadioButton = getNewButton( pDepartureRB , Pending Departure Date, PDeparture ); this.addChild( myButton) ; } else { if (this.getChildByNam e(pDepartureRB ) != null) { this.removeChild( this.getChildByN ame(pDepartureR B)); } } } protected function getNewButton( id : String, label : String, value : String) : RadioButton { var myButton : RadioButton = new RadioButton( ); myButton.id = id; myButton.groupName = orderByGrp ; myButton.label = label; myButton.value = value; return myButton; } public function reset() : void { if (this.getChildByNam e(associateRB ) != null) { RadioButton( this.getChildByN ame(associateRB )).selected = true; } } ]] /mx:Script mx:RadioButtonGrou p id=orderByGrp / !--mx:RadioButton id=associateRB groupName=orderByG rp label=Associate Name value=Associate visible={this. showAssociate} selected=true /-- !--mx:RadioButton id=hostRB groupName=orderByG rp label=Host Name value=Host visible={this. showHost
[flexcoders] How to control what scrolls
Given the following code: ?xml version=1.0 encoding=utf-8? mx:Panel id=panel1 layout=vertical mx:Form id=form1 mx:FormHeading label=Heading/ mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:List/mx:List /mx:FormItem mx:FormItem label=Label mx:List/mx:List /mx:FormItem /mx:Form mx:ControlBar id=cBar1 mx:Button label=Button/ /mx:ControlBar /mx:Panel /mx:Application I want the application to always be the size of the browser window, the panel to take up all the space and the control bar to always be visible. So if the browser window is too small I what to scroll the form. How do I get this to work. P.S. What does height 100% vs. not specifying any height one the application vs. containers within the app. --Sean __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] How to control what scrolls
Don't know why but my application tag disappeared: - Original Message From: Sean Sell [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 9, 2007 8:05:06 AM Subject: [flexcoders] How to control what scrolls Given the following code: ?xml version=1.0 encoding=utf- 8? mx:Panel id=panel1 layout=vertical mx:Form id=form1 mx:FormHeading label=Heading / mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:List/mx:List /mx:FormItem mx:FormItem label=Label mx:List/mx:List /mx:FormItem /mx:Form mx:ControlBar id=cBar1 mx:Button label=Button / /mx:ControlBar /mx:Panel /mx:Application I want the application to always be the size of the browser window, the panel to take up all the space and the control bar to always be visible. So if the browser window is too small I what to scroll the form. How do I get this to work. P.S. What does height 100% vs. not specifying any height one the application vs. containers within the app. --Sean Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail
Re: [flexcoders] Re: FDS Messaging error
Does it work in Firefox and just not in IE? If so, we had a problem on IE making remote object calls to our server when using https. Adding the following: mx:Script ![CDATA[ import mx.messaging.ChannelSet; public var channelIDArray:Array = new Array(my-amf, my-http, my-secure-amf,my-secure-http); [Bindable] public var servicesChannelSet:ChannelSet = new ChannelSet(channelIDArray,false); ]] /mx:Script and setting: channelSet={this.servicesChannelSet} in the MX:RemoteObject tag fixed the problem. otherwise post you configs and how you are compiling. Provided your config is right the easiest way to get the client compiled correctly is to have it compiled on the server where it will be served from. - Original Message From: Barry Evans [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 9, 2007 6:17:27 AM Subject: [flexcoders] Re: FDS Messaging error I was just wondering if there was any joy on getting the messaging service to work. I too have trying to get a better understanding of fds and i want to run through the simple chat application. when i run the swf in IE, i get the following error message: [MessagingError message='Unknown destination 'MyTransientTopic' .'] at mx.messaging. config::ServerCo nfig$/getChannel Set() at mx.messaging: :Consumer/ mx.messaging: Consumer: :initChannelSet( ) at mx.messaging: :MessageAgent/ mx.messaging: MessageAgent: :internalSend( ) at mx.messaging: :Consumer/ subscribe( ) at ChatClient/_ __Application1_ creationComplete () at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv entFunction( ) at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( ) at mx.core::UIComponen t/set initialized( ) at mx.managers: :LayoutManager/ ::doPhasedInstan tiation() at Function/http://adobe. com/AS3/2006/ builtin:: apply() at mx.core::UIComponen t/::callLaterDis patcher2( ) at mx.core::UIComponen t/::callLaterDis patcher() Any help would be appreciated Barry --- In [EMAIL PROTECTED] ups.com, Robs [EMAIL PROTECTED] . wrote: Nopes :(( ! It still shows the same error. Is it that fds can't locate my config files properly. Lemme give the dir structure of my project : flex samples folder messageboard folder my chat app folder web-inf folder {all fds related config xmls} The way I access my app is http://localhost: 8080/samples/ messageboard/ fdsChat/fdsChat. mxml . --- In [EMAIL PROTECTED] ups.com, Dirk Eismann DEismann@ wrote: Make sure to restart FDS after you modify any of the config files. Also, if you're using Flex Builder 2 then it's always a good idea to do a Project -- Clean after modifying the FDS config files. Dirk. -Original Message- From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Robs Sent: Tuesday, April 10, 2007 3:36 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] FDS Messaging error Hi all, I'm trying out a sample chat app using fds messaging. As per the instructions, I made a new destination in the messaging-config. xml as follows: destination id=MyTransientTopi c properties server durablefalse /durable /server /properties channels channel ref=my-rtmp / /channels /destination Unfortunately, my application does not seem to get this destination is throwing the following error: [Error: (mx.messaging. messages: :ErrorMessage) #0 body = (null) clientId = (null) correlationId = AC6C8425-5819- 7952-C465- DBB44D54B08E destination = MyTransientTopic extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = No destination 'MyTransientTopic' exists in service flex.messaging. services. MessageService headers = (Object)#1 messageId = 996330F1-2418- 1987-0B1E- A4C224645BD9 rootCause = (null) timestamp = 1176212098404 timeToLive = 0] Where am I going wrong? Please help ! Regards, Robi. -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,
Re: [flexcoders] is Serializable needed?
I don't don't know about hibernate but I'm pushing some object onto a JMS topic and they need to be serialized. to get rid of your error add to your class: public static final long serialVersionUID = 1L; you only need to update the version ID with changes if you actually store the serialized version and want make sure your not loading and old one. - Original Message From: Kevin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 9, 2007 8:47:13 AM Subject: [flexcoders] is Serializable needed? do java classes need to implement java.io.Serializabl e for use with FDS/Hibernate? If not is there another reason to do this? Eclipse keeps giving me warnings whenever I implement this? The serializable class AddressVO does not declare a static final serialVersionUID field of type long Thanks, Kevin !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
[flexcoders] QTP Testing (Flex Automation) - FormHeading ommitted
In case anyone else needs it: I wanted to do a checkpoint on a heading contained in a Flex Form but FormHeading was not defined in the TEAFlex.xml file so I added it to the custom file (attached) it should probably be added in the standard distribution. I have to say that the Flex Automation capabilities are VERY well done. Please thank who ever is responsible. The instructions on how to get it setup are a little confusing though. A sample compiled swf that you can test against to see if it's working would be a great addition to the distribution. --Sean Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/TypeInformation xsi:noNamespaceSchemaLocation=ClassesDefintions.xsd Priority=0 PackageName=TEA Load=true id=Flex xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; ClassInfo Name=FlexFormHeading GenericTypeID=flexFormHeading Extends=FlexObject SupportsTabularData=false DescriptionFlexFormHeading/Description Implementation Class=mx.containers.FormHeading/ TypeInfo Operation Name=Click PropertyType=Method ExposureLevel=CommonUsed Implementation Class=flash.events::MouseEvent Type=click/ Argument Name=ctrlKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Control key down when clicking on the container. Otherwise false./Description /Argument Argument Name=altKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Alt key down when clicking on the container. Otherwise false./Description /Argument Argument Name=shiftKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Shift key down when clicking on the container. Otherwise false./Description /Argument /Operation /TypeInfo Properties Property Name=alpha ForVerification=true Type VariantType=VT_R8/ DescriptionThe level of transparency for this object. The range of valid values is 0 (completely transparent) to 1 (completely opaque)./Description /Property Property Name=automationClassName ForDescription=true Type VariantType=String/ DescriptionThe class name as it is known in QTP. For example, FlexButton./Description /Property Property Name=automationIndex ForDescription=true Type VariantType=String/ DescriptionThe object's index relative to its parent./Description /Property Property Name=automationName ForDescription=true Type VariantType=String/ DescriptionThe name used by the automation system to identify an object./Description /Property Property Name=className ForDescription=true Type VariantType=String/ DescriptionThe fully-qualified path in the Flex class library; for example, mx.controls.Button./Description /Property Property Name=color ForVerification=true Type VariantType=String Codec=color/ DescriptionText color of a component label. The default value is 0x0B333C./Description /Property Property Name=currentState ForVerification=true Type VariantType=String/ DescriptionThe current state of the object./Description /Property Property Name=disabledColor ForVerification=true Type VariantType=String Codec=color/ DescriptionColor of the component if it is disabled. The default value is 0xAAB3B3./Description /Property Property Name=enabled ForVerification=true Type VariantType=Boolean/ DescriptionIndicates whether the user can interact with the specified object./Description /Property Property Name=errorColor ForVerification=true Type VariantType=String Codec=color/ DescriptionColor of the error text./Description /Property Property Name=errorString ForVerification=true Type VariantType=String/ DescriptionText that will be displayed in case of a validation error./Description /Property Property Name=focusEnabled ForVerification=true Type VariantType=Boolean/ DescriptionIndicates whether the object can receive focus when clicked on./Description /Property Property Name=fontFamily ForVerification=true Type VariantType=String/ DescriptionName of the font to use. Any font family name can be used. The default value is Verdana./Description /Property Property Name=fontSize ForVerification=true Type VariantType=VT_R8/ DescriptionHeight of the text in pixels. The default value is 10./Description /Property Property Name=fontStyle ForVerification=true Type VariantType=String/ DescriptionWhether the text is oblique or not. Valid values
[flexcoders] Null pointer exception on MouseUp event
I have a DataGrid that is full page when it first comes up. When the user selects a row the grid is resized to 30% and a detail panel is show below. When the row the user selects is below the 30% size of the grid I get a Null pointer exception on the MouseUp event (I'm not even using the event). Any ideas how to fix this? --Sean Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
[flexcoders] Error after 2.0.1 update
I just updated my flex builder installation to 2.0.1 (trying to get Flex Automation working) now I have 27 errors all for the same thing: SeverityDescriptionResourceIn FolderLocationCreation Time Id 21172: Definition mx.binding:RepeaterComponentWatcher could not be found. NAISWeb_Flexline 16March 16, 2007 11:19:25 AM4845 Anyone know how to get rid of this? --Sean Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
[flexcoders] Testing with Mercury Quick Test Pro
Has anyone performed functional tests of their Flex applications with QTP yet? Any advise for someone about to start down that path? --Sean TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/
Re: [flexcoders] States and transitions
Anything not scripted in the transition happens immediately in the transition. So you have to put in a transitions for the implied RemoveChildAction mx:transitions mx:Transition fromState=loaded toState=selected mx:Parallel mx:Resize target={associatesGrid} heightFrom={associatesGrid.height} heightTo={.30 * associatesGrid.height} duration=1000/ mx:AddChildAction target={associateVBox}/ mx:Dissolve target={associateVBox} alphaFrom=0 alphaTo=1 duration=1500/ /mx:Parallel /mx:Transition mx:Transition fromState=selected toState=loaded mx:Parallel mx:Resize target={associatesGrid} duration=1000/ mx:RemoveChildAction target={associateVBox}/ mx:Dissolve target={associateVBox} alphaFrom=1 alphaTo=0 duration=500/ /mx:Parallel /mx:Transition /mx:transitions mx:states mx:State name=loaded mx:AddChild position=lastChild mx:Label id=label2 text=Select an associate from the table below to see more information fontWeight=bold/ /mx:AddChild mx:AddChild position=lastChild homeComps:associatesDataGrid id=associatesGrid height=100%/ /mx:AddChild mx:RemoveChild target={label1}/ /mx:State mx:State name=selected basedOn=loaded mx:RemoveChild target={label2}/ mx:SetProperty target={associatesGrid} name=height value=30%/ mx:AddChild position=lastChild mx:VBox id=associateVBox width=100% height=100% borderColor=#808080 borderStyle=inset mx:Form mx:FormItem label=Name mx:Label text={model.home.selectedAssociate.associateName}/ /mx:FormItem mx:FormItem label=Type mx:Label text={model.home.selectedAssociate.associateType}/ /mx:FormItem mx:FormItem label=Agreement ID mx:Label text={model.home.selectedAssociate.associateID}/ /mx:FormItem mx:FormItem label=Project Title mx:Label text={model.home.selectedAssociate.associateProjectTitle} / /mx:FormItem mx:FormItem label=Citizenship mx:Label text={model.home.selectedAssociate.associateCitizenship}/ /mx:FormItem /mx:Form mx:Button label=Close click=closeDisplay(event)/ /mx:VBox /mx:AddChild /mx:State /mx:states mx:Label id=label1 text=Please wait while the associate records are retrieved width=100% textAlign=center fontWeight=bold/ - Original Message From: Troy Gilbert [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 15, 2007 1:50:15 PM Subject: [flexcoders] States and transitions I'm dabbling with states and transitions for the first time, so pardon the inexperienced question... My UI is logically divided into pages like a traditional wizard interface. Visually, I'd like my pages to slide in and out of view as I transition to them. Specifically, you can think of it like all of the pages are in a horizontal scroll box, so when I go from page 1 to page 3 I want to scroll page 1 to the left, page 2 to the left and scroll page 3 into view from the right. And then if I want to go from page 3 back to page 1, I want to do the reverse: scroll page 3 out of view to the right, scroll page 2 from left to right into and outof the view, and finally scroll page 1 from the left into the view. This would all be continously of course. The big thing that's tripping me up is the order in which state changes occur. The impression I'm getting is that the actions for a state (like AddChild, RemoveChild, SetPropertyValue) are executed *then* the transition is applied. The problem is that I can't figure out how to apply transition effects to my outgoing objects. For example, consider two pages, #1 and #2. My base state has both pages hidden. I then have two states each with one of the pages visible. If I have a transition from state 1 to state 2, page #1 is hidden, then the transition plays. But I want the transition to include page 1 (sliding it out of view). My question: is it possible to execute a transition on the current state *before* the new state becomes active, then play a transition on the new state... and better yet, is it possible to apply the settings for the new state, perform the transitions, then remove the previous states changes? Part of me thinks I really need some generalized scroller control to contain my pages, but my gut tells me that states/transitions/
Fw: Re: [flexcoders] States and transitions
Sorry didn't finish my explanation: in the transition from selected to loaded the RemoveChildAction for the associateVBox is for the inferred RemoveChild that must be done to restore the loaded state. - Forwarded Message From: Sean Sell [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 15, 2007 2:18:21 PM Subject: Re: [flexcoders] States and transitions Anything not scripted in the transition happens immediately in the transition. So you have to put in a transitions for the implied RemoveChildAction mx:transitions mx:Transition fromState=loaded toState=selected mx:Parallel mx:Resize target={associatesGrid} heightFrom={associatesGrid.height} heightTo={.30 * associatesGrid.height} duration=1000/ mx:AddChildAction target={associateVBox}/ mx:Dissolve target={associateVBox} alphaFrom=0 alphaTo=1 duration=1500/ /mx:Parallel /mx:Transition mx:Transition fromState=selected toState=loaded mx:Parallel mx:Resize target={associatesGrid} duration=1000/ mx:RemoveChildAction target={associateVBox}/ mx:Dissolve target={associateVBox} alphaFrom=1 alphaTo=0 duration=500/ /mx:Parallel /mx:Transition /mx:transitions mx:states mx:State name=loaded mx:AddChild position=lastChild mx:Label id=label2 text=Select an associate from the table below to see more information fontWeight=bold/ /mx:AddChild mx:AddChild position=lastChild homeComps:associatesDataGrid id=associatesGrid height=100%/ /mx:AddChild mx:RemoveChild target={label1}/ /mx:State mx:State name=selected basedOn=loaded mx:RemoveChild target={label2}/ mx:SetProperty target={associatesGrid} name=height value=30%/ mx:AddChild position=lastChild mx:VBox id=associateVBox width=100% height=100% borderColor=#808080 borderStyle=inset mx:Form mx:FormItem label=Name mx:Label text={model.home.selectedAssociate.associateName}/ /mx:FormItem mx:FormItem label=Type mx:Label text={model.home.selectedAssociate.associateType}/ /mx:FormItem mx:FormItem label=Agreement ID mx:Label text={model.home.selectedAssociate.associateID}/ /mx:FormItem mx:FormItem label=Project Title mx:Label text={model.home.selectedAssociate.associateProjectTitle} / /mx:FormItem mx:FormItem label=Citizenship mx:Label text={model.home.selectedAssociate.associateCitizenship}/ /mx:FormItem /mx:Form mx:Button label=Close click=closeDisplay(event)/ /mx:VBox /mx:AddChild /mx:State /mx:states mx:Label id=label1 text=Please wait while the associate records are retrieved width=100% textAlign=center fontWeight=bold/ - Original Message From: Troy Gilbert [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 15, 2007 1:50:15 PM Subject: [flexcoders] States and transitions I'm dabbling with states and transitions for the first time, so pardon the inexperienced question... My UI is logically divided into pages like a traditional wizard interface. Visually, I'd like my pages to slide in and out of view as I transition to them. Specifically, you can think of it like all of the pages are in a horizontal scroll box, so when I go from page 1 to page 3 I want to scroll page 1 to the left, page 2 to the left and scroll page 3 into view from the right. And then if I want to go from page 3 back to page 1, I want to do the reverse: scroll page 3 out of view to the right, scroll page 2 from left to right into and outof the view, and finally scroll page 1 from the left into the view. This would all be continously of course. The big thing that's tripping me up is the order in which state changes occur. The impression I'm getting is that the actions for a state (like AddChild, RemoveChild, SetPropertyValue) are executed *then* the transition is applied. The problem is that I can't figure out how to apply transition effects to my outgoing objects. For example, consider two pages, #1 and #2. My base state has both pages hidden. I then have two states each with one of the pages visible. If I have a transition from state 1 to state 2, page #1 is hidden, then the transition plays. But I want the transition to include page 1 (sliding it out of view). My question: is it possible
Re: [flexcoders] FlexBuilder and Subclipse
I gave up on trying to add subclipse to FlexBuilder (non-plugin) and installed Eclipse version 3.2, then the FlexBuilder Plug-in finally Subclipse. Now all is both hunky and dory. - Original Message From: Troy Gilbert [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, March 14, 2007 12:02:26 PM Subject: Re: [flexcoders] FlexBuilder and Subclipse You may need to use an earlier version of the Subclipse plug-in for FlexBuilder as I believe FlexBuilder is based on an older version of Eclipse (compared to the latest and greatest available from eclipse.org). Troy. On 3/14/07, Carlos Rovira carlos.rovira@ gmail.com wrote: I recommend you to switch to subversive.. .it's a plugin that works quite well :) 13 Mar 2007 13:46:57 -0700, Brian Holmes [EMAIL PROTECTED] com : Hard drive crashed this morning. Just reinstalled FlexBuilder and now I can't get Subclipse to install. Says I need Subclipse (1.2.0) requires plug-in org.eclipse. core.resources (3.2.0), or later version. The org.eclipse updater says it's all up to date. And doesn't need anything else installed. Anybody know where I took a wrong turn? Or have a similar experience? *** 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. *** -- ::| Carlos Rovira ::| http://www.carlosro vira.com ::| http://www.madeinfl ex.com !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/
[flexcoders] Cairngorm: When / why override clone in Events
In one of the Cairngorm examples I learned Cairngorm from each event had defined an override for the clone method (of Flash.Event). Does anyone understand haw and when you should do this? Does Cairngorm clone the events behind the scenes somewhere that requires this be done? --Sean Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
Re: [flexcoders] Re: Cairngorm: When / why override clone in Events
Thank you, that was very helpful. As a follow on question: if you dispatch an event in a Cairngorm app like so: CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( AppController.GET_WORK_ITEMS_EVENT ) ); I haven't created my own custom event, does Cairngorm take care of the override or do I really need to create a custom event class for every type of event? - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, March 14, 2007 3:51:01 PM Subject: [flexcoders] Re: Cairngorm: When / why override clone in Events Hi Sean, Here's a good explanation: http://www.tink. ws/blog/custom- events-in- as-30-dont- forget-to- override- the-clone- method/ -TH _ _ Tim Hoff Cynergy Systems, Inc. http://www.cynergys ystems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED] ups.com, Sean Sell rough68fish@ ... wrote: In one of the Cairngorm examples I learned Cairngorm from each event had defined an override for the clone method (of Flash.Event) . Does anyone understand haw and when you should do this? Does Cairngorm clone the events behind the scenes somewhere that requires this be done? --Sean _ _ _ _ _ _ _ _ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames. yahoo.com/ platform? platform= 120121 !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
Re: [flexcoders] Re: Cairngorm: When / why override clone in Events
Excellent, about halfway through cleaning out all of the event classes that didn't have custom parameters it occurred to me that I better make sure there wasn't some instances where I needed the clone method. Thanks a lot Tim, --Sean - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, March 14, 2007 4:13:39 PM Subject: [flexcoders] Re: Cairngorm: When / why override clone in Events In this case, you are creating a new event instance, so the clone over-ride doesn't matter. It would only matter if you were redispatching an event that was already instantiated. - do I really need to create a custom event class for every type of event? Usually, you would only create a custom event, in Cairngorm or plain Flex, if you need to attach properties (parameters, data...) to the event. If not, just register the event name in the Controller and you're good to go. -TH --- In [EMAIL PROTECTED] ups.com, Sean Sell rough68fish@ ... wrote: Thank you, that was very helpful. As a follow on question: if you dispatch an event in a Cairngorm app like so: CairngormEventDispa tcher.getInstanc e().dispatchEven t( new CairngormEvent( AppController. GET_WORK_ ITEMS_EVENT ) ); I haven't created my own custom event, does Cairngorm take care of the override or do I really need to create a custom event class for every type of event? - Original Message From: Tim Hoff [EMAIL PROTECTED] . To: [EMAIL PROTECTED] ups.com Sent: Wednesday, March 14, 2007 3:51:01 PM Subject: [flexcoders] Re: Cairngorm: When / why override clone in Events Hi Sean, Here's a good explanation: http://www.tink. ws/blog/custom- events-in- as-30-dont- forget-to- override- the-clone- method/ -TH _ _ Tim Hoff Cynergy Systems, Inc. http://www.cynergys ystems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED] ups.com, Sean Sell rough68fish@ ... wrote: In one of the Cairngorm examples I learned Cairngorm from each event had defined an override for the clone method (of Flash.Event) . Does anyone understand haw and when you should do this? Does Cairngorm clone the events behind the scenes somewhere that requires this be done? --Sean _ _ _ _ _ _ _ _ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames. yahoo.com/ platform? platform= 120121 !-- #ygrp-mlmsg {font-size:13px; font-family: arial,helvetica, clean,sans- serif;} #ygrp-mlmsg table {font-size:inherit; font:100% ;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica, clean,sans- serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height: 1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family: Arial; clear:both; } #ygrp-vitnav{ padding-top: 10px; font-family: Verdana; font-size:77% ; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space: nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space: nowrap; } .bld{font-weight: bold;} #ygrp-grft{ font-family: Verdana; font-size:77% ; padding:15px 0; } #ygrp-ft{ font-family: verdana; font-size:77% ; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom: 10px; } #ygrp-vital{ background-color: #e0ecee; margin-bottom: 20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77% ; font-family: Verdana; font-weight: bold; color:#333; text-transform: uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type: none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight: bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right: .5em; } #ygrp-vital ul li .cat{ font-weight: bold; } #ygrp-vital a { text-decoration: none; } #ygrp-vital a:hover{ text-decoration: underline; } #ygrp-sponsor #hd{ color:#999; font-size:77% ; } #ygrp-sponsor #ov{ padding:6px 13px; background-color: #e0ecee; margin-bottom: 20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type: square; padding:6px 0; font-size:77% ; } #ygrp-sponsor #ov li a{ text-decoration: none; font-size:130% ; } #ygrp-sponsor #nc { background-color: #eee; margin-bottom: 20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font