Ciao.. raga.. ho questo problemino ho il seguente swf:
al fotogramma 2 di home.swf
ho questo script funziona perfettamente preso da qui :
al fotogramma 3 ho:Codice PHP:
import flash.display.*
import flash.geom.*
/** define the variables used **/
var img:BitmapData
var cloned:BitmapData
var mc:MovieClip
var rect:Rectangle
var row:Number
var w:Number
var h:Number
var diff:Number
var pixelSize:Number = 1
// attach a bitmapData loading an image
// from the library
img = BitmapData.loadBitmap('image');
// and clone it
cloned = img.clone();
// getting the bitmapdata width and height
w = img.width;
h = img.height;
// create a new movieclip and attach the image
// to it
mc = this.createEmptyMovieClip("holder_mc", 1);
mc.attachBitmap(img,1);
mc._x = 35
mc._y = -9
holder_mc._visible = false;
rect = new Rectangle()
row = -1
function fill(){
holder_mc._visible = true;
row += pixelSize
if(row < w){
diff = w - row
rect.width = diff
rect.height = pixelSize
for(var c = 0; c < h; c += pixelSize){
rect.y = c
img.fillRect(rect, cloned.getPixel32(diff, c))
}
} else {
delete this.onEnterFrame
}
}
function replay(){
delete this.onEnterFrame
row = -1
pixelSize = 1
this.onEnterFrame = fill
}
replay();
stop();
al fotogramma 5 ho:
praticamente mi da questo errore:Codice PHP:stop();
onClipEvent(enterFrame ){
holder_mc._alpha = holder_mc._alpha - 10;
if (holder_mc._alpha <= 0) {
this.gotoAndStop("ok")
}
}
**Errore** Scena=Scena 1, livello=actions, fotogramma=571:Linea 2: Gli eventi associati ai clip sono consentiti solo per istanze di clip filmato
onClipEvent(enterFrame ){
home.swf è un swf esterno questo swf esterno comandato da un swf principale mi deve far diventare alpha 0 il mc holder_mc ma mi da un errore qualche consiglio??
![]()

-
Rispondi quotando
