Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 02-09-2005, 15:17   #1 (permalink)
Neuer User
 
Registriert seit: Feb 2003
Beiträge: 78
Verlinkung ersetzen ... ?

Hallo,

hat jemand eine Ahnung, wie ich bei diesem Film anstelle der Verlinkung zu einer html-Seite (siehe Actionscript...) z.B zu Bild 5 navigieren kann?

Danke für eure Hilfe,

Matze
Angehängte Dateien
Dateityp: zip bsp.zip (5,3 KB, 2x aufgerufen)
mediamacher ist offline   Mit Zitat antworten
Alt 02-09-2005, 15:53   #2 (permalink)
nobody is perfect
 
Benutzerbild von Decrone
 
Registriert seit: Apr 2002
Ort: Bremen
Beiträge: 3.049
Hi
Einfach Copy & Pasta
ActionScript:
  1. /* EagleEyed 2004 :: [email]eagleeyed@risorseflash.it[/email] */
  2. Stage.scaleMode = "noScale";
  3. /* PERSONALIZZAZIONE */
  4. Items = ['ABOUT', 'PORTFOLIO', 'DOWNLOAD', 'CONTACT'];
  5. pages = ['about.html', 'portfolio.html', 'download.html', 'contact.html'];
  6. zielArray = [5, 10, 5, 10];//<-----neu Ziel angeben!
  7. x0 = 50; // posizione orizzontale
  8. y0 = 50; // posizione verticale
  9. colore = "CCFF00"; // colore del movieclip di fondo
  10. /**/
  11. dist = 0;
  12. for (var i = 0; i<Items.length; i++) {
  13.     var clip = attachMovie('mc', 'mc'+i, i);
  14.     clip.item.text = Items[i];
  15.     clip.item.autoSize = "left";
  16.     clip.bt._width = clip.item._width;
  17.     dist += (prev._width) || 0;
  18.     clip._x = x0+dist;
  19.     clip._y = y0;
  20.     col = new Color(clip.bg);
  21.     col.setRGB('0x'+colore);
  22.     prev = clip;
  23.     clip.ziel_temp = i;//<-----neu
  24.     clip.bt.onRollOver = function() {
  25.         path = _root[this._parent._name];
  26.         scale(path.bg, '_width', '_height', path.item._width-1, path.item._height-7, .5);
  27.     };
  28.     clip.bt.onRollOut = clip.bt.onReleaseOutside=function () {
  29.         path = _root[this._parent._name];
  30.         scale(path.bg, '_height', '_width', 1, 1, .5);
  31.     };
  32.     clip.bt.onRelease = function() {
  33.         /* AZIONI DEI PULSANTI */
  34.         //getURL(pages[this._parent._name.substring(2)]);
  35.         /**/
  36.         this._parent._parent.gotoAndStop(zielArray[this._parent.ziel_temp]);//<---neu
  37.         path = _root[this._parent._name];
  38.         scale(temp.bg, '_height', '_width', 1, 1, .5);
  39.         this.enabled = false;
  40.         this.useHandCursor = false;
  41.         temp.bt.enabled = true;
  42.         temp.bt.useHandCursor = true;
  43.         temp = path;
  44.     };
  45. }

Da wo ich was verändert/hinzugefügt habe, steht "<-----neu" dahinter!

Die ZielArray musste natürlich noch anpassen!

Gruss Dec
__________________
FF Unterstützen! Erste Hilfe! häufig gestellten Fragen
...................... ............... ................................

Geändert von Decrone (02-09-2005 um 17:42 Uhr)
Decrone ist offline   Mit Zitat antworten
Alt 03-09-2005, 13:25   #3 (permalink)
Neuer User
 
Registriert seit: Feb 2003
Beiträge: 78
Super Danke...nur noch einen Spacer zwischen den Items...?

Hallo,
super vielen Dabk für die Hilfe. Funktioniert bestens. Nur wie bekomme ich zwischen die Items noch einen Abstand rein, so dass sie weiter auseinander stehen? Wenn ich Leerzeichen hinter die jeweiligen Items einfüge, wird dieser Bereich natürlich auch farblich hinterlegt, wenn der Button aktiv ist. Das will ich jedoch leider nicht. Es soll lediglich der Abstand zwischen den Items ohne farbige Hinterlegung im aktiven Zustand vergrössert werden.
Danke,
Matze
mediamacher ist offline   Mit Zitat antworten
Alt 03-09-2005, 13:31   #4 (permalink)
Neuer User
 
Registriert seit: Feb 2003
Beiträge: 78
Hat so funktioniert ;-)

