Trying to get this code to work

So, I'm doing of smoke and I love the looks in a way I found online. However, I guess it was made in an earlier version and a part of the code is no longer supported with the version that I use with CS3 is.

I hope this is the right forum for this.  If this isn't the case, please redirect me.  Any help getting this thing woring would be much appreciated.  The code is from this site:

http://www.pixelhivedesign.com/tutorials/realistic+Flash+smoke+effect/

He creates a music video called aPuff and gives then the movieclip an aPuff identifier as well.  It seems that identifiers are no longer used in CS3.

// ------------------------------------------------

Realistic smoke effect - www.pixelhivedesign.com

// ------------------------------------------------

fadeSpeed = 1;    / / Smoke fade speed.

floatUpSpeed = 2; / / Smoke float speed.

Each base come settle a cloud of smoke.

ce . onEnterFrame = function() { }

/ / Get the next available depth.

d = ce. getNextHighestDepth ();

/ / Join a cloud of smoke.

aPuff = attachMovie()"aPuff","aPuff"+ d, d();

/ / Set the initial scale to 10%.

aPuff. _xscale = aPuff. _yscale = 10;

/ / Put puff where is the mouse. (Add little random)

aPuff. _x = Math. randomly () * 5;

/ / Makes random animation departure for realism.

aPuff. gotoAndPlay (Math. tour (Math. randomly ()*20));

/ / Smoke will animate every frame.

aPuff. onEnterFrame = function() { }

/ / Scale cigarette smoke

this. _xscale is this. _yscale += fadeSpeed;

/ / Stale smoke.

this. _alpha = fadeSpeed;

/ / Smoke floating upward

this. FLF = floatUpSpeed;

/ / When the smoke is 100% scale, remove him

if (this. ( _xscale > = 100) { }

this. removeMovieClip ();

}

}

}

When I run the present in CS3, I get a list of errors. I am super new ActionScript.

Thanks again.

Wrong forum.  In other words not code AS2, AS3 (CS3 can work with).  Since you say you found a lot of mistakes, you probably have settings in the publication file configured for AS3.  If you change to AS2 code might work.

Tags: Adobe Animate

