all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

managing dynamic text


managing dynamic text dougstudiodotcom
2/14/2004 8:53:20 PM
flash actionscript:
Hi All
I've got 2 questions if you can help
The first

How can i split text across seperate lines when outputting a long thankyou
message using dynamic tex

For example i want it to look like this

Dear User Nam
Email Address
I will contact you soon

Currently it looks lik
Dear User Name Emai
Address Will contact you soo

If you see what i mean

The second question is how do i remove the dynamic text message after say 5
seconds because the user will probably stay on the page for a short while

Cheer
Dou
Re: managing dynamic text Carixpig
2/15/2004 4:00:08 AM
You can add spaces by using html formatting in your text box, make sure html
formatting is selected in teh properties inspector, eg

textBox = "Dear"+ name + "<br>" + email + "<br>I will contact you as soon as
possible"

For the 5 second thing, check out the setInterval action in the actionscript
reference. you will create a function first

clearText = function()
textBox = ""


then use setInterval to call the function

setInterval(clearText, 5000)

or something similar. Don't copy and paste my script, find out how to do it
(not only will it help you but the script is probably a little bit off

AddThis Social Bookmark Button