Converting a string to a variable
I have a problem,
I'm making this message cycling headline popup thingy.
This is my code for one of the frames:
Let's say that i declared a variable "headline1 = "Hello Everybody!"
on one frame. I have a counter called "hnews" as well that starts at 0 and goes to a limit.
the next frame i have
PHP Code:
var x = "headline"+_root.hnews
scroller.thenews = x;
I want the scroller to be equal to the variable headline1, not the string headline1. I've tried hundreds of things like brackets and curly braces, but all in vain.
Plz help,
Danny