# I need help on this sen's fla file

**URL:** <https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463>\
**Category:** Uncategorized\
**Created:** [April 5, 2006, 10:31am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463 "2006-04-05T10:31:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 5, 2006, 10:31am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/1 "2006-04-05T10:31:26Z")

</div>

i want to turn the image black and white when rollover and back to color when rollout instead of the slider … thank you pls .

---

<div class="post-metadata">

**Author:** ![niklai](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@niklai](https://forum.kirupa.com/u/niklai)\
**Post date:** [April 5, 2006, 10:33am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/2 "2006-04-05T10:33:40Z")

</div>

where is the file?

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 5, 2006, 10:50am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/3 "2006-04-05T10:50:44Z")

</div>

opps sorry

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 5, 2006, 7:57pm UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/4 "2006-04-05T19:57:39Z")

</div>

anyone pls?

---

<div class="post-metadata">

**Author:** ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)\
**Post date:** [April 5, 2006, 8:36pm UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/5 "2006-04-05T20:36:56Z")

</div>

is it ok?

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 6, 2006, 4:17am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/6 "2006-04-06T04:17:48Z")

</div>

yup but how come i can’t open the file it saying “unexpected file format” …

---

<div class="post-metadata">

**Author:** ![J11](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@J11](https://forum.kirupa.com/u/J11)\
**Post date:** [April 6, 2006, 4:54am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/7 "2006-04-06T04:54:08Z")

</div>

may bcoz it is higher version.

it opened in flash 8

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 6, 2006, 5:09am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/8 "2006-04-06T05:09:55Z")

</div>

strange i have flash 8 …

---

<div class="post-metadata">

**Author:** ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)\
**Post date:** [April 6, 2006, 5:19am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/9 "2006-04-06T05:19:59Z")

</div>

[AS]Stage.scaleMode = ‘noScale’;

// create a new ColorMatrixFilter that will  
// be used to desaturate the image  
var colorFilter = new flash.filters.ColorMatrixFilter();

// Each channel (RGBA) is represented in a ColorMatrixFilter  
// instance with 5 values stored sequentially in its matrix  
// property (4x5 matrix stored in a one-dimensional array).  
// Each value represents an RGBA and an additional adder  
// for that channel. The identity for this matrix will show  
// an image with normal color and alpha. It is as follows  
var redIdentity = [1, 0, 0, 0, 0];  
var greenIdentity = [0, 1, 0, 0, 0];  
var blueIdentity = [0, 0, 1, 0, 0];  
var alphaIdentity = [0, 0, 0, 1, 0];

// A desaturated channel has a luminance of 30% red, 59% green,  
// and 11% blue. Its row in the matrix would be the following -  
// this will be used to blend with the identity rows to show  
// a variable grayscale or desaturation in the image  
var grayluma = [.3, .59, .11, 0, 0];

// when the slider changes (or is initiated)  
// update the grayscale for the image

function setSaturation(val) {  
// create new array to represent the matrix  
// information used in colorFilter  
var colmatrix:Array = new Array();

```
// populate the array with values resulting from the blended
// grayluma array and the color identities given the amount
// provided by the slider. 0 = all grayluma, no identity
// 1 = no grayluma, all identity
colmatrix = colmatrix.concat( interpolateArrays(grayluma,	redIdentity,	val) );
colmatrix = colmatrix.concat( interpolateArrays(grayluma,	greenIdentity,	val) );
colmatrix = colmatrix.concat( interpolateArrays(grayluma,	blueIdentity,	val) );
colmatrix = colmatrix.concat( alphaIdentity ); // alpha not affected

// assign the new matrix to colorFilter
colorFilter.matrix = colmatrix;

// apply the filter to the image
image.filters = [colorFilter];

```

}

// interpolateArrays interpolates the values  
// in two arrays by an amount t (0-1)  
function interpolateArrays(ary1, ary2, t){  
var result:Array = (ary1.length \>= ary2.length) ? ary1.slice() : ary2.slice();  
var i = result.length;  
while(i–) result\* = ary1\* + (ary2\* - ary1\*)\*t;  
return result;  
}

setSaturation(1); // setting saturation at start

image.onRollOver = function() {  
setSaturation(0);  
}  
image.onRollOut = function() {  
setSaturation(1);  
}

stop();[/AS]

just change code in first frame  
and remove slider

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [April 7, 2006, 4:39am UTC](https://forum.kirupa.com/t/i-need-help-on-this-sens-fla-file/184463/10 "2006-04-07T04:39:31Z")

</div>

tnx a lot
