Skip to main content
Inspiring
April 9, 2007
Question

how to setup a Desaturation Tween

  • April 9, 2007
  • 48 replies
  • 4046 views
Hi just a quick question, i have a function to swap depths and tween the _alpha property of some movie clips, ---=> Thanx kglad <=--- but i was wondering if theres a way to change the color property without filters??
im especially interested in the Saturation / De-Saturation for this idea i have.

or do i need to use import flash.filters to do this?

if this is the only way, i dont think it will be worth it, unless creating a function for it is simple.

Thanx in advance.
This topic has been closed for replies.

48 replies

kglad
Community Expert
Community Expert
May 14, 2007
you're welcome.
SketchstaAuthor
Inspiring
May 14, 2007
hmm.. It might just be my comp.

now you've raised my curiosity again..=)
gonna go to a local net cafe and check it there...It might just be my comp, it is getting quite old now.

anyway, thanx for checking, and the help on the thumb nails, i'll add a _visibility line somewhere to fix that up.
kglad
Community Expert
Community Expert
May 13, 2007
when i click on a thumbnail and don't move my mouse i see preloader text (loading image xx%) where xx increases as the image appears to load. the text disappears as the image appears. just as i would expect with a properly functioning preloader.

when i click on the same thumb repeatedly the preloader text only appears briefly and displays loading image 0% before being replaced by the image. just as one would expect from an image being retrieved from the user's cache.

p.s. the brief flash of the thumbs at the upper left is due to their instantiation before they are positioned. to remedy make them not visible until they are positioned.
SketchstaAuthor
Inspiring
May 13, 2007
hmm... i just checked it and i still have that problem...only... i KNOW i had a preLoader for the thumbs too... I wonder what happened to that... *scratches head*

so, when you click on a thumb, and DONT MOVE you mouse... The pic shows??
Mind you, that this only happens BEFORE the pics are Cached.

and, unfortunatelly i know about the brief appearance of the thumbs and hitArea to the left of the window..
I dont know why thats happening... Thankfully it's realy quick =)
kglad
Community Expert
Community Expert
May 13, 2007
i don't see those problems.

the only problem i see is when gallery first loads the carousel slides are briefly visible at the upper left before taking their carousel position.
kglad
Community Expert
Community Expert
May 13, 2007
no, i don't see that code causing any problem.

post a link to your site. maybe something else is happening.
SketchstaAuthor
Inspiring
May 13, 2007
HERE IS THE SITE its the Gallery page.

Click on the link, and once the page opens you will see " Loading NaN% " if you Dont move your mouse. But its still loading in the bg, just not showing it. None of the pics are showing either, until you move the mouse.

Quite strange this one... *shrugz*
kglad
Community Expert
Community Expert
May 13, 2007
do you have any onMouseMove functions defined? if so, copy and paste that code.
SketchstaAuthor
Inspiring
May 13, 2007
Yeah there is a onMouseMove function, but i had a look at it, and i dont see how that would conflict with loading external content..

anyway, i trust you alot more than i trust me... so here you go.. =)

SketchstaAuthor
Inspiring
May 13, 2007
Welcome back kglad, hope you had some good time off =)

as for the pre-loading of the thumbs... nope. it's still not working 100%

the loading (text) doesn't update unless i move the mouse.

if i click on a thumb (and not move my mouse) , it displays " Loading NaN% "
but this is loading, just not showing in the text field.
if i constantly move the mouse, then, and only then, it shows the amount that is loaded.
It doesn't even show the picture or thumbs if i dont move the mouse..

but, it works, so im hoping that whoever visits the page keeps moving the mouse. =)



Hey Senocular,
Thanx for the code, there is somewhat of a desaturation code in this thread, whch works... but not with the colorMatrix filters.
Your code is abit too advanced for me tho, so i hope it's useful to anyone else looking for the same effect.
Thanx again for the code tho, i'll definately have a look through it at some stage.
Participant
May 12, 2007
In skimming this thread I don't recall seeing a desaturation solution so I'll post one below. This uses Flash 8 ActionScript 2 (Flash 8 or greater is needed for desaturation since the ColorMatrixFilter is required and it has only been available since Flash 8). This code assumes a movie clip named my_mc is being desaturated over 50 frames.

kglad
Community Expert
Community Expert
May 12, 2007
i was on vacation for the past 2 weeks. is this solved?