as question!
- Started
- Last post
- 70 Responses
- UndoUndo0
janne, forget that and see the mail I sent(the last one)
- ********0
dang your btinternet is slow. :P
still nothing..
- ********0
can you post it here?
- UndoUndo0
good ole BT,
I sent it on another account
:)
- UndoUndo0
okay here goes
myNum = 12300468;
millions = Math.floor(12300468/1000000);
thous = Math.floor((12300468-(millions*1...
hundreds = 12300468-((millions*1000000)+(th...mystring= millions+'.'+ thous+'.'+hundreds;
trace(mystring);
- ********0
ok got it now..
but "trace" renders it somewhere on the page right?
how do i get it into a formatted dynamic text field?
thx!
- UndoUndo0
take out the tarce() part
and the you can put
_root.MYtextfiledName.text = mystring;
(not html)
or
_root.MYtextfiledName.htmlText = mystring;
(html)
FYI trace send it to the putput window - its used to find errors in the script.
- ********0
shit i wish i knew actionscript!! :'(
i just lost bloody 2 hours working on a small thing like this..
oh god of actionscript, gimme knowledge!
*raises arms toward sky
- joyride0
textBoxName.text = mystring for normal text box
textBoxName.htmlText = mystring for HTML text box
Good to use autoSize too, if you have a lot of different sizes strings
- ********0
cheers! i reckon mytextfIEldname is the name of the dynamic textfield?
- UndoUndo0
shit like that you should post here, theres a few good guys about during Euro and USA time,
you'll always get an answer to simple things
has it worked out for you?
:)
- joyride0
damn coworkers, undo your too fast!
- UndoUndo0
click on the text field and then look in the properties panel, the name of it is on the left (underneath where it says 'dynamic text')
- UndoUndo0
damn coworkers, undo your too fast!
joyride2
(Apr 27 06, 11:32):)
- ********0
All works now. thx a million!!
- ********0
2 cookies for the both of you.
- UndoUndo0
:)
- ********0
ONE more question.. :)
sometimes it skips the last digit..
ie 673 becomes 67 or something....(without the last digit)
how come?
- joyride0
don't know your last question, but is the number always going to be in the millions?
Because if its 673 for example then it would look like 0.0.673
Just an FYI
- ********0
no, it surely will range between 20 and 30 million..
but when adding up, while the thing rotates, it sometimes drops the last digits.. i will show.. just a sec.