Hi Friends, again, I'm trying to set up a menu that opens a pop up with information, everything is gathered from an xml.

I have a title window and I can set the title through portaFolio.selectedItem.client this is the id of a tile list bound to a xml,

Well now I have an swf loader inside the title window and I'd like to know how can I do this using the action script so far it works open up but with no content and I'd like to bind this
xml object inside the content.

this is  the code of my  main app.

private function openWindow(event:MouseEvent):void{
var myWindow1:TitleWindow = TitleWindow(PopUpManager.createPopUp (this, myTitleWindow, true));
                        myWindow1.height=450;
                        myWindow1.width=650;
                        myWindow1.title= portaFolio.selectedItem.client;
myWindow1.loaderInfo.loader.load(portaFolio.selectedItem.show);// I'm not sure about this, but I'd like to know if this is ok. or I'd need something else.


this is the code of the title window.


<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"; creationComplete="centerMe()" layout="absolute" width="650" height="480" close="closePopUp()" showCloseButton="true" cornerRadius="20" borderStyle="solid" backgroundColor="#F9F899" backgroundAlpha="0.82">
<mx:Script>
        <![CDATA[
                import mx.managers.PopUpManager;
                
                
                
                private function centerMe():void{
                        PopUpManager.centerPopUp(this);
                }
        
                private function closePopUp():void{
                        PopUpManager.removePopUp(this);
                }
        ]]>
</mx:Script>      
<mx:SWFLoader x="27" y="10" width="576" height="402" source="" id="myLoaderPortfolio"/>
</mx:TitleWindow>



I'd appreciate your help friends.

Regards




Gustavo A. Duenas




Reply via email to