close button for swf file
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: close button for swf file

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    1

    close button for swf file

    hello guys i'm cinda new to as3.0 but i love to programme in c++ php ..

    well im now trying to open .swf files in my main program that all works fine but i would like to have a close butten in the swf file itselve so removeChild function can onley be used in the parent swf file do you guys have a solution ?

    thnx Brafen

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,511
    Code:
    function doQuit($e:Event):void {
              if (this.root.parent is Loader) {
                         var loader:Loader = this.root.parent as Loader;
                        loader.unloadAndStop();
              }
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com