Hi!

I'm stuck :(
I have a file called File.mxml which has inside a custom component
based on a <mx:Panel> called File2.mxml. Inside this new component,
File2.mxml, I have a viewstack with 4 views. Every single view is in
its' own custom component. Something like this:

File2.mxml
----
        <mx:ViewStack id="myViews" width="100%" height="100%">
                <mx:Panel id="knjigaScreen" width="100%" height="100%">
                        <view:DodajTehSpec_Knjiga />
                </mx:Panel>
                <mx:Panel  title="" id="tiskovinaScreen" width="100%" 
height="100%">
                        <view:DodajTehSpec_Tiskovina />
                </mx:Panel>
                <mx:Panel width="100%" height="100%" id="dodatekScreen" 
title="">
                        <view:DodajTehSpec_Dodatek />
                </mx:Panel>
                <mx:Panel width="100%" height="100%" id="skatlaScreen" title="">
                        <view:DodajTehSpec_Skatla />
                </mx:Panel>
                <mx:Panel width="100%" height="100%" id="raznoScreen" title="">
                        <view:DodajTehSpec_Razno width="100%" height="100%" "/>
                </mx:Panel>
                <mx:Panel width="100%" height="100%" id="zgoscenkaScreen" 
title="">
                        <view:DodajTehSpec_Zgoscenka width="100%" 
height="100%""/>
                </mx:Panel> 
        </mx:ViewStack>

But the problem arises when I want to change from one view to another.
 From File1.mxml to File2.mxml I'm passing a variable called 'myVar'
which tells' File2.mxml which view should be shown. But to my luck :(
this only works the first time (when this File2.mxml is generated -
creationComplete event). I tried with shown, hide nearlly everything
but nothing works. 
Please tell me what should I do so this will work as it should. Thank you.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to