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...
Button beschriftung Ändern
Beitrag
<blockquote data-quote="FlashSoft" data-source="post: 924975" data-attributes="member: 281249"><p><strong>AW: Button beschriftung Ändern</strong></p><p></p><p>So du hasteinen Button in der Bibliothek,</p><p>falls der Button eine Schaltfläche ist ändere dies bitte und mache aus dem Button einen MovieClip. Mit Schaltflächen kann man nicht anständig arbeiten!</p><p></p><p>Nun erstellst du in diesem MC in der Bibliothek ein Leeres Dynamisches Textfeld, und gibst diesem einen Instanznamen. Ich verwende hier mal als Bsp. den instanznamen "btn_title". Und den MC in der Bibliothek nenne ich mal "btn_vorlage";</p><p></p><p>Es folgt ein wenig code um mal 2 Beispielbuttons zu erstellen:</p><p></p><p>[code]</p><p>[COLOR=#000000][COLOR=#FF9900]//Als erstes erstellen wir 2 leere MovieClips auf der Bühne, auf _root!</p><p>[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000BB]button1 [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]MovieClip [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]createEmptyMovieClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"button1"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]getNextHighestDepth[/COLOR][COLOR=#007700]);</p><p>var [/COLOR][COLOR=#0000BB]button2 [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]MovieClip [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]createEmptyMovieClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"button2"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]getNextHighestDepth[/COLOR][COLOR=#007700]);</p><p></p><p>[/COLOR][COLOR=#FF9900]//Jetzt füllen wir 2 Variablen, mit den Beschriftungen die die Buttons haben sollen</p><p>[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000BB]button1_title [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]String [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"Ich bin Button1"[/COLOR][COLOR=#007700];</p><p>var [/COLOR][COLOR=#0000BB]button2_title [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]String [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"Und ich Button2"[/COLOR][COLOR=#007700];</p><p></p><p>[/COLOR][COLOR=#FF9900]//Hier stellen wir die x & y Koordinaten der Buttons ein</p><p>[/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700];</p><p>[/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700];</p><p>[/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]100[/COLOR][COLOR=#007700];</p><p></p><p>[/COLOR][COLOR=#FF9900]//Nun laden wir den MovieClip aus der Bibliothek </p><p>[/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]attachMovie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"btn_vorlage"[/COLOR][COLOR=#007700]);</p><p>[/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]attachMovie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"btn_vorlage"[/COLOR][COLOR=#007700]);</p><p></p><p>[/COLOR][COLOR=#FF9900]//Und hier beschriften wir das Textfeld</p><p>[/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]btn_title[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]text [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button1_title[/COLOR][COLOR=#007700];</p><p>[/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]btn_title[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]text [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button2_title[/COLOR][COLOR=#007700]; [/COLOR][/COLOR]</p><p>[/code]</p><p></p><p>So der Code ist schon von mir getestet, hoff ich konnte dir weiterhelfen.</p><p></p><p><u>FlashSoft</u></p></blockquote><p></p>
[QUOTE="FlashSoft, post: 924975, member: 281249"] [b]AW: Button beschriftung Ändern[/b] So du hasteinen Button in der Bibliothek, falls der Button eine Schaltfläche ist ändere dies bitte und mache aus dem Button einen MovieClip. Mit Schaltflächen kann man nicht anständig arbeiten! Nun erstellst du in diesem MC in der Bibliothek ein Leeres Dynamisches Textfeld, und gibst diesem einen Instanznamen. Ich verwende hier mal als Bsp. den instanznamen "btn_title". Und den MC in der Bibliothek nenne ich mal "btn_vorlage"; Es folgt ein wenig code um mal 2 Beispielbuttons zu erstellen: [code] [COLOR=#000000][COLOR=#FF9900]//Als erstes erstellen wir 2 leere MovieClips auf der Bühne, auf _root! [/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000BB]button1 [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]MovieClip [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]createEmptyMovieClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"button1"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]getNextHighestDepth[/COLOR][COLOR=#007700]); var [/COLOR][COLOR=#0000BB]button2 [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]MovieClip [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]createEmptyMovieClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"button2"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]getNextHighestDepth[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#FF9900]//Jetzt füllen wir 2 Variablen, mit den Beschriftungen die die Buttons haben sollen [/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000BB]button1_title [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]String [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"Ich bin Button1"[/COLOR][COLOR=#007700]; var [/COLOR][COLOR=#0000BB]button2_title [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]String [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]"Und ich Button2"[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#FF9900]//Hier stellen wir die x & y Koordinaten der Buttons ein [/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]_y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]100[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#FF9900]//Nun laden wir den MovieClip aus der Bibliothek [/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]attachMovie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"btn_vorlage"[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]attachMovie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"btn_vorlage"[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#FF9900]//Und hier beschriften wir das Textfeld [/COLOR][COLOR=#0000BB]button1[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]btn_title[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]text [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button1_title[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]button2[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]btn_title[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]text [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]button2_title[/COLOR][COLOR=#007700]; [/COLOR][/COLOR] [/code] So der Code ist schon von mir getestet, hoff ich konnte dir weiterhelfen. [U]FlashSoft[/U] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Button beschriftung Ändern
Oben