|
|
Question : Scroll Bar on Dynamic Text Box
|
|
I have a dynamic text box on my stage. I need to add a scroll bar to it? How do I do that?
In AS 1.0 Flash 6.
Beware, I am sure this question will get more complicated as it unfolds. So the the listed 500 points may need severla parts.
Thanks....Rob
|
Answer : Scroll Bar on Dynamic Text Box
|
|
(we posted together) ok, then:
- drag an instance of scrollbar component to the stage, then delete it (so you have it in the library) - use this code:
this.createTextField("body",2,eval(template+"_body_x"),eval(template+"_body_y"),eval(template+"_body_w"),eval(template+"_body_h")); body.wordWrap = true; body.html = true; body.htmlText = _root.text_body; body.selectable= false; body.textColor=eval(template+"_body_font_color"); var sb = this.attachMovie("FScrollBarSymbol", "scrollbar", 3, {horizontal:false, _targetInstanceName:"body"}); sb._x = body._x + body._width; sb._y = body._y; sb.setSize(body._height);
|
|
|
|
|