I'm not sure I understand what you're trying to do, so I'll take a shot at
this. I think there might be a confusion between blend mode and alpha.

Applying a blend mode to a MC is a single-step process, which says give this
MC a blend mode of "darken." This is akin to a PS layer mode, so Darken will
color only those pixels below it that are lighter. There aren't varying
degrees of the darken blend mode, so you can't set it to 10 and increment
it. Incrementing a blend mode assignment, if that's still supported in AS3,
will cycle through different blend modes. I wouldn't use the integer
assignment--again, assuming it's still supported, but would use the constant
assignment instead.

There are other things I'm not sure about, like the multiple x assignment
and the unfinished array line, but here's what I think might work:

import flash.display.*;
import flash.filters.*;
import flash.display.BlendMode;

var mcArray:Array = new Array();

for(var i:uint=0; i<20; i++) {
   var myMC:MovieClip = new movie1();
   //myMC.x=222; //either omit this
   myMC.y=186;
   myMC.x = i*40; //or use += ?
   myMC.rotation=i*20;
   addChild(myMC);
   trace(mcArray);
   mcArray.push(myMC); // change to push?
   myMC.blendMode = BlendMode.DARKEN;
   trace(myMC);
}

The darken blend mode, however, will just affect underlying pixels, so your
MC will have to have more varying colors to see any effect. You might want
to look into .alpha, which controls opacity, to see if that's what you want.

Sorry if I misunderstood.

Rich

On 4/27/07 12:11 PM, "Gustavo Duenas" <[EMAIL PROTECTED]>
wrote:
> import flash.display.*;
> import flash.filters.*;
> import flash.display.BlendMode;
> 
> var blen1:BlendMode = new BlendMode();
> blen1= blen1.DARKEN=10;
> 
> //funcion de array repetidos.
> 
> 
> var mcArray:Array = new Array();
> 
> for(var i:uint=0; i<20; i++) {
> var myMC:MovieClip = new movie1();
> myMC.x=222;
> myMC.y=186;
> myMC.x = i*40;
> myMC.rotation=i*20;
> addChild(myMC);
> trace(mcArray);
> mcArray[myMC];
> 
> myMC.blen1=blen1+i;
> 
> 
> trace(myMC);
> }


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to