hi there.
it’s the deal…
i had made a flash web site, but i’m having some isues that are driving me crazy
so, you can go out check on http:\www.c2msis.com and see what i’m talking about.
1st - my main swf file have 1024x500 pxls, everything works fine, BUT, may 2nd swf file, called Serviços doesen’t work so fine when loaded to the 1st one.
serviços.swf have 666.9x301.9 pxls and it’s a image panning, with the folowing code:
stop ();
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == 1) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else if (target._x>target.destX) {
target._x -= Math.ceil((target._x-target.destX)*(speed/50));
} else if (target._x<target.destX) {
target._x += Math.ceil((target.destX-target._x)*(speed/50));
}
};
}
so whn it’s working by him self on his own swf window, it work just like it’s suposed to… the image animations works within teh 666.9x301.9 pxls, BUT once loaded into main.swf it doesen’t work so fine, cause the mous propretys don’t be anymore 666.9x301.9 for the animations run but yes 1024x500.
i dont reraly know if i could explain it as i should but my english is a little bit limited, so, sorry anything…
hop you can help… ho by the way, check the contactos link to, i need some help whith the sen email box programing
thnks alot