Html in flash

how i add html in mx?

You don’t, they’re two separate entities. Flash can mimic certain HTML behavours though, such as opening new windows, but you have to use ActionScript to do so.

What is it you’re trying to do?

It’s not my thread but it’s nice to know. If i have a code and i want it to have a variable myText = “Hello lovely people. I love grilled chicken.” What code would i use to separate the sentences so the first sentence will be over the second and not next to it. I want the text to be shown in it’s box like that:
Hello lovely people.
I love grilled chicken.

Ciao

Hello lovely people.
I love grilled chicken

What I usually do though is…

myText="Hello lovely people.
"
myText+=“I love grilled chicken”

That works as well.

lost if you dont mind me asking, what will that code do?

myText="Hello lovely people.
" <-- first print that line
=start new line
myText+=“I love grilled chicken” <-- now add this line into the textbox.

With a lot of lines this can overtake your AS box, but it is way better than having it all in one line across the screen.

Thanx a lot about the answer. It’ll be useful.

Yeah, ActionScript handles variables in a very similar manner to JavaScript, so you won’t have any problems there.

Quite where the chicken comes into this however, I have no idea.

AS is similar to JS

AS is almost exactly like DHTML… DHTML even uses prototypes and such. But it is much harder to utilize on an HTML page than in an animation program unfortunately.