A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Link to certain size htm page

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    28

    Question Link to certain size htm page

    I have created a nice flash site to show some portfolio work. I have all the thumbnails in place but I wanted them to open a new HTML window in the size of the portfolio piece. How is this done and will it be blocked by popup blockers? Any help would be greatly appreciated

    edit: the html page i want to link to is in the same folder as the flash site. Please please lend me a hand
    Last edited by Sisyphus; 07-10-2010 at 07:25 AM.

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    28
    I can link to a HTML page but how do i make that a new window at the size i want?

    Ill pay for help at this point!

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    21
    Set target as _blank?





    Marcos Coon

  4. #4
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    Set target as _blank?
    only opens the link in a blank (new) web page.
    To set it at a particular size, you'll need to use JavaScript. Try this in the <head> of the html page:
    Code:
    <script language="JavaScript"> 
    function openWin(url, w, h) 
    { 
    var winprop = "width=" + w + ",height=" + h; 
    openwin = window.open(url,'',winprop); 
    } 
    </script>
    and something like this inside the .swf:
    Code:
    crab_mc.onRelease = function(){
    	stop();
    	getURL ("Javascript:window.open('http://www.citradingcards.com/olymarine/video_library/crab_fest.html','_blank','height=455, width=475,resizable=no');return false;");
    
    //	crab_mc.gotoAndPlay("_click");
    	gotoAndPlay(5);
    }
    of course adjust to your own size/links, etc.
    Video Man

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