Hi, i am having some problems. Anyone having an idea on how i can solce this:>
i have this scroller: http://www.mindcrusher.ro/probleme/imp.swf
working fine
When i load the movie in a container in here: http://www.mindcrusher.ro/probleme/bun.swf , there are problems. same file, but getting stuck and loosing the on roll over for the picture-buttons.
I think there is a problem with this code:
panel.onRollOver = panelOver;
function panelOver()
{
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel()
{
if (_xmouse < b.xMin || _xmouse > b.xMax || _ymouse < b.yMin || _ymouse > b.yMax )
{
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
var xdist = _xmouse - 512; //jumatate din lungimea fimului
panel._x += Math.round(-xdist / 50); //speed
if (panel._x >= 13)
{
panel._x = 13;
}
if (panel._x <= -350)
{
panel._x = -350;
}
}
i took it from a tutorial. I think it’s something with the “delete this.onRollOver” line, but i am not sure, because i never user this before (delete onrollover thingies).
Thank you
dS