using \ for tabStops


hello,

i don't know else shoul use make tabstops work

using myvar = "a\b\c\d";

it works perfectly, using variables in string can't make work... , flash documentation abaut bad...

this code

for (quantos_items=0; quantos_items<array_enc.length; quantos_items++) {
var a:string = array_enc[quantos_items].quantidade;
var b:string = "\ "+array_enc[quantos_items].ref;
var c:string = "\ "+array_enc[quantos_items].iva;
var d:string = "\ "+array_enc[quantos_items].total;
_root.txt_com_a_encomenda.multiline = true;
//_root.txt_com_a_encomenda.html = true;
_root.txt_com_a_encomenda.text += a;
_root.txt_com_a_encomenda.text += b;
_root.txt_com_a_encomenda.text += c;
_root.txt_com_a_encomenda.text += d;
_root.txt_com_a_encomenda.text += "\n";
}


also, assuming work, possible make flash calculate the total of value in last tabstop @ end of sentence?

i mean, each line have quantity, name, tax, final price

i need tho make flash display @ ende of lines how mutch user pay purchaise.

thanks lot :-)



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial