Visualizzazione dei risultati da 1 a 6 su 6

Discussione: package dove sbaglio?

  1. #1
    Utente di HTML.it L'avatar di danesi
    Registrato dal
    May 2007
    Messaggi
    208

    package dove sbaglio?

    ciao a tutti.
    ho usato un esempio. Il seguente

    Create a new document and call it easeTween.fla.
    Create a movie clip on the Stage.
    Select the movie clip instance and type ball_mc into the Instance Name text box in the Property inspector.
    Select Frame 1 of the Timeline and add the following code in the Actions panel:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    new Tween(ball_mc, "_x", Elastic.easeOut, Stage.width, 0, 3, true);
    This code example uses two import statements. The first statement imports the mx.transitions.Tween class only, and the second import statement uses the wildcard (*) shortcut to import each of the six easing classes by using a single line of code. The second statement imports an entire package of classes.

    Ma non succcede nulla.

    Dove sbaglio. Mi manca qualcosa sul computer. Sto usando flash cs3 su mac.

    Un saluto e grazie
    Zona - alias Danesi

  2. #2
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    se usi flash cs3 con AS3, quel codice non va bene, il package della Tween in AS3 è il fl

    Codice PHP:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    new 
    Tween(ball_mc"_x"Elastic.easeOutStage.width03true); 

  3. #3
    Utente di HTML.it L'avatar di danesi
    Registrato dal
    May 2007
    Messaggi
    208
    ciao,
    io sto usanto flash cs3 con as2...
    Zona - alias Danesi

  4. #4
    Utente di HTML.it L'avatar di danesi
    Registrato dal
    May 2007
    Messaggi
    208
    In ogni caso provo...

    fl contiene le stesse cose di mx?

    Un grazie gigantesco. Da buon neofita sto impazzendo.

    Un saluto
    Zona - alias Danesi

  5. #5
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    con AS2 e pubblicazione per FP8/9 devi fare così

    Codice PHP:
    import mx.transitions.*;
    import mx.transitions.easing.*;
    new 
    Tween(ball_mc"_x"Elastic.easeOutStage.width03true); 

  6. #6
    Utente di HTML.it L'avatar di danesi
    Registrato dal
    May 2007
    Messaggi
    208
    Appena posso provo.

    Grazie mille
    Zona - alias Danesi

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.