A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: getURL with javascript and variables

Hybrid View

  1. #1
    Senior Member brocwind's Avatar
    Join Date
    Jan 2003
    Location
    London
    Posts
    268

    getURL with javascript and variables

    i have some flash thumbnails in a wordpress website, that when clicked open up files in shadowbox. That works fine, but when i try to use imported variables (from a txt file) for the URLs instead of adding links manually it doesn't work:

    This works fine:
    Code:
    btn_mc.onPress = function() {
    	getURL("javascript:abrirSB('img','Title','http://www.website.com/image1.jpg');","_self"); 
    }

    But this doesn't work at all, it just keeps trying to load the image (not getting any errors in Firebug though):


    Code:
    btn_mc.onPress = function() {
    	getURL("javascript:abrirSB('img','Title','_root.link1');","_self"); 
    }
    instead of '_root.link1' i've tried all sorts including 'link1', _root.link1, link1 etc etc

  2. #2
    Senior Member brocwind's Avatar
    Join Date
    Jan 2003
    Location
    London
    Posts
    268

    Resolved

    found my answer here: http://board.flashkit.com/board/show...+link+variable

    mad looking syntax done the trick

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