A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: using flashvars in conjunction with getURL

  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    30

    using flashvars in conjunction with getURL

    Hey, I have a question, that may be easy to answer I don't know lol. I have a pair of download buttons I'm going to disperse on my site... but instead of creating several instances of these buttons for various links, I would rather use flashvars and put the download link in the embed code. However, there is a preview button that loads a preset size popup window. The code looks like this:

    Code:
    onPress = function() {
    	
    		getURL ("javascript:openNewWindow('http://www.djsting.com/player.html','thewin','height=292,width=416,toolbar=no,scrollbars=yes');");
    	
    	}
    that works just fine, however what I'm trying to do is create a flashvar called ssIssue and sub it in where the link is like this:

    Code:
    onPress = function() {
    	
    		getURL ("javascript:openNewWindow('ssIssue','thewin','height=292,width=416,toolbar=no,scrollbars=yes');");
    	
    	}
    but it doesn't recognize it. How can I create a similar javasript controlled popup script like this that works with flashvars?

    Please and thanks
    Last edited by djsting; 05-03-2009 at 06:51 PM. Reason: pasted the wrong thing :)

Tags for this Thread

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