Need help to play some framing...

I have a code that allows you to run through the scene a character. Once this character hits another character I want the character to play a specific image, then return to the place of beginning which is frame 1. I can get the character to run across the stage with a collision detection but is unable to play the part. Any help will be appreciated. Thank you.

I use the below to try to get what I want. I get all my tracks, but not the clip.

[AS]

function onEnterFrame(event:Event):void
{
If (player.hitTestObject (enemy2))
{
trace ("collision detection");

var player_attack_mc2_cd_boolean:Boolean = true;

Attack of mc2
If (player_attack_mc2_cd_boolean is true)
{
player.gotoAndStop ("player_attack_mc2");
trace ("Attack");
var player_attack_mc2_boolean:Boolean = true;
}

If (player_attack_mc2_boolean is true)
{
player.gotoAndStop (1);
trace ("goto frame 1");
}
}
}

[/ ACE]

use:

player.gotoAndPlay ("player_attack_mc2");

Tags: Adobe Animate

Similar Questions

  • BlackBerry Q5 needing help, Q5 plays up

    I don't know what I did to my Q5

    but every time I hit something that will be a woman's voice saying 'touch message text' or 'world blackberry button' etc. of things like that and he isn't going anywhere, I don't know how to use it.

    about the screen is UN-clickable.

    need help, I tried to understand try it for 15 minutes, I can't do it, it makes me nutss

    Thank you.

    Is your screen reader enabled.

    Touch the button to power on three times quickly to turn it off.

    You should hear "screen reader turned off.

    Then, go to settings > accessibility > screen reader and disable competely.

  • 251. 014 l: need help looking for some drivers

    Dear expert HP,

    I decided to install win7 ultimate 64-bit week last on my desk (251 - 014-l)

    and I had trouble finding the 3 drivers...

    1. network controller

    2. SM Bus controller

    3. USB controller

    any help will be greatly appreciated

    Thank you!!

    Hello:

    You need these drivers...

    SMbus: Install this driver first and then restart.  2nd file on the list, it's the auto install file.

    https://Downloadcenter.Intel.com/download/20775/Intel-chipset-device-software-INF-Update-utility-

    Network controller (wireless card):

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=6943827&swItemId=ob_145419_1&swEnvOid=4058

    USB3: Download, unzip and run the file setup.exe from the link below.

    https://Downloadcenter.Intel.com/download/22824/USB-3-0-driver-Intel-USB-3-0-Extensible-host-controller-driver-for-Intel-8-9-100-series-and-C220-C610-chipset-family

    You'll also need the bluetooth driver for your PC wireless card model has...

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?swItemId=ob_155436_1

  • Downgraded to Windows 8 and need help to find some drivers

    I used Windows 8 for a few months and was starting to get used to it, until the 8.1 came. Long story short, I have downgraded to Windows 7 Pro and now I miss some drivers that Windows can not find via the troubleshooter.

    I have a HP p6-2378 and the drivers that are missing are for:

    SM Bus controller-

    -Controller universal Serial Bus (USB) (x 2)

    I searched on the site of HP, which said that they do not support Win 7 for my motherboard, and the MSI (which manufactured the mobo) website which did not come with anything.

    If someone could help me, I would be eternally grateful. Thanks to anyone who responds!

    Hello:

    Download and install the amd chipset drivers and restart.  You want the first file on the Web page.

    http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2064

  • Hello! Need help! HP DV7-3065DX need help to play Blu - ray DVD

    Hello

    I think I posted earlier today and would like someone to help me a lot.

    Have had my HP DV7-3065dx for a few months.

    Used and upgraded to 8 GB of Ram.

    Short great regarding everything except just now, I can't watch Blu - Ray DVD.

    I was able to watch a DVD Blu - Ray all along until a few days ago.

    Now he would not play any DVD Blu - Ray it has played before.

    It will however, play regular DVDs.

    Everything seems to work, but this problem.

    I have windows 7, 64 bit, 2.4 ghz

    Have cleaned the optical lenses, but nothing helped.

    Having executed all downloads for HP and all that WELL said!

    All driver downloads should be current.

    Have heard of this problem a little bit after reviewing the discussions today with other systems.

    Please help me.

    Thank you

    Mike

    Hi Cheryl,

    While I was waiting on someone, I read a blog about my problem.

    The very smart owner of HP computer laptop nice posted two Web sites to go, download.

    I read the post further and found one of the two did not work.

    The other is!

    One who did was file SP50778 ~ ~ ~

    I tried it and it worked! Can explain you what I was doing and why it worked? What is the download as this address worked! I have to go back somewhere and find now.

    I would like to see other people to read through blogs and save yourself a lot of time trying things when you can read the reviews before of the hand and still know what works, based on the dates of blogs.

    Once again, I read your response and am happy that you me sent a response, but it would be really nice to know why these things happen and what I can do in the future for this and other issues.

    This problem will occur again if I download things like apps and others?

    Not sure if your leadership would have worked. Can you explain on SP50778 and give me a little more education.

    Thank you very much!!

  • Need help to play 2 SWFs in order

    I have two SWF files I want to play in sequence, using a third of SWF (that has nothing outside of this code). It must be simple – play the first, wait for his screenplay to the end, and then play the second. Problem is I can't get the timeline to wait.

    To load the first movie in frame 1, I have this, which works:

    this.createEmptyMovieClip ("mcHolder", 1);
    var oListener:Object = new Object();
    var mclLoader:MovieClipLoader = new MovieClipLoader();
    mclLoader.loadClip ("first movie.swf", mcHolder);
    mclLoader.addListener (oListener);

    10 frame, I would like to unload the first, then load the second. This happens, but without waiting. Here's what I have so far:

    Stop();

    If (_level1.currentFrame == _level1.totalFrames) {}
    first film of unloading
    mclLoader.unloadClip (mcHolder);

    now load the next film
    this.createEmptyMovieClip ("mcHolder2", 1);
    var oListener2:Object = new Object();
    var mclLoader2:MovieClipLoader = new MovieClipLoader();
    mclLoader2.loadClip ("second movie.swf", mcHolder2);
    mclLoader2.addListener (oListener2);

    }

    I guess there is something wrong with my if statement, but what?

    It is not necessary to unload IF you load into the same target movieclip or same level. I load in the same level (_level1).

  • Need help to play XP on Vista PC games

    Hi all, I have a few games for children PC for XP and now all of my computers running Vista.  Is it possible that I have Vista as XP games or not?  Thank you

    Hi phariah,

    Welcome to the Microsoft Answers community.

    Add to that Kevin J Baird says you can try the steps below.

    You can check the compatibility of games with vista using the link below.

    http://www.Microsoft.com/Windows/compatibility/

    You can also try to run your game in XP compatibility mode by using the procedure below.

    1 right click on the program icon, and then click Properties,

    2. click on the compatibility tab.

    For more information visit http://windows.microsoft.com/en-AU/windows-vista/Make-older-programs-run-in-this-version-of-Windows

    You can also run the XP Virtual Machine on your computer by downloading the link below using Virtual PC 2007.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=04d26402-3199-48A3-afa2-2dc0b40a73b6&displaylang=en

    For more information visit http://windows.microsoft.com/en-AU/windows-vista/Virtual-PC-2007-Run-multiple-operating-systems-without-multibooting

    Hope this information is useful.

    Let me know if it worked.

    Thank you, and in what concerns:

    Umesh P - Microsoft Support

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • I want to return a plug-in, I accidentally deleted.i to play online snooker.can someone at - it need help please?

    I want to return a plug-in, I accidentally deleted.i to play online snooker.can someone at - it need help please?

    Hello

    1. What plugin you are talking about?

    2. on which site Web you are trying to play the game of billiards online?

    3. what web browser do you use?

    4. how exactly did you uninstall the plug?

    Plug-ins are provided by third-party providers, you can try to load the game of billiards and verification that branch is needed.

    Please come back with more information on the issue so that we can help you better.

    You can also visit the link of the article of Microsoft that will guide you on how to ask questions below.

    Suggestions for a question on the help forums

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

  • I tried to play some movies that I downloaded, but it says that I need the right codec to play.

    Original title: watch videos on media player

    I have an old computer for my son with XP on it. I tried to play some movies that I downloaded, but it says that I need the right codec to play. How can I fix that I can watch these videos?

    Hello

    1. what version of windows media player do you use?
    2. what type of media files are they?

    Check the following article to see if these files are supported by the Windows media player installed on the computer. If these files are not supported, then you will need to download the third-party codec to play.

    Information on the types of media files that supports Windows Media Player
    http://support.Microsoft.com/kb/316992

    THIRD WARNING:

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For more information:
    How to Download Codecs automatically in Windows Media for Windows XP player
    http://support.Microsoft.com/kb/291818

  • Need help to take down the netkey password so I can get some things, he won ' t let me in.»

    Original title: Netkey

    I need help for the netkey password so I can get some things, he won ' t let me in..

    We can't really help a lot with that here, but you can contact the company that makes NetKey here:

    http://www.NCR.com/contact-us

    They can help how to use them (or remove) their system.

  • I have the windows product key sticker, but some of them are deleted. I really need help to send a photo to show him what it's like.

    Original title: product key

    Hello

    I have the windows product key sticker, but some of them are deleted. I really need help if I can send a photo to show him what it's like. I formatted my laptop and he asks the authentic copy. I really need help coz 2 days left to activate.

    Thanks in advance

    Best regards

    You can extend the activation period of 30 days by running slmgr /rearm since the Admin command prompt.

    Then take a picture of your COA sticker with your phone, blow as large as possible to try to detect all the characters input for Activation.  You can also use a magnifying glass.

    If you can not use the key to product then you will need to either the order of the restoration of the factory of the manufacturer of your PC media, or if you have a C:\windows.old folder you can try to reinstall the factory to SLP activation file.  However we do not support this so you will need to search on your own.

  • My PC freezes when I play some MKV videos! Help

    Hey there, my pc freezes when I play some of my videos mkv on Windows Media player, and the strange thing is that it does not freeze on all of them... as they all play normally on the VLC Player... but the thing is I like media suite player... so please try to help me out here...! What could be the problem?

    Yeh some videos also open in divx but do not play... and just opened and you can fastforward and stuff... but it does not play! Please whats goin? :\

    I have windows 7 x32bit

    k lite full codec installed

    DivX player and its codecs

    2 GB of ram

    ATI Radeon HD 3800

    Core 2 Quad Q6600

    any suggestions?

    Hello

    ·         Are you having problems playing other files other than the mkv files?

    Method 1:

    To update the drivers for your graphics card and check if it helps. You can download the latest drivers from the following link: http://support.amd.com/us/psearch/Pages/psearch.aspx?type=2.4.1&product=&contentType=GPU+Download+Detail&ostype=&keywords=&items=20

    Method2:

    Start your computer in a clean boot and check if you can play the videos.

    How to troubleshoot a problem by performing a boot in Windows Vista or in Windows 7 http://support.Microsoft.com/kb/929135

    Note: when you are finished troubleshooting, follow step 7 to start the computer in normal startup.

    Method 3:

    Reinstall codecs and check if it helps.

  • I need help on how to audio output when I go. I ticked the box at the bottom, but when I go to view my video on quicktime, it does not play audio.

    I need help on how to audio output when I go. I ticked the box at the bottom, but when I go to view my video on quicktime, it does not play audio.

    GUYS, I GOT IT. AND THE SOLUTION IS WAYYYYY WITH JUST A RENDERING. So after countless time I spent trying to make it, I found a way that me really happy that my old rendering has not worked. All you have to do is download adobe media encoder and BAM your gold. I make it in h.264 that i couldt using the old rendering and now it works fine.

  • Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hey ihorl18351266,

    Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.

    Kind regards

    Ana Maria

  • Hello, I need help, I can't play the video using Facebook. Works very well in Youtube. I use Safari. Tried different solutions such as changing preferences, reinstalling Flash.

    Hello, I need help, I can't play the video using Facebook. Works very well in Youtube. I use Safari. Tried different solutions such as changing preferences, reinstalling Flash.

    Hello

    Please try following the steps and see if it helps

    1. Please work through this guide.

    https://helpx.Adobe.com/Flash-Player/KB/video-playback-issues.html

    Follow the instructions in the guide on the provision of the dxdiag report and additional information on what you tested and observed.

    2 turn off hardware acceleration in the settings. Steps are mentioned in the link below

    How to disable or enable hardware acceleration?

    Thank you

Maybe you are looking for