Clip from movie running does not work

Hello

I'm new to actionscript 3.0. I created a flash movie that contains a simple clip (clip_mc) and a button (btnGo). Depending on the number of clicks of button clip_mc stop and play. It works very well with the 'Test Scene'. But when I run the SWF file separately, the action script does not work.

Here is the code:

import flash.display.MovieClip;

var count: int = 0;

btnGo.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

If (ExternalInterface.available)

{

var val: Boolean = counter ++ % 2 == 0;

trace ("calling function fromJS with value:" + val);

If (Val)

{

clip_mc. Stop();

trace ("Stop");

}

on the other

{

clip_mc. Play();

trace ("Play");

}

}

}

I tried to export as Movie Clip and run, it still does not work. Can someone please help me understand this.

My guess would be that the Actionscript code works, just not in a way that you expect.  If you test the swf file alone, then chances are that ExternalInterface.available turns to the top of the 'false' because there is no html page to confirm availability.

You will not see traces when you run a swf by itself if that's what you expect to see.  You must instead use textfields in these circumstances.

Try to see what this value ExternalInterface.available ahead test phrases to see what value there... use a textfield, rather than by the trace.

In addition, having Flash publish an html page and test the page html instead of just the swf file on its own.

Tags: Adobe Animate

Similar Questions

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When you run windows defrag hourly use of the command line, it does not work. The order that I will execute as administrator is

    C:\Windows\System32>defrag/c

    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.

    It displays the above message and leaves back to the command prompt. However if I run the defrag C: command it does not. Defragmentation from the GUI works so as long as both drives (C: and system reserved) are selected and when I click on defragment drives, works very well.

    I am concerned about defrag from the Task Scheduler with the command ' defrag/c' (self programmed to help set up the calendar... from Disk Defragmenter) does not work and the system never gets defragmented automatically.

    This only happens with some of the windows virtual machine 7 we have.

    There are no entries in the event log that point to defragmentation (using the Task Scheduler). Anything can happen on the ideas?

    Hello Sebastian,.

    Thanks for posting your question on the Forum of the Microsoft community.

    The question will be better suited to the audience of it professionals on the TechNet forums.

    I would recommend posting your query in the TechNet Forums.
     
    TechNet Forum
    http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Thank you

  • "Show my windows and tabs from last time ' does not work in version 3.6.8

    I select "show my windows and tabs from last time ' on the Options window - Panel general"when firefox starts", but it opens as my home page every time I start firefox.

    I tried this on two different computers. Both of them have the same problem.

    It worked fine in previous versions, but it does not work in version 3.6.8.

    If you use delete, search and download Firefox browsing history in Firefox 3.5 and later versions to clear the 'browsing history' the closing of Firefox then in restaurant tabs in the last session ("Save and exit" or "show my windows and tabs from last time ') does not work.

  • My activation key for windows 7 (bought from my college) does not work. How can I contact someone who can help?

    My activation key for windows 7 (bought from my college) does not work.  How can I contact someone who can help?

    -Mike

    Hello djplexus

    First, you will need to understand how to set up the dual boot. This will allow you to be able to choose between XP and 7 at startup.
    With regard to the creation of an image of Windows XP Backup there is no Windows XP software that will do it for you. You will need to look to third-party vendors for support with this issue. Thank you.
  • My "move" tool does not work as usual.

    My move tool does not work as usual.

    After pasting an image into a new model, it is impossible to move around, to position the image on a desirable location. The photo is back in the middle of the model as soon as I leave the mouse.

    This is a silly question, I know... I'm sure that some button is locked or not well placed, but I can't find the solution.

    It would be great if someone could give me a clue...

    Thanks in advance,

    Bottom

  • My acrobat from adobe pro does not work and no earlier version is available download again with my n serial

    My acrobat from adobe pro does not work and no earlier version is available download again with my serial number

    He can count on what version you need to download... Here are the links for the perpetually licensed versions that Adobe has:

    Acrobat XI, X - http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html

    Acrobat 9: 8 - http://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html

  • Play movie button does not work

    Hello

    I still use and the menu, I created has a Play Movie button that does not work.  In properties it has "name: play the movie", "number: 1, Type: Normal", and "link: film HD:play wedding Menu MultiPage.»

    I can't button 'Next' to work again for one of my menus.  The name is 'next', the number '4', type is 'next' and the link is ' marriage Multipage submenu HD:next.

    Can you help me please?

    [two similar topics grouped into one by mod]

    See summary on this page.

    Adobe still * Navigation through links

  • CS5, installed from a backup does not work in the new iMac w / El Capitan; the discs moved

    My 2011 iMac has a failing hard drive. I downloaded a full backup, including the CS5, in a new iMac running El Capitan. None of the Adobe programs will run, even after I installed Java SE 6 & restarted. A Setup from disks, starting with Acrobat 9 Pro disc and after dragging the applications icon, gave me this: "the operation cannot be completed because one or more required items be found.» (Error code - 43) »

    I deleted programs meeting CS5, rebooted and tried to load again from the disk of Acrobat 9 Pro. After dragging the applications icon, I got this: ' the finder cannot complete the operation because some data in "" cannot be read or written. ". (Error code - 36) »

    Updated his computer at El Capitan my wife and charge of Java SE 6, and his CS5 still works. What can be done in my case? Thanks to all in advance!

    Download from a backup will not work.

    You must install it.

    https://helpx.Adobe.com/Creative-Suite/KB/CS5-product-downloads.html

    But CS5 wil cause a lot of errors on El Capitan.

    They simply are not (fully) compatible.

    Just search for it on the forum, you will find a lot of threads.

  • Effect of lens flare (Quick Time movie format) does not work in Adobe Premiere CS6

    Hey Adobe,

    My video effect flare (fornat VIDEO QUICK TIME) for the video transition does not work. Only the audio appear in my Adobe Premiere CS6.

    Please I need help from you.

    Thank you very much...

    -SieraG-

    Robodog

    You know.  I found already what the problem...

    I lose my file QUICK TIME ALTERNATIVE and QUICK TIME PLAYER.

    I downloaded these files and now everything is fine... !

    Thank you very much for your help...

    Kind regards

    -sammy g-

  • Camileo h10 flash or movie light does not work

    Hey,.
    Does anyone have any ideas as to why flash does not work on my h1o camileo camcorder. ? or the pilot light.

    Thank you

    Neil

    Please help somebdoy!...

  • Satellite L40-B1258 - taken from audio input does not work

    Hi, the audio jack in my laptop does not work. When I bought it I don't check the audio jack, after a few months of using my laptop only then I discovered that the audio input jack is not working. I tried to connect an external speaker or the headphones and both do not work.

    In Control Panel > Sound > playback - only speakers is available in the list, there is no helmet. Help, please...

    Satellite L40-B1258
    Part No. PSKQEV-00V005AR

    The devices on which you can see when you turn on the devices see the disabled option?

    In any case being that peripheral external is correctly connected. Put the audio input to the end.

    When listen you to music on the internal speakers and headphones is OFF music or you can always hear it on the internal speakers?

  • Windows Movie Maker does not work after installing Windows updates

    my film creator of windows XP home SP2 after obtaining updates (SP3 and others) does not work. How to fix this or how to get free a similar program for video editing?

    See if the following .dll file will help. The Windows Update agent, Wups2.dll file are perhaps not properly saved.

    Open a command prompt window (start-> all programs-> Accessories-> command prompt) and type the command:

    regsvr32 wups2.dll

    Let us know if that helps.

    Marilyn

  • Speed dial of Smartphones from blackBerry touchscreen does not work

    The speed on my touch screen dial does not work.  At first, I thought it was my service.  But then I noticed that the speed on the keypad dial still works.  How can I fix it?

    Restart your device and see if the touch screen speed dial works again, please.

    Do a simple reboot on the BlackBerry this way:

    With the BlackBerry powereddevice, remove the battery for a minute and then reinsert the battery to restart. A reboot in this way is prescirbed for most the gltiches and operating system errors, and you will lose any data on the device doing so.

  • "show my windows and tabs from last time ' does not work after upgrade to 8.01

    After I've upgraded to the latest v8.01 I lost all my tabs sites and even trying to add them and save them with the tools > Options > general > start > when Firefox starts selected have to "show my windows and tabs from last time" she does not hold registered sites and browser restarts it always loses all tabs and shows only a tab with Firefox home Web page. I need to open several sites to work and the only way to do it now is to make sure, I click on the current use in "pages" under General Option of the tools. It's getting very boring because I keep changing my tabs to different sites in a meeting and I am used to simply close the browser, based on making them all back in when you restart Firefox.

    Have you tried to delete the file or move it to another location?

    There should also be a file sessionstore.bak that contains the previous session, i.e. the sessionstore.js file found at the beginning of the current session and is used to restore the previous session via ' history > restore previous Session '.

    Also, make sure that Firefox is closed correctly and that there is not any suspended the process Firefox

  • My Windows XP Movie Maker does not work on my laptop GOLD.

    I can open it, but every time I try to download nothing happens. The files are in a flash drive and I can visualize, but when you try to download, it does not show that the document exists. I can download YouTube editor but is not a good editor. I don't understand why I can't "make it work on Movie Maker. I did all the updates for XP but I don't know if that has to do any.

    Did you that you have the latest version of windows live Director? I know that you said you made xp but I do not think that windows update does movie maker go that you download from the download section of the microsoft Web site.

    Let us know if you have the latest versions. I think that the older versions may not have use of mp4, but not 100% sure.

    Free Support Tools

Maybe you are looking for

  • How to use Quick time on Macbook air?

    I can't open Quick time. How can I use it on OSX Yosemite 10.10.5?

  • Binary multiplication

    Hello I have an 8-bit binary number and I need to multiply it by a 4-bit binary number immutable. I tried to use vipers, switches and lights but quickly missed components in the student edition. Can someone suggest another method? That is to say, a c

  • Variant of 2D to 2D chain

    Hello world I am facing a problem to change the variant data type and the string Is there a method or the example to convert the 2D 2D Variant string ? I already tried to use "Variant data" several times, but fail. is there another method or another

  • My HP Deskjet F370 was not sometimes feel.

    So I uninstalled, now I am unable to reinstall and my restore point system will not work because of an unknown unsigned driver.How can I get my printer on and how can I identify this driver?Thank youDennisFC

  • EQUIPMENT ANTI-THEFT: ADVICE * BEFORE * IT IS STOLEN?

    I work for a small company headed by a Manager, busy, distracted the type A which is in all directions. More cute guys, but not the best organizer. Perhaps attention deficit? Its activity is to communicate with many people through the day and to acce