Loaded Custom SWF not stopping

Commenta 9th February , 2010

Hello all. I hope you can help me, since i can’t find the answer for a couple of days now.
I have created a SWF file using a class I created as the main class for the swf. this swf is a movieclip with a frame labeld "open" and a stop action at the last frame
the main class of the SWF (PageSwf):

ActionScript Code:

package {

    import flash.display.MovieClip;

    public class PageSwf extends MovieClip {

        public function PageSwf() {
            stop();
        }

        public function open():void {
            gotoAndPlay(”open”)
        }

    }
}

I load this SWF in another fla using a Loader object, and once it is loaded i run the open function i created:

ActionScript Code:

package {

    import flash.display.Sprite;

    public function SwfLoader() {

        var loader:Loader

        loader.contentLoaderInfo.addEventListener(Event.INIT, [...]

Original post by galtzur

Lascia un Commento