Stopping a movie generating shapes

Hi.  I'm hoping someone can help me stop this.  Any help getting this thing woring would be much appreciated.  The code comes from this site:
http://www.pixelhivedesign.com/tutorials/Realistic+Flash+Smoke+Effect/
He creates a movieclip called aPuff and then gives the movieclip an identifier of aPuff as well.  It generates a smoke-like effect which is really nice; however, I'm wanting to get it to stop at some point...preferrably by allowing the last puff to go up and fade out.
How can I accomplish that?
Thanks again.
// Realistic Smoke Effect - www.pixelhivedesign.com
fadeSpeed = 1;    // Smoke fade speed.
floatUpSpeed = 2; // Smoke float up speed.
// Every frame attach a puff of smoke.
this.onEnterFrame = function(){
  // Get next available depth.
  d = this.getNextHighestDepth();
  // Attach a puff of smoke.
  aPuff = attachMovie('aPuff','aPuff'+d,d);
  // Set initial scale to 10%.
  aPuff._xscale = aPuff._yscale = 10;
  // Put puff where the mouse is. (add small random)
  aPuff._x = Math.random() * 5;
  // Randomizes the starting animation for realism.
  aPuff.gotoAndPlay(Math.round(Math.random()*20));
  // Smoke will animate each frame.
  aPuff.onEnterFrame = function(){
    // Scale smoke up.
    this._xscale = this._yscale += fadeSpeed;
    // Fade smoke.
    this._alpha -= fadeSpeed;
    // Smoke floating up.
    this._y  -= floatUpSpeed;
    // When smoke is 100% scale, remove it.
    if(this._xscale >= 100){
      this.removeMovieClip();

use
delete this.onEnterFrame
when you want to stop creating new puffs.

Similar Messages

  • Stopping a movie at a certain frame dynamically

    I have a picture gallery that uses a simple go to next frame
    when the button is pushed, and images are dynamically loaded into
    the flash shell, I want to set a text file variable to stop the
    movie from going any further, just disenabling the button function
    or??
    thanks

    sorry..
    i think what u are telling me is correct..
    i will try it and let you know..
    the movie is in frame 1 and after the movie is done i do want
    it to move to frame two like u said above, which i will use the add
    _parent.play();
    i tried using add_parent.play(); but it didn't work
    here is the code i am using to scroll the window so it looks
    like the window is moving along a line...
    onClipEvent (load)
    xcenter=150;
    speed=1/10;
    onClipEvent (enterFrame)
    var distance=-xcenter;
    _x+=(distance*speed);
    add _parent.play();
    this is what my flash file looks like.. it;s just an example
    i drew up really quick.. what it does is that the line travels
    through the white box and when the line comes to an end i want it
    to move to the second frame and contiue the tween in frame 2.
    make sense?
    Click
    here to see the screen shot

  • When I move a shape or text in Photoshop, the dimensions/size changes. How do I fix this? ex) moved a 20px x 40px rectangle, and rectangle's dimensions changed to 20px x 40.16px.

    When I move a shape or text in Photoshop, the dimensions/size changes. How do I fix this?
    It's always a decimal point too.
    ex 1) moved a 20px x 40px rectangle, and rectangle's dimensions changed to 20px x 40.16px.
    ex 2) moved a 124pt text to the right (Shift + arrow right a few times) and text changed to 14.06pt.

    When I move a shape or text in Photoshop, the dimensions/size changes. How do I fix this?
    It's always a decimal point too.
    ex 1) moved a 20px x 40px rectangle, and rectangle's dimensions changed to 20px x 40.16px.
    ex 2) moved a 124pt text to the right (Shift + arrow right a few times) and text changed to 14.06pt.

  • Can I set default colors for generated shapes in Premiere Pro CC?

    I'm working on some highlight video where I need to generate an ellipse on each clip to highlight a player. I'd like to use a yellow/yellow, 20% softness, 8 thickness ellipse each time, but by default PP gives me an ugly green/blue combination, and I have to change the inside/outside colors, softness and thickness each time I add a clip and generate an ellipse.
    Is there a way to set a default inner/outer color, thickness, and softness setting for each new generated shape so that I don't have to keep repeating these steps?

    If you are using the Title Designer to generate your ellipse, and if I understand what you want, the answer is yes.
    Unless I am completely off-base, your default font style below the title has the colors of that ugly green/blue combo.
    You can easily just set the ellipse the exact way you want it, and then go into the Font Styles menu and create a new font style. Give it a unique name like "Ellipse" and then drag that new style from the end up to the beginning of the list. (Upper left hand corner).
    I created an ellipse using a greenish yellow, rather unattractive color for both the shape and the stroke. I used a higher opacity because it shows up better in the screen shot, but I could have set it for 20% easily enough. I then went to the styles menu, created a new style, gave it a name, then went to the last style and dragged it up to the top left where you see it now. You have to look close.
    It is not particularly obvious that the shapes are based on the font style just as much as the text is.

  • Making a stop motion movie with stills. Please help!

    I have a question for someone really smart:)... I am making a stop motion movie on imac with still photos.  when i select a photo from iPhoto, and add it to the imovie project, it is adding multiples of each picture and i have NO idea why.  I dont know if i changed a setting somewhere or what.  This simple project went from fun to frustrating pretty quick.  Any help is GREATLY appreciated.  Thanks in advance.

    Hi
    I would - to test and get project going
    • Start a New User account (Apple  Menu - down to System preferences / Accounts)
    • Log out and into this
    • Now test iMovie and see if all is OK
    If not - the problem might lay in iPhoto photo-library - To try to mend this - YOU NEED TIMES - lot's of times - did it Yesterday > 8 hours !
    When nothing but Mac OS is up and running
    • Keep alt+cmd-keys down - During Full Up-Start of iPhoto
    • Now You get a Menu
    • Select all options
    • KEEP Mac connected to Power-Mains as if lap-top battery might not last the full process
    • Have a nice day / book or whatever - as this will take long long time !
    Yours Bengt W

  • How to stop rented movie to download

    Rented a movie.   Not enough space on ipad for it...  Used apple tv insted... But cant stop the download on ipap...   So now ipad memory is blocked for the movie...    Need help to cancel the rent/download on the movie....

    I tried a test to see if I could stop a movie download, and I was able to do so.
    From the store, under downloads in progress, it shows a 1 in red with an arrow.  I tap on that and it shows the video in progress.   In the bar above it shows EDIT.    Tap on EDIT.   It now shows a circle and if I tap that it gives me the option to cancel.   It then shows a confirmation to delete the download in progress.
    See if that works and holler back...

  • HT200047 when watching a movie sub titles keep popping up and wont go away unless I stop the movie and restart it.  I have sub titles and closed caption off but it still comes up.

    dont know what to do. When watching a movie, closed caption comes up and it wont go away unless I stop the movie and restart it.  Closed caption and sub titles are off but still comes up.  I restored my apple tv to factory settings to see if that would stop it, but it didn't work still comes up. What can I do?

    Hi,
    I suggest you try the steps in this thread for test:
    Disable Suggested Sites does not work.
    http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/disable-suggested-sites-does-not-work/4ba064b1-1c6e-43f1-939e-2db1d335b2ef
    Regards,
    Vincent Wang
    TechNet Community Support

  • Apple TV stops during movie.....

    Last Thursday I downloaded from iTunes the movie TRON. I was watching it using iTV when about an hour into the movie it just stopped. The movie was fully downloaded. During my troubleshooting on my computer the TV screen went to screen saver and it brought up my photos as usual.
    Since Thursday I have tried everything I can think of and found on the troubleshooting page, but to no avail. Computer, iTunes and iTv are all up to date. iTv has been restored. iTV recognizes my computer for I see the name of my library but that about it. After I restored iTV I no longer see my photos on the iTV screen saver. The message I keep receiving on the TV screen goes something like this: Apple TV can't find the library. Make sure you are on the same network and turn on home sharing". I have only one network and iTV confirms the network as well as showing a strong signal strength. Home sharing is turned on in iTunes and iTV as well as photo sharing.
    Any ideas? It would be appreciated....

    Ok, problem solved. ATV now works as advertised.
    One of the first things I did when this problem arose was check my computer settings, including my anti-virus software VIRUS BARRIER. In VB I made sure that all firewalls were down and all data entering and leaving my computer was set to "no restrictions" and nothing worked. VB is set to download updates automatically. Apparently when this issue started it updated the program during the movie play thereby doing something to stop the movie from playing and my library not to load. Yesterday I went back into VB and noticed a master ON/OFF switch that was set to ON. I turned it off and once I did that my library was able to load and I am back in business. I could swear I never saw that switch before for I have had VB for over 2 years. Guess it was just one of those things I just overlooked.

  • Stop motion movie

    I'm planning on making a stop motion movie. We've been brain storming a couple ideas and we have some in mind. I was wondering if anyone had any ideas for a stop motion movie, or even a regular movie. Our best idea so far was two people skateboarding but with out skateboards. Each one would be trying to out do eachothers tricks. Does anyone have any ideas. We would give you credit in the movie. just so you know were not some kids that don't know what we're doing, we've won 2 contest so far and many more to come.

    Hi y
    Probably on the wrong track but what comes first to my mind is:
    - iTunes
    and here there is a podcast: Brick-films (or Brick movies)
    stop motion with Lego™ blocks.
    Yours Bengt W

  • Making a stop motion movie

    Hi, i've recently shot a stop motion movie. I have transferred the pictures into Iphoto, and opened them up in Imovie, but when i try to add them with a 0:03 frame rate via the photo settings, it does nothing! HELP!

    You could save a lot of time (no imports into iPhoto or iMovie) by creating your video using a dedicated stop motion software app.
    You could also upgrade QuickTime Player to "Pro" ($30) and use the import Image Sequence to build the video. It takes only a few minutes.
    Export this file as DV Stream (or not) and you can use it in iMovie to use its features (titles, transitions and effects).
    iMovie is a DV editing app. Any file format other than .dv will be converted to it.
    You're working with image formats and you may not even want the conversion to "video".
    Tell us the destination format you want to implement and we can help you decide the best course.

  • HT1657 I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my

    I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my iPhone.

    I just rented a movie today, and finished it. But now I can't find it. People say that it is in the Purchase, it's not there

  • I downloaded a movie to my ipad, when synced with computer, the computer is now also downloading the movie. why? and how do i stop the movie from being downloaded again

    i downloaded a movie to my ipad, when synced with computer, the computer is now also downloading the movie. why? and how do i stop the movie from being downloaded again

    Do you not want a backup of the iTunes content on your computer in the event the iPad is lost, stolen, or simply fails?

  • How can i stop my movie for 5, 6 or 7 seconds?

    how can i stop my movie for 5, 6 or 7 seconds in actions scrip 2.0 or 3.0

    Look at using a stop(); command followed by a setTimeout() function call that ends up calling a function that executes a play command...
    stop();
    var stoID = setTimeout(startAgain, 5000);  // 5000 milliseconds
    function startAgain(){
         play();

  • Any one know how to stop iTunes movies from playing menu music when movie is paused?

    Anyone know how to stop iTunes movies from playing menu music when the movie has been paused?

    JourneyMan24 wrote:
    Anyone know how to stop iTunes movies from playing menu music when the movie has been paused?
    Can't. This is done for the individual movie, not by iTunes.
    Some have it, most don't.

  • How to stop my movie by using stop(); but keep my buttons working

    Hi,
    Im making a website using flash,
    And on my movie it says Welcome to Blah Blah Blah,
    And then a button appears, To make sure my button works,
    The writing turns to bold and goes bigger,
    When the button appears it works and goes bigger,
    Until it reaches the point in the timeline where it has stop();
    It stops my movie from looping or restarting which is what i want,
    But it stops my buttons from working aswell, How to keep my button working but movie stops,
    If you want me to explain more just ask

    Nevermind i have fixed this,
    But are still needing urgent help on one thing,
    http://forums.adobe.com/thread/456310?tstart=0

Maybe you are looking for

  • Parameters from midlet to servlet

    Hi all, i have been trying to pass values from MIDlet (setRequestProperty(); ) and to servlet (request.getParameter();). but when i tried to print out the value, it just contained NULL value. I had a look at the java forum website, there were plenty

  • E71 Asking Date and Time after a restart

    Hi, Yesterday when I connected my E71 with Ovi PC Suite, it prompted me, I have a phone firmware update available and unfortunately I clicked on update, the phone was updated in 15 mins but now a weired problem is happening whenever I restart the pho

  • Controlling external flv with ActionScript

    I'm using the NetStream Class to control the playback of an external flv. I've got a Pause/Play button using .pause, and Fast Forward and Rewind buttons using .seek. What I want to do is once the video is done playing to automatically reset back to t

  • Jstl tag mannual help

    Hi all I am a php programmer but not new to java techlology but i am a new learner to jsp and j2ee though i understand most of the tags and code. So can anyone please tell me where can i get the the best help or list of tag mannual files in pdf or ch

  • I have had mi iphone for 3 weeks and got it wet, will apple replace it

    i have had my iphone for 3 weeks and got it wet, will apple replace it