Guest User

Untitled

a guest
Jun 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. //when I try this for a language selection button
  2.  
  3. function clickEnglish(event:MouseEvent) {
  4. trace("you clicked english");
  5. var loadit = new Loader();
  6. addChild(loadit);
  7. loadit.load(new URLRequest("index_nu_horizontal.swf"));
  8. }
  9.  
  10. englishButton.addEventListener(MouseEvent.CLICK,clickEnglish);
  11.  
  12. //gives this error
  13. TypeError: Error #1009: Cannot access a property or method of a null object reference.
  14. at thumbClass()
  15. at thumb_bar_Mc()
  16. at flash.display::Sprite/constructChildren()
  17. at flash.display::Sprite()
  18. at flash.display::MovieClip()
  19. at mainClass()
Add Comment
Please, Sign In to add comment