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] Brabonjak wrote:
> 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
>
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