Access to the functions of the scene from external javascript code in Web

Hello

Is it possible to use the functions created wihtin the IDE Flash from javascript code running on the html page?

More generally, where can I find resources on how to interact with the flash-made canvas javascript in the case of web integration?

Thank you

I have not worked with this feature, but you can try something like this:

Describe your functions in Flash pro in image scripts and do not forget to declare them under a global object such as document or createjs etc.

document.myFunction = function() {}

Console.log ('Hello!');

your code

}

Now publish, goto console and access your function-

document.myFunction ();

Hope this helps; not sure if this is the best way, though!

-Mabrouk

Tags: Adobe Animate

Similar Questions

  • How to call the function of reading edge animate external JavaScript


    I have a symbol on the stage called "basket"... on the inside of the symbol is my graph that has a trajectory put on to the timeline (it's called "car_v1").

    On my stage, I have a code to hide the cart symbol with a class of external style sheet:

    SYM. $("panier") .addClass ("hidden");  (it's the css - .hidden {display: none ;})})

    I have a function that calls a file external javascript... Since this external file, I want to get the animation of scenario to work:

    This is the function call:

    checkCar();

    and here's the function:

    function checkCar() {}
    If (AdobeEdge.countCar == 5) {}
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").removeClass ("hidden"); This works!
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").play (); does not work!        <-this is the line I need help!

    sym.getSymbol("cart").play (); It works inside the border and the scenario animation works!

    }
    }

    Can someone help me get the playback feature to work my external javascript file? Thank you!

    Kristen

    Hello

    You can try:

    function checkCar() {}

    If (AdobeEdge.countCar == 5) {}

    iCall var = AdobeEdge.getComposition("EDGE-172492634").getStage ();

    iCall.$("cart").removeClass ("hidden");

    iCall.getSymbol("cart").play ();

    }

    }

  • How to read the Captivate in external JavaScript variables

    Hello

    I want to develop the combination of quiz questions and test me Captivate simulations. And send the results to external JavaScript, so I can save it in the database.

    I have published the Captivate to HTML5, typed this code in an external .js file, and linked to index.html, but I get only the alert 'no ICC interface' interface is not detected, according to me. I tested from a local web server. Any ideas?

    ==============================================================================

    var interfaceObj;

    var eventEmitterObj;

    window.addEventListener ("moduleReadyEvent", function (evt)

    {

    evt. Data gate through the interface.

    This is the same as window.cpAPIInterface

    interfaceObj = evt. Data;

    eventEmitterObj = interfaceObj.getEventEmitter ();

    });

    Make sure window.cpAPIInterface is available

    If (interfaceObj)

    {

    Make sure window.cpAPIEventEmitter is available

    If (eventEmitterObj)

    {

    Add a listener for the CPAPI_SLIDEENTER event

    eventEmitterObj.addEventListener ("CPAPI_SLIDEENTER", function (e)

    {

    bogus var = interfaceObj.getVariableValue("slideNumber");

    Alert (cAns);

    window.cpAPIInterface.setVariableValue ("mySlideVisitCounter", lSlideVisitCtr);

    });

    }

    } else {}

    Alert ("No. IPC interface")

    }

    You're talking about data are not in this case, the window.

    eventEmitterObj.addEventListener ("CPAPI_QUESTIONSUBMIT", function ( e ) {}

    bogus var = e.Data.correctAnswer;

    Alert ("correctAnswer =" + cAns);

  • Apex plugins - how to reference the attributes in external javascript plugin?

    Hello

    I created a plugin for item-level.
    It works very well, however I have faced with a new problem - I need to make reference to attributes in the external javascript code of the plugin.

    Here's some of my Javascript:
    function boxesCheck(){
     var itemName = "P" + getAPexVariable("APP_PAGE_ID") + "_DESCRIPTION_ML";  
     var vResult = "";
     
     if(document.wwv_flow.f30.length>0){
       for (var i = 0; i<document.wwv_flow.f30.length; i++) {
           document.wwv_flow.f30.checked=true; 
         
    vResult = vResult + '[' + $.trim(document.wwv_flow.f32[i].value) + '|' + $.trim(document.wwv_flow.f33[i].value) + ']';
         
    }
    }else{
    document.wwv_flow.f30.checked=true;
    vResult = '[' + $.trim(document.wwv_flow.f32.value) + '|' + $.trim(document.wwv_flow.f33.value) + ']';
         
    }
         
    $x(itemName).value = vResult;

    apex.submit();
    }

    function addRow_new(){
    $('#report-standard1').append('<tr class="highlight-row1"><td class="data" headers="CHECK$01"><input type="checkbox" name="f30" value="1" onclick="highlight_row1(this,1)" id="f30_1" /></td><td class="data" headers="LANG"><input type="text" name="f32" size="80" maxlength="100" value="" style="width:85px" size="12" id="f32_1" /></td><td class="data" headers="DESCRIPTION"><input type="text" name="f33" size="80" maxlength="100" value="" style="width:345px" size="46" id="f33_1" /></td></tr>');

    }


    In the above code 2 values has to be substituted by plugin's attributes:
    1st function: var itemName has to receive the plugin's Item Name.
    2nd function: #report-standard1 has to be substituted by plugin attribute.

    How to do it please?
    Thank you!

    Hi Sloger,

    Modify your function to accept two parameters, something like this

    function boxesCheck(pParam1,pParam1){
    //and use them as required within the function
    ...
    .
    .
    

    How you call this function of boxesCheck of your plugin? He must be somewhere in your plugin code.

    Simply pass those two values as parameters

    Thank you

  • Access to the site from the Office on a mobile device

    Users want access to my site with a mobile device while it is connected to an external monitor or TV.  To do this, they need a way to access the version of office site, but even the option of 'Request' site Office of the browser does not work for my web site.  Is there something I can do in RoboHelp HTML 11 (Win7 OS) to solve this problem?

    Receptive HTML? (Skin Nivida? Send me an email.) In this case, media queries must be updated to account for the devices. For example, see: media CSS queries - the Web Developer's guide | DND

  • Can't access to the following endpoint: (external Web service)

    Hi all

    I'm trying to connect to a web service using WSDL, which is given by the osm, using Oracle SOA.
    I created the emconsole key file and created the user in adminconsole and applied the wss_http_token_client_policy to this webservice. When I try to connect to the Oracle SOA web service, I get exception below:

    < env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
    < env:Header / >
    < env:Body >
    < env:Fault >
    env:Server < faultcode > < / faultcode >
    oracle.fabric.common.FabricInvocationException < faultstring >: can't access to the following endpoint: http://hostname/osm/wsapi < /faultstring >
    < faultactor / >
    < detail >
    < exception > unable to access to the following endpoint: http://hostname/osm/wsapi < /exception >
    < / details >
    < / env:Fault >
    < / env:Body >
    < / env:Envelope >

    Can someone help me in problem solving.

    Thanks in advance,
    Ajay

    Published by: Ajay8706 on October 18, 2012 23:36

    Try the wss_username_token_client_policy

    Check here: BPEL to invoke the secure with HTTP Basic authentication Web service

  • Access to the desktop from the laptop

    At one point, I was able to access my files on my desktop from my laptop. I'm not computer savvy, but I managed to understand. However, something has changed and I can 'see' is no longer my office.

    Any suggestions?

    At one point, I was able to access my files on my desktop from my laptop. I'm not computer savvy, but I managed to understand. However, something has changed and I can 'see' is no longer my office.

    Any suggestions?

    Hey Rene Lee

    read the information below and see if it is helpful

    file sharing and printer under vista at the link below

    http://TechNet.Microsoft.com/en-us/library/bb727037.aspx

    as you say not what you use operating systems in order to read this information

    http://Windows.Microsoft.com/en-us/Windows-Vista/Networking-home-computers-running-different-versions-of-Windows

    and these are files and printers troubleshooting steps in the link below

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-file-and-printer-sharing

    Walter, the time zone traveller

  • No Internet access after the update from Windows 7

    Since the update of Windows 7 (from my list of update I can not single out one specific) sent 15 Dec - my computer will access my internet connection - the only way that I can access is to do a system restore to a point to Dec. 14 or before - I have a new computer - and no new programs have been added to the system during this time - it becomes troublesom because I have to constantly to do system restore to get online

    I called Support Center, Monday - and after having him work for almost 2 hours, we decided that the KB2467659 update is the culprit and we have disabled this update to be installed - HOWEVER the windows update program was H - LL BENT on installing this update - the technician called me back 2 days later Wednesday--and we did other things magic to ensure that this implementation to day has NOT been installed again - so far (knock wood) No recurrences of the problems

  • How to install Win7 on new hard drive and still access all the files from the hard drives of previous Vista?

    I currently have a Windows Vista PC. It has two SATA drives, one with the operating system, the one I use for storage.

    I want to buy a new SATA hard drive and install a new copy of Windows 7 top.

    I want to know the steps to follow to do this. My plan is this:

    1. turn the pc power off and open the case.

    2. remove the old hard disks

    3. plug the new empty hard drive

    4. turn on the pc and the insertion of the disc to install to Win7 for DVD-ROM drive

    5. enter in the bios and put the DVD-ROM as first boot device

    6. install win 7 on new hard drive.

    Is this correct?

    Because my next question is important:

    7. Turning off the computer.

    8 reconnect the two old hard drives. New total number of SATA drives connected = three.

    Now when I restart the PC and login to Win 7, it lists two other drives as, for example, D:\ and E:\ readers?

    How can I make this work?

    Thank you very much!

    Thanks for your reply, but I don't want to dual boot. I just want to have the hard drive as the master drive Windows7 and the old two drives as slaves, where I can access files as the pictures and letters.

    Any help would be appreciated!

    Well, I would disconnect all drives hard current interns, then connect the new hard drive, reinstall Windows 7, re - attach the old readers as slaves and copy all the data you need to on the disc of Windows 7.

    See:

    How connect a SATA Hard Disk as a slave . eHow.com
    Single, master and slave drives and Jumpering

  • Access to the Pathfinder from Javascript

    I would like to be able to access the tools of pathfinder via Javascript. It could take off hours of my workflow.

    1. app.executeMenuCommand ('group');
    2. app.executeMenuCommand ("Add Live Pathfinder");
    3. app.executeMenuCommand ("expandStyle");

    the group control that you can not add the filter for ungrouped elements.

    the application of the filter of pathfinder. (as you said not exactly a true Boolean operation)

    only when the style of development comes in. This will give you the solid form.

    I think you'll find if you try it will work.

  • Access of the BTA from different machines

    Hello
    I have an Oracle ATS with BTA working installation works fine on my laptop. Now I want to access this BTA since a different browser on a laptop on the same network and run load tests. Is this possible? I have to do something special for this activate the server of BTA?

    I also wanted to know if I can use the remote agent in another remote network during load tests?


    Concerning
    CP

    Hello

    That's the beauty of the BTA. It is a web application to access this just try

    http://hostnameofmachine:8088 / olt

    and log in using the credentials you supplied during the installation.

    Regarding remote agents running on another network, it should be a little more work for example, open ports and establish rules on your router, etc., so that agents can talk back to the controller.

    Concerning

    Wayne.

  • Urgent need help with access to the scene.

    I want to access the video clips that are nested inside of each other and I want to access the main theater of my project when it was created, but I can't do that with Actionscript 3. How do I access the root of my project?

    You can reference the root or the main timeline to use anywhere:

    MovieClip (root)

  • No access to the DVD drive - 38 error code

    Update Driver published 07/07/08 to 23:59 has been installed on my system as made by Toshiba Tempo but rebooting my machine, I get error 38 (according to Vista) that prevents the new driver installation as the old pilot is resident in memory... ?? Effectively, this means that I can't access or see my DVD player more in other ways than in the page Manager devices Control Panel. Option driver restore is not available, perhaps because it was an update of the firmware. The message on the device properties page is as follows:

    Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38)

    The installed updatre was frmwre-20080707134447. It includes an Adobe document that tells you what to do and how to ensure that your drive needs to be refreshed, which was easy to follow and loose my machine.

    I tried to uninstall the device and the driver, but whenever I have to reload the same error occurs.

    I'm really impressed and quite embarrassed, because it is a recommended Toshiba firmware update done using their system of Tempo, ideas or advice welcome.

    Thank you

    Matt

    Hello

    Do you see a CD/DVD drive in Device Manager?
    If so, then remove it from the list of devices.

    Then access the registry and delete the Upperfilters and Lowerfilters completely from the following registry key values:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    Finally restart the laptop and check if the CD/DVD drive would still be functions

    Further details can be found here:
    http://support.Microsoft.com/kb/270008/en-us

  • Remove the log from external Table file?

    Hello

    I don't want the log file to create each time I use an external table.

    Is is possible?

    You can specify one or more of the following options:

    NOBADFILE NODISCARDFILE NOLOGFILE
    

    In the passage of ACCESS SETTINGS of your table definition.

    I hope this helps!

  • orientation of the screen from locking/unlocking code

    I know that we can lock the screen orientation by setting autoOrient false tag in the xml file.

    I want a certain vision in my application must be blocked to the landscape, while another view to lock on the portrait, and others without orientation lock. Is it possible to do? Or I have to manually manage it me via OrientationChangeEvent?

    Thank you

    AutoOrients is not something you can change during execution (unfortunately), so your only option is to allow it, listening for the orientationChange event and in some cases of preventDefault() on it.

    Peter is right, but the solution seems a bit more complicated than it should be, probably because it targeted AIR 2.5, where they took setOrientation() API for a reason any...

    If you target AIRT 2.7, stage.setOrientation () should be all you need to use to manually set the direction, IE when the view is loaded, you manually set the direction landscape and preventDefault on all the orientation changes. Then, when the view is dropped, you setOrientation() to what it was previously and allow events to pass by...

Maybe you are looking for

  • Lenovo T530 W530 conversion

    Hi all! I'm moving a T530 a W530, I the extra current required (radiator, software service to define product codes and serial numbers, etc.), parts can be like having a T520 upgraded a W520. There are 3 motherboards that I'm able to get. 04 x 1511 -

  • Switch (incomplete) of modeling in the switch

    Hello is it possible to model a matrix of NI Switch Executive switch where NxM (bus line) not all combinations are possible/allowed? IviSwtch-drivers, you must create a matrix of connection, which defines the available and not available points to a s

  • Pavilion g7: admin access code or the power on the code

    On the computer to start goes to administrate or power on the code. Pushed enter 3 times got a key code 86345697 system off. Help!

  • Icons of controls (.bat) do not work

    I'm running on Windows 7.  Recently, I made the mistake to associate files .bat with an editor without thinking about the consequences.  Now, all my icons on the desktop to different batch files will only open in the editor instead of running.  I tri

  • Profilinh ISE and Thin Clients

    I have 1.2 ISE and HP T610 customer light on the network 802.1 x authorization works correctly, but clients are looming as HP-devices generics or HP printers I don't know how to create a strategy profiling custom for device "HP Thin Client. What cond