No regular expressions were active.
1 |
|
class logo
_as.bxMain
|
|
|
2 |
|
{
|
|
|
3 |
|
privat
e var
|
|
|
4 |
|
aI
mages:Arra
y,
|
|
|
5 |
|
iI
nterval:Nu
mber = 30,
iCurrent:
Number = -
1;
|
|
|
6 |
|
|
|
|
7 |
|
functi
on bxMain(
sUrl:Strin
g, sImages
:String, s
Interval:S
tring)
|
|
|
8 |
|
{
|
|
|
9 |
|
if
(sInterval
!= undefi
ned && !is
NaN(sInter
val)) iInt
erval = Nu
mber(sInte
rval);
|
|
|
10 |
|
aI
mages = ne
w Array();
|
|
|
11 |
|
va
r aInitIma
ges = sIma
ges.split(
",");
|
|
|
12 |
|
fo
r(var i=0;
i<aInitIm
ages.lengt
h; i++)
|
|
|
13 |
|
{
|
|
|
14 |
|
var mcIm
age = _roo
t.mcHolder
.attachMov
ie("image"
, "mcImage
" + i, i);
|
|
|
15 |
|
mcImage.
init(sUrl
+ aInitIma
ges[i]);
|
|
|
16 |
|
aImages.
push(mcIma
ge);
|
|
|
17 |
|
}
|
|
|
18 |
|
va
r oSelf:Ob
ject = thi
s;
|
|
|
19 |
|
aI
mages[0].o
nLoading =
function(
){oSelf.in
it();}
|
|
|
20 |
|
}
|
|
|
21 |
|
|
|
|
22 |
|
functi
on init()
|
|
|
23 |
|
{
|
|
|
24 |
|
se
tInterval(
this, "sho
wNext", iI
nterval *
1000);
|
|
|
25 |
|
sh
owNext();
|
|
|
26 |
|
}
|
|
|
27 |
|
|
|
|
28 |
|
functi
on showNex
t()
|
|
|
29 |
|
{
|
|
|
30 |
|
aI
mages[iCur
rent].show
(false);
|
|
|
31 |
|
aI
mages[getN
ext()].sho
w(true);
|
|
|
32 |
|
}
|
|
|
33 |
|
|
|
|
34 |
|
functi
on getNext
():Number
|
|
|
35 |
|
{
|
|
|
36 |
|
fo
r(var i=iC
urrent+1;
i<aImages.
length; i+
+)
|
|
|
37 |
|
if(aImag
es[i].bLoa
ded)
|
|
|
38 |
|
{
|
|
|
39 |
|
iCur
rent = i;
|
|
|
40 |
|
retu
rn iCurren
t;
|
|
|
41 |
|
}
|
|
|
42 |
|
fo
r(var i=0;
i<iCurren
t; i++)
|
|
|
43 |
|
if(aImag
es[i].bLoa
ded)
|
|
|
44 |
|
{
|
|
|
45 |
|
iCur
rent = i;
|
|
|
46 |
|
retu
rn iCurren
t;
|
|
|
47 |
|
}
|
|
|
48 |
|
re
turn iCurr
ent;
|
|
|
49 |
|
}
|
|
|
50 |
|
}
|
|
|