A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: help passing vars from url

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    3

    help passing vars from url

    Hi there. I'm still rather new to flash and I was wondering if anyone could help. i'm making buttons for a website and I'm trying to make it just one button and calling it with

    button.swf?text=whatever&link=wherever

    where text is what the button displays (got that working fine) and link is where it links to. I just cannot get this to work. Any suggestions? I'm currently using:

    on (release) {
    getURL (link ,"_framename");
    }


    I also tried:

    on (release) {
    getURL ("http://www.site.com/" link ".php", "_framename");
    }


    but it's just not working Can anyone tell me how to pass the variable into the geturl? it works with just link, but as soon as you put a . in there, it won't load.

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    This would have to look like:
    on (release) {
    getURL ("http://www.site.com/"+ link+ ".php", "_framename");
    }

    assuming link is a variable
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Junior Member
    Join Date
    Sep 2001
    Posts
    3
    thanks a lot. It works. Yay!

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