Thanks again for your reply. Sorry I was unclear. I wasn't suggesting that
the framework had code to switch the ViewStack on click.

I was responding to your comment about the concern being the logic that
responds to the change in the TabNavigator and TabBar. And I simply meant
that my code does not contain any handlers for any actions on the
TabNavigators created in my AS code, nor on the underlying TabBars. But
rather, the click on the visible Tab that _appears_ to be responsible for
switching the ViewStack is being handled somehow by the framework, since I
have not overridden it.

I realize that the proper course would be to follow the event into the
framework files. However, in my initial post, I was hoping that someone
might have experienced a similar problem and know a simple solution.

I am now trying to follow the event down into the framework. But I'm
running into what seems like a dumb problem: I am unable to set breakpoints
in the framework files. I can search for and open class files in the
correct version of the framework; but a right-click in the left margin does
not bring up a context menu at all.

The framework is being merged into the code at compile time.

I know this may be a silly question, but can you tell me why Flash Builder
(4.6) might be acting this way?

On Wed, Oct 23, 2013 at 2:40 AM, Alex Harui <> wrote:

> **
> I'm not sure what you mean by "the framework".  AFAIK, the framework
> doesn't have any code that automatically switches ViewStack views based on
> mouse activity.
> But you could put a breakpoint on the ViewStack code and see why it is
> changing.
> -Alex
> From: Tom McNeer <>
> Reply-To: "" <>
> Date: Tuesday, October 22, 2013 12:30 PM
> To: "" <>
> Subject: Re: [flexcoders] Nested TabNabvigator/Repeater error
> Hi Alex,
> Thanks very much for the reply.
> On Tue, Oct 22, 2013 at 12:56 PM, Alex Harui <> wrote:
>> In the AS version, I would guess there are relatively few ways to "switch
>> to a different screen".
> Yeah, I would agree. The reason I used the vague "switch to a different
> screen" is that the resulting action is nothing that is called in the
> component or even its parent.
> I'll lay this out as quickly as I can:
> There's a view we'll call Cases which has a ViewStack that consists of
> "Case Results" and "Case Details." A search triggered from a parent of the
> Cases view results in a grid in Case Results being populated. A click on a
> row in the grid calls the server for data on an individual Case and
> switches to the Case Details view.
> That view contains a TabNavigator for various aspects of the Case,
> including Documents. The nested TabNavigators I'm trying to create are
> within that Documents view.
> When I say that a click on any second-level (Document subtype) tab goes
> "to a different screen," what happens is that everything is switched back
> to the Case Results view - taking you back to the first element in the
> Cases ViewStack. There's no action or event defined in any of the child
> views inside the Case Details TabNavigator that would switch the view that
> way.
> That's why I find it confounding.
>> If you put a breakpoint on code that does that, does it get hit and will
>> the stack info show you how it got there?
> The code would be in the framework. It would just be the handler for a
> click on the TabBar.
>> The TabBar children should just be Tabs that dispatch events.  The logic
>> that responds to the change event should be the main concern.
> Thanks. I understand that. But I'm not writing any code to react to the
> click event. It's just the default action from the framework, which should
> be to make the box corresponding to the Tab the selectedChild of the
> TabNaviagator.
> I have tried walking through my ActionScript, and the oddity I see (which
> I may not really understand) is that even after all the custom components
> are added as children to one of the second-level TabNavigators, the
> TabNavigator and its TabBar show in debugging as having a different number
> of children.
> --
> Thanks,
> Tom
> Tom McNeer
> MediumCool
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560



Tom McNeer
1735 Johnson Road NE
Atlanta, GA 30306

Reply via email to