Hello. I’m trying to create a flash animation with the effect of a waving flag and have seen online some, but what I liked most is the following website:
http://crea-flash.com/index.php?option=com_content&view=article&id=10:-efecto-de-bandera-para-as-30-&catid=1:tutoriales-actio nscript-30-&Itemid=5
But I have a question because I want to customize it a bit more.
Actionscript banner is perfect except for one question I have. When you edit from the page:
http://crea-flash.com/index.php?option=com_content&view=article&id=10:-efecto-de-bandera-para-as-30-&catid=1:tutoriales-actio nscript-30-&Itemid=5&limitstart=1
and paste the resulting code to my actionscript 3 flash cs4:
import cfx.Efectos.*;
var neBandera=new FxOndular(new Bandera(0,0),new Point(0,50),new Point(2,2),8,3);
neBandera.Start();
var img:BitmapData=neBandera.MapRuido;
var img2:BitmapData=neBandera.Map;
var bt:Bitmap=new Bitmap(img2);
addChild(bt);
function efectos(event:Event) {
img.draw(img,null,null,hardlight);
img.draw(img,null,null,screen);
img2.draw(img,null,null,subtract );
}
addEventListener(Event.ENTER_FRAME,efectos);
I get the following error:
[COLOR=Red]1120: Access to undefined property hardlight.
1120: Access to an undefined screen property.
1120: Access to subtract property not defined.
Source:
img.draw(img,null,null,hardlight);
img.draw(img,null,null,screen);
img2.draw(img,null,null,subtract );[/COLOR]
Would you be so kind as to tell me where I am making the mistake?.
P.D: Sorry for my english.
Regards.