Ergebnis 1 bis 4 von 4

Thema: Migration as2 -> as3

  1. #1
    TP-Junior
    Registriert seit
    Aug 2008
    Beiträge
    25

    Migration as2 -> as3

    Hallo Forum,

    ich habe hier ein altes Skript. (AS1.0)
    Wie muss ich den umschreiben, damit das auch als AS3.0 läuft?

    Code:
    _root.imagewidth = 720;
     
     _root.trig.xposnew = -(_root.imagewidth)
    Vielen Dank für eure Hilfe

  2. #2
    TP-Moderator Avatar von Wanderratte
    Registriert seit
    Mar 2002
    Beiträge
    5.487
    Hallo,

    mit den zwei Zeilen alleine kann doch kein Mensch was anfangen und ich bezweifle auch ernsthaft das es bei der migration von den zwei Zeilen bleiben wird.
    Gruß

    Wanderratte
    Gebildet ist,
    wer weiß,
    wo er findet,
    was er nicht weiß.

    4bugs
    Home
    Amazon Wunschzettel

  3. #3
    TP-Junior
    Registriert seit
    Aug 2008
    Beiträge
    25
    Kein Problem

    hier ist die gesamte Code:

    Code:
    // _root.imagewidth defines the width of the image//
    
    _root.imagewidth = 720;
    
    // _root.speed defines the speed of the sliding images//
    _root.speed = 3;
    
    /* _root.trig.xposnew defines the x position of the 
    sliding images */
    _root.trig.xposnew = -(_root.imagewidth);
    
    // About us Button
    but1.onRelease = function() {
    	_root.trig.xposnew = -(_root.imagewidth);
    };
    
    // Products Button
    but2.onRelease = function() {
    	_root.trig.xposnew = -((_root.imagewidth)*2);
    };
    
    // Services Button
    but3.onRelease = function() {
    	_root.trig.xposnew = -((_root.imagewidth)*3);
    };
    
    // Clients Button
    but4.onRelease = function() {
    	_root.trig.xposnew = -((_root.imagewidth)*4);
    };
    
    // Contact Us Button
    but5.onRelease = function() {
    	_root.trig.xposnew = -((_root.imagewidth)*5);
    };

  4. #4
    TP-Moderator Avatar von Wanderratte
    Registriert seit
    Mar 2002
    Beiträge
    5.487
    Hallo

    wie ich es mir schon gedacht habe, wenn du nicht unbedingt AS3 brauchst erstelle ein AS2 Projekt.
    Ansonsten gucke in die Hilfe nach der migration, folgendes gibt es unter AS3 nicht mehr.
    _root, onRelease, onRollOver, _x, _y, onEnterFrame und etliches mehr.

    Das Script was du gepostet hast, ist ja immer noch nicht alles da wird wohl noch die eine oder andere Function fehlen.
    Gruß

    Wanderratte
    Gebildet ist,
    wer weiß,
    wo er findet,
    was er nicht weiß.

    4bugs
    Home
    Amazon Wunschzettel

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Ähnliche Themen

  1. Oracle Migration Workbench
    Von Dust im Forum Server & Provider
    Antworten: 0
    Letzter Beitrag: 03.02.2006, 17:33
  2. Migration persönlicher Lizenzen?
    Von Maquita im Forum Einfach so ...
    Antworten: 11
    Letzter Beitrag: 30.09.2002, 10:10

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51