Skip to main content
Known Participant
October 24, 2018
Answered

Can I acces a function within an OAM file in Dreamweaver

  • October 24, 2018
  • 1 reply
  • 2583 views

I don't know if this is the right place to ask, but you never know unless you trie.
I placed an OAM file in my html document. I want to know if it is possible to activate a function within that OAM file with script in the Dreamweaver HTML file. And when it is possible how do I do this?

If this is the wrong place to ask, does anyone know where to ask this question?

    This topic has been closed for replies.
    Correct answer B i r n o u

    Thank you for your example. I see that it works. So it is possible. But at the moment I don't uderstand how it works yet. Unfortunately I'm quit busy these days, tuesday is the day that I can study it thoroughly. I'll send you my test situation so you can see how my simple set up is. I wonder if it is possible with some simple javascript (or somethingelse) in that html to do the same thing. In the AOM (Flashfile) there are 3 functions: startDing(),startDing2() and startDing3(). They correspont with the 3 clips in the OAM thing, thing2 and thing3 If startDing() is called clip thing will play. But I don't no how to adres them.


    yes... in my samples files you will find how to handle it from your own files...

    but ... you said that you have 3 functions... so on the Flash file (woaw please don't say Flash, if Paula is listenning, it will be better for her, that each other we call it Animate...)... ... iether if as we will se later on this mail... Flash call it Edge...

    so, I was saying that instead of setting the functions at the Animate root level as

    function startDing() {}

    or

    var startDing = function() {}

    declare them to be located a document root as

    document.startDing= function(){}

    repeat for startDing2() and startDing3()

    then from your external JavaScript file, when you need to call those function, you need to locate the iframe containing the CANVAS... (woaw ... nope ... nope.... please don't say CANVAS, if Paula is still listenning, it will be better for her, that each other we call it AOM...)...

    so , I was saying that when you need to call what you know... you first will have to locate the object container, and getting its ID, usually Flash will call it EdgeID and the selector will be as

    var iframe = document.querySelector('#EdgeID')

    then when your script will need to call the internal function target them as

    iframe.contentDocument.startDing();

    does this makes sense... do you need further help ?

    please Paula... I was joking, don't get mad ?...

    1 reply

    pziecina
    Legend
    October 24, 2018

    OAM files are self contained, so not modifiable within Dw.

    If you are using Adobe Animate I would suggest you export as html5 canvas. Even then modifying the js will require a very good knowledge of javascript.

    idkoosAuthor
    Known Participant
    October 24, 2018

    Thank you for your quick reply.

    Of course you are right, but isn't there a way to start a movie clip in the OAM by activating a function in that Aom which starts the right movie clip within that OAM?

    B i r n o u
    Legend
    October 24, 2018

    yes it must be possible, can you send a small OAM containing the movie clip ready to run... I could provide the appropriate script if this is possible