first commit
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
function SetPercent(value)
|
||||
{
|
||||
_visible = value > 0;
|
||||
trace("Set Percent:" + value);
|
||||
targetLevel = value;
|
||||
var _loc1_ = barFullSize._width;
|
||||
var _loc4_ = _loc1_ / 100;
|
||||
var _loc3_ = targetLevel / _loc1_;
|
||||
targetSize = _loc1_ * _loc3_ * _loc4_;
|
||||
gotoAndPlay(2);
|
||||
}
|
||||
SetPercent(_root.GetExtern(_name));
|
||||
trace("Hello");
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
barSize = bar._width;
|
||||
barScaler = targetSize - barSize;
|
||||
bar._width = barSize + barScaler / easeFactor;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
if(barSize <= targetSize + 0.20000000298023224 && barSize >= targetSize - 0.20000000298023224)
|
||||
{
|
||||
stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
gotoAndStop("loop");
|
||||
play();
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
function SetPercent(to)
|
||||
{
|
||||
if(to <= 0)
|
||||
{
|
||||
_visible = false;
|
||||
targetSize = 0;
|
||||
targetPercent = 0;
|
||||
textPercent = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
_visible = true;
|
||||
targetLevel = int(to);
|
||||
if(targetLevel >= 100)
|
||||
{
|
||||
targetLevel = 100;
|
||||
}
|
||||
barSize = barFullSize._width;
|
||||
barSizeFactor = barSize / 100;
|
||||
targetPercent = targetLevel / barSize;
|
||||
targetSize = barSize * targetPercent * barSizeFactor;
|
||||
bar._width = targetSize;
|
||||
textPercent = targetLevel + "%" + "&dropShadow";
|
||||
}
|
||||
}
|
||||
SetPercent(-1);
|
||||
stop();
|
||||
@@ -0,0 +1,4 @@
|
||||
5;loadBarProfile
|
||||
8;loadBarProgress
|
||||
8;loadBarProgress
|
||||
8;loadBarProgress
|
||||
|
Reference in New Issue
Block a user