try to use trace instead of Alert.show(), and run in debug mode.
(This may need u to install debug supporting flashplayer in ur browser
downlaod here if u dont have:
http://www.adobe.com/support/flashplayer/downloads.html)

U will know exactly which is executed first.

On Fri, Aug 21, 2009 at 5:04 AM, adrianwonder <[email protected]> wrote:

>
> Hi
>
> Bit new to flex so im still discovering new stuff everyday. today i
> noticed in a function when its been read, the out put comes from
> bottom up, which is very confusing to me why they would use a stack
> like call for the functions. for e.g
>
>
> private function setNext()
>                {
>
>                        Alert.show("B4    count:"+currentItems.toString());
>
>
>                        currentItems=currentItems+1;
>
>                        if(currentItems<0)
>                        {
>                                currentItems=0;
>                        }
>
>                        Alert.show("After  count:"+currentItems.toString());
>                }
>
>
>
>
> will display an output in the order of
>
> After count-2
>
> B4 Count -1
>
>
>
>
> would anybody like to shed more light on this matter??
>
>
> cheers
> Adrian
>
> >
>


-- 
Regards,
Preetham Hegde
www.dizzianer.com

_______________________________________________
If you only have a hammer, you tend to see every problem as a nail.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to