A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Open a JPG in a new Browser window from Flash

  1. #1
    Hi,

    Does somebody now how to open a JPG in an new Browser window, the command given by Flash?

    I don't know if this is possible. I wan't to give the visiter two options.
    1. View an external image in a mask in Flash...(this is no problem)
    2 View the same (complete size) image in a new broswer window.

    Thanks for any help.

    Yvan.

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Posts
    285
    You need to use JavaScript in the html:


    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }


    Then call the JavaScript with the getURL function of actionscript:

    on(release){
    getURL ("javascript:MM_openBrWindow('thepage.html','','wi dth=700,height=393,resizable=no,scrollbars=no,menu bar=no')");
    }

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    106

    its simple

    hi dudes,

    Its very simple....all that you need is to display a image in a seperat browser...

    geturl("XXX.jpg",_blank);

    Will that not do......its simple isn't

    gnana

  4. #4
    Senior Member
    Join Date
    Mar 2001
    Posts
    285
    That'll work but, no offence, but that's quite a lazy way and untidy way of doing it. You have no control over the size of the new window.

  5. #5
    Tnx both for replying guys...I prefer the method of Gnana, because I have lots of images to display and I haven't much courage to make a separate html page for each image...

    Buth with Gnana's method, I have another problem...Is it possible in Flash not to display the title bar of the newly opened window?

    Tnx for help,

    Yvan.

  6. #6
    Senior Member
    Join Date
    Jan 2001
    Posts
    106

    yeah u can

    hi dude,

    all that you got to do is write a function in the same html page in javascript and call the function with the image name as the parameter...it will open a window with all your needs.....see collinmoock.org for tutorial...its given there.

    gnana

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