Welcome, Guest
  • Author Topic: pop window from flash  (Read 2078 times)

    UfORiC

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    pop window from flash
    « on: 04/02/04, 19:23 »
    Hi, I need some help on pop up window from a flash page (please bare with me, i am very new to this):

    I made a page using flash to display a few pictures. On click on each thumbnails of these pictures, it will bring up the actual size picture and also bring up 5 other thumbnails below, these thumbnails actually acts like buttons to open up html popup window. I have used the code generator to get the following:

    on (release) {
    getURL ("javascript:popupWindow=window.open('x1.htm','popup','width=400,height=300,left=5,top=5,toolbar=0,location=0,scrollbars=0,status=0,resizable=0,fullscreen=0');  popupWindow.focus();   setTimeout('popupWindow.moveTo(300,200)',1000);   void(0);");
    }

    Now, the popup window works, but I have the following problems:
    1. I wish to when i click on other thumbnails (buttons), the content of other buttons gets put into the same first popup window. Right now it doesnt do that, actually nothing happens when i click on the next button.
    2. the focus dont work, dont know why? the popup window stays behind the main brower??
    3. I really like what the code generator did in animating the move to, but is there a way to use that in my case where instead of straight appearing after 1 sec at (300,200), it actually animate its way there? How to put that part of the code in the above line?

    Appreciate all help and comments to improve the above, thank you very much




    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:pop window from flash
    « Reply #1 on: 04/03/04, 05:22 »
    Hi and welcome Ric,

    you are opening a HTML-Page.

    If you want to animat it somehow, you should do it from "inside".
    You can write a JavaScript function in the new page to modify the window parameters and do frequent refreshs on it.
    happy flashing
    8)
    Ronald

    UfORiC

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re:pop window from flash
    « Reply #2 on: 04/04/04, 02:26 »
    Hi Ronald,

    If possible, can you teach me how to do that? I am very new to this, and I am confused what you meant by doing it in the "inside"?

    I am still having the same problems like:

    1. it will not put the next buttons content into the same pop up.
    2. the popup will not come to the front (focus is not working).
    3. I like to have the popup animate its way to the distinated position everytime.

    Thank you.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:pop window from flash
    « Reply #3 on: 04/04/04, 03:13 »
    If you want to use the same window, you have to use the target attribute with the same window/or frame name.

    You can write a function in JavaScript, to manipulate the window parameters.
    If this fuction is called by the onLoad event of the body, it will take emediatly effect as soon as the body is loaded.

    For further info on manipulating the window with JavaScript, get a manual for HTML and JavaScript.

    I am using selfHTML at teamone.de, but this is german.
    Have a look into google ;)
    happy flashing
    8)
    Ronald