Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.69 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Flash AS3 Parameter Child Must Be Non-Null
  2. setChildIndex(gfxWater, 1);
  3.        
  4. //This Removes The Text
  5. for (m = 0; m < optionsTextArray.length; m++){
  6.     optionsTextArray[m].parent.removeChild(optionsTextArray[m]);
  7. }
  8. optionsTextArray.splice(0, optionsTextArray);
  9.  
  10. //This Hides The Images
  11. soundFxCheck.parent.removeChild(soundFxCheck);
  12. soundFxX.parent.removeChild(soundFxX);
  13. musicCheck.parent.removeChild(musicCheck);
  14. musicX.parent.removeChild(musicX);
  15. codeCheck.parent.removeChild(codeCheck);
  16. codeX.parent.removeChild(codeX);
  17.  
  18. //This Transitions To The Main Menu
  19. gotoAndPlay("menuStart", "Main_Menu");
  20.        
  21. removeChild(null);
  22.        
  23. var waterfall:WaterFall = new WaterFall();
  24. this.addChildAt(waterfall,0);