home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 06_VirtualTour_FR.swf / scripts / frame_216 / DoAction.as
Text File  |  2006-07-20  |  730b  |  27 lines

  1. function load_VR_scene(scene)
  2. {
  3.    if(!_root.container)
  4.    {
  5.       _root.createEmptyMovieClip("container",1);
  6.       _root.container.loadMovie("flashvr.swf","POST");
  7.       _root.container._x = 150;
  8.       _root.container._y = 200;
  9.       _root.onEnterFrame = function()
  10.       {
  11.          _root.container.i_pano.p_setScene().panStop();
  12.          _root.container.vw = 320;
  13.          _root.container.vh = 200;
  14.          _root.container.initscene = "scene12";
  15.          if(_root.container.i_pano.p_getScene().checkStatus != undefined)
  16.          {
  17.             delete _root.onEnterFrame;
  18.          }
  19.       };
  20.    }
  21.    else
  22.    {
  23.       _root.container.i_pano.p_setScene().loadScene(image);
  24.    }
  25. }
  26. load_VR_scene("scene12");
  27.