How to Stop or remove perlinnoise?

...so that I can add the next image. and use a tween alpha to show it. If you test this, (just rename any images by the image names I use and export to as3 from library). You can see that the perlinnoise is continually existing in the background. For simplicity and testing, I'm tweening only two halves of an image as I'm testing, but actually I would like to eventually tween many parts (copyPixels) of the original image.
I'm trying to get this to work because Tween doesn't work when you're trying to tween only one index of an array (so I can time each index differently), even if I name each index item in the array.
Interestingly enough when I use the loop and set the x property of the new Rectangle to ix the bit of code below works to stop the perlin noise. But as soon as I remove the loop, the flag.fillRect(flag.rect, 0); doesn't work.
if (newMC2.alpha == 1) { 
          found = true;//stage.removeChildAt(0);stage.removeChild(flag);ary.splice(0);
          break loop;
          //break scloop;
          //break noise;
          flag.fillRect(flag.rect, 0);
        }//END if
Here's my code:
import flash.display.*;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.utils.Timer;
import flash.utils.setTimeout;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
var ary:Array = [0,14,28,42,56,70,84,98,112,126,140,154,168,182,196,210,224,238,252,266,280,294,308,322,3 36,350,364,378,392,406,420,434,448,462,476,490,504,518,532,546,560,574,588,602,604];
var pW:uint = 301;
var xyPnt:Point = new Point(0,0);
var rippleSz:uint = 160;
var scalex:Number = 50;
var scaley:Number = 100;
var channels:uint = BitmapDataChannel.BLUE;
var chX:uint = channels; var chY:uint = channels;
var oct:uint = 1;
var dmode:String = DisplacementMapFilterMode.COLOR;
var color:uint = 0xFFFFFFFF;
var dalpha:Number = 1;
var fW:uint = 603; var fH:uint = 214;
var fData:BitmapData = new BitmapData(fW,fH);//perlinnoise applied to this
var flagBmp:Bitmap = new Bitmap(fData);
var timer:Timer = new Timer(10000,4);
timer.addEventListener(TimerEvent.TIMER, vPic);
timer.start();
addChild(flagBmp);//adds the container bitmap object to the stage
var lwyData0:BitmapData = new lawyers_sprite;
var lkeData1:BitmapData = new lake_sprite;
var dckData2:BitmapData = new duck_sprite;
var ctyData3:BitmapData = new cotie_sprite;
var fRect:Rectangle = new Rectangle(0,0,fW,fH);
var tempFDataX:BitmapData = new BitmapData(fW,fH);
var img1:BitmapData = lwyData0;
var nPic:BitmapData = lkeData1;
tempFDataX.copyPixels(img1,fRect,new Point());
var matrix:Matrix = new Matrix();
var fData2:BitmapData=new BitmapData(fW,fH,false);
fData2.draw(tempFDataX,matrix,null,null,fRect,true);
var flag:Bitmap = new Bitmap(fData2);
addChild(flag);
function vPic(event:Event):void {
var ct:uint = timer.currentCount;
switch (ct){
    case 0:break;
    case 1:
    img1 = lwyData0;
    nPic = lkeData1; break;
    case 2:
    img1 = lkeData1;
    nPic = dckData2; break;
    case 3:
    img1 = dckData2;
    nPic = ctyData3; break;
    case 4:
    img1 = ctyData3;
    nPic = lwyData0; timer.reset(); timer.start(); break;
    default:
    img1 = lwyData0;
    nPic = lkeData1; break;
tempFDataX.copyPixels(img1,fRect,new Point());
var matrix:Matrix = new Matrix();
var fData2:BitmapData=new BitmapData(fW,fH);
fData2.draw(tempFDataX,matrix,null,null,fRect,true);
var flag:Bitmap = new Bitmap(fData2);
addChild(flag);
var found:Boolean =  new Boolean();
flagBmp.blendMode = BlendMode.HARDLIGHT;
flagBmp.alpha = .3;
stage.addEventListener(Event.ENTER_FRAME, wind);
rippleSz = 160;
var rippleSz2:Number = 160;
var offset0:Point = new Point(0,0);
scalex = 50;
scaley = 100;
function wind(event:Event):void {
  offset0.y-=.5;
  offset0.x-=5;
  rippleSz2-=1;
  noise: if (rippleSz2>100) {
   fData.perlinNoise(rippleSz2,rippleSz,oct,1,true,true,5,false,[offset0]);
   var replaceData:DisplacementMapFilter=new DisplacementMapFilter(fData,xyPnt,chX,chY,scalex,scaley,dmode,color,dalpha);
   var replaceDataAry:Array=new Array(replaceData);
   flag.filters=replaceDataAry;
   flag.smoothing=true;
   break noise;
  else {
   scloop: if ((scalex<=50) && (scaley<=100) && (found==false)){
     if ((scalex>=0) && (scaley>=0)){
      offset0.y-=.5;
      offset0.x-=5;
      rippleSz2+=.5;
      scalex-=1;
      scaley-=2;
      fData.perlinNoise(rippleSz2,rippleSz,oct,1,true,true,5,false,[offset0]);
      var replaceData2:DisplacementMapFilter=new DisplacementMapFilter(fData,xyPnt,chX,chY,scalex,scaley,dmode,color,dalpha);
      var replaceDataAry2:Array=new Array(replaceData2);
      flag.filters=replaceDataAry2;
      flag.smoothing=true;
      //flag.fillRect(flag.rect, 0);
      break scloop;
     else {
      //trace(ct);
      var StageObj:Stage = stage;
      //loop: for each (var ix:uint in ary) {
        var newBmd:BitmapData = new BitmapData(pW,fH);
        newBmd.copyPixels(nPic,new Rectangle(0,0,pW,fH),xyPnt,null,null,false);
        var pix:Bitmap = new Bitmap(newBmd);
        pix.x = 0;
        //pix.alpha = .1;
        var newMC:MovieClip = new MovieClip();
        stage.addChild(newMC);
        newMC.x = 0;
        newMC.alpha = .1;
        newMC.addChild(pix);
        var newBmd2:BitmapData = new BitmapData(pW,fH);
        newBmd2.copyPixels(nPic,new Rectangle(302,0,pW,fH),xyPnt,null,null,false);
        var pix2:Bitmap = new Bitmap(newBmd2);
        pix2.x = 0;
        //pix.alpha = .1;
        var newMC2:MovieClip = new MovieClip();
        stage.addChild(newMC2);
        newMC2.x = 301;
        newMC2.alpha = .1;
        newMC2.addChild(pix2);
        //var twTimer:Timer = new Timer (2000,44); //ary.length is 45
        //twTimer.addEventListener(TimerEvent.TIMER, doTween);
        //twTimer.start();
        var twn:Tween = new Tween(newMC,"alpha",Strong.easeIn,.1,1,1.5,true);
        twn.stop();
        setTimeout(twn.start,1000);
        var twn2:Tween = new Tween(newMC,"alpha",Strong.easeIn,.1,1,1.5,true);
        twn2.stop();
        setTimeout(twn2.start,3000);
        /*if (newMC2.alpha == 1) { 
          found = true;//stage.removeChildAt(0);stage.removeChild(flag);ary.splice(0);
          break loop;
          //break scloop;
          //break noise;
          flag.fillRect(flag.rect, 0);
        }//END if
       }//END loop*/
       //tween = new Tween(newMC, "y", Strong.easeOut, -214, 0, 1.5, true);
     }//END else
   }//END if
  } //END else
} //END wind
}//END vPic
OR does any one know the math to move each pixel, so that the whole image waves like a flag, without perllinnoise, so that I can start and stop the waving when desired.

For anyone reading this, below is how I did what kglad told me to do. Below is an excerpt of the innermost nested else statement. Note that I also removed "var StageObj:Stage = stage;" and changed "stage.addChild(newMC);" to "addChild(newMC);"
else {
      //trace(ct);
      flag.filters = [];
      //loop: for each (var ix:uint in ary) {
        var newBmd:BitmapData = new BitmapData(pW,fH);
        newBmd.copyPixels(nPic,new Rectangle(0,0,pW,fH),xyPnt,null,null,false);
        var pix:Bitmap = new Bitmap(newBmd);
        pix.x = 0;
        //pix.alpha = .1;
        var newMC:MovieClip = new MovieClip();
        addChild(newMC);
        newMC.x = 0;
        newMC.alpha = .2;
        newMC.addChild(pix);

Similar Messages

  • How to stop and remove an active job.

    How to stop and remove an active job.

    What sort of "job" are you referring to? A print job? If so, open the queue for the printer - it should be in your Dock, or you can access it through the Printers & Scanners system preference - and click the green Pause button to stop the entire queue, or the Pause button next to a specific print job to pause just that job. To clear a job, click the "X" button to the right of the job.
    If that's not the "job" you mean, please post back and clarify.
    Regards.

  • PSE 8 how to stop or remove "tips and tricks"

    how to stop or remove "tips and tricks" in PSE 8

    Barbara, found the files in both the organizer and editor for PSE8.
    Choice I have is share with nobody, Home group or specific people.
    Which one to choose and how does this keep tip and trick from trying to access the internet?
    Richard

  • How to stop the removing a user account and saving the home directory  to a disk image?

    I tried to delete one of two administers on my iMac (10.10.1). After more than 12 hours it will not let me quit System Preferences for it "is removing a user account and saving the home directory to a disk image". How do I finish deleting the administer and quit System Preferences?

    I would recommend asking them in C# forums: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral&filter=alltypes&sort=lastpostdesc
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • HT3702 How can I stop and remove my credit card from my iPad ,my children keep buying games and I want to stop it......please help me to remove any payment from now on.

    How can I stop and remove my credit card from my iPad ,my children keep buying games and I want to stop it......please help me to remove any payment from now on.

    iOS: Understanding Restrictions
              http://support.apple.com/kb/HT4213

  • How do I stop/disable/remove dovecot and postfix?

    Hello,
    So the story is somehow I managed to install Lion Server on my personal computer from the App Store. Fine until I realized all the proccesses my computer is spending resources on now. I've looked through what I think is every guide in the book on how to "remove" Lion Server, meaning just disable the additional servers it installs. I think I've gotten almost all of it, following basic things such as shutting everything "off" in Server.app.
    Seems that though, no matter what Launch daemons or agents I disable, two are persistent on starting up with my comptuer and I can't seem to rid myself of them. Yes, I need to stop/disable/remove them. The following shows up in Console.app > All Messages:
    Dovecot (or something related):
    1/24/12 10:57:58.490 PM dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
    1/24/12 10:57:58.491 PM dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.
    Postfix:
    1/24/12 10:57:58.105 PM postfix/master: master exit time has arrived
    1/24/12 10:57:58.143 PM postfix/master: daemon started -- version 2.8.4, configuration /etc/postfix
    1/24/12 10:57:58.160 PM postfix/qmgr: 127555F00C2C: from=<>, size=6804, nrcpt=1 (queue active)
    1/24/12 10:57:58.508 PM postfix/pipe: 127555F00C2C: to=<[email protected]>, relay=dovecot, delay=2877, delays=2876/0.03/0/0.31, dsn=4.3.0, status=deferred (temporary failure)
    I believe both of these are related to mail somehow. I have ticked off "Mail" switch box in Server.app.
    These messages keep on looping in the Console since I'm assuming they are crashing and then restarting due to a "stay alive" in some plist file I can't seem to find...
    Please, I would be very grateful to anyone who can help me unclutter my Console of these messages. I know I can filter senders, but I will like to see if I might get some advice to resolve this. I'm sure it's minimal, but it can't be good for battery life. I wish I had the time to do a fresh install of the client.
    Cheers!
    Ryan

    I have the exact same problem, and I'd appreciate a response. My logs are flooded by nonsense!

  • How to stop iPhone to mail and remove my notes?

    I use notes on my iPhone to write down little snippets and ideas for new articles. I don't want to receive them by mail and being removed from my iPhone.
    Please, how to stop this unwanted syncing?

    I can only suggest at this point to restore your phone as a "new" device, NOT from backup. Follow this by syncing your iTunes content back to your phone & setting up your mail account from scratch.

  • How to stop emails being removed from inbox. IOS8

    how to stop my emails being removed from inbox. ISO 8.0

    Did you ever find out how to do this?  I am having the same situation.  Thanks

  • My daughter has an iphone 5s and I have her old 3GS. She receives all my imessages that I rcv or send to other people. Can anyone advise how to stop this? we have removed the 3gs from her itunes account but it hasn't stopped the issue.

    My daughter has an iphone 5s and I have her old 3GS. She receives all my imessages that I rcv or send to other people. Can anyone advise how to stop this? we have removed the 3gs from her itunes account but it hasn't stopped the issue.

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • How to stop text box on iWeb page from automatically reverting to hyperlink when I click 'save'

    As far as I see, the main text box in the body section of my iWeb page reverts to a hyperlink (connecting to a file) when I click save.  I don't know how the hyperlink got activated to begin with--I must have done something, but I don't know what it was.  I tried this many times to fix it: went to Inspector "hyperlink" section, activated the text box in the page, un-clicked "make hyperlinks active" (so they are inactive), then un-clicked "Enable as a hyperlink."  That much works--the hyperlink (little white arrow in blue circle) disappears from the lower right corner of text box.  But as soon as I save (command S), the text box reverts to a hyperlink. 
    If I don't click save and move around the pages, it does not revert to a hyperlink.  It only reverts to a hyperlink when the file is saved.  Why is it doing this and how to stop this from happening--how to permanently return the text box to a non-hyperlink?
    The website page is: http://www.usronline.net/USR/VedicResearch.html.  If you click anywhere randomly in the main text, you'll get a prompt to download a PDF file.  This should not be, but I can't get this hyperlink to go away for good.
    Many thanks in advance.
    Vishnupriya

    Please pardon the reply delay--a big project deadline had to be met.  Now back to this work:
    Yes, the text in the oval object had a drop shadow (the oval object itself did not).  I removed the drop shadow from the text, but the image file icon stayed in the right corner of the oval object.  I deleted the text and then the image file icon disappeared.  But as soon as I typed text again inside the oval object (not even pasting the previous text) the image file icon appeared again.  I deleted the oval object entirely and simply typed the text inside the main text box itself.  The image file icon that was attached to that oval object is gone (along with the oval object).
    Still the image file icon is attached to the main text box, though.  I again tried to uncheck the Enable as hyperlink (same process as described in first posting) with that oval object gone, but when I "save" again it reverts to a hyperlink. 
    Next I tried this: I copied the text from the problem text box and pasted it into another text box (outside of the problem one).  Still in the new text box with the pasted text, the image file icon shows in the upper right corner. 
    I also removed all the drop shadow features from this main text box (there was one more, on some words typed in the main text box), but it is still showing as an image.
    I don't know how it became an image file, and I'm still stumped as to how to fix it (short of forgetting about trying to figure out how it became an image and just retyping all text into a new text box).
    The link you provided for "Web Safe Fonts" is returning this: "The server at www.ampsoft.net is taking too long to respond."  I'm using Arial and Georgia (Georgia only on the menu and header text) in the site, and I had verified before designing the site that these are web safe, so I had thought they were.
    If you or anyone have any further suggestions or suspicions on this matter, I'd be glad to hear them.
    Thank you.

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • How to stop receiving "AdobePremiereElements.exe - No Disk" error message at start-up

    I upgraded from Premiere Elements 9 to 13 at Adobe.  Install went without error, but each time I call up the program a window pops up entitled "AdobePremiereElements.exe - No Disk" with the following text within the window:  "There is no disk in the device. Please insert a disk into drive \Drive\Harddisk1\DR1."  I can eventually get this window to remove after repeated attempts, and the program seems to be running fine.  Would appreciate knowing how to stop such nonsense and remove the annoyance.  Thanks.

    jimp
    Thanks for the good news that the OldFilm.AEX file is gone and no more No Disc error message.
    To update 13 to 13.1, you need to use an opened project's Help Menu/Updates.
    Have you done that, and the message was that you were up to date already?
    To check what version you have
    Premiere Elements Editor. Help Menu/About Adobe Premiere Elements. The screen that then displays should show 13.1 if updated from 13 to 13.1.
    That Help Menu/Updates location should let you take are of the Elements Organizer updating from 13 to 13.1.
    Nonetheless, you can check on Elements Organizer Help Menu/Adobe Elements Organizer to assure that the screen that displays shows 13.1 instead of 13.
    Any questions, please let me know.
    Best wishes
    ATR

  • How to stop/cancel Process Chain in BI 7.0

    Hi,
    Could you tell me how to stop/cancel a process chain that hangs with status yellow or green in BI 7.0? There was an easy option to do it in 3.x, but I cannot find a similar option in 7.0.
    What happens is that at random our process chains hang at a certain variant with either yellow or even green status and do not proceed further. What happens is that in a couple of hours another pchain run occurs and it executes fine. Then again at random (might be the same day or the next day) the process chain hangs again. I think that all those "hanged" pchains pile up in the queue, so that it cause other future pchains to hang as well at some point. So, is there anyway to stop/cancel these zombie process chains when it stops at a particular event RSPROCESS in BI 7?
    Thank you,
    AG
    Message was edited by:
            AG

    Hi Frank,
    Thanks for your reply. I have a few questions.
    1)SM37 -->Kill Job
    We cannot do that because the job has already finished.
    2)SM50/sm66- ->Kill process
    There are no hanged processes to kill
    3)RSPC>Job Log>Make the process RED forecefully
    How do you do that exactly?
    4)RSPC>Process chain> main Menu"Remove from Scheduling"  OR
    5)se37-->RSPC_API_CHAIN_INTERRUPT
    give RFC BW system name(technical) and process chain name(technical) - we can do this,  but what exactly would it accomplish. Would it remove the process chain from any runs in the future or also any hanged ones in the past? An how is this step different from #4?
    Thank you,
    AG

  • At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs

    At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
    == This happened ==
    Every time Firefox opened
    == Several weeks ago.

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the ''updates'' and ''updates\0'' folder:
    Vista/Windows7:
    C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
    C:\Users\&lt;user&gt;\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
    %LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\

  • How to stop the waterflow?

    Hi,
    I need to make the water coming from the shower, when shower is clicked.
    And the water should stop after 5 seconds.
    The code is below.
    The water is flowing nicely. But I do not manage to stop it.
    I added a timer, which starts when the shower is clicked. And should stop the waterflow after 5 seconds have passed.
    With the lines
    if (stop = true)
         break;
         trace("break");
    it looks like the for loop is breaking right from the start, from the first second. But not completely, somehow 1 or 2 drops are flowing.
    Without these lines nothing is happening when the time is over (5 seconds from clicking the shower). Water is just flowing.
    Can someone help? How to stop the water flowing after 5 seconds and clean of the array and stage from the waterdrops?
    Many thanks in advance!
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var WatertropArray: Array = new Array();
    var WaterArea01: MovieClip = new WaterArea();
    var WaterBorder01: MovieClip = new WaterBorder();
    var timer: Timer = new Timer(5000, 1);
    var stopp: Boolean;
    var i: uint;
    Shower.addEventListener(MouseEvent.CLICK, waterFlowStart);
    function waterFlowStart(event: MouseEvent): void
                    addChild(WaterArea01);
                    WaterArea01.x = WaterArea00.x;
                    WaterArea01.y = WaterArea00.y;
                    WaterArea01.alpha = 0;
                    addChild(WaterBorder01);
                    WaterBorder01.x = WaterBorder00.x;
                    WaterBorder01.y = WaterBorder00.y;
                    WaterBorder01.alpha = 0;
                    stopp = false;
                    timer.addEventListener(TimerEvent.TIMER, waterFlowEnd);
                    timer.start();
                    addWaterdrops();
                    Shower.removeEventListener(MouseEvent.CLICK, waterFlowStart);
    function addWaterdrops(): void
                    for(var i: uint = 0; i < 100; i++)
                                   var waterDrop: MovieClip = new Waterdrop();
                                   addChild(waterDrop);
                                   waterDrop.x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                   waterDrop.y = Math.round(Math.random() * stage.stageHeight / 3);
                                   waterDrop.alpha = 0;
                                   waterDrop.rotation = -12;
                                   WatertropArray.push(waterDrop);
                                   trace("waterdrops added");
                                   moveWaterdrops();
    function moveWaterdrops(): void
                    waterDrop00.addEventListener(Event.ENTER_FRAME, waterFlow);
    function waterFlow(event: Event): void
                    for(var i: uint = 0; i < WatertropArray.length; i++)
                                   WatertropArray[i].y += 8;
                                   WatertropArray[i].x += 5;
                                   //trace(i);
                                   if(WatertropArray[i].hitTestObject(WaterArea01))
                                                   WatertropArray[i].alpha = Math.random();
                                                   WatertropArray[i].scaleX = Math.random();
                                                   WatertropArray[i].scaleY = WatertropArray[i].scaleX;
                                   if(WatertropArray[i].hitTestObject(WaterBorder01) || WatertropArray[i].x > stage.stageWidth || WatertropArray[i].y > stage.stageHeight / 2)
                                                   WatertropArray[i].x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                                   WatertropArray[i].y = Math.round(Math.random() * stage.stageHeight / 3);
                                                   WatertropArray[i].alpha = 0;
                                   if(stopp = true)
                                                   break;
                                                   trace("break");
    function waterFlowEnd(event: TimerEvent): void
                    trace("TIME OVER");
                    stopp = true;
                    stoppTrue();
    function stoppTrue(): void
                    for(var i: uint = WatertropArray.length; i > WatertropArray.length; i--)
                                   remove(i);
    function remove(idx: int)
                    removeChild(WatertropArray[idx]);
                    WatertropArray.splice(idx, 1);
                    trace("REMOVED");
                    removeChild(waterDrop00);
                    trace(i);

    thanks again, kglad.
    changed the for-loop and it is reaching now the last functions as well.
    but there is still a but  ... an error message.
    function waterFlowEnd(event: TimerEvent): void
    trace("TIME OVER");
    stopp = true;
    stoppTrue();                                                       // line 106
    function stoppTrue(): void
    for(var i: uint = WatertropArray.length-1; i >= 0; i--)
    trace("stoppTrue");
    remove(i);                                                         // line 115                                                    
    function remove(idx: int)
    removeChild(WatertropArray[idx]);                   // line 123
    WatertropArray.splice(idx, 1);
    trace("REMOVED");
    //removeChild(waterDrop00);
    trace(i);
    and the output panel gives the following (tested with 5 water drops, 5 items in array):
    TIME OVER
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at TitavannisinglisekeelneAS3_fla::MainTimeline/remove()[TitavannisinglisekeelneAS3_fla.Main Timeline::frame1:123]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/stoppTrue()[TitavannisinglisekeelneAS3_fla.M ainTimeline::frame1:115]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/waterFlowEnd()[TitavannisinglisekeelneAS3_fl a.MainTimeline::frame1:106]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    What is that error message trying to tell me?   

