Visualizzazione dei risultati da 1 a 4 su 4

Discussione: transition manager

  1. #1
    Utente bannato
    Registrato dal
    Feb 2004
    Messaggi
    2,803

    transition manager

    è una funzione interessante...dove trovo una guida possibilmente in ita?
    o almeno un esempio semplice



    PS altra domanda: qlc può postare un esempio di 3 richiami tween sequenziali con onmotionfinished?finito il primo parte il secondo e poi il terzo...


  2. #2
    Utente bannato
    Registrato dal
    Feb 2004
    Messaggi
    2,803
    unz

  3. #3
    Utente di HTML.it L'avatar di §elva
    Registrato dal
    Nov 2006
    Messaggi
    607
    ecco un esempio appena steso dei 3 richiami sequenziali..
    vabbè mi sembra chiaro di suo.. se hai bisogno chiedi pure

    import mx.transitions.*;
    import mx.transitions.easing.*;
    var tween1:Tween = new Tween(MC, "_y", Elastic.easeOut, 0, 300, 3, true);
    tween1.onMotionFinished = function() {
    var tween2:Tween = new Tween(MC, "_x", Elastic.easeOut, 0, 500, 3, true);
    tween2.onMotionFinished = function() {
    var tween3:Tween = new Tween(MC, "_y", Elastic.easeOut, 300, 50, 3, true);
    };
    };


    da sempre l'ignoranza fa paura, ma il silenzio è uguale a morte

  4. #4
    Utente bannato
    Registrato dal
    Feb 2004
    Messaggi
    2,803
    Codice PHP:
    import mx.transitions.*;
    import mx.transitions.easing.*;
    var 
    tween1:Tween = new Tween(mc"_y",Regular.easeInOut03003true);

    tween1.onMotionFinished = function() {
        var 
    tween2:Tween = new Tween(mc"_x"Regular.easeInOut05003true);}
        
    tween2.onMotionFinished = function() {
            var 
    tween3:Tween = new Tween(mc2"_y"Regular.easeInOut300503true);
        };
        
    tween3.onMotionFinished = function() {
            
    tween3.yoyo();
        }; 
    cos'è che non va?


    edit: risolto..erano sbagliate le parentesi graffe chiuse

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.