actionscript 3 - Remove dots from button label -


i have button , give label value dynamically. , button width=100;

if give btn.label = "good morning have nice day"; shows

but need remove dots. , have different function marquee.

var t:timer = new timer(500); btn1.label += "  "; t.addeventlistener(timerevent.timer,function(ev:timerevent): void {   btn1.label = btn1.label.substr(1) + btn1.label.charat(0); } ); t.start(); 

i have button btn2.

click event on btn2 calls above code , label text start move towards left. need remove dot.

any help???

i got answer.

private var str:string; str = "text display" + "  "; str = str.substr(1) + str.charat(0); btn1.label = updatelabel(str);  private function updatelabel(str:string):string {    return new string(str).substr(0,10); } 

it works me. if 1 have other solutions please share views. thank you


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -