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...
Smoothing von Text (CS5 / AS3) / An ssandner
Beitrag
<blockquote data-quote="ssandner" data-source="post: 1708744" data-attributes="member: 19711"><p><strong>AW: Smoothing von Text (CS5 / AS3) / An ssandner</strong></p><p></p><p>Hallo Indium,</p><p>du hattest richtig vermutet, mir ist auch noch keine neue Idee gekommen. Hatte allerdings auch wenig Zeit, nich darun zu kümmern. Ich schau mir dein script heute mal an, vielleicht fällt mir etwas ein. Ich meld mich.</p><p></p><p>P.S. Vielleicht hat ja noch jemand hier im forum eine Idee.</p><p></p><p>Nachtrag:</p><p></p><p>Also formal kann ich in deinem Script keinen Fehler entdecken, allerdings kann ich es nicht testen, da es sich nur um einen Teil deines Scriptes handelt, selbst wenn ich die Elemente auf der Bühne anlege, hagelt es Fehlermeldungen.Fangen wir noch mal von vorne an. Hier mein script mit smooth, welches zumindest bei mir funktioniert:</p><p>[CODE]</p><p>import caurina.transitions.*;</p><p></p><p>var someText:String="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.";</p><p></p><p></p><p>var bounds:Rectangle=new Rectangle(this.info_textfenster.scrollbar_eins.scrollbalken_eins.x,this.info_textfenster.scrollbar_eins.scrollbalken_eins.y,0,200);</p><p>var scrolling:Boolean=false;</p><p>this.info_textfenster.foto_beschreibung.scrollText_txt</p><p></p><p>stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll);</p><p>stage.addEventListener(Event.ENTER_FRAME, enterHandler);</p><p>this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);</p><p>this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.ROLL_OVER,overF);</p><p>this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.ROLL_OUT,outF);</p><p>this.info_textfenster.foto_beschreibung.addEventListener(MouseEvent.MOUSE_WHEEL, moveScrollbar);</p><p>this.info_textfenster.foto_beschreibung.scrollText_txt.text=someText;</p><p>this.info_textfenster.foto_beschreibung.scrollText_txt.multiline=true;</p><p>this.info_textfenster.foto_beschreibung.scrollText_txt.wordWrap=true;</p><p></p><p>if (this.info_textfenster.foto_beschreibung.scrollText_txt.numLines<=10)</p><p>{</p><p> this.info_textfenster.scrollbar_eins.scrollbalken_eins.visible=false;</p><p>}</p><p>function startScroll(event:Event)</p><p>{</p><p> scrolling=true;</p><p> this.info_textfenster.scrollbar_eins.scrollbalken_eins.startDrag(false,bounds);</p><p>}</p><p></p><p>function stopScroll(event:Event)</p><p>{</p><p> scrolling=false;</p><p> this.info_textfenster.scrollbar_eins.scrollbalken_eins.stopDrag();</p><p>}</p><p>function moveScrollbar(event:MouseEvent)</p><p>{</p><p> this.info_textfenster.scrollbar_eins.scrollbalken_eins.y=bounds.y + (this.info_textfenster.foto_beschreibung.scrollText_txt.scrollV * 200/this.info_textfenster.foto_beschreibung.scrollText_txt.maxScrollV);</p><p>}</p><p>function enterHandler(event:Event)</p><p>{</p><p> if (scrolling==true)</p><p> {</p><p> this.info_textfenster.foto_beschreibung.scrollText_txt.scrollV = Math.round(((this.info_textfenster.scrollbar_eins.scrollbalken_eins.y - bounds.y)/200)*this.info_textfenster.foto_beschreibung.scrollText_txt.maxScrollV);</p><p> Tweener.addTween(this.info_textfenster.foto_beschreibung.scrollText_txt,{scrollV:+1, time:1, transition:"easeOutQuart"});</p><p> }</p><p>}</p><p></p><p>function overF(event:MouseEvent)</p><p>{</p><p> Mouse.cursor="hand";</p><p>}</p><p>function outF(event:MouseEvent)</p><p>{</p><p> Mouse.cursor="auto";</p><p>}</p><p></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="ssandner, post: 1708744, member: 19711"] [b]AW: Smoothing von Text (CS5 / AS3) / An ssandner[/b] Hallo Indium, du hattest richtig vermutet, mir ist auch noch keine neue Idee gekommen. Hatte allerdings auch wenig Zeit, nich darun zu kümmern. Ich schau mir dein script heute mal an, vielleicht fällt mir etwas ein. Ich meld mich. P.S. Vielleicht hat ja noch jemand hier im forum eine Idee. Nachtrag: Also formal kann ich in deinem Script keinen Fehler entdecken, allerdings kann ich es nicht testen, da es sich nur um einen Teil deines Scriptes handelt, selbst wenn ich die Elemente auf der Bühne anlege, hagelt es Fehlermeldungen.Fangen wir noch mal von vorne an. Hier mein script mit smooth, welches zumindest bei mir funktioniert: [CODE] import caurina.transitions.*; var someText:String="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat."; var bounds:Rectangle=new Rectangle(this.info_textfenster.scrollbar_eins.scrollbalken_eins.x,this.info_textfenster.scrollbar_eins.scrollbalken_eins.y,0,200); var scrolling:Boolean=false; this.info_textfenster.foto_beschreibung.scrollText_txt stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll); stage.addEventListener(Event.ENTER_FRAME, enterHandler); this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.MOUSE_DOWN, startScroll); this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.ROLL_OVER,overF); this.info_textfenster.scrollbar_eins.scrollbalken_eins.addEventListener(MouseEvent.ROLL_OUT,outF); this.info_textfenster.foto_beschreibung.addEventListener(MouseEvent.MOUSE_WHEEL, moveScrollbar); this.info_textfenster.foto_beschreibung.scrollText_txt.text=someText; this.info_textfenster.foto_beschreibung.scrollText_txt.multiline=true; this.info_textfenster.foto_beschreibung.scrollText_txt.wordWrap=true; if (this.info_textfenster.foto_beschreibung.scrollText_txt.numLines<=10) { this.info_textfenster.scrollbar_eins.scrollbalken_eins.visible=false; } function startScroll(event:Event) { scrolling=true; this.info_textfenster.scrollbar_eins.scrollbalken_eins.startDrag(false,bounds); } function stopScroll(event:Event) { scrolling=false; this.info_textfenster.scrollbar_eins.scrollbalken_eins.stopDrag(); } function moveScrollbar(event:MouseEvent) { this.info_textfenster.scrollbar_eins.scrollbalken_eins.y=bounds.y + (this.info_textfenster.foto_beschreibung.scrollText_txt.scrollV * 200/this.info_textfenster.foto_beschreibung.scrollText_txt.maxScrollV); } function enterHandler(event:Event) { if (scrolling==true) { this.info_textfenster.foto_beschreibung.scrollText_txt.scrollV = Math.round(((this.info_textfenster.scrollbar_eins.scrollbalken_eins.y - bounds.y)/200)*this.info_textfenster.foto_beschreibung.scrollText_txt.maxScrollV); Tweener.addTween(this.info_textfenster.foto_beschreibung.scrollText_txt,{scrollV:+1, time:1, transition:"easeOutQuart"}); } } function overF(event:MouseEvent) { Mouse.cursor="hand"; } function outF(event:MouseEvent) { Mouse.cursor="auto"; } [/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...
Smoothing von Text (CS5 / AS3) / An ssandner
Oben