bottomMenu.as 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. import com.imt.intimamedia.views.menus.BottomMenu;
  2. import flash.events.MouseEvent;
  3. import flash.net.URLRequest;
  4. import flash.net.navigateToURL;
  5. import mx.controls.Alert;
  6. import mx.controls.Button;
  7. import mx.events.ItemClickEvent;
  8. private function creationComplete() : void
  9. {
  10. this.selectedIndex = 0;
  11. }
  12. private function navigateIntoBottomMenu() : void
  13. {
  14. if (this.selectedIndex == 2)
  15. {
  16. this.selectedIndex = 0;
  17. redirectToImt();
  18. }
  19. }
  20. private function redirectToImt() : void
  21. {
  22. var req : URLRequest = new URLRequest("http://www.iimt.fr");
  23. navigateToURL( req, "_blank" );
  24. }
  25. private function redirectToPrivacy() : void
  26. {
  27. var req : URLRequest = new URLRequest("http://www.iimt.fr");
  28. navigateToURL( req, "_blank" );
  29. }