Repeat function for duplicate movieclip help please
In my game, I have a button (fireBtn) that duplicates a movieclip of a fire. I also have a button of water (waterBtn), which turns off the fire and remove the movieclip (s) dual fire. Finally, there is a button 'Reset' (reset_mc) which removes the movieclip (s) on double fire and resets all other players. Here is the code:
Creates the fire
{fireBtn.onPress = function ()}
i ++ ;
_root.fireMC.duplicateMovieClip ("fireMC" + I, i);
}
{waterBtn.onRelease = function ()}
waterBtn._visible = false;
}
Fades and deletes the fire
waterBtn.onPress = fadeOut;
function fadeOut() {}
fireMC1.onEnterFrame = function() {}
If (this ._alpha > = 0) {}
This ._alpha-= 5;
If (this ._alpha > = 100 | this ._alpha < = 0) {}
for (var j: Number = 0; j < = i; j ++) {}
{if (TL ["fireMC" + j])}
TL ["fireMC" + j] .removeMovieClip ();
}
}
}
}}}
Also removes fire and restores the waterBtn
{reset_mc.onRelease = Function ()}
waterBtn._visible = true;
for (var j: Number = 0; j < = i; j ++) {if (tl ["fireMC" + j]) {}
TL ["fireMC" + j] .removeMovieClip ();
}
}
It works fine the first time, but after using the reset double created fire fade or remove. I think it has something to do with the designation of the movieclips in double (12th line of code). I would like duplicated fires to always fade no matter how many times reset you but I don't have a clue as to how to code it. I hope this makes sense. Any help would be appreciated. Thanks in advance.
Try
{reset_mc.onRelease = Function ()}
waterBtn._visible = true;
for (var j: Number = 0; j<>
TL ["fireMC" + j] .removeMovieClip ();
}
i = 0; //<----- reset ="">----->
}
Tags: Adobe Animate
Similar Questions
-
I bought 14 items, but this is for Windows and I don't see how to download for Mac. Help, please.
Back https://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
Don't forget to click the option to open the selection window and select Mac
Purchase http://www.adobe.com/in/products/photoshop-premiere-elements.html
-
I have a problem check my code for Lightroom 6 help please, the site says code cannot be verified. I have an existing application of Lightroom 2 and I paid for the upgrade
If you purchased the version of LR 6 upgrade then when you install and run for the first time it asks you to Sign In. You must sign in with the same Adobe ID you used to buy it. Then once it's a window will appear asking for a serial number. In this window, you enter the serial number LR 6 What adobe sent you. Then once that went into a second serial number box will appear asking for a serial number from a previous version. Then you enter the serial number LR 2. Series LR 2 will begin with the same 4 numbers, 1160.
-
I am not able to use Photoshop CC, even if I paid for it. Help, please!
Hi, I just bought the plan creative cloud for $9.99 per month that includes CC Photoshop and Lightroom. I tried to launch the program Photoshop CC and he said that my free trail has expired and I need to buy it (which I've done). So I'm not understand why its not not let me use the program and asking me to pay for it, once again... Help, please
Your subscription to cloud shows correctly on your account page?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
If you have more than one email, you will be sure that you use the right Adobe ID?
.
If Yes
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
Bought a new laptop, old lost disk, was for windows XP, new laptop has windows vista. Need to hotsync my Palm of window w/vista computer laptop purchased the update for Microsoft windows and excel. But the operating system is vista. Need to drive or download to synchronize my palm tungsten T5 to vista. Cannot find compatible download tried V.6, 4 and 1. Doesn't sync gives error. Please help need my Palm as soon as POSSIBLE to the work. Please help, can email me at [email protected] or post on this Web site. I tried live help, but they do not pick up and keeps giving me an error. I have a wireless internet. 2nd question do I need be connected to an internet connection by cable or wireless OK, my computer works well with wireless so far. Would appreciate any help you can give me. Thank you so much.
I was able to know that I have a 64 bit. Any help please. I was check other blogs and will hopefully find help, but in the meantime if anyone could help I would appreciate it.
-
I can't still open PES 11 since I bought it there for weeks. Help, please.
I am posting this here because I do not get a response from anywhere, no matter who. I bought PES 11 a few weeks ago and I have even used it. I don't know even who can help me and I can not even find a phone number. I try to open 11 PES and I get this error: cannot open a file because the file is not found.
I used to use PSE 2 and it was really simple. Open and go. But this one does not even open. Please please help or let me know how I can ask for help.
There should be a directory Adobe Photoshop elements 11.0 prefs. because it does not exist, that's the problem.
uninstall the PES 11.
create that directory and make sure that he has read and write permissions.
Right-click your setup file, and then click "Run as Administrator".
-
Windows (7, SP1) update stuck looking for updates! Help, please!
My laptop Windows 7 SP1 is stuck updates. I tried many methods, including:
- Reset Windows Update.
- Empty the cache.
- Troubleshooting of Windows Update.
- Microsoft Fixit.
- With the help of CCleaner.
- Using method of command line to rename files (I think it does this).
- Factory reset.
- (And Yes - turning works again!)
- [EDIT] - I tried windows 10 setup.exe .
I need to install KB2952664 & KB3035583, before I can upgrade to Windows 10 level, but what holds back me.
Any help would be appreciated as I need to use this laptop instead of my PC soon, with me who need some Windows 10 features to work.
-Thank you
I don't think running Setup in win - 10 iso care what existing updates exist it is pretty much do a upgrade on the spot if this is the option you choose to
Personally, I'd be a new / clean installation do not keep anything for conflict with the victory-10
So this would first create a system image where you are now so that if the upgrade fails at least you can restore the image from without having to re - install the previous operating system
It is best to perform the system image
http://www.Macrium.com/reflectfree.aspx
But if the stalls and errors occur, I'd not impulsive and force the upgrade, but that's just me
If it is difficult, now waiting for the installation of win - 10 to be less than perfect.
And could be the reason for which the stall occurs = it gives you a heads up stop :)
Check the website for the computer factory.
-
Storm blackBerry Smartphones constantly repeats the loading screen! Help, please!
One minute, he was doing fine, then I pick it up and it is just repeating the loading screen (for example the white background with the black dial of the timer and place) again and again. Y at - it something I can do? I tried reset hard, but nothing! Arghhhhhhhhhhh.
Oh no, my phone would not do anything except the initial loading screen after a hard reset. At the end I had to update without backup all my stuff so I lost a LOT of things, but it's now runnign less time there never... so I guess it was my phone just say mew that it takes a little update or something. But thank you
-
I bought Creative Cloud for photographer (at least), order # 11752863659 (I have in my email). But I can't handle Plan - in my account, my order is missing. What should I do?
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
Hello?
Hello
Please check the help below document:
Quickly find your serial number
In the case of the volume license product, please visit: site Web of Adobe License | Serial numbers | Orders | Accounts
Kind regards
Sheena
-
I received a master collection of creative suites 2 for mac and the only number I see it's included is the product # or # of series. Is could someone please tell me if that is considered the product key for installation? And how do I know if it is really unused without actually installing? I am waiting to upgrade my computer before use, but do not want to waste money on this issue if there is no way of knowing what I'm buying. Thank you in advance for any answer, someone can provide...
Hello
Please see the links given: error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3
Quickly find your serial number
Concerning
Bianka Attre
-
Cannot find any info on how to create folios for surface. Help, please!
Can someone help me find the pixel dimensions my folios to be?
I also need to figure out why my folios posters will not be displayed in the library, or the names?
If there is anywhere I can find this kind of info online. I've searched and searched and cannot find any guidelines, discussions or tutorials. Have Adobe created something without no documentation for the user?
Thank you
Use the folios of 1024 x 768. This is a help article:
http://helpx.Adobe.com/Digital-Publishing-Suite/help/DPS-apps-Windows.html
-
I received a 'how to' care how do to be able to view this Web site, but it wants me to download Internet Explorer (excuse me if I say yuck!)...
If the directions state: under 'Tools', click 'compatibility view settings. Where is said to write 'add this Web site' in the Web site, then click on add and close. Close and restart.
I live on Mozilla on all my devices. I recommend it to anyone who has not yet been introduced. I cringe to think to be forced to use internet explore!
Thanks for all you do!
So I downloaded the addon. Now to set "a different useragent" I go on the site. Click UAControl options for this site? Click Custom, and then enter ' Mozilla/5.0 (compatible; ". INTERNET EXPLORER 6.0; Windows NT 5.1)"?
-
I want to use my i phone to pay for stuff. any help please
UM new to this I have bin trying to find out how to use my iPhone 5 s to pay online with my master card?
Looks like you want to use Apple pay. See the following help articles: define and use the Apple pay on your iPhone or iPad - Apple Supportand http://www.apple.com/apple-pay/
With children of 5 years, you must have a Apple Watch as well. Apple pay is only on iPhone 6 and later versions.
-AJ
-
I've been with paltalk.com 12 years earlier I had to refromat but I can't download paltalk he tells me there is a fault whaen I click run so he can download another box is to say send the whebn of problems, you click on a blue line, it is supposed to go to microsoft I think they deal with it, but I got no joy in 4 days grrrrrrr I disable my anti virus to see if there is a conflict that is killing it but not help there hope someone can put me right thanks bob Sanders
Hello
Did you try to download and save to your desktop, instead of running it > then install from your desktop?
And Paltalk has a Section of their Web site support:
http://www.Paltalk.com/support/
See you soon.
Maybe you are looking for
-
Drawing s combined arc introduced into canvas?
Hello I'm working on an HTML5 canvas game, where some areas need to be stretched connceted in sort of a "blob" of circles. The code to draw using im looks like this, and an example can be found on github: https://github.com/JRIE/connect The error is
-
Satellite X 200-can I set my FSB 667 t5450 at a FSB 800 t7100?
I'm not finding much about the specifications of the mobo and the capacity to my X 200 - FG1. The 1.66 GHz cpu isn't great and I would like to ask in a T7100 1.8 / 2 m / 800 I have the laptop of the other party. I can't find info on the question if t
-
You are trying to add my icloud email eprint but do not know what parameters to useCalled apple and they suggest that I have contact HP
-
My DeskJet 3845 has stopped working. When you try to print, I get a message... "is in error state". I replaced the color and the blackcartidges but without result. Ditto with the re-boot and remove and then reinstall the device. My devices of
-
What is the best way to stream from one Panel to the next?
I am writing a LabVIEW application that uses two monitors of different sizes on the same computer. I have to listen to four data channels of 100 Hz for a main VI to its front panel as a second front on another monitor. My options: 1. the easiest way