flashcdog
03-06-2007, 02:48 PM
Ok.
Using PHP and MySQL, I am passing some variables to flash. Simple enough.
I have a movieclip that is looping in the background.
Depending on whether or not there is data in the database, I want it to affect the movieclip.
In other words, if there is no text to place in the text fields, the movie plays as normal. However, if data is entered into the database and is passed to flash, I want the looping video to blur and/or fade a bit.
I am passing the information to flash just fine, but the affecting the movieclip is giving me trouble. Not really sure how to handle it.
I have the fading and blurring part figured:
import flash.filters.BlurFilter;
var totalBlur:Number = 8;
var noBlur :Number = 0;
var blur:BlurFilter = new BlurFilter(totalBlur, totalBlur, 50);
video_mc.filters = new Array(blur);
video_mc._alpha = 50;
What function would I create to in order to make the movieclip do the above mentioned effects?
Does any of that make sense?
Thank you in advance.
Using PHP and MySQL, I am passing some variables to flash. Simple enough.
I have a movieclip that is looping in the background.
Depending on whether or not there is data in the database, I want it to affect the movieclip.
In other words, if there is no text to place in the text fields, the movie plays as normal. However, if data is entered into the database and is passed to flash, I want the looping video to blur and/or fade a bit.
I am passing the information to flash just fine, but the affecting the movieclip is giving me trouble. Not really sure how to handle it.
I have the fading and blurring part figured:
import flash.filters.BlurFilter;
var totalBlur:Number = 8;
var noBlur :Number = 0;
var blur:BlurFilter = new BlurFilter(totalBlur, totalBlur, 50);
video_mc.filters = new Array(blur);
video_mc._alpha = 50;
What function would I create to in order to make the movieclip do the above mentioned effects?
Does any of that make sense?
Thank you in advance.