Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 08-01-2005, 20:26   #1 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
position mit bezugspunkt ändern

ich habe vertikal ,sagen wir mal, 8 linkbuttons;
folgendes bekomme ich nicht richtig hin:

wenn einer angeklickt wird, soll dieser zu einer bestimmten position hinwandern(_x:672;_y:142);
wenn ein andrer angeklickt wird, soll der "aktive" wieder zu seinem platzerl retour, und der angeklickte an diese position spazieren;

und als draufgabe ist das alles in einem prototype verpackt;
hier das prototypescript, momentan habe ich eine andre bewegung drin:
ActionScript:
  1. /////////////******linkdefinition******///////////////////////
  2. MovieClip.prototype.link = function(pagename) {
  3.     this._alpha = 65;
  4.     this.T_linkname.text = pagename;
  5.     this.T_linkname.textColor = "0xCCCCCC";
  6.     this.onRollOver = function() {
  7.         this.T_linkname.textColor = "0xCCCC66";
  8.         this.onEnterFrame = function() {
  9.             this._alpha<=100 ? this._alpha += 12 : 0;
  10.         };
  11.     };
  12.     this.onRollOut = function() {
  13.         this.T_linkname.textColor = "0xCCCCCC";
  14.         this.onEnterFrame = function() {
  15.             this._alpha>=65 ? this._alpha -= 12 : 0;
  16.         };
  17.     };
  18.     this.onPress = function() {
  19.         var thisButton = this;
  20.         if (this._x += 3) {
  21.             delete thisButton._parent.lastButton.onEnterFrame;
  22.             thisButton._parent.lastButton._x -= 6;
  23.             thisButton._x += 3;
  24.             thisButton._parent.lastButton = thisButton;
  25.         }
  26.         this.T_linkname.textColor = "0xFFCC66";
  27.         this.aktiv();
  28.     };
  29. };
ich gebe auch mal die fla als anlage mit;
Angehängte Dateien
Dateityp: rar prototype.rar (4,8 KB, 3x aufgerufen)
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 09-01-2005, 06:56   #2 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 09-01-2005, 17:04   #3 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
habe ich es zu dumm erkärt oder habe ich euch vor ein unlösbares problem gestellt?..........
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 02:14 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele