# Flash contionous horizontal image view problem in moxilla

**URL:** <https://forum.kirupa.com/t/flash-contionous-horizontal-image-view-problem-in-moxilla/294870>\
**Category:** Uncategorized\
**Created:** [August 21, 2009, 4:54am UTC](https://forum.kirupa.com/t/flash-contionous-horizontal-image-view-problem-in-moxilla/294870 "2009-08-21T04:54:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashlady](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@flashlady](https://forum.kirupa.com/u/flashlady)\
**Post date:** [August 21, 2009, 4:54am UTC](https://forum.kirupa.com/t/flash-contionous-horizontal-image-view-problem-in-moxilla/294870/1 "2009-08-21T04:54:19Z")

</div>

Hi  
I am facing the problem on the flash contionus horizontal image view,its working in flash interface and IE7 .But not in mozilla… any code mistake …or can i have any new method?

this is the code have done

var xml:XML = new XML();  
xml.ignoreWhite = true;  
\_root.createEmptyMovieClip(“home”,\_root.getNextHighestDepth());  
home.\_x=0  
var startX = 0;  
var endX = 0;  
var speedMin = 5;  
var speedPlus = 2;  
widt = [];  
\_global.wid = [];  
\_global.src = [];  
xml.onLoad = function() {  
var nodes = this.firstChild.childNodes;  
\_root.numOfItems = nodes.length;  
for (var i = 0; i\<\_root.numOfItems; i++) {

```
    _global.src* = nodes*.attributes.thumb_url;
    var t = _root.home.attachMovie("item", "item"+i, i+1);
    
    t._y = 300;
    
    loadImage(nodes*.attributes.thumb_url,t.icon.inner);
    _global.im = nodes*.attributes.image;
    
    t.onEnterFrame = scrolling;
    t.onRelease = imageClick;
    _global.total = t._width*i;

}

```

};  
xml.load(“icons1.xml”);

function loadImage(src:String, target:MovieClip) {

```
var mcl:MovieClipLoader = new MovieClipLoader();
var listener = new Object();

mcl.addListener(listener);

var thumbSplit = src

var srcArray:Array = thumbSplit.split("=");
src_1=srcArray[1];
mcl.loadClip(src_1,target);

listener.onLoadInit = function(target_mc:MovieClip)
{
    i = Number(target_mc._parent._parent._name.substr(4,2));
    t = target_mc._parent._parent;
    
    if (i&lt;(_root.numOfItems-1)) 
    {

        t._x = _root.home["item"+Number(i+1)]._x +_root.home["item"+Number(i+1)]._width;
        
    } 
    else 
    {
        t._x = 0;

    }
    
    startX = t._x+t._width;
    
    thisHeight = target_mc._height;
    thisWidth = target_mc._width;
    nWidth = thisWidth;
    nHeight = thisHeight;
        
    if(thisHeight&gt;500||thisWidth&gt;500)
    {
        if(thisHeight&gt;thisWidth)
        {
            nHeight = 500;
            nWidth = thisWidth/thisHeight*500;
        }
        else
        {
            nWidth = 500;
            nHeight = thisHeight/thisWidth*500;
        }
        
        
    }
    
    if(nHeight&lt;500)
            {
                
                nHeight = 500;
                nWidth = thisWidth/thisHeight*500;
            }

    target_mc._width = nWidth;
    target_mc._height = nHeight;
    
};

```

}

function imageClick() {  
trace(" clck "+this.\_width);

}

function scrolling() {

```
if (this._x&lt;-300) {
    this._x = startX-300;
}
if (_root._xmouse&gt;450 && _root._xmouse&lt;875) {
    this._x -= 5;

}

if (_root._xmouse&lt;425 && _root._xmouse&gt;10) {
    this._x += 5;
    
}

if (this._x&gt;startX-300) {
    
    this._x =-300;
    
}

```

}

Regrads,  
flashlady
