# Object flicker within a movieclip help

**URL:** <https://forum.kirupa.com/t/object-flicker-within-a-movieclip-help/310256>\
**Category:** Uncategorized\
**Created:** [June 6, 2010, 1:18am UTC](https://forum.kirupa.com/t/object-flicker-within-a-movieclip-help/310256 "2010-06-06T01:18:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nibnib](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nibnib](https://forum.kirupa.com/u/nibnib)\
**Post date:** [June 6, 2010, 1:18am UTC](https://forum.kirupa.com/t/object-flicker-within-a-movieclip-help/310256/1 "2010-06-06T01:18:29Z")

</div>

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](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 &lt; 800) {
        _local1 = 800;
    }
    if (_local2 &lt; 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;
```
