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
>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.


>			private function
>navigateDown():void			{				if(!fileGrid.selectedItem)			
>{					var nothingSelected:NothingSelected = new NothingSelected();				}			
>fileGrid.navigateDown();				updatePath();			}
>View this message in context:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message