I'm sitting here, working on my first homepage build
with Flash and I've got a problem that's drivin' me nuts!
I've got an animation, within it theres a dynamic textfield called
"text_box" - with actionscript text is being loaded into the fieldvariables
and with a nice script I can "flip through pages" within the textfield.
Of course, this script is not my invention, I'm not good at scripting,
instead I'm using the free scrollbar from this site:
You can download the fla for the scrollbar from there.
Now here's my prob:
You can "flip thorugh the pages" with a button, the script
used is mainly:
function on_release(){
// Actions to occur when button is released
_parent.text_num = (++_parent.text_num == 5 ? 1 : _parent.text_num);
_parent.text_box.scroll = 1;
_parent.text_box = _parent["text_box"+_parent.text_num];
But now I dont want to define the text within the "pages" through
vars, like it's in the scrollbar script;
This is working great for page 1, but I dont get it to load
the txt's to the other pages - the pages remain emty
HTML tags arent supported neither
if page 1 works how are you loading the variables for the other pages, ie what are you doing differently ?
also your text boxes need HTML turned on to display html.
one way to find a path is to use the "insert a target path" button on the actions editor (bottom right corner circle with cross inside).
path example
if you have a movieclip on root with instance name "mc" then to access it you can use:
_root.mc
and if you have a movieclip inside _root.mc with instance name "mc1" then to access it you can use:
_root.mc.mc1
and if you have a textbox inside _root.mc.mc1 with instance name "txt" then to put text into it (in MX) you can use:
_root.mc.mc1.txt.text="my text";
or for HTML you can use:
_root.mc.mc1.txt.htmlText="<B>my text</B>";