Skip to main content
Participant
January 12, 2014
Question

Lost Action Script -- how did I do it?

  • January 12, 2014
  • 1 reply
  • 849 views

I created a very short header for a website I built several years ago. I cannot find the original FLA file. It's not a very involved item, but I'll be darned if I can remember how the heck I did it.

This is how it is supposed to look (Welcome to Djuna Wojton's Karmic Healing):

http://www.djunaverse.com/books.php

This is how it now looks, not working properly:

http://www.djunaverse.com/karmicChoices.php

Here is a link to the re-created FLA file. I know I'm missing something simple, stupid, but it's been such a long time since I did any Flash work, it has me stumped. I wonder if anyone can point out my error? I would appreciate it very much.

Here is what I believe is the original ActionScript code.

//ActionScript 3.0

//  package karmicHealing_fla

//    class bar_2

package karmicHeadling_fla

{

          import flash.display.*;

          public dynamic class bar_2 extends flash.display.MovieClip

          {

                    public function bar_2()

                    {

                              super();

                              addFrameScript(8, frame9);

                              return;

                    }

                    function frame9():*

                    {

                              stop();

                              return;

                    }

          }

}

//          class maskanam_1

package karmicHealing_fla

{

          import flash.display.*;

          public dynamic class maskanam_1 extends flash.display.MovieClip

          {

                    public function maskanam_1()

                    {

                              super();

                              addFrameScript(13, frame14);

                              return;

                    }

                    function frame14():*

                    {

                              stop();

                              return;

                    }

          }

}

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 12, 2014

you may as well discard that actionscript and start over with the coding.

njfreseAuthor
Participant
January 13, 2014

Yeah, I kinda figured that. But I cannot remember for the life of me how I did this in the first place. How I used the Sprites, how I managed to make the header run just once and stop, etc. I'm looking for a little guidance in that regard. As I said, it's been quite a while since I wrote any Flash code, and it is a bit of a mystery to me at this moment.

kglad
Community Expert
Community Expert
January 13, 2014

i don't download and correct files unless i'm hired so i didn't check your files.

but from the look of your banner you're missing a stop() on one or more timelines, if that effect is done using timeline tweening.