A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how can i open dynamic browser window from projector ?

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    2
    Hi guys,

    I have a problem here and I'd like to get your advice.

    I have a standalone cd-rom application and I want to launch jpeg files dynamically from the projector.

    I'm trying to make a photo album which loads external thumbnails (.jpg) and when you click on it, it launches a new browser window with the full-size image.

    The problem is that I want to set the new browser window's size inside flash.

    I tried to do it with the getUrl function but it's not working:

    bigPhoto = "photos/" + _root.currentPhoto + ".jpg";
    getURL ("javascript:NewWindow=window.open(bigPhoto,'newWi n','width=400,height=400'); NewWindow.focus(); void(0);");

    I suppose standalone player cannot pass variables through JavaScript.

    Do you know if there is any way to fix this?


    Thanx in advance,
    Elias.

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    266
    you bigPhoto should not be put this way....

    It should be

    "...open('" + bigPhoto + "','new...."

    Didnt test your statement though...

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    You are correct... There isn't any Javascript support from the projector as it is not a web browser.

    There isn't really any work around for that although some projector enhancers can open a browser and what not.

    However if you are using the MX projector it can display JPEG simply by loading them into the level or MC you want. This is done exactly like loading a SWF except you are working with JPGS.


  4. #4
    Junior Member
    Join Date
    Apr 2001
    Posts
    2
    The statement should have been the way you said so as the browser to understand the bigPhoto variable, but I have two different problems now.
    The first is that when I push the button I have two browser windows, one of them has the settings I declared in the statement and the other is a normal browser window.
    The second and more important problem is that browser cannot understand bigPhoto variable as a local path and it tries to find the url on the internet.

    So, do you think is there any other way to open the photo in a new window?

    thanx


    Originally posted by Justmade
    you bigPhoto should not be put this way....

    It should be

    "...open('" + bigPhoto + "','new...."

    Didnt test your statement though...

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