Maybe you are looking for

  • Problem with WRT54GS w/ SB

    Okay, well, I am trying to hook up the WRT54GS Wireless-G Broadband Router With Speedbooster, but it just won't emit a signal nor send signal through wires. Also note that I am sending a signal to this through another wired router, a BEFVP41 EtherFas

  • How to authenticate outgoing FW users by Windows group membership

    Hi, I need to authenticate all (windows) users who access the internet through an IOS firewall. Applies not only to web traffic (which is easy to do), but also to other applications (e.g. some telebanking programs, RDP sessions etc.) Basically, I nee

  • Best way to replace defective 24" iMac?  Apple Store or Phone Call?

    My new 24" iMac has a bunch of stuck pixels that cleared for a day, then came back this morning. Had it to the Apple Store and the guy was really nice and marked out all the bad pixels and said it definitely could be replaced and/or fixed for me. If

  • Going from Scene 1(jpg) to Scene 2(video)

    I have a jpg of the video on scene 1 and the linked flv file on scene 2. I want to use a play button on scene 1 and when someone clicks on it, it will go to scene 2 and start playing. I also would like scene 2 to have play and stop buttons to replay

  • Apps under "Services" menu

    I tried to use "ALL CAPS" under the services menu under the Numbers menu and I was told that it was not installed, to install it. Where do I go to find this and to install it? It shows and I'm sure I had it in a previous OS but have no idea where to