PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
flash menu / URL fehler
Beitrag
<blockquote data-quote="ssandner" data-source="post: 1432118" data-attributes="member: 19711"><p><strong>AW: flash menu / URL fehler</strong></p><p></p><p>Da ist noch mindestens ein Copy/Paste Fehler drin:</p><p></p><p> function main1Click(event:MouseEvent):void {</p><p> var main1URL:URLRequest=new URLRequest("http:/famz-party.de/kontakt.html");</p><p> navigateToURL(main1URL, "mainFrame");</p><p> }</p><p> mainBtn1.addEventListener(MouseEvent.CLICK, main1Click);</p><p></p><p> function main2Click(event:MouseEvent):void {</p><p> var main2URL:URLRequest=new URLRequest("http:/famz-party.de/impressum.html");</p><p>HIER--> navigateToURL(main2URL, "mainFrame");</p><p> }</p><p> mainBtn2.addEventListener(MouseEvent.CLICK, main2Click);</p><p></p><p>Btw: Ich hätte das übrigens anders gemacht:</p><p>[CODE]</p><p>var main1URL:URLRequest=new URLRequest("http:/famz-party.de/kontakt.html");</p><p>var main2URL:URLRequest=new URLRequest("http:/famz-party.de/impressum.html");</p><p>var main3URL:URLRequest=new URLRequest("http:/famz-party.de/link3.html");</p><p>var main4URL:URLRequest=new URLRequest("http:/famz-party.de/link4.html");</p><p>var main5URL:URLRequest=new URLRequest("http:/famz-party.de/link5.html");</p><p>var main6URL:URLRequest=new URLRequest("http:/famz-party.de/link6.html");</p><p></p><p>this.mainBtn1.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p>this.mainBtn2.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p>this.mainBtn3.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p>this.mainBtn4.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p>this.mainBtn5.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p>this.mainBtn6.addEventListener(MouseEvent.CLICK, button_click_handler);</p><p></p><p>/*Kleiner Format-Tipp:</p><p>Ich würde die Instanzen der Button in main1_btn, main2_btn oder mainBtn1_mc, mainBtn2_mc usw umbenennen, </p><p>dann hast du die Codevervollständigung von Flash zu Hilfe*/</p><p></p><p>function button_click_handler(event:MouseEvent)</p><p>{</p><p> switch (event.currentTarget)</p><p> {</p><p> case mainBtn1 :</p><p> navigateToURL(main1URL, "mainFrame");</p><p> break;</p><p></p><p></p><p> case mainBtn2 :</p><p> navigateToURL(main2URL, "mainFrame");</p><p> break;</p><p></p><p> case mainBtn3 :</p><p> navigateToURL(main3URL, "mainFrame");</p><p> break;</p><p></p><p> case mainBtn4 :</p><p> navigateToURL(main4URL, "mainFrame");</p><p> break;</p><p></p><p> case mainBtn5 :</p><p> navigateToURL(main5URL, "mainFrame");</p><p> break;</p><p></p><p></p><p> case mainBtn6 :</p><p> navigateToURL(main6URL, "mainFrame");</p><p> break;</p><p></p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="ssandner, post: 1432118, member: 19711"] [b]AW: flash menu / URL fehler[/b] Da ist noch mindestens ein Copy/Paste Fehler drin: function main1Click(event:MouseEvent):void { var main1URL:URLRequest=new URLRequest("http:/famz-party.de/kontakt.html"); navigateToURL(main1URL, "mainFrame"); } mainBtn1.addEventListener(MouseEvent.CLICK, main1Click); function main2Click(event:MouseEvent):void { var main2URL:URLRequest=new URLRequest("http:/famz-party.de/impressum.html"); HIER--> navigateToURL(main2URL, "mainFrame"); } mainBtn2.addEventListener(MouseEvent.CLICK, main2Click); Btw: Ich hätte das übrigens anders gemacht: [CODE] var main1URL:URLRequest=new URLRequest("http:/famz-party.de/kontakt.html"); var main2URL:URLRequest=new URLRequest("http:/famz-party.de/impressum.html"); var main3URL:URLRequest=new URLRequest("http:/famz-party.de/link3.html"); var main4URL:URLRequest=new URLRequest("http:/famz-party.de/link4.html"); var main5URL:URLRequest=new URLRequest("http:/famz-party.de/link5.html"); var main6URL:URLRequest=new URLRequest("http:/famz-party.de/link6.html"); this.mainBtn1.addEventListener(MouseEvent.CLICK, button_click_handler); this.mainBtn2.addEventListener(MouseEvent.CLICK, button_click_handler); this.mainBtn3.addEventListener(MouseEvent.CLICK, button_click_handler); this.mainBtn4.addEventListener(MouseEvent.CLICK, button_click_handler); this.mainBtn5.addEventListener(MouseEvent.CLICK, button_click_handler); this.mainBtn6.addEventListener(MouseEvent.CLICK, button_click_handler); /*Kleiner Format-Tipp: Ich würde die Instanzen der Button in main1_btn, main2_btn oder mainBtn1_mc, mainBtn2_mc usw umbenennen, dann hast du die Codevervollständigung von Flash zu Hilfe*/ function button_click_handler(event:MouseEvent) { switch (event.currentTarget) { case mainBtn1 : navigateToURL(main1URL, "mainFrame"); break; case mainBtn2 : navigateToURL(main2URL, "mainFrame"); break; case mainBtn3 : navigateToURL(main3URL, "mainFrame"); break; case mainBtn4 : navigateToURL(main4URL, "mainFrame"); break; case mainBtn5 : navigateToURL(main5URL, "mainFrame"); break; case mainBtn6 : navigateToURL(main6URL, "mainFrame"); break; } } [/CODE] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
flash menu / URL fehler
Oben