Hi there:
I'm working with flex builder 3 and I have my application and a
component caled FileUpload wich I load in a titleWindow.
My components declaration in the application is like:
<mx:TitleWindow id="ficherosTittleWindow" x="200" y="91" width="604"
height="216" layout="absolute" visible="false"
horizontalAlign="center" verticalAlign="middle" showCloseButton="true"
resize="true" elserver="{servidor}">
<com.xxxxxxx.cco:FileUpload />
</mx:TitleWindow>
This works fine but the problem comes because I need to take a var
from the request and I do it in my application:
public var theServer:String =
Application.application.parameters.server;
Afer this, I load the component calling this function
private function openPopup(eve:MouseEvent,win:TitleWindow):void{
var titleWin:TitleWindow = win;
titleWin.visible = true;
titleWin.width = 580;
titleWin.height = 240;
titleWin.showCloseButton = true;
titleWin.addEventListener("close",removePopup);
var window:TitleWindow =
TitleWindow(PopUpManager.createPopUp(titleWin,this,true));
//and I try to send the variable value to the component
ventana.server = theServer;
//and I show it
PopUpManager.addPopUp(titleWin,this,true);
PopUpManager.centerPopUp(titleWin);
}
This gives me a conversion problem.
I would like to know if it is possible to recover vars of the request
directly from the component and forgive the way i'm trying to do it,
if it's not, how can I send my var to the component.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---