home *** CD-ROM | disk | FTP | other *** search
- if(E_Mingming < 0)
- {
- E_Mingming = 0;
- }
- if(E_Wangtta < 0)
- {
- E_Wangtta = 0;
- }
- if(100 < E_Mingming)
- {
- E_Mingming = 100;
- }
- if(100 < E_Wangtta)
- {
- E_Wangtta = 100;
- }
- if(E_Mingming < E_MingmingD)
- {
- E_MingmingD = int(E_MingmingD - (E_MingmingD - E_Mingming) / 10);
- }
- if(E_Wangtta < E_WangttaD)
- {
- E_WangttaD = int(E_WangttaD - (E_WangttaD - E_Wangtta) / 10);
- }
- if(E_MingmingD < 0)
- {
- E_MingmingD = 0;
- }
- if(E_WangttaD < 0)
- {
- E_WangttaD = 0;
- }
- setProperty("Energy.Mingming", _xscale, E_Mingming);
- setProperty("Energy.Wangtta", _xscale, E_Wangtta);
- setProperty("Energy.MingmingD", _xscale, E_MingmingD);
- setProperty("Energy.WangttaD", _xscale, E_WangttaD);
- Wind = Math.abs(eval("_root.Screen:Winds")) / 1.5;
- if(eval("_root.Screen:Winds") < 0)
- {
- tellTarget("Wind")
- {
- gotoAndStop("Left");
- }
- tellTarget("Wind.Bar")
- {
- gotoAndStop("Left");
- }
- }
- else
- {
- tellTarget("Wind")
- {
- gotoAndStop("Right");
- }
- tellTarget("Wind.Bar")
- {
- gotoAndStop("Right");
- }
- }
- if(eval("_root.Screen:Winds") == 0)
- {
- tellTarget("Wind")
- {
- gotoAndStop("Zero");
- }
- }
- setProperty("Wind.Bar", _xscale, Wind);
-