blob: f5adced5c1d72ba308241fdba65812403334eeb3 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
import com.services.BuckyServices;
import com.threads.ThreadButton;
class com.files.FileButton extends ThreadButton {
private var username_mc:MovieClip;
private var backing:MovieClip;
private var initialAlpha:Number;
private function handleRollOut():Void {
// _root.thumbnail.removeMovieClip();
makeBlack();
super.handleRollOut();
}
private function handleRollOver():Void {
super.handleRollOver();
if ( (itemData.filetype == "JPG") ||
(itemData.filetype == "GIF") ||
(itemData.filetype == "PNG") ) { displayImageThumbnail (BuckyServices.getThumbURL (itemData.filename));
makeWhite();
}
}
private function displayImageThumbnail(_inURL:String):Void {
_root.imagesHolder.thumbnail.unloadMovie();
_root.imagesHolder.createEmptyMovieClip ("thumbnail", _root.getNextHighestDepth());
try {
_root.imagesHolder.thumbnail.loadMovie (_inURL);
}
catch (_err:Error) {}
_root.imagesHolder.thumbnail._alpha = 50;
var j:MovieClip = _root.imagesHolder.thumbnail;
j._xscale = j._yscale = 200;
/* j._x = (Stage.width/2 - j._width/2);
j._y = (Stage.height/2 - j._height/2);
*/
// _root.imagesHolder.thumbnail._xscale = _root.imagesHolder.thumbnail._yscale = 250;
}
private function makeWhite():Void {
title_mc.title_txt.textColor =0xFFFFFF;
}
private function makeBlack():Void {
title_mc.title_txt.textColor =0x000000;
}
private function makeButton(_val:Object):Void {
title_mc.title_txt.text = _val.filename;
title_mc.title_txt.autoSize = true;
if (title_mc._height > 28.1) {
title_mc.title_txt.autoSize = false;
title_mc.title_txt._height = 28.1;
}
initialAlpha = backing._alpha;
if (_val.filetype == "MP3") {
transformTheButtonColor();
}
title_mc._y = (_y + _height / 2) - (title_mc._height / 2) ;
// backing._height = title_mc.title_txt._height;
this.cacheAsBitmap = true;
super.setPosition();
}
private function transformTheButtonColor():Void {
}
};
|