all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

using external text


Re: using external text (_seb_)
12/29/2004 8:48:50 PM
flash actionscript:
i can only answer your last question.
in properties panel, with your dynamic textbox selected, select html enable.
Then in your external text, start (after $var=) with <b><i> and end the
text with </i></b>
that should do it

[quoted text, click to view]
using external text Brabonjak
12/29/2004 10:58:55 PM
I've created a text field where external text (.txt) will be loaded into. Since
I want text to be scrollable I used ScrollBar UI component which I added to
that text field.
But I dont want ScrollBar to be visible if the text is not big enough.
Also, I want to make sure that text (which begins with "&var= ") is not loaded
into field until it is fully "buffed" - or loaded.

I used following code which I put in the 2nd frame - the same frame where text
field exists :

loadField = new LoadVars();
loadField.load("*.txt");
loadField.onLoad = function (){
textField.text=this.textFieldVar ;
scroll._visible = (textFieldt.maxscroll > 1);
}

It works but only partialy.

In frame 1 when I click the button that goes to 2nd frame, text is loaded and
if the text is big enough - scroll bar is shown - everything that i wanted
....BUT, there's no SLIDING BUTTON on the ScrollBar!

When I click to go to next frame and then return to 2nd frame - sliding
button is shown.

This all happens while testing the movie.

How to make that SlidingButton show instantly ?

And one particulary newbie question : how to encode *.txt to show bold, italic
fonts?

Any reference would be of a great help.

thnx

AddThis Social Bookmark Button