diff options
| author | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
|---|---|---|
| committer | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
| commit | 79670053c7247d3a49b607960efd284e93f057e5 (patch) | |
| tree | 9617f6eefa38b2686ae409bf75cc27a340444eda /bPod/main.as | |
| parent | c53827d5d044ae5ca7ebb27acb404b7a8988918e (diff) | |
install.pl
Diffstat (limited to 'bPod/main.as')
| -rw-r--r-- | bPod/main.as | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bPod/main.as b/bPod/main.as new file mode 100644 index 0000000..0c7ef13 --- /dev/null +++ b/bPod/main.as @@ -0,0 +1,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(); + } +}
\ No newline at end of file |
