Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

creating a scroll bar

New Here ,
Oct 27, 2011 Oct 27, 2011

Ok what I have is a site I am building for school.  I have some textfields loaded from a outside file.  Some of the fields have more text then will show in the size of the box, and you can sroll it down to read it all but unless you try to scroll there is really now way to tell you can do it just buy looking at the text box.  So I want to add a scroll bar and we have not covered that in class. 

Note everything has to be added using AS3 we can have no content on the timeline.  I have look to try to find something so show me how to dod this but all I can find are videos on doing it using the stage and adding items to it.

TOPICS
ActionScript
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 27, 2011 Oct 27, 2011

any scrollbar tutorial that uses an on-screen scrollbar can be used to suit your needs.  just assign the scrollbar a class and use the new constructor to create the scrollbar and use addChild to add the scrollbar to your display.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 27, 2011 Oct 27, 2011

Can you make it a little more plane please.  I am working on so much other sruff along with this I am drawing a blank.  I tried a couple things but get this arroa code.

TypeError: Error #1034: Type Coercion failed: cannot convert fl.containers::ScrollPane@311540b1 to flash.display.MovieClip.

    at flash.display::Sprite/constructChildren()

    at flash.display::Sprite()

    at flash.display::MovieClip()

    at beta_fla::MainTimeline()

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 27, 2011 Oct 27, 2011

a scrollpane is a flash component used to display images.

a scrollbar is used to display hidden text in a textfield.

from your description you want to use a scrollbar, not a scrollpane.  there's no as3 scrollbar component that comes standard in flash.  you need to make your own or download someone else's.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 27, 2011 Oct 27, 2011

ok thanks i will see what i can find

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2011 Oct 27, 2011

You can use the UIScrollbar component with a textField in Flash. If your textFields are on the stage then just drag an instance of the UIScrollbar onto the textField.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2011 Oct 28, 2011

I am loading them from an external file.  Can I still use it and if so where do I find it, I did not see it in the component box.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2011 Oct 28, 2011
LATEST

in the user interface folder in the components panel, it's the last component in that folder.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines