PDA

View Full Version : External text file variables not scrolling


psychophiler
03-14-2003, 12:34 PM
Hello

Ive got a slight problem with a text field ive created.

I have it set up to scroll up and down and it works great if I set a variable within Flash to populate the text box.

Problem is, when I try to use a variable from an external .txt file it shows up in the box fine but wont scroll.

I can go up and down the lines using the arrow keys but it refuses to scroll using the buttons ive made.

Ive tried saving it as unicode but then nothing shows up at all.

The variable in the text file is a simple text string so i cant see the problem. :(

Any help appreciated

Thanks

psychophiler
03-14-2003, 02:53 PM
Hello. Thnx for the quick reply.

I have zipped up the files and attached them.

The textbox variable - test , refers to the variable held in the text file.

If its changed to - text , it refers to a variable within flash then everything works.

hope you can help cos im having a nightmare at the today, Frontpage corrupted my corperate webpage menu while I was making an update and it took me ages to fix the bloody thing :(

thanks

CyanBlue
03-15-2003, 06:25 AM
Howdy...

You forgot to change 'text' to 'test' in this script...// Move the keyframe containing the action to change scroll speed
if (_parent.up)
{
_parent.test.scroll += 1;
}
else if (_parent.down)
{
_parent.test.scroll -= 1;
}
gotoAndPlay(1);Just to be cautious... Do not use 'text' as a variable name from now on since it is reserved word in Flash... Know what I mean??? ;)

psychophiler
03-17-2003, 08:02 AM
Doh! I feel really silly now.

Thanks for sorting that out. I had a feeling it was something simple but it was driving me nuts.