# I have a ready made 3D Like Rotating Globe (AS2 problem)

**URL:** <https://forum.kirupa.com/t/i-have-a-ready-made-3d-like-rotating-globe-as2-problem/255017>\
**Category:** Uncategorized\
**Created:** [March 18, 2008, 9:51am UTC](https://forum.kirupa.com/t/i-have-a-ready-made-3d-like-rotating-globe-as2-problem/255017 "2008-03-18T09:51:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ne3ro0](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@ne3ro0](https://forum.kirupa.com/u/ne3ro0)\
**Post date:** [March 18, 2008, 9:51am UTC](https://forum.kirupa.com/t/i-have-a-ready-made-3d-like-rotating-globe-as2-problem/255017/1 "2008-03-18T09:51:09Z")

</div>

hi everyone, i have bought a 3d like rotating globe but i have problem dealing with the script. i never seen this kind of script before, im no way near to this kind of scripting.

Well the problem is i want to stop the scrolling whenever it detects a onRollOver function and onClick it will open a flat map with the same size. i have tried certain things but it didnt work out.

Can anyone help me please…

```auto
import flash.display.BitmapData;
import flash.filters.DisplacementMapFilter;
import flash.geom.Point;
import flash.geom.Rectangle;
var map:BitmapData = new BitmapData(275, 275, true, 2);
var bmp:MovieClip = this.createEmptyMovieClip("bmp", 10);
bmp.attachBitmap(map, 0, "auto", true);
var dmf:DisplacementMapFilter = new DisplacementMapFilter();
dmf.mapBitmap = map;
dmf.mode = "color";
dmf.scaleX = 105;
dmf.scaleY = 105;
dmf.componentX = 1;
dmf.componentY = 2;
dmf.alpha = 0;
bmp._visible = false;
cont._visible = false;
img.cacheAsBitmap = true;
gradient.cacheAsBitmap = true;
x = 500;
xadd = -1;
this.onEnterFrame = function() {
    dmf.mapPoint = new flash.geom.Point(50, 50);
    img.scrollRect = new Rectangle(x, 0, 250, 250);
    x += xadd;
    if (x<1) {
        x = 500;
    }
    map.draw(cont);
    img.filters = [dmf];
};
}

```
