A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scrollbar Component w/text

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    18

    Scrollbar Component w/text

    If I want to use a scrollbar component to control some text, what steps should I go through? Strangely enough, I haven't found a tutorial on this.

    I know it's simple...I just need to know the basics of it. I think it involves a .txt file, but where should that file be saved? Stuff like that, I just need a kind of overview.

    Thanks, this will help me a lot if I can get it done.

  2. #2
    The external file only exists if you want to.
    It's not a rule. You can set a variable in Flash with the text. And this text will be scrolled.

    1 - Create a dynamic text and set a instance name, something like 'txt'.

    2 - Drag one scrollComponent to the scene [CTRL + F7].

    3 - Select the component and set Target TextField parameter in the PROPERTIES window.

    4 - Put this line in your frame:
    for(i = 0; i<50; i++)
    txt.text += "line" + i + "\n";


    Hope is useful.
    antz.digital.media
    www.antz.com.br

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center