Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Registering sub-component mediators  (Read 5981 times)
Joel Hooks
Courseware Beta
Sr. Member
***
Posts: 146


baby steps

 - 46288188  - passport@provinsal.com  - joeltuff
View Profile WWW Email
« on: February 26, 2008, 04:00:50 »

I am having the worst time with this, and I was wondering how you approach this problem.

I have a main component, a SuperTabNavigator tab that opens various tab panels. The tab panels have sub-tab panels, another nested tab panel with a viewstack for its components. I want/need to mediate the sub-components, but when I use FlexEvent.CREATION_COMPLETE it seems to like to pick up events from other tabs if the user doesn't open the tab right away.

Is this a place where a MacroCommand is appropriate (this just occurred to me)? It is giving me a migraine ;)
Logged

http://joelhooks.com - my ramblings about developing with actionscript and python using pureMVC and django respectively.
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: February 26, 2008, 06:16:05 »

can you create a small demo that shows the problem? zip and attach here. It might be the way you have things set up, might be Flex weirdness, or both.

-=Cliff>
Logged
Joel Hooks
Courseware Beta
Sr. Member
***
Posts: 146


baby steps

 - 46288188  - passport@provinsal.com  - joeltuff
View Profile WWW Email
« Reply #2 on: February 27, 2008, 07:49:01 »

I decided to simply make an if ( e.target == componentExpected ) check in the listener function. Now they will quit messing with me. It certainly created some weird behavior.
Logged

http://joelhooks.com - my ramblings about developing with actionscript and python using pureMVC and django respectively.
Pages: [1]
Print