View Full Version : Flash filter doesn't work online
vicios
05-19-2006, 12:36 PM
Hi I have this function to fade in and out dynamically loaded images.
Locally it works perfect, but online, the transition doesn't work. The images still load and all.
Thanks.
function ImagTrans(CargarEsta) {
import flash.filters.ColorMatrixFilter;
import mx.transitions.Tween;
import mx.transitions.easing.*;
System.security.allowDomain("http://test.domain.com");
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip):Void {
// center movie clip instance on Stage
target_mc._x = 13;
target_mc._y = 26;
target_mc.watch("brightness", brightnessWatcher, target_mc);
// animate the target_mc movie clip between -100 and +100 brightness
var t:Object = new Tween(_root.img_mc, "brightness", None.easeIn, 300, 0, 0.5, true);
};
Tenshi_rdk
05-19-2006, 12:48 PM
well you can always just do it manually.
by using
target_mc._alpha += value;
and
target_mc._alpha -= value;
if you go down again , but you'll need to put in a IF statement to test when it reaches 0 OR 100 to go up or down
vicios
05-19-2006, 01:02 PM
Yes, that's an option I have in mind in case deadline arrives before I solve this.
But I'm sure the effect can be implemented online, I just don't know what is that I'm not doing right.
Sleeve
05-19-2006, 01:42 PM
vicios-
Do you have the most recent flash player? Are you sure?
Also, why are you doing your imports within a function?
vicios
05-23-2006, 12:23 PM
vicios-
Do you have the most recent flash player? Are you sure?
Also, why are you doing your imports within a function?
Yes, I'm sure it's not a flash player issue.
And as why are the imports within a function.. good question, In a trial and error despair moment I started tweaking and moving stuff in a test movie, and I guess I pasted one of those codes.
I still can't make it work online.. :confused:
moneysaver67
06-19-2006, 07:37 PM
Yes, I'm sure it's not a flash player issue.
And as why are the imports within a function.. good question, In a trial and error despair moment I started tweaking and moving stuff in a test movie, and I guess I pasted one of those codes.
I still can't make it work online.. :confused:
Vicios, I am experiencing the SAME problem!? What gives? I am using
"import flash.filters.ColorMatrixFilter;" and the GrayScale matrix to make grayscale versions of my dynamically loaded images, then transitioning into Color (default filters) ... works perfect locally, but not at all online??
Someone have any advice? I have the most recent Flash Player version and am sure it's not an issue as it works fine locally (even played via browser, not via Flash app...)
sleekdigital
06-19-2006, 07:44 PM
My guess would be that it has to do with the timing, since it works locally. Perhaps at the time of onLoadInit is too soon. Maybe some other logic is needed to know when the movieclip is in a state that is appropriate for setting up the transition ???? Maybe try waiting a frame after onLoadInit fires and see what happens. Sorry I don't have more concrete info.
moneysaver67
06-19-2006, 07:45 PM
Vicios, I am experiencing the SAME problem!? What gives? I am using
"import flash.filters.ColorMatrixFilter;" and the GrayScale matrix to make grayscale versions of my dynamically loaded images, then transitioning into Color (default filters) ... works perfect locally, but not at all online??
Someone have any advice? I have the most recent Flash Player version and am sure it's not an issue as it works fine locally (even played via browser, not via Flash app...)
Vicios! .. I just had an epiphany!
It appears that the ONLINE versions of the filters do NOT work in FireFox (for me, 1.5.0.4), but do work in IE (6.0) ...
Yet, they DO work in FireFox locally? ... Hmmmm... I tested and confirmed (re-downloaded) that I have the most recent flash (8,0,24,0) for Mozilla...does it work for you online in IE? Maybe the Mozilla player differs from IE?
According to : http://www.macromedia.com/software/flash/about/
Platform Browser - Player Version
Windows Internet Explorer
(and other browsers that support Internet Explorer ActiveX controls and plug-ins) 8,0,24,0
Windows Netscape 8,0,24,0
They appear to be the same...?
moneysaver67
06-19-2006, 07:47 PM
My guess would be that it has to do with the timing, since it works locally. Perhaps at the time of onLoadInit is too soon. Maybe some other logic is needed to know when the movieclip is in a state that is appropriate for setting up the transition ???? Maybe try waiting a frame after onLoadInit fires and see what happens. Sorry I don't have more concrete info.
@Sleek,
Thanks for the response...actually, I have a pre-loader set before applying/capturing ANY filter(s).
I even built in a ~10 sec delay to test this theory with no luck... (plz read my last post...any ideas?)
vicios
06-19-2006, 11:54 PM
I haven't done any further testing, because the project is in standby, and I´m caught up with other projects. Also the client doesn't even knows the effect is not working.
They like it enough without the effect, so I'm not going to tell something is not working.
But someone told me it could be something related to a domain name issue.
I see if I can get a few hours to try the domain name approach.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.