Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default passing variables to popup

    I need a way to have the following happen:

    1. I click a button in mymovie1.swf

    It set a few variables:
    name="whatever";
    city="wherever";
    postalcode="somenumber";

    And the same click opens a popup:
    getURL("javascript:NewWindow=window.open('page.htm ','newWin','width=365,height=... and so on.

    2. In the page that pops up (page.htm), i need to have the variables shown in a textfield....

    I have tried to work with new LocalConnection();
    But can't seem to get it working..

    Can anyone help or explain how to do this the right way ?!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    Nov 2003
    Location
    Adelaide, Australia
    Posts
    86

    Default

    couldnt you just have

    getURL("popup", "_blank", "POST");


    post meaning posting all the current set variables to the soon to be opened pop-up window... not sure where to have the rest of the pop-up info because you didnt give the whole code

    cheers, Blake

  4. #3

    Default passing variables to popup

    Hi there blake,

    I've got it running aready.

    I've embedded the .swf:

    (somefile.swf?<%=Request.QueryString%>" quality=high pluginspage=.......)

    in an asp-page and now am able to "Request.QueryString" al the vars by giving a textbox in flash the variable name "_root."querystringparametername"

    The code for the popup has:
    getURL("javascript:NewWindow=window.open('page.asp?var1=sometext&var2=anothertext','newWin','width=365,height=...

    Thanx anyway!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. popup generator questions
    By lance1 in forum Newbies
    Replies: 1
    Last Post: 12-27-2005, 07:24 PM
  2. Passing Different Variables in Flash
    By cheezyfries in forum Flash Scripting
    Replies: 2
    Last Post: 09-06-2005, 01:18 AM
  3. Replies: 0
    Last Post: 05-27-2005, 12:29 AM
  4. passing variable to flash to highlight naviation item
    By ejbiv in forum Flash Scripting
    Replies: 4
    Last Post: 05-12-2005, 03:16 AM
  5. Passing values from Flash to ASP
    By vender in forum Flash Scripting
    Replies: 1
    Last Post: 09-07-2004, 05:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial