Scrollbar that sontrols fade in fade out

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

:)))

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:

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.


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:

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

thanks

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 and http://www.kirupa.com/developer/flash5/menudragger2.asp

And then:
http://www.kirupa.com/developer/mx/alpha_fade.asp

pom :cool: