Welcome, Guest
  • Author Topic: Transient effect  (Read 1361 times)

    Rodrigo

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Transient effect
    « on: 02/27/11, 09:42 »
    Dear Friends,

    I have created a button and I have added an action script created by the JavaScript Button Code Generator  for Flash by Jeffrey F. Hill. which I use in a flipbook application. At the moment the button opens a small pop-up window where it shows a moving panorama and I would like to show the panorama at full screen using a transient effect when I press the button.
    I know that I can alter the size of the pop window to a full screen size display withing the script button but I don't know how is to incorporate the transient effect, or coding required.
    here is the coding for the button:

      on (release) {
    getURL ("javascript:NewWindow=window.open('http://www.360panoview.co.uk/liverpool/panos/atlantic/index.html','newWin','width=900,height=450,left=170,top=250,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");
    }

    Thnak you very much for your knid assistance,

    Rodrigo Alarcon-Cielock

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Transient effect
    « Reply #1 on: 03/01/11, 05:39 »
    If you mean resize the window until it reachs fullscren, this is a JavaScript event based on a setInterval or resizeTo command (this is browser dependant) Your AS code looks fne, your next step is to check JS routines to resize windows like this: http://www.java2s.com/Tutorial/JavaScript/0380__Window/windowresizeTo.htm, but instead or use resizeTo in a single step, use JS setInterval (http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/) to fire intermediate steps until you reach the final size.
    The function to resize the window should be in the HTML window you open from Flash.

    Jorge

    Rodrigo

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transient effect
    « Reply #2 on: 03/01/11, 06:40 »
    Hola Jorge,

    I am sorry if I idn't make myself clear, maybe it is the wrong title on the thread, the script it is asigned to a button and it is embeded inside an .swf file, I can alter the size of the opening window within the code of the script.
    The effect I want to achieve is that when I press the button to view the panorama is for the panorama/window to slowly come through, either using a meging. stable doors or shutter effect.

    Gracias de antemano,

    Rodrigo

    Rodrigo

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transient effect
    « Reply #3 on: 03/01/11, 06:52 »
    Hola Jorge,

    I am sorry but it just came to me, the effect I want to achieve is like they use in a photographic display, where between photo and photo been shown there is a disolving or small squares, or shutters effects.

    Saludos,

    Rodrigo

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Transient effect
    « Reply #4 on: 03/01/11, 08:38 »
    Take a look at some transitions: http://www.flash-db.com/Tutorials/transitions/

    Jorge

    Rodrigo

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transient effect
    « Reply #5 on: 03/01/11, 20:14 »
    Muchas gracias Jorge, es exactamente lo que queria, no soy un programador pero ya vere si lo puedo adaptar.
    Saludos y un abrazo,

    Rodrigo