blob: 0c7ef13b6b84f59e7d9520af60368e6cc0550a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import com.tubes.BuckyKeywordTube;
import com.events.EventBroadcaster;
import com.events.RightClick;
import com.services.BuckyServices;
var tube:BuckyKeywordTube;
initApp();
function initApp():Void {
_root.debug.text = _root.activeUser;
new RightClick();
BuckyServices.init();
EventBroadcaster.getInstance().addEventListener("curtainsUp", this);
tube = new BuckyKeywordTube ( BuckyServices.keywords );
}
function curtainsUp(_evt:Object):Void {
// these vals passed in via html SWFObject.
if (_root.debuggerVisible)
_root.debug._x = 4; // _root.debuggerVisible;
_root.squareBackground.initColors (_root.uiGradient1, _root.uiGradient2, _root.uiStroke, 208, 208);
if (_root.backgroundImage != undefined)
{
_root.squareBackground.image.loadMovie ( _root.backgroundImage);
_root.squareBackground.image._alpha = _root.backgroundImageAlpha;
}
BuckyServices.keywordsMC.doLoad( tube.articles );
BuckyServices.keywordsMC.insertAdornment();
if (tube.tags.length > 0)
{
BuckyServices.keywordsMC.insertTags ( tube.tags );
}
if (_root.showFeeds)
{
BuckyServices.keywordsMC.insertAdornment();
BuckyServices.keywordsMC.insertFeeds();
}
}
|