Boas,
Estou a tentar fazer um portfolio em que os conteúdos do tipo swf são
carregados numa Hbox, a partir de um item seleccionado num accordion,
mas não estou a conseguir efectuar esta acção.

o código é o seguinte:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas
        xmlns:mx="http://www.adobe.com/2006/mxml";
        width="1000"
        height="440">

        <mx:Script>
        <![CDATA[
            [Bindable]
            public var selectedItem:Object;
       ]]>
    </mx:Script>

        <mx:Model id="dataLojas1">
      <states>
        <state label="Projecto A1" url="swf/exemploA1.swf"/>
        <state label="Projecto A2" url="swf/exemploA2.swf"/>
      </states>
    </mx:Model>
    <mx:Model id="dataTrademkt1">
      <states>
                <state label="Projecto B1" url="swf/exemploB1.swf"/>
                <state label="Projecto B2" url="swf/exemploB2.swf"/>
                <state label="Projecto B3" url="swf/exemploB3.swf"/>
      </states>
    </mx:Model>
        <mx:Model id="dataComunicaco1">
      <states>
        <state label="Projecto C1" url="swf/exemploC1.swf"/>
        <state label="Projecto C2" url="swf/exemploC2.swf"/>
        <state label="Projecto C3" url="swf/exemploC3.swf"/>
      </states>
    </mx:Model>
    <mx:Model id="dataLojas2">
      <states>
        <state label="Projecto A1" url="swf/exemploA1.swf"/>
        <state label="Projecto A2" url="swf/exemploA2.swf"/>
      </states>
    </mx:Model>
    <mx:Model id="dataTrademkt2">
      <states>
                <state label="Projecto B1" url="swf/exemploB1.swf"/>
                <state label="Projecto B2" url="swf/exemploB2.swf"/>
                <state label="Projecto B3" url="swf/exemploB3.swf"/>
      </states>
    </mx:Model>
        <mx:Model id="dataComunicaco2">
      <states>
        <state label="Projecto C1" url="swf/exemploC1.swf"/>
        <state label="Projecto C2" url="swf/exemploC2.swf"/>
        <state label="Projecto C3" url="swf/exemploC3.swf"/>
      </states>
    </mx:Model>
        <mx:WipeRight id="myWR" duration="300"/>
        <mx:WipeLeft id="myWL" duration="300"/>

    <mx:VBox
        width="1000"
                height="440"
                verticalScrollPolicy="off"
                horizontalScrollPolicy="off">

        <mx:LinkBar dataProvider="{ViewStackPortfolio}"
                horizontalAlign="right"
                width="1000"
                height="30"/>

        <mx:ViewStack id="ViewStackPortfolio"
            creationCompleteEffect="{myWR}"
            width="1000"
            height="440">

                <mx:Canvas id="cliente1"
                                label="Menu 1"
                                hideEffect="{myWL}"
                                showEffect="{myWR}">
                                                 <mx:HBox
                                                        width="1000"
                                                         height="400">
                                                         <mx:HBox 
id="swfContainer1">
                                                                 <mx:SWFLoader 
source="swf/exemploA1.swf" height="400"
width="640"/>
                                                         </mx:HBox>
                                                        <mx:HBox 
id="porfolioCliente1">
                                                                <mx:Accordion 
id="porfolioClienteACC1"
                                                                
resizeToContent="true"
                                                                height="400"
                                                                width="350">
                                                                <mx:VBox 
id="lojas1"
                                                                        
label="Lojas"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataLojas1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                                <mx:VBox 
id="trademkt1"
                                                                        
label="Trade Marketing"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataTrademkt1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                                        
<mx:VBox id="comunicaco1"
                                                                        
label="Comunicação"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataComunicaco1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                        </mx:Accordion>
                                                        </mx:HBox>
                                                </mx:HBox>
                            </mx:Canvas>
                            <mx:Canvas id="cliente2"
                                label="Menu 2"
                                hideEffect="{myWL}"
                                showEffect="{myWR}">
                                                 <mx:HBox
                                                        width="1000"
                                                         height="400">
                                                        <mx:HBox 
id="swfContainer2">
                                                                 <mx:SWFLoader 
source="swf/exemploA1.swf" height="400"
width="640"/>
                                                         </mx:HBox>
                                                        <mx:HBox 
id="porfolioCliente2">
                                                                <mx:Accordion 
id="porfolioClienteACC2"
                                                                
resizeToContent="true"
                                                                height="400"
                                                                width="350">
                                                                <mx:VBox 
id="lojas2"
                                                                        
label="Lojas"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataLojas1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                                <mx:VBox 
id="trademkt2"
                                                                        
label="Trade Marketing"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataTrademkt1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                                        
<mx:VBox id="comunicaco2"
                                                                        
label="Comunicação"
                                                                        
width="100%" height="100%">
                                                                <mx:List 
width="100%" height="100%"
                                                    
dataProvider="{dataComunicaco1.state}"
                                                    
change="this.selectedItem=List
(event.target).selectedItem"/>
                                                                </mx:VBox>
                                                        </mx:Accordion>
                                                        </mx:HBox>
                                                </mx:HBox>
                            </mx:Canvas>
        </mx:ViewStack>
    </mx:VBox>
</mx:Canvas>

Se alguém me puder dar uma ajuda agradeço.

Cumps

--~--~---------~--~----~------------~-------~--~----~
Recebeu esta mensagem porque está inscrito em Grupo "Mailing List da Comunidade 
Portuguesa de Rich Internet Applications - www.riapt.org" do Grupos Google.
 Para enviar mensagens para este grupo, envie um email para 
[email protected]
 Para anular a inscrição neste grupo, envie um email para 
[email protected]
 Para mais opções, visite este grupo em 
http://groups.google.com/group/riapt?hl=pt-PT
-~----------~----~----~----~------~----~------~--~---

Responder a