# Flash 6 to Flash 8 Actionscript Convertion (NEED HELP)

**URL:** <https://forum.kirupa.com/t/flash-6-to-flash-8-actionscript-convertion-need-help/221918>\
**Category:** flash\
**Created:** [April 9, 2007, 12:18pm UTC](https://forum.kirupa.com/t/flash-6-to-flash-8-actionscript-convertion-need-help/221918 "2007-04-09T12:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronslife](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@aaronslife](https://forum.kirupa.com/u/aaronslife)\
**Post date:** [April 9, 2007, 12:18pm UTC](https://forum.kirupa.com/t/flash-6-to-flash-8-actionscript-convertion-need-help/221918/1 "2007-04-09T12:18:33Z")

</div>

ok so I have this script that does tween of the alpha channel it works in flash 6, but not flash 8. can someone help me out and convert it so it works with todays action script? because I’m still old school.

```auto

// functions
function fade(mc, alpha) {
    this.onEnterFrame = function() {
        i++;
        mc._alpha = 100-i;
        if (mc._alpha<=alpha) {
            delete this.onEnterFrame;
        }
    };
// actions
fade(_root.startup, 0);

```
