Hi
I got a small problem
for a website I made a panorama of a product (using flash)
it's about half an Mb and loading takes some time with a slow connection. So I decided to put a progressbar in it.
But now my panorama script is messed up by that. Any idea how I can fix this?
the panorama script (which it messes up):
onClipEvent (load) {
stop ();
var mouseXMove = false;
var oldmouseX = _root._xmouse;
var mouseX = oldmouseX;
var zoom = false;
var rotate = "left";
}
onClipEvent (enterFrame) {
if (rotate != false) {
if (rotate == "left"
{
if (_currentframe != 1) {
gotoAndStop (_currentframe-1);
} else {
gotoAndStop (36);
}
} else {
if (_currentframe != 36) {
gotoAndStop (_currentframe+1);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (mouseMove) {
if (mouseXMove == true) {
mouseX = _root._xmouse;
if (mouseX<oldmouseX) {
if (_currentframe != 1) {
gotoAndStop (_currentframe-1);
} else {
gotoAndStop (36);
}
} else {
if (_currentframe != 36) {
gotoAndStop (_currentframe+1);
} else {
gotoAndStop (1);
}
}
oldmouseX = mouseX;
}
}
and here the preloader script:
kbloaded = int(this.getBytesLoaded()/this.getBytesTotal()*100);
if (kbloaded>=100) {
gotoAndPlay("mainscene", 1);
}
loadpercent = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"% ";
I hope someone can help me out ^^
I got a small problem
for a website I made a panorama of a product (using flash)
it's about half an Mb and loading takes some time with a slow connection. So I decided to put a progressbar in it.
But now my panorama script is messed up by that. Any idea how I can fix this?
the panorama script (which it messes up):
onClipEvent (load) {
stop ();
var mouseXMove = false;
var oldmouseX = _root._xmouse;
var mouseX = oldmouseX;
var zoom = false;
var rotate = "left";
}
onClipEvent (enterFrame) {
if (rotate != false) {
if (rotate == "left"
if (_currentframe != 1) {
gotoAndStop (_currentframe-1);
} else {
gotoAndStop (36);
}
} else {
if (_currentframe != 36) {
gotoAndStop (_currentframe+1);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (mouseMove) {
if (mouseXMove == true) {
mouseX = _root._xmouse;
if (mouseX<oldmouseX) {
if (_currentframe != 1) {
gotoAndStop (_currentframe-1);
} else {
gotoAndStop (36);
}
} else {
if (_currentframe != 36) {
gotoAndStop (_currentframe+1);
} else {
gotoAndStop (1);
}
}
oldmouseX = mouseX;
}
}
and here the preloader script:
kbloaded = int(this.getBytesLoaded()/this.getBytesTotal()*100);
if (kbloaded>=100) {
gotoAndPlay("mainscene", 1);
}
loadpercent = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"% ";
I hope someone can help me out ^^