I'd just bind those properties to (model.comparisons.length > 0) in the
MXML, or if the components are instantiated in actionscript, use the
BindingUtils.bindSetter() function.

-J

On Wed, May 14, 2008 at 8:13 PM, Rubeel <[EMAIL PROTECTED]> wrote:

>   hi All,
> i am trying to do an action after the completion of retrieving data
> thru cairngorm,
>
> when i just put the code to test the action after retrieving the data
> from a cairngorm event, it takes time and the command after that just
> executes before the data is retrieved.
>
> here is a sample code. the if command executes before the data is
> retrieved. any help will be great.
>
> private function initApp():void{
> var myRetrieveComparisonEvent : RetrieveComparisonEvent = new
> RetrieveComparisonEvent();
> CairngormEventDispatcher.getInstance().dispatchEvent(
> myRetrieveComparisonEvent );
>
>
> Alert.show("testing","testing");
> if (model.comparisons.length == 0){
> noComparisions.visible = true;
> noComparisions.includeInLayout = true;
> }
> }
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to