I have an extension SWF panel and a list of movie clips of the currently open document on it. I want to clear my list when the user closes the current document. Also, I want to add some alert "You have to select the previous document you were work on" - when the user selects other open .fla document and tries to press some button on the SWF panel to edit some MC from the list. So I want to know if has Adobe Animate the ability to listen to closing and changing of documents? thank you for advance for any hints
1
There are 1 best solutions below
Related Questions in ACTIONSCRIPT-3
- [Actionscript]How to display the information inside an array of objects
- How to set a colour variable in JS
- When using INSERT OR REPLACE INTO in SQL is there any way to tell if a record was inserted as new or replaced in SQL for AS3?
- How to inject a bean in a view with Crux
- AS3 - Unable to resize Image width and height
- How do I move Pac-Man smoothly in AS3?
- Export Release Build is not working in Adobe Flash Builder, It does nothing on Finish button
- 1009 Error for a Character Skin Symbol in AS3
- Issue setting domain memory
- Implicit coercion of a value with static type Object to a possibly unrelated type Number
- Defer implementation of interface functions to child class
- Simple top 3 scores from an array to textfield
- Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip
- AS3 Caling MC on Parent Timeline from Child
- 2 error problems for simple music players
Related Questions in FLASH
- Failing write/read on RH850 with NOR flash
- Unique ID to transfer guest account data from Adobe AIR to Unity
- flashplayer_32_sa: SecurityError: Error #2028: Local-with-filesystem SWF file
- what is the simplest way and what applications to use in making an exe file that runs .swf file assetss
- Does a physical filesystem works only for a specific type of storage media?
- when I try to enable flash encryption in esp32, the bootloader size is large . But I'm unable to find bootloader field in partition table
- Manage FIFO implemented in a non-volatile flash NOR memory
- create a quiz with actionscript 3
- How to connect two x16 nor flash to nor flash controller?
- Looping in Adobe Flash Professional CS6
- AOSP flahed to android emulator
- How do I compile Flash app files with mxml and as extensions?
- Winbond W25Q01 (1G-BIT) Flash erases 256-bytes not 4K and fails write-read-verify after address 0x07000000
- On Pixel 7a Android AOSP
- Defer implementation of interface functions to child class
Related Questions in ADOBE
- Used AI to generate an Adobe Illustrator v28.3 script that groups the contents of each individual artboard. Can't get it to work
- SVG export from Adobe Illustrator generates strange code
- Samsung Watch Sport Type Animations Source
- Acrobat 2020 editing the Header or Footer in a PDF Document
- How can I print to adobe acrobat printer (pdf) in Delphi silently
- Upload photo to website, let it process, and download
- Why does digitally signing with Adobe Reader cause Windows Cryptographic errors
- Dynamically add pages in AEM Remote Spa
- I want to completely flatten/remove some pdf text/objects outline in the pdf document I am working with using iText or any tools programmatically
- Cannot re-save PDF Generated in PDF Sharp 101 Error
- Coldfusion SOAP API, name of parameters on wsdl changes to generic one
- iOS Project with SQLCipher and SQLite Dependency
- Adobe PDF Embed API - > ViewerAPI-> gotoLocation() not changing the page
- How to merge multiple .IDML files without InDesign?
- How to parse CSV or FDF data to a Python dictionary and inject into a template PDF form?
Related Questions in JSFL
- jsfl script Fixed path wihout need to browse
- Adobe Animate JSFL: Is it possible to get the ease used for a tween?
- Delete XML loader in AS3
- Is there a way to request the file location of the currently in Adobe Flash/Animate opened FLA file through a JSFL script?
- adding event listener of the closing and changing the FLA document for the SWF extension panel. using ActionScript, JSFL
- Exporting AVI Videos from Adobe Flash CS6 using an automated script (JSFL)
- Execute a jsfl script on a FLA file from command line (in Windows)
- jsfl: accessing a symbol to animate inside it
- findObjectInDocByType "argument number1 is invalid"
- Can JSFL be used to set a Global Include script?
- exportSVG in jsfl run as a command in adobe animate doesn't work
- Compiling Typescript to use as a JSFL script
- How to convert all shapes in a flash file to bitmap using jsfl?
- Using the fl.quit() in my JSFL script crashed Animate 2017.5 on Windows Server 2012
- JSFL Has Been Running For a Long Time
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
an answer from adobe community support:
Yes, there is such a possibility. You can register a javascript function to be executed when certain system event occurs:
enter code herefl.addEventListener( eventType, callbackFunction );The possible system events are: "documentNew", "documentOpened", "documentClosed", "mouseMove", "documentChanged", "layerChanged", "timelineChanged", "frameChanged", “”, "prePublish", "postPublish", "selectionChanged", and "dpiChanged".
Also, in Flash CS4 and above, you have the possibility to refer a particular swf panel. In combination with ExternalInterface class and MMExecute method in AS, you can build a two-way communication between the two environments.
Example:
// JSFL
var docChangedID = fl.addEventListener( "documentChanged",onDocumentChangedHandler );function onDocumentChangedHandler(){var panel = fl.getSwfPanel( "<my panel swf file name >", false );panel.call( "AScustomEventName" );}// AS
import adobe.utils.MMExecute;import flash.external.ExternalInterface;ExternalInterface.addCallback( "AScustomEventName", this.myASMethod );function myASMethod() : void {// your stuff hereMMExecute( "some jsfl code or path to a jsfl script" );}