Similar Questions

  • When trying to update, I get this code 0x8024400A. I tried all the recommended fixes.

    When trying to update, I get this code 0x8024400A.  I tried all the recommended fixes.

    Hello

    (1) what is the description of the update that does not happen?

    (2) what are the troubleshooting steps you tried to solve the problem?

    I suggest you try the steps from the link below and check if it helps.

    http://support.Microsoft.com/kb/836941

    Hope this information is useful.

  • tried for three days trying to get this working and I've already tried some of the suggestions forum and it's just to try... so happy I don't have pais nothing yet. I get out the signed loop no matter what I try

    tried for three days trying to get this working and I've already tried some of the suggestions forum and it's just to try... so happy I don't have pais nothing yet. I get out the signed loop no matter what I try

    While in have you really tried? It's the standard solution, and it works in all cases that I have heard (including mine). Just rename the file, and a new one is created on the next launch.

  • Satellite L300: problems trying to get the CD player work

    Currently, I have a Satellite L300 unit and have problems trying to get my CD drive work.

    Recently, I deleted the cd player, completely by chance instead of a printer.
    Now it won't reinstall and no update driver makes no difference.
    Anyone have any ideas?

    First of all, try to restore Windows back to a Restore Point prior to a date before the problem occurred. System Restore is in the start menu-> programs-> Accessories-> system tools

    Then try to remove the CD/DVD filters in the registry, and then restart. Windows should find the CD Player automatically, unless the registry has been messed up.

    When the associated CD/DVD (such as iTunes, Nero, virtual CD software), the software is installed, they install filters in the registry, which can cause compatibility problems.

    (1) run Regedit (start-> Run-> Regedit)
    2) navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}
    (3) in the right pane, delete the "UpperFilters" key and delete the key "LowerFilters".
    (4) restart.

    If your CD/DVD programs stop working, you will need to reinstall them (preferably with an updated version).

  • HP pavilion g6: I get this code after pressing bios password three times. 78120018

    I get this code after pressing bios wrong password three times. 78120018

    @Wastur

    Enter 67888038

    Kind regards

    DP - K

  • I have a joystick sidewinder force feedback2, is anyway that I can get this controller to work in Windows 7?

    I have a joystick sidewinder force feedback2, is anyway that I can get this controller to work in Windows 7?

    According to the Compatibility Center, your joystick is not compatible.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=hardware&s=%20force%20feedback2%20sidewinder&page=2&OS=32-bit

  • When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    Thanks for the Email, the problem is solved now. Please do not hesitate to contact in the future.

    Concerning

    Baudier

  • Help please! Im trying to get my menu widget work

    Hello im trying to get my menu widget work. It is a required simple page for www.allgen.co.uk. the site is the only House of two pages and contact us. I added the widget to the main master page, and then I downloaded by ftp on my server. the menu does not work on the website or on the preview or if you preview site in the browser.

    If you preview page (master page) then it does work but not you get an overview of the home page or the contact us page?

    I would really appreciate the help

    Just checked what happens if the menu was in the footer box and he works there, but I'm not there

    Post edited by: Gavalar

    Hello

    The Image that you used in the homepage is overlaid with menu so menu gets behind the frame and becomes idle.

    Please check the content of the page if they overlap with menu such as menu goes behind the frame.

    Thank you

    Sanjit

  • I get this code erro 0xC004F035 trying to activate my windows need to I do

    I get this 0xC004F035 error code when you try to activate my windows 7 Enterprise 64-bit, what should I do?

    Some Windows 7 Enterprise distributions either use a MAK or KMS activation method.

    KMS requires that you connect to your local network by opening a session on a Windows Server domain or a VPN to activate. Reactivation is required every 180 days.

    If you have received a MAK license, then you can try the activation of the phone:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

    Probably, you will need to contact your system administrator for assistance.

  • Trying to get the Brazilian keyboard work with Windows 7

    I just got a new computer with Windows 7, and I'm trying to get a Brazilian keyboard to work with her.  My old computer has XP, and this same keyboard worked fine.  I created another one for when I was using this keyboard, and he'd let me use all the keys (I don't remember what was the keyboard layout I used).

    When I try and configure it with Windows 7, however, there is no keyboard layout that corresponds to my layout.  ABNT and ABNT2 options are similar, and both are missing two key.  My keyboard has the-to the left of the z and the / right of;  Is there an error with the way Windows 7 has implemented one of these keyboards?  Thank you.

    I just bought a windows 7, but before the case was made I said guys from dell, I needed a computer with Brazilian keyboard. also i paid 50.00 dollars more and they have installed the software to change the language of the computer to the Portuguese. Here's the deal, professional window 7 or windows Ultimate edition, you will have the layout and language... to make it work perfectly. Now if you want to get the layout of the keyboard and language on the regular windows 7 all you have to do is go to microsoft.com and download it. hope it will be useful. you will need to find a way to use the keyboard, codes may be an exercise. but in a day or two, you'll discover. Remember to make all updates as soon as you buy a computer. After you set your PC and all new updates start popping up, just download each important updates. all this information was passed to buy me no one selling Dell.

  • How this code would work?

    Hello

    I have this code in a form and it works correctly, I do not know how? because I tried after you modify, delete the quotation marks and parentheses, it does not.

    SET_BLOCK_PROPERTY (NVL ' of the 'TTO_TICKETTRAVELORDERDETAILS, DEFAULT_WHERE,' (STATUS, "$$ # & & & &") = NVL ("' |: CONTROL.)) STATUS | " (', NVL (STATUS, "$$ # & & & &"))

    AND IS_TOUR = "N"

    AND EXISTS (SELECT "X"

    OF TTO_ORDERDETAILSROUTES T

    WHERE T.ORDERDETAILID = TTO_TICKETTRAVELORDERDETAILS. ORDERDETAILID

    AND NVL(CARRIER,''$$##'') = NVL ("' |: CONTROL.) CARRIER: "', NVL(CARRIER,''$$##''))

    AND NVL (CLASS, "$$ & &") = NVL ("' |: CONTROL.) CLASS | " ((', NVL (CLASS, "$$ & &")))

    AND EXISTS (SELECT "X"

    OF TTO_TICKETTRAVELORDERHEADER H

    WHERE H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND STATUS = "Post")

    AND EXISTS (SELECT "X"

    OF TTO_TICKETTRAVELORDERHEADER H

    WHERE H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND TO_CHAR(ORDERDATE,''DD-MM-YYYY'') BETWEEN NVL ("' |: CONTROL.) FROM_DATE | " (', ORDERDATE) AND NVL ("' |: CONTROL.) TO_DATE | " (', ORDERDATE)

    AND NVL(H.CUSTOMER_NO,''$$##@@@'') = NVL ("' |: CONTROL.) CUSTOMER_NO: "', NVL(H.CUSTOMER_NO,''$$##@@@'')))');

    After editing it and try in the pl/sql developer, he could not identify the TTO_TICKETTRAVELORDERDETAILS. ORDERID

    and TTO_TICKETTRAVELORDERDETAILS. ORDERDETAILID

    in the condition "Exists".

    SELECT

    t.*,

    t.ROWID

    Of

    TTO_TICKETTRAVELORDERDETAILS t

    WHERE

    NVL (STATUS,' $$ # & & & &') = NVL (", NVL (STATUS,' $$ # & & & &'))

    AND IS_TOUR = N

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_ORDERDETAILSROUTES T

    WHERE

    T.ORDERDETAILID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND NVL(CARRIER,'$$##') = NVL (", NVL(CARRIER,'$$##'))

    AND NVL (CLASS,' $$ & &') = NVL (", NVL (CLASS,' $$ & &'))

    )

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_TICKETTRAVELORDERHEADER H

    WHERE

    H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND STATE = 'Post'

    )

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_TICKETTRAVELORDERHEADER H

    WHERE

    H.ORDERID = T.TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND ORDERDATE BETWEEN NVL('',ORDERDATE) AND NVL('',ORDERDATE)

    AND NVL(H.CUSTOMER_NO,'$$##@@@') = NVL (", NVL(H.CUSTOMER_NO,'$$##@@@')));

    Why?

    If you do not give the table in the outer query an alias then you reference with the full name.

    3. ??

  • I have a problem installing creative cloud creation. I get this code U44M1P5; what it means?

    I have a PC with Windows 10. Each update works except first and it gives me this U44M1P5, that is not an error in the error code I've seen on the Adobe Web site (it is possible that I looking in the wrong place; I find the Adobe website a little intimidating to navigate). Any comments would be useful. Thank you!

    Jaime

    Hi Jaime,

    U44M simply indicate that an update has failed. Are you sure that the error code was U44M1P5? More generally, we see U44M1P7, which you can read here: Installation failed. Error U44M1P7 | Updates. Nevertheless, the steps of troubleshooting in this document can solve your problem.

    If you need further assistance, please respond to this discussion.

    Best,

    Del

  • How can I get this code to block a police

    Hello

    I want to know how to get the definition of a font (TrueType), I found a block of code, and I assumed is the definition of the police in a PS file. Is this right?

    I added the part of the code, to explain myself better.

    $_FONT_ARIALMT = "% BeginResource: police ArialMT"
    Start ct_CffDict %
    %! FontType1
    dict 16 start
    / 15 FontInfo dict dup begin
    / Notice (Copyright (c) 1991, 1993, 1996, 1997, 1998, 1999 Adobe Systems Incorporated.  All Rights Reserved.Arial is a trademark of the Monotype, registered company in the patent and Trademark Office and elsewhere). def
    / version (001.001) def
    / Def FullName (Arial MT)
    / Def FamilyName (Arial MT)
    / Def (regular) weight
    / ItalicAngle 0 def

    How to get these lines, but another TrueType font?

    Thanks a lot for your help.

    "You find them in the files of fonts Adobe Type 1 with extensions of. PFB.

    It seems that you embed fonts in your application, and you will probably need decrypt and insert the entire PFB in your PostScript file, unless you have a mechanism to match the header with the rest of the file for a single reason.

  • Everyone says that Firefox is 100% open source. But what I want to know where to get this code because I have a few tweaks I want to do.

    Where can I find the source code?

    Hello kringga, for documentation on how to work with the source code, please see the resources of mozilla to developers: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code

  • How can I get this script to work with Firefox?

    This 'go to the top of the Page"button does not work with Firefox 5.0.What do I have to do to make it work correctly?

    Handwriter you actually use Firefox 3.6.13 based on your useragent (look at the end, not starting). Mozilla/5.0 is on all versions of Firefox. Firefox 5.0 won't come out for a while yet as 4.0 has yet to be released.

Maybe you are looking for

  • How (re) - add Apple keyboard to Bootcamp (Windows 7)

    Hello, I've been running bootcamp windows 7 on iMac no problem for two years.  It was wired apple keyboard (w / numeric keypad).  Today it suddenly stopped working.  It does not show as one of the screen "devices."  I plugged on a MacBook, work very

  • Is there a way to disable the sidebar

    My finger touches the side by chance often, and he interrupts my current application when it slides open. I was wondering if there is any way I can disable it? It has applications such as mail, calendar, clock, etc.

  • Helmet on 8700 XPS does not

    When I plug the headphones to one of the sockets on the windows XPS 8700 acknowledges that a device has been plugged on (or disconnected) the audio jack, but no device appears on the control panel "Sound".  (he has 2 NVIDIA unused inputs and speakers

  • There is no communication between devices that are connected to the Linksys WAP4410N Wireless access point?

    Hi all I have deployed the new Linksys WAP4410N Wireless Access Point and it works fine. Laptop which is connected to the AP may be able to access the internet. It can communicate with AP and also the gateway IP (IP Router) but it is wireless devices

  • 7510 slow to print printer

    My new HP Photosmart 7510 is extremely slow to print.  Way slower than the 6510.  Why is this?  On my computer it shows often feel to the "idle"... forever.  Is just like that? Thanks for any thoughts. Pat