You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Frank Dahmen <fr...@dahmenia.de> on 2013/08/28 06:25:12 UTC

Event on pushView() or popView()

Hi,

is there any event which can be catched whenever a view is pushed or popped 
from a ViewNavigatorApplication?
I'd like to reset the the state of the navigationContent when the view 
changes.

Thanks 


Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
There is a built in event. I'm going to have to look for it because it
wasn't made to be obvious. It's pretty buried.


On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> yes this would be possible but i thought there could be some built-in
> event to listen to
>
>
> ----- Original Message ----- From: "Jerry Hamby" <je...@vdex.com>
> To: <us...@flex.apache.org>
> Sent: Wednesday, August 28, 2013 7:30 AM
> Subject: Re: Event on pushView() or popView()
>
>
>
> I just use the addedToStage or removedFromStage events available on every
> View page.
> On either, you can just dispatch a custom event.
>
>
> On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:
>
>  Hi,
>>
>> is there any event which can be catched whenever a view is pushed or
>> popped from a ViewNavigatorApplication?
>> I'd like to reset the the state of the navigationContent when the view
>> changes.
>>
>> Thanks
>>
>
>
>


-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Jerry Hamby <je...@vdex.com>.
I found a link that shows it being used in some code:
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/tests/performance/mobile/ComponentCatalog/src/ScriptRunner.as

On Aug 28, 2013, at 11:18 AM, Jonathan Campos wrote:

> On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
> 
>> where can i find the current reference? on the adobe reference it is not
>> listed.
> 
> 
> This is buried in the code. It was never documented. :)
> 
> 
> -- 
> Jonathan Campos



Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
Thanks for digging:)



----- Original Message ----- 
From: "Jonathan Campos" <jo...@gmail.com>
To: "users" <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 8:18 PM
Subject: Re: Event on pushView() or popView()


> On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
> 
>> where can i find the current reference? on the adobe reference it is not
>> listed.
> 
> 
> This is buried in the code. It was never documented. :)
> 
> 
> -- 
> Jonathan Campos
>

Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> where can i find the current reference? on the adobe reference it is not
> listed.


This is buried in the code. It was never documented. :)


-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
this is what i was searching for.

where can i find the current reference? on the adobe reference it is not 
listed.


----- Original Message ----- 
From: "Jonathan Campos" <jo...@gmail.com>
To: "users" <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 5:05 PM
Subject: Re: Event on pushView() or popView()


> On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
>
>> yes this would be possible but i thought there could be some built-in
>> event to listen to
>
>
> Try listing on the activeView for "_navigationChange_" but I believe the
> little bugger that you are listening for is "viewChangeComplete" on the
> ViewNavigator. This is fired when the view change is finished since the
> view changes are scheduled to run async. You also have "viewChangeStart"
> depending on when you need to change your nav.
>
>
>
>
> -- 
> Jonathan Campos
> 


UI testing with RIATest in 4.10?

Posted by Ben Smeets <be...@okapion.com>.
I'm trying to find out what good testing solutions (not unit test, but UI test) are still available for Flex lately. In the past, I looked (amongst others) at Riatest. I'm having a hard time figuring out if it is still usable though. So curious if there is anybody else succesfully using it in a Flex 4.10/Spark only project (with me, compiler errors all over the place)?

Cheers, Ben

Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> yes this would be possible but i thought there could be some built-in
> event to listen to


Try listing on the activeView for "_navigationChange_" but I believe the
little bugger that you are listening for is "viewChangeComplete" on the
ViewNavigator. This is fired when the view change is finished since the
view changes are scheduled to run async. You also have "viewChangeStart"
depending on when you need to change your nav.




-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
yes this would be possible but i thought there could be some built-in event 
to listen to


----- Original Message ----- 
From: "Jerry Hamby" <je...@vdex.com>
To: <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 7:30 AM
Subject: Re: Event on pushView() or popView()


I just use the addedToStage or removedFromStage events available on every 
View page.
On either, you can just dispatch a custom event.


On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:

> Hi,
>
> is there any event which can be catched whenever a view is pushed or 
> popped from a ViewNavigatorApplication?
> I'd like to reset the the state of the navigationContent when the view 
> changes.
>
> Thanks



Re: Event on pushView() or popView()

Posted by Jerry Hamby <je...@vdex.com>.
I just use the addedToStage or removedFromStage events available on every View page.
On either, you can just dispatch a custom event.


On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:

> Hi,
> 
> is there any event which can be catched whenever a view is pushed or popped from a ViewNavigatorApplication?
> I'd like to reset the the state of the navigationContent when the view changes.
> 
> Thanks