A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: javascript in flash using a variable.

  1. #1
    Member
    Join Date
    May 2003
    Posts
    40

    javascript in flash using a variable.

    Hi,

    I want javascript to use a variable for my popup. Here is what i have:

    on (release) {
    getURL("javascript:NewWindow('foto.php?id=','name' ,'520','520','no')");
    }

    Now i want the id to be the variable. So if i say "*.swf?id=1" in html i want flash to make the link "javascript:NewWindow('foto.php?id=1','name','520' ,'520','no')"

    Any suggestions?

    Regards,

    Marcus

  2. #2
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    getURL("javascript:NewWindow('foto.php?id="+myVari able+"','name','520',' 520','no')");
    My letters on the F1 key have faded, how are yours today?

  3. #3
    Member
    Join Date
    May 2003
    Posts
    40
    i already found it, sorry!
    Here is my solution:

    on (release) {
    getURL("javascript:NewWindow('foto.php?id=" + _root.id + "','name','520','520','no')");
    }

    Regards,

    Marcus

  4. #4
    Member
    Join Date
    May 2003
    Posts
    40
    Thanks McUsher nice that we both have the same solution Thanks anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center