Hi everyone...
I'm trying to update my preloader code to AS3 from AS2, and am having a little bit of trouble. the preloader consists of 2 movie clips, nested inside another. Inside the first nested clip is this code...
code:
onMouseMove = function () {
percText._x = _xmouse;
percText._y = _ymouse;
};
onEnterFrame = function () {
var per = _parent._parent.getBytesLoaded()/_parent._parent.getBytesTotal();
percText.text = Math.ceil(per*100);
};
stop();
Inside the other nested clip is this code...code:
var i = 0;
var dep = 1;
onMouseMove = function () {
var p = this.attachMovie("SmokeParticle", "SmokeParticleMC"+i++, this.dep);
dep++;
p._x = _xmouse+55;
p._y = _ymouse+10;
p._xscale = p._yscale=Math.random()*100+50;
};
stop();
I've tried a few things but keep getting error messages, so have gone right back to the start with my as2 code above, and am hoping someone can help me convert the 2 segments of code...
please?
thanks in advance
Jeff