Hi,
So I have this gallery which I downloaded, it is AS 2.0.
It works well as is on the main(Scene 1) page, except that when I create a new MovieClip, and paste all the original frames w/actions into it, it begins to flicker and none function.
Here are the codes:
Perhaps there is something that I need to change? Please advise, thank you kindly.
Here is the actual gallery with my problem in it:
http://174.37.183.103/~healtha/imc/index.zip
First Frame:
stop();
Stage.scaleMode = "noScale";
Stage.align = "TL";
_lockroot = false;
_root.tabChildren = true;
oxylus.tooltip.Tooltip.attach();
var xd = (new oxylus.TGallery.XMLData(((xml == undefined) ? "data.xml" : (xml))));
xd.onXMLLoadSuccess = function () {
_root.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete _root.onEnterFrame;
_root.play();
}
};
};
Second Frame:
stop();
oxylus.TGallery.Tab.onClick = function (_arg1) {
TitleBar_mc.data = _arg1;
ThumbsGrid_mc.data = _arg1;
};
oxylus.TGallery.Overlay.onDone = function (_arg1) {
Viewer_mc.data = _arg1;
};
oxylus.TGallery.Thumbnail.onClick = function (_arg1) {
Overlay_mc.show(_arg1);
};
oxylus.TGallery.Viewer.onExit = function () {
Overlay_mc.hide();
};
this.onResize = function () {
var _local1 = Stage.width;
var _local2 = Stage.height;
if (_local1 < 800) {
_local1 = 800;
}
if (_local2 < 600) {
_local2 = 600;
}
TitleBar_mc.width = _local1;
TabSlider_mc.width = _local1;
TabSlider_mc._y = _local2 - TabSlider_mc.height;
ThumbsGrid_mc.width = _local1;
ThumbsGrid_mc.height = _local2 - 123;
Overlay_mc.width = _local1;
Overlay_mc.height = _local2;
Viewer_mc.width = _local1;
Viewer_mc.height = _local2;
};
Stage.addListener(this);
this.onResize();
TitleBar_mc.data = xd.root.firstChild;
TabSlider_mc.data = xd.root;
ThumbsGrid_mc.data = xd.root.firstChild;