xml-menü soll schon beim Hauptklick reagieren

harrry

Erfahrenes Mitglied
Hallo, ich bitte nun wirklich zum allerletzen Mal um Hilfe mit meinem verd... Textklapper. Mein Seelenheil hängt diesmal davon ab, es hinzukriegen, dass sich meine "Hinzuladefilme" schon beim Klick auf die Titel-Punkte ("MainSuperButtons") öffnen und nicht erst beim Klick auf einen Untermenüpunkt ("SubSuperButton"). Könnt Ihr mir da helfen? Ich wäre restlos begeistert und grenzenlos dankbar.
 

Anhänge

  • textklapper.zip
    22,8 KB · Aufrufe: 26
<offtopic da noch zu früh am Morgen>

Findest Du nicht auch, dass "SubSuperButton" irgendwie Paradox klingt ( "UnterÜberKnopf" )? ^^

</offtopic da noch zu früh am Morgen>
 
So, nun mal @Topic:

Generalisieren lässt sich das nicht unbedingt, da jeder Hauptmenüpunkt mehrere Unterpunkte haben kann. Um beim Klick auf einen Hauptmenüpunkt die swf-Datei des ersten Untermenüpunktes zu laden, ändere den Codeabschnitt in der "MenuClip"-Komponente, der sich mit dem MainButton befasst (ab Zeile 24) folgendermaßen um:
PHP:
//Main Button release action(rollover located in mainbutton mc)
mainButtonRef.onRelease = function() {
	if(open == this.index){
		//second click error check. closes menu
		resetMenu();
		open = undefined;
	}else{
		//first click
		open = this.index;
		this.gotoAndStop(3);
		collapse(this);
		var firstEntry = this._parent["subContainer" + this.index].subButton0;
		var page = firstEntry.page;
		_root.gotoFunction(page);
	}

Gruß
.
 
Datic, ich danke Dir sehr

//offtopic:

THE BARBERS PARADOX

Suppose you walk past a barber's shop one day, and see a sign that says "Do you shave yourself? If not, come in and I'll shave you! I shave anyone who does not shave himself, and noone else."

This seems fair enough, and fairly simple, until, a little later, the following question occurs to you - does the barber shave himself? If he does, then he mustn't, because he doesn't shave men who shave themselves, but then he doesn't, so he must, because he shaves every man who doesn't shave himself... and so on. Both possibilities lead to a contradiction.

This is the Barber's Paradox, discovered by mathematician, philosopher and conscientious objector Bertrand Russell, at the begining of the twentieth century. As stated, it seems simple, and you might think a little thought should show you the way around it. At worst, you can just say "Well, the barber's condition doesn't work! He's just going to have to decide who to shave in some different way." But in fact, restated in terms of so-called "naïve" set theory, the Barber's paradox exposed a huge problem, and changed the entire direction of twentieth century mathematics.
 
Durch Teilung (obwohl ich nicht glaube, dass es sich hier lohnt - etwas Auflockerung im Flashforum ist doch auch mal ganz nett. ;)).

Es hält Dich aber niemand davon ab, einen Paradoxon-Thread im Smalltalk zu eröffnen.

Gruß
.
 
"Offtopic zum Thema machen" - das war nicht wirklich ernst gemeint, sondern bloß ein müder Versuch, das (Abseits-)Thema Paradoxon noch um einen Dreh weiterzuspinnen. War wohl nix. :rolleyes:

Anyway, nochmals herzlichen Dank für die Code-Hilfe.
 
rofl - ob eines derartigen Verdachts hab ich mir den Satz auch ein paar mal auf der Zunge zergehen lassen - ich konnte aber nicht wirklich ein Paradoxon darin finden. :suspekt:
 
Zurück