# Scrollbar that sontrols fade in fade out

**URL:** <https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786>\
**Category:** Uncategorized\
**Created:** [January 7, 2003, 11:41am UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786 "2003-01-07T11:41:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebull](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@thebull](https://forum.kirupa.com/u/thebull)\
**Post date:** [January 7, 2003, 11:41am UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786/1 "2003-01-07T11:41:49Z")

</div>

Hello, i want to ask if someone as a tutorial on how to do the same example I post as an attach file to this post.

thsnks in advance

the bull

:)))

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 12:34pm UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786/2 "2003-01-07T12:34:41Z")

</div>

Well the simplest way to do this is to have 2 .swfs.

A main one that contains your stage and your little ‘slider’ bar thing. Then have an empty movieclip that will load the other .swf

On load of the main.swf (that’s what we’ll call it) you have it load the second.swf (it’s new name) into the placeholder mc (holderMC). In the second.swf file you have a 100 frame sequence of the images fading over one another and animating when you just hit play.

When you call it into the holderMC you can then control it now by using the bar on the bottom. It is 5:31am here and i haven’t slept in 2 days straight so i cant just whip ya up a code, but give me some sleep and i’ll come back.

Hope I gave you an idea of what to do!

:beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 12:39pm UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786/3 "2003-01-07T12:39:50Z")

</div>

Here’s the code they used on the slider button. If you can’t figure it out, i’ll post after a nap as to how to impliment it.

```php

on (press)
{
    startDrag("", false, left, _y, right, _y);
    tellTarget("slide")
    {
        gotoAndPlay("slide");
    } 
}

on (release, releaseOutside)
{
    tellTarget("slide")
    {
        gotoAndPlay("pause");
    }
    if (_x <= 72)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 36);
        } 
    }
    if (_x > 72 && _x <= 144)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 108);
        } 
    } 
    if (_x > 144 && _x <= 216)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 180);
        } 
    } 
    if (_x > 216 && _x <= 288)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 252);
        }
    } 
    if (_x > 288 && _x <= 360)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 324);
        } 
    } 
    if (_x > 360 && _x <= 432)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 396);
        } 
    } 
    if (_x > 432 && _x <= 504)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 468);
        } 
    } 
    if (_x > 504 && _x <= 576)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 540);
        } 
    } 
    if (_x > 576 && _x <= 648)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 612);
        } 
    } 
    if (_x > 648)
    {
        tellTarget("slide")
        {
            gotoAndPlay("slide");
            setProperty("../../slider", _x, 684);
        }
    } 
    stopDrag();
}

```

Glad I could help. Oh yeah, with the above code, they DID NOT do what I posted last post. The had all the images and everything in ONE .fla and in ONE .swf

:sure:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 12:52pm UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786/4 "2003-01-07T12:52:02Z")

</div>

you could help me implementing the code, it will be nice  
🙂

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 3:06pm UTC](https://forum.kirupa.com/t/scrollbar-that-sontrols-fade-in-fade-out/10786/5 "2003-01-07T15:06:14Z")

</div>

You could also have a look at those tutes (ugly code, but Kir refuses to update them :evil: ):

[http://www.kirupa.com/developer/flash5/menudragger.asp](http://www.kirupa.com/developer/flash5/menudragger.asp) and [http://www.kirupa.com/developer/flash5/menudragger2.asp](http://www.kirupa.com/developer/flash5/menudragger2.asp)

And then:  
[http://www.kirupa.com/developer/mx/alpha\_fade.asp](http://www.kirupa.com/developer/mx/alpha_fade.asp)

pom :cool:
