Re: [flexcoders] What is the correct way to detect activation of a Canvas in a ViewStack?

2007-03-25 Thread Carlos Rovira
Have you seen processDescriptors property? Check the docs for that one, maybe is what you are lookinf for 2007/3/24, Tim Walling [EMAIL PROTECTED]: You could try setting up a show event listener to trigger your initialization code. Something like this: mx:ViewStack mx:Canvas

Re: [flexcoders] What is the correct way to detect activation of a Canvas in a ViewStack?

2007-03-24 Thread Tim Walling
You could try setting up a show event listener to trigger your initialization code. Something like this: mx:ViewStack mx:Canvas show=handleShowEvent()/ /mx:ViewStack Whenever the ViewStack makes the canvas the visible/active one, the show event would fire. or if your Canvas is an mxml

[flexcoders] What is the correct way to detect activation of a Canvas in a ViewStack?

2007-03-23 Thread wdsnapper
I am using a ViewStack to contain a set of Canvas'. I switch between items in the stack by clicking on buttons. I want to be able to detect when a Canvas gains focus and run a method to initialize content on that Canvas. What is the correct event to monitor to achieve this behavior? Thanks in