art-d-sign
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 06.03.2004, 15:54   #1
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt

leichte frage: dragOut, onPress, ... mit einmal festlegen...


ich habe folgenden script:
PHP-Code:
news_mc.onRelease && news_mc.dragOut = function(){
        
_root.1;
        
_root.threads_mc.gotoAndPlay(_root.threads_mc._currentframe 1);
}; 
ich möchte das das auch gleich für dragOut gilt.
ich möchte aber nicht jedesmal das script neu schreiben, weil ich viele mcs hab wo ich das machen muss

sowas wie news_mc.onRelease && news_mc.dragOut geht leider nicht....

help!
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________
hesa ist offline   Mit Zitat antworten


Alt 07.03.2004, 16:59   #2
TP-Specialist
 
Benutzerbild von the0bone
 
Registriert seit: Mar 2001
Ort: NDS
the0bone ist auf einem guten Weg
PHP-Code:
news_mc.onRelease = function(){
        
_root.1;
        
_root.threads_mc.gotoAndPlay(_root.threads_mc._currentframe 1);
};
news_mc.dragOut = function(){
        
_root.1;
        
_root.threads_mc.gotoAndPlay(_root.threads_mc._currentframe 1);
}; 
oder
1. Keyframe:
PHP-Code:
function machwas(){
        
_root.1;
        
_root.threads_mc.gotoAndPlay(_root.threads_mc._currentframe 1);
}; 
auf deiner Instanz:
PHP-Code:
news_mc.onRelease = function(){
        
machwas ();
};
news_mc.dragOut = function(){
        
machwas ();
}; 
__________________
the0bone

Wissen ist Macht, nichts Wissen macht nichts!
the0bone ist offline   Mit Zitat antworten
Alt 24.03.2004, 16:07   #3
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt
solche festgelegten funktionen gelten für den gesamten swf oder nur für den mc in dem ich sie festlege???
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________
hesa ist offline   Mit Zitat antworten
Alt 24.03.2004, 17:21   #4
TP-Insider
 
Benutzerbild von ChrisU
 
Registriert seit: May 2003
Ort: Köln
ChrisU macht sich hier sehr viel Mühe
du kannst funktionen definieren und in Kombination, so wie du sie brauchst, immer aufrufen sobald sie einmal erstellt wurden. (Pfad berücksichtigen... wie bei Variablen, Instanzen etc. gewohnt halt auch)
__________________
Code:
if (IchKannsNicht==GehtNicht){IchKannsNicht=true}
else {IchKannsNicht=IchLerne}
GreetZzz,
<=:: ChrisU ::=>
ChrisU ist offline   Mit Zitat antworten
Alt 24.03.2004, 17:46   #5
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt
aso thx
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________
hesa ist offline   Mit Zitat antworten
Alt 24.03.2004, 18:24   #6
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt
wieso funzt dieser script nicht????
wenn ich mit trace arbeite, merke ich, das eigentlich alles stimmt...
aber die buttons reagieren trotzdem nicht....

PHP-Code:

function rollover () {
    
this.lauf true;
    
this.kontr true;
};

function 
rollout () {
    
this.lauf false;
    
this.kontr false;
};



function 
enterframe () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_home_mc.lauf false;
navi_home_mc.kontr true;

navi_home_mc.onRollOver = function () {
    
rollover ();
};


navi_home_mc.onRollOut = function () {
    
rollout ();
};

navi_home_mc.onEnterFrame = function () {
    
enterframe ();
}; 
bei dem mc um den es geht steht im 1. frame stop(); kontr = true; im letzen stop(''); kontr = false;

ich mache das mit den funktionen, weil es noch 7 weitere buttons gibt
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________

Geändert von hesa (24.03.2004 um 18:28 Uhr).
hesa ist offline   Mit Zitat antworten
Alt 24.03.2004, 19:34   #7
TP-Insider
 
Benutzerbild von ChrisU
 
Registriert seit: May 2003
Ort: Köln
ChrisU macht sich hier sehr viel Mühe
auf den ersten Blick ein Pfadproblem.

z.B. hier (gilt für den gesamten code):

function rollover () {
this.lauf = true;
this.kontr = true;
};


this ist normalerweise Objektbezogen. Da du aber eine Funktion definierst, die erst greift, wenn sie initialisiert wird, weiss flash nicht auf was das bezogen ist.
wenn du die Variablen auf der Hauptzeitleiste definiert hast, musst du sie auch so adressieren:
_root.lauf=true; _root.kontr=true; etc.


EDIT

Das auf dem Avatar bin ich NICHT! *fg
Mit 26J. hab ich keinen Babyspeck mehr!
__________________
Code:
if (IchKannsNicht==GehtNicht){IchKannsNicht=true}
else {IchKannsNicht=IchLerne}
GreetZzz,
<=:: ChrisU ::=>

Geändert von ChrisU (24.03.2004 um 19:39 Uhr).
ChrisU ist offline   Mit Zitat antworten
Alt 24.03.2004, 20:07   #8
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt
lol thx, hab mir schon gedacht das es wieder mal am pfad liegt!!!!
@avatar
naja, man kann ja nicht genau erkennen wie alt die person auf dem bild ist!!!!!
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________
hesa ist offline   Mit Zitat antworten
Alt 24.03.2004, 20:11   #9
TP-Supporter
 
Benutzerbild von hesa
 
Registriert seit: Jan 2004
Ort: hyannis
hesa macht alles soweit korrekt
hatt dann jemand mal ne ahnung wie ich das ein bisschen kürzen könnte????

PHP-Code:

function rollover () {
    
this.lauf true;
    
this.kontr true;
};

function 
rollout () {
    
this.lauf false;
    
this.kontr false;
};



function 
enterframe () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_home_mc.lauf false;
navi_home_mc.kontr true;
navi_skills_mc.lauf false;
navi_skills_mc.kontr true;
navi_design_mc.lauf false;
navi_design_mc.kontr true;
navi_design4u_mc.lauf false;
navi_design4u_mc.kontr true;
navi_contact_mc.lauf false;
navi_contact_mc.kontr true;
navi_guestbook_mc.lauf false;
navi_guestbook_mc.kontr true;
navi_links_mc.lauf false;
navi_links_mc.kontr true;



navi_home_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_skills_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_design_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_design4u_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_contact_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_guestbook_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};

navi_links_mc.onRollOver = function () {
    
this.lauf true;
    
this.kontr true;
};





navi_home_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_skills_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_design_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_design4u_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_contact_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_guestbook_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};

navi_links_mc.onRollOut = function () {
    
this.lauf false;
    
this.kontr false;
};





navi_home_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_skills_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_design_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_design4u_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_contact_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_guestbook_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};

navi_links_mc.onEnterFrame = function () {
    if (
this.lauf && this.kontr) {
        
this.nextFrame ();
    }
    if (!
this.lauf && !this.kontr) {
        
this.prevFrame ();
    }
};



navi_home_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(1);
};

navi_skills_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(3);
};

navi_design_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(5);
};

navi_design4u_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(7);
};

navi_contact_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(9);
};

navi_guestbook_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(11);
};

navi_links_mc.onRelease = function(){
    
_root.threads_mc.gotoAndPlay(13);
}; 
__________________

cya hesa |||:::>>> join
http://www.hesaworld.com

__________________
hesa ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash
leichte frage: dragOut, onPress, ... mit einmal festlegen... leichte frage: dragOut, onPress, ... mit einmal festlegen...
« Keyframe Animation | GotoAndPLay nach 3Minuten??? »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

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

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


Alle Zeitangaben in WEZ +2. Es ist jetzt 09:41 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67