# Mistake in Waving Flag

**URL:** <https://forum.kirupa.com/t/mistake-in-waving-flag/315017>\
**Category:** flash\
**Created:** [October 14, 2010, 11:37pm UTC](https://forum.kirupa.com/t/mistake-in-waving-flag/315017 "2010-10-14T23:37:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gayandproud](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@gayandproud](https://forum.kirupa.com/u/gayandproud)\
**Post date:** [October 14, 2010, 11:37pm UTC](https://forum.kirupa.com/t/mistake-in-waving-flag/315017/1 "2010-10-14T23:37:51Z")

</div>

**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](http://crea-flash.com/index.php?option=com_content&view=article&id=10:-efecto-de-bandera-para-as-30-&catid=1:tutoriales-actio%20%20nscript-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](http://crea-flash.com/index.php?option=com_content&view=article&id=10:-efecto-de-bandera-para-as-30-&catid=1:tutoriales-actio%20%20nscript-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.**
