PDA

View Full Version : Text Query in Flash 4



Lockwood
January 22nd, 2003, 09:25 PM
Hello.

I'm been having a bit of problem with Flash 4 and text variables.

This is what I want to do:

I have a blank title that I want people to complete:

The (something) of the (something) (something)

... where people select words from lists to complete the title. I also want it to be centred on a mock book cover.

The problem is that I can't work out how to make the whole title into one variable, which I can them place on the cover.

Going by the tutorials I've seen, it should be something like:

totalTitle = "The " + textVar1 + " of the " + textVar2 + " " + textVar3

But it doesn't want to work.

Is it different in Flash4?

Thanks in advance,

Lockwood

Lockwood
January 28th, 2003, 02:30 AM
Can anyone at least point me in the direction of a flash4 tutorial regarding the above?

Ta,

Lockwood

lostinbeta
January 28th, 2003, 02:33 AM
I don't have a clue about Flash 4, but I do know that before + could be used the word "add" was used instead.


Maybe you can try that.


totalTitle = "The " add textVar1 add " of the " add textVar2 add " " add textVar3

lostinbeta
January 28th, 2003, 02:35 AM
I think you can also you "&" in Flash 4 for that too.


totalTitle = "The " & textVar1 & " of the " & textVar2 & " " & textVar3



If these don't work. I have no clue buddy. I started with MX.

Lockwood
January 28th, 2003, 04:41 AM
You're a god!

That "&" seems to work.

thanks muchly.

Lockwood

lostinbeta
January 28th, 2003, 12:21 PM
Wow... I guess shooting blind sometimes does work :beam:

No problem man.