Hi Greg,

    Thank you for your valuable help.What i am planning to do is i have a basic 
flex application in which i can  add url's of mp3,flv and text to the 
database(MSSQL2005).I am using using .NET web service for getting data  and 
updating data the database.There is a datagrid which is populated from the 
stored data in the database(the filenames and the text).

What i need to do is i want to create a slide show which is supposed to be in a 
new browser window with the videos and mp3 and the text selected according to 
the selected item in the datagrid.The new browser window is like a template may 
be an swf wrapped in an html container.The target ie, the new window will have 
provision for playing video and displaying text and so on.

The point is how can i pass the urls and text to the swf template which is to 
be opened in a new browser window..


Thanks 

Subeesh
    


----- Original Message ----
From: greg h <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, 5 March, 2007 11:56:15 PM
Subject: Re: [flexcomponents] Open new browser window from flex app

Subeesh,

Following is logic from a DataGrid click handler.  The logic:  a) opens a new 
browser window (_blank), and b) passes "the necessary data" to it via a URL 
query string ( ?id=).  Note the following is an abridged version of the actual 
code.  In the full code I include try/catch on the navigateToURL( ):


var url:String = "/newWindow.cfm? id="+event.currentTarge t.selectedItem. myID;
var request:URLRequest = new URLRequest(url) ;
navigateToURL( request,"_blank")


Do you have an application server on the backend?  If so, your app can take 
values passed via the URL query string above, and construct for the "new 
browser window" whatever your requirement calls for.

Just curious, you write "i want its details to be displayed in a new browser 
window".  What are you using for displaying the details in the new browser 
window?  HTML?  SWF?

If you will have a second SWF in the "new browser window", your app server can 
construct FlashVars in the object/embed tags to pass "the necessary data" into 
SWF2.

If you will have a second SWF in the "new browser window" and would like to use 
FlashVars the following post I made here on FlexCoders in January provides 
links into the Flex 2 docs.  That earlier post can be found here:
http://tech. groups.yahoo. com/group/ flexcoders/ message/63142

Please post back and let me know if this helps.  If not, please provide more 
details on your requrement.

hth,

g



On 3/5/07, subeesh a <asubeesh2002@ yahoo.co. in> wrote:
Hi Uday,
 
Thanks for that. Right now i am using a titlewindow popup inside the flex app 
for the purpose.Can u help me to create the popup outside the flex app with al, 
the necessary data.Or i will go for the FABridge.
 
Thanks
 
Subeesh


----- Original Message ----
From: Uday M. Shankar < [EMAIL PROTECTED] works.com>
To: " flexcomponents@ yahoogroups. com" <flexcomponents@ yahoogroups. com>
Sent: Monday, 5 March, 2007 9:20:10 PM 
Subject: FW: [flexcomponents] Open new browser window from flex app

One way to do that would be to use the Flex-Ajax bridge (FABridge).. . which 
allows flex to access stuff from JavaScript and vice-versa. From a 
user-experience point of view, I would advice you to keep popups out of the 
application if you can manage it. TitleWindow would be a better choice. If 
there's no other way and you have to have it in a popup, then FABridge would be 
one option. J 
Cheers,
udayms
 



From: flexcomponents@ yahoogroups. com [mailto: flexcomponents@ yahoogroups. 
com ] On Behalf Of subeesh a
Sent: Monday, March 05, 2007 2:37 PM 
To: flexcomponents@ yahoogroups. com
Subject: [flexcomponents] Open new browser window from flex app  
Hi all,
I am building a flex app in which when i click on an item in datagrid, i want 
its details to be displayed in a new browser window.Can anyone help me 
regarding this. I want to know how to pass data to the new browser window from 
the flex app.

Thanks 
Subeesh





                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to