Ciao a tutti. Ho un file swf preso da flashkit (scrubber.fla) e leggermente adattato alle mie esigenze. Quando lo lancio da solo funziona perfettamente, quando invece lo carico con un loadmovie dentro un altro filmato non funziona più. Posto il codice e se qualcuno ci capisce qualcosa grazie mille.

IN DUE MC NELLA ROOT PRINCIPALE HO:

onClipEvent (load) {
_root.scrubTarget = _root.alex;
_root.scrubTargetState = "play";
}

onClipEvent (load) {
this.gotoAndStop(17);
}

IN UNO SLIDER ALL'INTERNO DI "SCRUBBER" HO:

onClipEvent (enterFrame) {
_root.scrubCurrentFrame = _root.scrubber.currentFrame(_root.scrubTarget)
if (_root.scrubTimeLineHandle == "scrub") {
_root.scrubber.scrubHandle(_root.scrubTarget);
} else {
_root.scrubber.scrubHandlePlay(_root.scrubTarget);
}
}

E ANCHE QUESTO:

function begin (setTarget, frame) {
setTarget.gotoAndStop(frame);
_root.scrubTargetState = "play";
}
function stopMovie (setTarget) {
setTarget.stop();
}
function playMovie (setTarget) {
setTarget.play();
}
function scrubHandlePlay (setTarget) {
_root.scrubber.handle._x = (_root.scrubber.timeLine._width-_root.scrubber.handle._width)*(setTarget._currentF rame/setTarget._totalFrames);
}
function scrubHandle (setTarget) {
setTarget.gotoAndStop(int(setTarget._totalFrames*( _root.scrubber.handle._x/(_root.scrubber.timeLine._width-_root.scrubber.handle._width))));
}
function currentFrame (setTarget){
return setTarget._currentFrame
}
function scrubEngine (target, speed) {
if (_root.scrubDirection == "reverse") {
direction = target._currentframe - Number(speed);
_root.direction = direction
}else{
direction = target._currentframe + Number(speed);
_root.direction = direction
}
target.gotoAndStop(direction);
}

Per quale motivo un filmato può non funzionare all'interno di un altro? Buona settimana a tutti.

fabrizio