Welcome, Guest
  • Author Topic: Transition Help  (Read 6926 times)

    Kevin Peters

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Transition Help
    « on: 04/19/05, 08:46 »
    Hey folks. Can anyone help please? I have an action scripts for a transition effect i'm trying to use for my website. This transition is very much like the one used for the samsung website. Here is my code.

    on (release) {
       getURL("javascript:focus(); for (j=100; j>1; j--) {moveBy(1,0);  }for (j=150; j>0; j--) {resizeBy(-1,-1); } for (i=10; i>0; i--) { for (j=6; j>0; j--) { moveBy(0,i); moveBy(i,0);moveBy(0,-i); moveBy(-i,0); }} void(0);");
    }

    What i'm trying to fugure out is, how to get all these transitions to work at once like the samsung site. I want it to move, resize and shake at the same time. Can anyone help?

    HERE IS THE LINK FOR THE SAMSUNG SITE.

    http://www.samsung.com/mea/#
    Clickon the link for the SGH - D500 TO VIEW SITE

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re: Transition Help
    « Reply #1 on: 04/19/05, 15:52 »
    that getURL("javascript:your copypaste function-calls()"); ain't working.

    instead of that, define some function to your HTML page and then call the function with getURL();

    Quirksmode.org got some documention about that..

    Kevin Peters

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transition Help
    « Reply #2 on: 04/21/05, 12:00 »
    No they work fine. Both in my browser and in adobe golive 5. I just want all the transitions to work at once. To have it resize, move and shake.

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re: Transition Help
    « Reply #3 on: 04/21/05, 12:29 »
    I went to that site, in my firefox, there's no shaking , only moving & resizie.

    As far my knowledge of Actionscript, you can fire 3 different functions at once (complex) with getURL();


    Kevin Peters

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transition Help
    « Reply #4 on: 04/21/05, 17:11 »
    Cool. Thank you. But how do you do that?

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re: Transition Help
    « Reply #5 on: 04/21/05, 19:33 »


    instead of that, define some function to your HTML page and then call the function with getURL();


    So, in your html:

    function myGreatFunction() {
    // call moveBy();
    MoveBy(1,0);
    // call resizeBy();
    resizeBy(-1,-1);
    // and so on..
    }


    Then you use getURL("javascript:MyGreatFunction()");

    Kevin Peters

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re: Transition Help
    « Reply #6 on: 04/21/05, 20:43 »
    Sorry. That just goes over my head. Really hard to understand. Isn't there aneasier wayin flash.Everything i've done works. Just want it to work  at the same time. There must be a simpler way?