Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 26-01-2005, 16:42   #1 (permalink)
HollyMolly
 
Benutzerbild von thom.k
 
Registriert seit: Apr 2004
Beiträge: 291
verlinkung problem

ich habe folgendes script f. mein menü, bitte klär mich einer von euch auf wie und wo genau ich die verlinkung mit geturl und loadmovie machen kann
bitte dringend um eure hilfe
PHP-Code:
Stage.scaleMode "noScale";
//modifiziere dieses array indem du weitere menuenamen hinzufügst, oder bestehende aenderst, je nach position bekommt es automatisch auch eine nummer:
labels = ['HOME''ABOUT''LULU''PORTFOLIO''DOWNLOADS'];
// POSITION:
9;
65;
// abstand zwischen den balken:
dist 4;
// balken breite bei rollOver: 
openWid 100;
speed 10;
MovieClip.prototype.scala = function(wvel) {
    
vel w>this._width vel : -vel;
    
this.onEnterFrame = function() {
        if (
this._width == w) {
            
delete this.onEnterFrame;
        } else {
            
this._width = (Math.abs(this._width-w)>Math.abs(vel)) ? this._width+vel w;
        }
        
mc0._x x;
        
this._parent.visited._x this._width-mcWid;
        for (
i=1i<labels.lengthi++) {
            
_root['mc'+i]._x _root['mc'+(i-1)]._x+_root['mc'+(i-1)]._width+dist;
        }
    };
};
obj = {};
obj.onRollOver = function() {
    
this.bt.gotoAndStop('over');
    
_root[temp].bt.scala(mcWidspeed);
    
this.bt.scala(openWidspeed);
    
path this;
    
clearInterval(id);
    
_root[temp].txt.text '0'+(Number(_root[temp]._name.substring(2))+1);
    
clearInterval(pausa);
    
pausa setInterval(function () {
        
randomChar(path.txtlabels[path._name.substring(2)]);
        
clearInterval(pausa);
    }, 
200);
};
obj.onRollOut = function() {
    
clearInterval(pausa);
    
clearInterval(id);
    
this.bt.gotoAndStop('up');
    
_root[temp].bt.scala(openWidspeed);
    
this.bt.scala(mcWidspeed);
    
pausa setInterval(function () {
        
randomChar(_root[temp].txtlabels[_root[temp]._name.substring(2)]);
        
clearInterval(pausa);
    }, 
200);
    
this.txt.text '0'+(Number(this._name.substring(2))+1);
};
obj.onRelease = function() {
    
_root[temp].txt.text '0'+(Number(_root[temp]._name.substring(2))+1);
    
_root[temp].bt.gotoAndStop('up');
    
_root[temp].enabled true;
    
_root[temp].bt.scala(mcWidspeed);
    
this.enabled false;
    
temp this._name;
    
this.visited._visible true;
};
for (
i=0i<labels.lengthi++) {
    
attachMovie('mc''mc'+iiobj);
    
mcWid mc0.bt._width;
    
this['mc'+i]._x i*(mcWid+dist)+x;
    
this['mc'+i]._y y;
    
this['mc'+i].txt.text '0'+(i+1);
    
this['mc'+i].txt.autoSize true;
    
this['mc'+i].visited._visible false;
}
//Das funzt nicht!!
//onPress = function (labels) {
    //_root.labels.loadMovie(labelswf+'.swf');
}; 

Geändert von thom.k (26-01-2005 um 16:44 Uhr)
thom.k ist offline   Mit Zitat antworten
Alt 26-01-2005, 17:12   #2 (permalink)
Pending…
 
Benutzerbild von psyk
 
Registriert seit: Jul 2002
Ort: Hamburg
Beiträge: 3.866
Na ich schätz mal hier. Wenn man den Btn gedrückt wird.
ActionScript:
  1. obj.onRelease = function() {
  2.      // :::.
  3.      getURL("http://www.deinDomain.de", "_bank");
  4.      // : erstelle MC in dem Bild geladenwerden soll
  5.      _root.createEmtyMovieClip("container_mc", 1000);
  6.      _root.container_mc.loadMovie("wasseWillst.jpg");
  7.      // .:::
  8.      _root[temp].txt.text = '0'+(Number(_root[temp]._name.substring(2))+1);
  9.      _root[temp].bt.gotoAndStop('up');
  10.      _root[temp].enabled = true;
  11.      _root[temp].bt.scala(mcWid, speed);
  12.      this.enabled = false;
  13.      temp = this._name;
  14.      this.visited._visible = true;
  15.  };
__________________
:: Warum einfach, wenn's auch kompliziert geht! ::
psyk ist offline   Mit Zitat antworten
Alt 26-01-2005, 18:33   #3 (permalink)
HollyMolly
 
Benutzerbild von thom.k
 
Registriert seit: Apr 2004
Beiträge: 291
danke für die schnelle antwort, mir geht es dabei hauptsächlich die einzelnen menüpunkte zu verlinken (siehe im script ganz oben labels = ['HOME', 'ABOUT', 'LULU', 'PORTFOLIO', 'DOWNLOADS']; )
kann mir das noch jemand erklären?
gruss thom

Geändert von thom.k (26-01-2005 um 22:21 Uhr)
thom.k ist offline   Mit Zitat antworten
Alt 26-01-2005, 22:38   #4 (permalink)
HollyMolly
 
Benutzerbild von thom.k
 
Registriert seit: Apr 2004
Beiträge: 291
bitte leute es wäre dringend
thom.k ist offline   Mit Zitat antworten
Alt 26-01-2005, 22:47   #5 (permalink)
Pending…
 
Benutzerbild von psyk
 
Registriert seit: Jul 2002
Ort: Hamburg
Beiträge: 3.866
Vielleicht so?
ActionScript:
  1. for (i=0; i<labels.length; i++) {
  2.     attachMovie('mc', 'mc'+i, i, obj,{_x:i*(mcWid+dist)+x,_y:y});
  3.     mcWid = mc0.bt._width;
  4.     this['mc'+i].txt.text = '0'+(i+1);
  5.     this['mc'+i].txt.autoSize = true;
  6.     this['mc'+i].visited._visible = false;
  7.     this['mc'+i].ID=i;
  8.     this['mc'+i].onPress = function () {
  9.         _root.labels.loadMovie(labels+[this.ID]'+.swf');
  10.    };
  11. }
__________________
:: Warum einfach, wenn's auch kompliziert geht! ::
psyk ist offline   Mit Zitat antworten
Alt 27-01-2005, 00:12   #6 (permalink)
HollyMolly
 
Benutzerbild von thom.k
 
Registriert seit: Apr 2004
Beiträge: 291
kann man die nicht einzeln ansprechen?
thom.k ist offline   Mit Zitat antworten
Alt 27-01-2005, 00:14   #7 (permalink)
Pending…
 
Benutzerbild von psyk
 
Registriert seit: Jul 2002
Ort: Hamburg
Beiträge: 3.866
Erster String im Array.
PHP-Code:
_root.labels.loadMovie(labels+[0]'+.swf'); 
__________________
:: Warum einfach, wenn's auch kompliziert geht! ::
psyk ist offline   Mit Zitat antworten
Alt 27-01-2005, 18:20   #8 (permalink)
HollyMolly
 
Benutzerbild von thom.k
 
Registriert seit: Apr 2004
Beiträge: 291
danke für deine nette hilfe, problem gelöst!
sorry dass ich mich längere zeit nicht gemeldet habe.
gruss thom

Geändert von thom.k (27-01-2005 um 18:21 Uhr)
thom.k 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