PDA

View Full Version : flash has newline character?please answer


flashpin
04-27-2002, 07:17 AM
I have one funtionality where user selectes things which he likes, now I am storing this things in array and through for loop I get what they havve selected , but my problem is I want each in new line .... do flash has new line charater or something?

can I get result out arrray in each seperate variable.


something like in java depending on for loop it will have that many lines in table or somethind...
like some way to say flash that depending on for loop I want it should generat that many dynamic text fields?? Is it possible


I hope u are getting me what I mean

Thanks

Jesse
04-27-2002, 08:35 AM
var1 = "abc";
var2 = "def";
text = var1 + "\n" + var2;
// or
// text = var1 + newline + var2;
// or in HTML fields:
// text = var1 + "<br>" + var2;

flashpin
04-28-2002, 06:34 AM
thanks...

i will try this..

can u help me with my 2nd que.

I am making cd presentation - in that viewer - uses add to cart.. technically i am storing this in one array...

when he says view cart he can see all

but my proble is... as whole array is show in one dynamic field..its indiviual identiyt is not maintained....

so at last like in all site... I am not able to make func - where he can delete that time or he can order more quantity...
only if i get each ararry[0] etc as individual identity i cant go ahead... can u guide me for this??

Please
Thanks

Jesse
04-28-2002, 10:15 AM
Make a button called 'next item' or something which incriments a counter variable 'k' each time it's clicked then displays item array[k] in the text box. That's the only thing I can think of.