No regular expressions were active.
1 |
|
import mx.
transition
s.*;
|
|
|
2 |
|
import mx.
transition
s.easing.N
one;
|
|
|
3 |
|
|
|
|
4 |
|
class logo
_as.bxImag
e extends
MovieClip
|
|
|
5 |
|
{
|
|
|
6 |
|
privat
e var
|
|
|
7 |
|
mc
Holder:Mov
ieClip,
|
|
|
8 |
|
bL
oaded:Bool
ean = fals
e;
|
|
|
9 |
|
|
|
|
10 |
|
functi
on bxImage
()
|
|
|
11 |
|
{
|
|
|
12 |
|
th
is._visibl
e = false;
|
|
|
13 |
|
}
|
|
|
14 |
|
|
|
|
15 |
|
functi
on init(sU
rl:String)
|
|
|
16 |
|
{
|
|
|
17 |
|
va
r mclListe
ner:Object
= new Obj
ect(), oSe
lf:Object
= this;
|
|
|
18 |
|
mc
lListener.
onLoadInit
= functio
n(mc:Movie
Clip)
|
|
|
19 |
|
{
|
|
|
20 |
|
var widt
h = Stage.
width, hei
ght = Stag
e.height;
|
|
|
21 |
|
mc._xsca
le = mc._y
scale = Ma
th.min(wid
th * 100 /
mc._width
, height *
100 / mc.
_height);
|
|
|
22 |
|
mc._x =
(width - m
c._width)
/ 2;
|
|
|
23 |
|
mc._y =
(height -
mc._height
) / 2;
|
|
|
24 |
|
oSelf.bL
oaded = tr
ue;
|
|
|
25 |
|
oSelf.on
Loading();
|
|
|
26 |
|
}
|
|
|
27 |
|
|
|
|
28 |
|
va
r mcLoader
:MovieClip
Loader = n
ew MovieCl
ipLoader()
;
|
|
|
29 |
|
mc
Loader.add
Listener(m
clListener
);
|
|
|
30 |
|
mc
Loader.loa
dClip(sUrl
, mcHolder
);
|
|
|
31 |
|
}
|
|
|
32 |
|
|
|
|
33 |
|
functi
on onLoadi
ng(){}
|
|
|
34 |
|
|
|
|
35 |
|
functi
on show(bM
ode:Boolea
n)
|
|
|
36 |
|
{
|
|
|
37 |
|
if
(bMode) th
is.swapDep
ths(_paren
t.getNextH
ighestDept
h());
|
|
|
38 |
|
Tr
ansitionMa
nager.star
t(this, {t
ype: Fade,
direction
: bMode ?
Transition
.IN : Tran
sition.OUT
, duration
: 1, easin
g: None.ea
seNone});
|
|
|
39 |
|
}
|
|
|
40 |
|
}
|
|
|