flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: function using method name?
Date Wed, 22 Apr 2015 06:35:49 GMT


On 4/21/15, 11:29 AM, "pctechtv" <chris@pctechtv.com> wrote:

>In an online training video I am watching the teacher in Actionscript
>names
>his function the same name as a method of the object in the functions
>context. Is this a good programing practice?

Personally, I don’t see anything wrong with it.  In the SDK, setActualSize
and other methods often call setActualSize on the children.

-Alex

>			private function
>navigateDown():void			{				if(!fileGrid.selectedItem)			
>{					var nothingSelected:NothingSelected = new NothingSelected();				}			
>fileGrid.navigateDown();				updatePath();			}
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/function-using-method-name-
>tp10140.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message