6 Replies Latest reply on Sep 7, 2006 3:46 AM by jagguy99


    jagguy99 Level 1
      q)Can you use a scrollbar with just actionscript and no UIcomponents?

      q)So how do you get the movieclip at a small size and add a scrollbar to it so it can scroll a large screen?
        • 1. Re: scrollbar
          2m Level 2
          Well you can code one yourself entierly in Actionscript, but you need to have at least one componentn in the library if you want to use the MX(2004) components.
          • 2. Re: scrollbar
            jagguy99 Level 1
            Do you use scrollbars much with just actionscript or is it used with mainly component.
            • 3. Re: scrollbar
              2m Level 2
              first: I don't use them much, as I try to aviod scrollbars. (Reason: The thing that forces you most often to use them is long text, but long text in most cases is suited better for html than for flash)
              second: I only use the component one if I allready use other v2 Components and mostly for "back end front ends" where design is not much of a concern. Otherwise I built them on my own.
              • 4. Re: scrollbar
                jagguy99 Level 1
                it doesn't seem practical to build your own scrollbar if there is already 1 there to use, and i can't find anycode to build (the slider function).
                • 5. Re: scrollbar
                  2m Level 2
                  You are right, that in a lot of cases it might not be practical, but there are some serious disadvantages that come with the prebuilt one:

                  Unsing any of the v2 components increases your filesize about 30K

                  Using the components also breaks the standard depts system, forcing you to use the Depth.Manager class, which a lot of people finde cumbersome

                  Even if it can be done. qite a lot of worl is involved to customize the look of the component one, if you need to.

                  Those are often reasons good enough to make a custom scrollbar quite prctical in my opinion, but it is totally up to you of course :-)
                  • 6. Re: scrollbar
                    jagguy99 Level 1
                    how do you display a set of pictures of larger than the screen appear with scrollbars without using UI components?