home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 149 / MOBICLIC149.ISO / pc / DATA / DSS149 / DSS149_01 / DSS149_01.swf / scripts / dss149_01 / BtSuite.as next >
Text File  |  2012-11-21  |  2KB  |  60 lines

  1. package dss149_01
  2. {
  3.    import com.milanpresse.engine.Engine;
  4.    import com.milanpresse.engine.initmovieclip.InteractiveMovie;
  5.    import com.milanpresse.engine.managers.TimelineManager;
  6.    import com.milanpresse.engine.medias.MediaSwf;
  7.    import com.milanpresse.engine.timelines.Timeline;
  8.    import com.milanpresse.engine.typeargument.NoiseObject;
  9.    import flash.display.MovieClip;
  10.    
  11.    public class BtSuite
  12.    {
  13.        
  14.       
  15.       private var BT_SUITE:InteractiveMovie;
  16.       
  17.       private var animMc:MovieClip;
  18.       
  19.       private var animTl:Timeline;
  20.       
  21.       public function BtSuite(_engine:Engine, _timelineManager:TimelineManager, _timeline:Timeline)
  22.       {
  23.          var BT_SUITEswf:MediaSwf = null;
  24.          super();
  25.          BT_SUITEswf = _engine.showSwf({
  26.             "code":"BT_SUITE",
  27.             "parent":_engine.config.layers["menu"]
  28.          });
  29.          this.BT_SUITE = new InteractiveMovie(BT_SUITEswf.swfContent,_timelineManager);
  30.          this.BT_SUITE.gotoAndStop(1);
  31.          this.BT_SUITE.mc.onRollOver = function(p:Object):void
  32.          {
  33.             _engine.playNoise(new NoiseObject({"code":"B_RET"}));
  34.             _engine.showIB({
  35.                "id":"IB_SUITE",
  36.                "reference":BT_SUITEswf.swfContent,
  37.                "position":12
  38.             });
  39.             animMc = this.ANIM;
  40.             animTl = new Timeline(animMc,_timelineManager);
  41.             animTl.GotoAndPlayUntilTheEnd(1);
  42.          };
  43.          this.BT_SUITE.mc.onRollOut = function(p:Object):void
  44.          {
  45.             _engine.stopNoise(new NoiseObject({"code":"B_RET"}));
  46.             _engine.hideIB();
  47.          };
  48.          this.BT_SUITE.mc.onPress = function(p:Object):void
  49.          {
  50.             _engine.stopNoise(new NoiseObject({"code":"B_RET"}));
  51.             _engine.hideIB();
  52.             _timeline.GotoAndPlayUntil({"labelStop":"_21"});
  53.             this.kill();
  54.             _engine.hideSwf({"code":"BT_SUITE"});
  55.          };
  56.          this.BT_SUITE.activeMC();
  57.       }
  58.    }
  59. }
  60.