Hi,

While building RIA using Flex or AJAX, we think in terms of views instead of
pages. We can consider each tab is a different view, each view could be a
separate (or same) component/module...

We can create views either by using inline tags or using components
(actionscript or mxml).

f.ex:

## Example.mxml - A MXML component

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml";>
<!-- TBD -->
</mx:VBox>

## YourApp.mxml

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns:local="*">
<mx:TabNavigator id="tn"  borderStyle="solid"  height="400" width="600"
x="11"  paddingTop="0"    >
        <mx:VBox label="TabOne" width="600" height="520" paddingLeft="0"
paddingTop="0">
       <local:Example id="exp" paddingLeft="0" paddingTop="0" />
      </mx:VBox>
</mx:TabNavigator>
</mx:Application>


Note the xmlns:local="*", that allows inclusion of mxml components in your
application under some namespace.

-- 
-abdul
---------------------------------------
http://abdulqabiz.com/blog/
---------------------------------------


On 10/23/07, Tom Preet <[EMAIL PROTECTED]> wrote:
>
>   Hi All,
>
> In my app am using the TabNavigator control for displaying Tabs. When I
> click on click on each tab I've to open an mxml page with in a tab.
>
> for this am using like
>
> <mx:TabNavigator id="tn"  borderStyle="solid"  height="400" width="600"
> x="11"  paddingTop="0"    >
>         <mx:VBox label="TabOne" width="600" height="520" paddingLeft="0"
> paddingTop="0">
>        <local:Example id="exp" paddingLeft="0" paddingTop="0" />
>       </mx:VBox>
> here Example is the mxml page calling using local tag.
>
> Since am using Local tag, am getting a error like "Display Child Object
> Error"
>
> Instead of using local tag is there any other alternative for this to
> achive it.
>
> Thanks,
> Preet.
>
>
>  
>

Reply via email to