Category Archives: Loader

Is this swf in a container?

  1. if(parent == stage){
  2.    // no container
  3. }else{
  4.   // has container
  5. }

Found myself writing this snippet today.... it figures out if the current swf is inside a container (Loader) or not... lots of other ways to do this... feel free to post your version in the comments...

Also posted in external data, misc | Tagged , , | 5 Comments