# Flash 6 A.S to Flash 8 A.S Help

**URL:** <https://forum.kirupa.com/t/flash-6-a-s-to-flash-8-a-s-help/211222>\
**Category:** flash\
**Created:** [December 28, 2006, 7:31pm UTC](https://forum.kirupa.com/t/flash-6-a-s-to-flash-8-a-s-help/211222 "2006-12-28T19:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cloakendagger](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Cloakendagger](https://forum.kirupa.com/u/Cloakendagger)\
**Post date:** [December 28, 2006, 7:31pm UTC](https://forum.kirupa.com/t/flash-6-a-s-to-flash-8-a-s-help/211222/1 "2006-12-28T19:31:03Z")

</div>

[COLOR=black][FONT=Arial]Hello,[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]It’s been a while since I posted on this forum but I have run into a bit of a problem. I purchased a simple photo gallery online but didn’t notice that it was coded for flash player 6. My current project is going to be published in Flash player 8 due to some heavy alpha channel flash video effects. I would greatly appreciate it if some one could glance at this code below and let me know if they see anything that would not function correctly in Flash Player 8. When it is published in flash 8 the images don’t load. [/FONT][/COLOR]

Thanks Alot!!  
Cloakendagger

```auto

screen.swapDepths(1000);
numOfPhoto = 20;
current = 0;
temp = 5;
for (i = 1; i <= numOfPhoto; i++)
{
    this.attachMovie("btn", i, i);
    this*._x = 35 + (i - 1) % temp * 20;
    this*._y = 45 + Math.floor((i - 1) / temp) * 20;
    this*.defaultX = this*._x;
    this*.defaultY = this*._y;
    this*.onRollOver = function ()
    {
        this.onEnterFrame = function ()
        {
            this._xscale = this._xscale + (140 - this._xscale) / 2;
            this._yscale = this._xscale;
        };
    };
    this*.onRollOut = this*.onDragOut = function ()
    {
        this.onEnterFrame = function ()
        {
            this._xscale = this._xscale + (100 - this._xscale) / 2;
            this._yscale = this._xscale;
        };
    };
    this*.onRelease = function ()
    {
        description.targetAlpha = -100;
        if (!active)
        {
            screen.unloadMovie();
            if (current != this._name)
            {
                old = current;
                current = this._name;
            } // end if
            active = 1;
            this._parent.onEnterFrame = function ()
            {
                this[current]._x = this[current]._x + (200 - this[current]._x) / 2;
                this[current]._y = this[current]._y + (200 - this[current]._y) / 2;
                this[old]._x = this[old]._x + (this[old].defaultX - this[old]._x) / 2;
                this[old]._y = this[old]._y + (this[old].defaultY - this[old]._y) / 2;
                this[old].gotoAndStop(2);
                if (Math.abs(200 - this[current]._x) < 0.100000 && Math.abs(this[old].defaultX - this[old]._x) < 0.100000)
                {
                    active = 0;
                    this.screen.loadMovie("http://www.ohmyflash.com/gallery/image7/image" + current + ".jpg");
                    this[current].onEnterFrame = function ()
                    {
                        temp1 = this._parent.screen.getBytesLoaded();
                        temp2 = this._parent.screen.getBytesTotal();
                        this.percent._yscale = temp1 / temp2 * 100;
                    };
                    delete this["onEnterFrame"];
                } // end if
            };
        } // end if
    };
} // end of for
description.onEnterFrame = function ()
{
    this._alpha = this._alpha + (this.targetAlpha - this._alpha) / 20;
    if (this._alpha < 0)
    {
        this.targetAlpha = 100;
        this.gotoAndStop(Number(current) + 1);
    } // end if
};

```

/////////////////////////////////////////////////////////////////////

```auto

onClipEvent (data)
{
    this._alpha = 10;
}
onClipEvent (enterFrame)
{
    if (this._alpha < 100)
    {
        this._alpha = this._alpha + 10;
    } // end if
}

```