ActionScript:
  1. //* EagleEyed 2004 :: [email]eagleeyed@risorseflash.it[/email] */
  2. Stage.scaleMode = "noScale";
  3. /* PERSONALIZZAZIONE */
  4. Items = ['ABOUT', 'PORTFOLIO', 'DOWNLOAD', 'CONTACT'];
  5. spacer = ['    '];>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>NEU
  6. pages = ['about.html', 'portfolio.html', 'download.html', 'contact.html'];
  7. zielArray = [5, 10, 5, 10];//<-----neu Ziel angeben!
  8. x0 = 50; // posizione orizzontale
  9. y0 = 50; // posizione verticale
  10. colore = "CCFF00"; // colore del movieclip di fondo
  11. /**/
  12. dist = 0;
  13. for (var i = 0; i<Items.length; i++) {
  14.         var clip = attachMovie('mc', 'mc'+i, i);
  15.         clip.item.text = Items[i];
  16.         clip.item.autoSize = "left";
  17.         clip.bt._width = clip.item._width.spacer;  >>>>>>>>>>>>>>>>NEU
  18.         dist += (prev._width) || 0;
  19.         clip._x = x0+dist;
  20.         clip._y = y0;
  21.         col = new Color(clip.bg);
  22.         col.setRGB('0x'+colore);
  23.         prev = clip;
  24.         clip.ziel_temp = i;//<-----neu
  25.         clip.bt.onRollOver = function() {
  26.                 path = _root[this._parent._name];
  27.                 scale(path.bg, '_width', '_height', path.item._width-1, path.item._height-7, .5);
  28.         };
  29.         clip.bt.onRollOut = clip.bt.onReleaseOutside=function () {
  30.                 path = _root[this._parent._name];
  31.                 scale(path.bg, '_height', '_width', 1, 1, .5);
  32.         };
  33.         clip.bt.onRelease = function() {
  34.                 /* AZIONI DEI PULSANTI */
  35.                 //getURL(pages[this._parent._name.substring(2)]);
  36.                 /**/
  37.                 this._parent._parent.gotoAndStop(zielArray[this._parent.ziel_temp]);//<---neu
  38.                 path = _root[this._parent._name];
  39.                 scale(temp.bg, '_height', '_width', 1, 1, .5);
  40.                 this.enabled = false;
  41.                 this.useHandCursor = false;
  42.                 temp.bt.enabled = true;
  43.                 temp.bt.useHandCursor = true;
  44.                 temp = path;
  45.         };
  46. }
mediamacher ist offline   Mit Zitat antworten
Alt 03-09-2005, 13:47   #5 (permalink)
Neuer User
 
Registriert seit: Feb 2003
Beiträge: 78
Kleine Korrektur...

ActionScript:
  1. //* EagleEyed 2004 :: [email]eagleeyed@risorseflash.it[/email] */
  2. Stage.scaleMode = "noScale";
  3. /* PERSONALIZZAZIONE */
  4. Items = ['ABOUT', 'PORTFOLIO', 'DOWNLOAD', 'CONTACT'];
  5. spacer = 50;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>NEU
  6. pages = ['about.html', 'portfolio.html', 'download.html', 'contact.html'];
  7. zielArray = [5, 10, 5, 10];//<-----neu Ziel angeben!
  8. x0 = 50; // posizione orizzontale
  9. y0 = 50; // posizione verticale
  10. colore = "CCFF00"; // colore del movieclip di fondo
  11. /**/
  12. dist = 0;
  13. for (var i = 0; i<Items.length; i++) {
  14.         var clip = attachMovie('mc', 'mc'+i, i);
  15.         clip.item.text = Items[i];
  16.         clip.item.autoSize = "left";
  17.         clip.bt._width = clip.item._width+spacer;  >>>>>>>>>>>>>>>>NEU
  18.         dist += (prev._width) || 0;
  19.         clip._x = x0+dist;
  20.         clip._y = y0;
  21.         col = new Color(clip.bg);
  22.         col.setRGB('0x'+colore);
  23.         prev = clip;
  24.         clip.ziel_temp = i;//<-----neu
  25.         clip.bt.onRollOver = function() {
  26.                 path = _root[this._parent._name];
  27.                 scale(path.bg, '_width', '_height', path.item._width-1, path.item._height-7, .5);
  28.         };
  29.         clip.bt.onRollOut = clip.bt.onReleaseOutside=function () {
  30.                 path = _root[this._parent._name];
  31.                 scale(path.bg, '_height', '_width', 1, 1, .5);
  32.         };
  33.         clip.bt.onRelease = function() {
  34.                 /* AZIONI DEI PULSANTI */
  35.                 //getURL(pages[this._parent._name.substring(2)]);
  36.                 /**/
  37.                 this._parent._parent.gotoAndStop(zielArray[this._parent.ziel_temp]);//<---neu
  38.                 path = _root[this._parent._name];
  39.                 scale(temp.bg, '_height', '_width', 1, 1, .5);
  40.                 this.enabled = false;
  41.                 this.useHandCursor = false;
  42.                 temp.bt.enabled = true;
  43.                 temp.bt.useHandCursor = true;
  44.                 temp = path;
  45.         };
  46. }
mediamacher ist offline   Mit Zitat antworten
Alt 03-09-2005, 14:07   #6 (permalink)
nobody is perfect
 
Benutzerbild von Decrone
 
Registriert seit: Apr 2002
Ort: Bremen
Beiträge: 3.049
Thumbs up


Zitat:
Zitat von mediamacher
Hat so funktioniert ;-)
__________________
FF Unterstützen! Erste Hilfe! häufig gestellten Fragen
...................... ............... ................................
Decrone 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 14:23 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele