How to control SWF Video using JavaScript?

Hi,
I'm developing a web page which will use Flash Videos. I need
to control the video without using a typical skin. The current tool
I'm using to convert my wmv to SWF FLV is Coffee Cup. A hex edit
suggests this is a Version 8 SWF.
I am trying to write some javascript to control which Frame
is displayed. I have seen code such as movie.TGotoFrame(...); and
movie.GotoFrame, movie.StopPlay() etc. Unfortunately I cannot seem
to use these methods. Eventually I suspected that my SWF simply did
not make these methods available and when I run my video in my web
page a RightClick shows a Context Menu that has no Reverse,
Forward, Back options. Other SWF videos do have these options
(obviously). This seems to prove that nothing I could code would
make the GotoFrame work (ie no Forward (by one frame) option in
menu suggests it could never work from javascript).
Some Questions
Is there a tool to examine a SWF to see what methods are
available to javascript control? (expose the API) and is there a
setting required in the <object> setup to enable javascript
interaction?
Is there something about SWF V8 files that is the problem or
is likely that the CoffeeCup Web Video Player can only make
partially functioning SWF Videos?
What is the difference between GotoFrame and TGotoFrame and
have these perhaps been superceeded by something else (there is an
Adobe page which suggests they are only available up to Version 5
(not sure if that means Version 5 of SWF files or Version 5 of the
FlashPlayer - to add to my confusion).
I'm not currently a Flash type developer and have no tools to
speak off and don't know ActionScript. I'm thinking of heading in
the Flash direction but not sure how to move forward.
Cheers
Stuart

Thanks Alex,
quote:
You need to learn to move forward :)
I have a Greek friend who when I asked him how he was getting
on with his dissertation project stated "in Greece we have a saying
- every start is different".
In this case my start is to dip a toe in the Flash water and
not get scalded.
Anyhow,
One clarification from the CoffeeCup forum helped me to
understand that my SWF used an external FLV and that may explain
why the rightclick context menu did not have the more movie
specific Back, Forward etc. Sounds plausible. So assume external
FLV.
quote:
it is very easy to add a small script into the root timeline
of your SWF file
A little hand holding here would be appreciated. I have
downloaded the Flex SDK. Can I use this free tool to do what you
suggest? Using MXML and ActionScript. If so, a little bit more info
would help.
quote:
That's all, it should work. Of course, you can tell me that
your movie
already has an onEnterFrame() eventhandler at the root
timeline.
What's a problem? Just create an empty movieclip and add this
script
into its frame 1 (it maybe the only frame). But do not forget
to
change "this.xxxx" to "_root.xxxx" within such script.
Hhhmmm. A bit stumped. I've had a look at the SWF using
FlashDig. I noticed what appears to be Assembly Language (Push,
Pops, Jumps etc) and presumably in amongst all of that may be an
onEnterFrame. Perhaps linked to a DefineFunction2 node.
Unfortunately the SWF is very large (60K) and there is no
search/find tool so that makes finding functions a bit harder than
expected. Struggling a little with the concept of _root and Level0
etc.
I assume you are suggesting manually building a replacement
SWF (empty movieclip?) if the onEventHandler happens to be used for
something else. Presumably set/getVariables only interacts with
this function so if it is 'booked' in my SWF I would be in a spot
of bother with your suggested approach?
I wonder if you are assuming I have some sort of Flash tool.
Possibly like this one shown in this tutorial
WebWasp
Panorama tutorial
Note. The panorama is actually close to what I eventually
want to do except I intend to make a video of a scene by rotating
clockwise by 360 degrees. Then add buttons onto the SWF (or DHTML)
which communicates with the SWF to move forward or back through the
video. Moving forward would be like a clockwise rotation and moving
back would create anticlockwise rotation. This explains the need to
GotoFrame (or similar). From that perspective I don't need to
become a Flash guru (for now) and can't justify buying all the
expensive flash tools for this one (apparently) simple task: Frame
by Frame control of an external FLV via the SWF.
Note. I've started using SWFObject. Might this library help?
In summary.
How do I add the onEnterFrame ActionScript sample (or
something similar) into a SWF using only the Flex SDK command line
tools or similar in order to control an external FLV?
Cheers
Stuart

Similar Messages

  • How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or

    The situation:
    I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
    Question:
    How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
    Any one know how to do this?
    Thanks in Advance,
    ~Jack

    Try Peter kehrl's script
    http://www.kahrel.plus.com/indesign/missing_glyphs.jsx

  • How to control movie clips using mause scroller...?

    ....please look
    http://www.nagaoka-id.ac.jp/gallery/gallery.html
    ...how to control movie clips using mause scroller...?

    Hi Ldavinci, I have noticed your posts on that particular
    site before. Just chiming in here... don't be afraid of Flash Help
    menu. There's a wealth of information there and I've found it much
    faster than waiting for a response from the forum. Then if it still
    doesn't make sense, at least you have a basic idea of specifics to
    ask.
    If you search for mouse wheel, you'll see an example under
    the Actionscript 2.0 Language Reference on this topic. That said,
    here's the example:

  • How reset Acrobat form field using javascript API

    How reset Acrobat form field using javascript API

    There are several ways:
    resetForm(["Text1"]);
    or
    getField("Text1").value = getField("Text1").defaultValue;
    George

  • How to get SharePoint Groups using Javascript in SP2013 ?

    How to get SharePoint Groups using Javascript in SP2013 , not JSOM please

    Here is the code that worked for me:
    <script type="text/javascript">
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups";
      var requestHeaders = { "accept" : "application/json;odata=verbose" };
      $.ajax({
        url : requestUri,
        contentType : "application/json;odata=verbose",
        headers : requestHeaders,
        success : onSuccess,
        error : onError
      function onSuccess(data, request){
    var s='';
     for (var i = 0; i < data.d.results.length; i++)
    s +=data.d.results[i].LoginName+'\n';
        alert(s);
     function onError(error) {
        alert("error");
    </script>

  • How to control swf file loaded in flash builder project?

    Condition :
    1. I have a swf file presentation.
    2. A flex mobile project using flash builder 4.6 with its default SDK.
    What i want :
    1. Include those swf file into my flex mobile project and interact with those swf like i run it on flash player for PC. Shown here >>
    http://prntscr.com/1pmio
    What i've tried :
    1. Call swf file using swfloader and it work(on my pc). Here is my code >>
    http://prntscr.com/1pmjdl
    Problem :
    1. I cant interacted with swf file presentation. If i click on screen, it get error code >> "Error #2025: The supplied DisplayObject must be a child of the caller" and another error. Here is error warning >>
    http://prntscr.com/1pmkcr
    I dont want to upload the swf file into a web and load it remotely because i want the swf file available offline. Im newbie in flex, please tell me clearly. i have downloaded Flex in a week video training but gets nothing. searching for another problem which may same, but i didnt get any answer.
    Please Help.
    Message was edited by: blackquipment for image fix

    Some loaded SWFs may not be compatible with Flex.  Try making a simpler SWF (like one that just draws a circle where you click) and see if it can be loaded and interacted with.
    -Alex

  • How to create a video using my i-pod?

    how can I create a video using my i-pod

    Just purchase the newest model iPod touch, the 4G, and use its Camera app to take a video.

  • How to disable the ribbon using javascript

    when open a PDF document using acrobat X, there is a Tool ribbon in the top right side (there is also a comment ribbon and share ribbon), how to disable or remove the Tool ribbon using javascript?
    I try to use app.listToolbarButtons() and app.hideToolbarButton(...) but not working.
    Any ideas?

    Not possible.

  • How hard is it to use javascript to show/hide fields. Is it easier to use the action builder?

    I know nothing about javascript and all that ive been using so far has been stuff ive found on here (thank you everyone).
    Using the action builder seems like its gonna be very tedious to do since i have so many subforms that hide, would it be esier to use javascript?

    I know nothing about javascript myself but I just created a form with about 10 different subform that show or hide depending on what the user chooses from a drop down list and I used Action Builder. If we don't know javascript, how can we use it? But Action Builder did a fine job of hiding/showing wherever I needed it. And Action Builder can do more than one thing by clicking that + sign when you are building an action.
    For instance, I needed to place a button in each subform that would close both the field that the person was working in and also the subform on the next page where the information was going into floating fields in a text block that was only visible thru a drop down list text select. I could have never figured out how to do that based on my knowledge of javascript. Thank Adobe for including Action Builder in this version of LiveCycle and I use it all the time. I find it extremely easy to use but it takes a little mental training to think thru the steps of how you can use the menu in Action Builder to make your form do what you need it to do.
    And if all else fails, ask this forum. I struggle for just so long before I come here and ask for help. I always get the answer I need. I hope you will too.
    Good luck,
    Jeanette

  • How to call a url using javascript

    Hi friends
    Iam a newbie i have a requirement
    i have to call some n number of URL using javascript i have all my url in one table .... i have to call all the url from that table ... and the output of the url should be saved in a flat file...The output of the url is in XML format... can any one please suggest me in doing my task ... and one more thing in which tool can i run the javascript coding...please give me ur suggestion and idea how it can be done ....
    My URL for example ll be like this as shown below wen i run this url it ll give me an XML format output
    HTTP://www.myserver.com/ev_api.action?user_id=<username>l&password=<password>&statevar=history&cutoff=<date>&id=<id>
    Thanks in advance
    Thiliban

    thilib wrote:
    In this OTN is there is javascript forum can please give me the link for it
    Thanks
    thilibJust to rephrase Walter's reply: there is no javascript forum in OTN!

  • How to manipulate pdf files using javascript in action wizard

    Respected all ,
    I am a software programmer from india and i want to make a programe which can do below described things :
    I want to know that how can i achive this kind of steps using javascript in acrobat XI :
    for ex. if i have  4 pdf files :  800123-001.pdf , 800123-002.pdf    and  800555-001.pdf , 800555-002.pdf
    then i want to do using javascript
    step 1 :  pdf to ps , output should be : 800123-001.ps , 800123-002.ps , 800555-001.ps , 800555-002.ps
    step 2 : ps to pdf (acrobat distiller ) : 800123-001.pdf  , 800123-002.pdf , 800555-001.pdf , 800555-002.pdf
    step 3 : pdf merge : 800123.pdf  - > which contains both : 800123-001.pdf and 800123-002.pdf
                   and                     800555.pdf -> which contains both : 800555-001.pdf and 800555-002.pdf
    ----------END------------
    Is it possible using javascript in acrobat or any other way ?

    i can not access adobe site .. can you plz replay me on my personal e
    mail.. [removed personal contact info, please send a forum message instead]
    On Wed, Jun 19, 2013 at 1:16 AM, Test Screen Name
    Message was edited by: sinious

  • How to set readOnly property using javascript

    Hi Folks,
    How do I make an inputtext readOnly using javascript?
    I have tried the following
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.setProperty('readOnly', 'true');
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.readOnly = true;
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.setAttribute('readOnly', 'true');None of the above works. Any idea?
    Thanks
    Vishal

    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12046/oracle/adf/view/js/component/rich/input/AdfRichInputText.html#getReadOnly__
    Get function for attribute for 'readOnly'. This attribute is secured. You may get it, but you may not set it. Any changes to this attribute will not be transmitted to the server.
    Setting readOnly inputText value using javascript.

  • How to control PDF plugin from Javascript?

    I need to embed a PDF viewer into a webpage displayed on a special infokiosk withou a keyboard and a mouse. The infokiosk will have just five control button (four arrows and an OK button), which will map to corresponding keys on keyboard. It will be running a simple Linux system and Firefox browser as GUI.
    This is exactly what I need to accomplish:
    http://pdftools.atwebpages.com/embedPDF.html
    However, it works only in Internet Explorer. I need this very functionality in Firefox on Linux. I have not been able to come accross any documentation telling me, how to do it. On the other hand I have found:
    http://www.adobe.com/devnet/acrobat/interapplication.html
    which mentions Windows and Macintosh, but does not mention Linux at all. Does this mena that I will not be able to control PDF viewer with Javascript under Firefox/Linux?

    I need to embed a PDF viewer into a webpage displayed on a special infokiosk withou a keyboard and a mouse. The infokiosk will have just five control button (four arrows and an OK button), which will map to corresponding keys on keyboard. It will be running a simple Linux system and Firefox browser as GUI.
    This is exactly what I need to accomplish:
    http://pdftools.atwebpages.com/embedPDF.html
    However, it works only in Internet Explorer. I need this very functionality in Firefox on Linux. I have not been able to come accross any documentation telling me, how to do it. On the other hand I have found:
    http://www.adobe.com/devnet/acrobat/interapplication.html
    which mentions Windows and Macintosh, but does not mention Linux at all. Does this mena that I will not be able to control PDF viewer with Javascript under Firefox/Linux?

  • How can I call actionListener using JavaScript

    Dear Programmers
    I have to use javascript in order to call a specific actionListener when a window is close. Therefor I inserted the following code to the jsp:
    <script type="text/javascript">
    window.onunload = function(){......};
    </script>
    But how can call a specific actionListener? I saw that I can use submit(), but this method doesn't perform any actionListener. I didn't find where the actionListener is specified after doing "view source" on the browser.
    Please help me

    Hello,
    I think you can do this:
    <h:form id="formId">
    <h:commandButton id="buttonId" actionListener="..." />
    Then you can call:
    document.forms.formId['formId:buttonId'].click();
    to invoke the action listener. If you don't want to display the commandButton on screen, you may apply a css style to hide it.
    Billy

  • How to give dropdownlist validation using javascript

    I have a sharepoint list, In that list i have a dropdown field,in that field i have values <--select-->,ram, raj like this, when user selected the <--select--> value and then click on savs button, it has to show the validation message like user
    need to select the value like that,using javascript or jquery i need to validate that.

    Hi ,
    add the following code in by  editing page.
    <script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $("input[value='Save']").click(function(){
    var value = $("select[title='dropdown column name'] option:selected").text();
    if(value!="1"){
    alert(value);
    return false;
    https://social.technet.microsoft.com/Forums/security/en-US/4cd9429a-2261-4446-87d4-188ad10ae6c1/how-to-put-validation-in-sharepoint-list-item-for-dropdown-value-that-user-cannot-jump-from-first-to?forum=sharepointdevelopment
    http://sharepoint-2010-world.blogspot.in/2013/11/validate-dropdownlist-using-jquery.html
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

Maybe you are looking for

  • Using a 3rd party router for Multicast

    Hi all, There’s a lot of feedback on this board about using third party routers with Multicast, so we’ve decided to put this information all in the one place for you. NOTE: the workarounds below haven’t been tested by BT as we do not support 3rd part

  • Recovery from backup failed

    I tried to restore my T400 from a backup using the Rescue & Recovery utility.  The process started and after automatically rebooting, I now have a DOS screen that reads: "Windows could not start because the following file is missing or corrupt: Windo

  • SQL Server Express 2012 SP2 installation hangs during extract phase

    Greetings! I am having an issue with trying to silent install SQL Server Express 2012 SP2 (x86). I have a proprietary installation framework, which is calling the SQL Server Express installer. The SQL Server Express installer starts extracting files

  • EDI Inbound delivery DESADV delvry03

    I'm waiting on a translator for the mapping the above to create inbound deliveries but while I wait I'd like to set up a few scenarios on our system. Does anyone have a mapping documnet I could have a look at? If so could you send it to the e-mail ad

  • Urgent: deleting a specific string form an existing .txt file

    Plz help me with a sample code on how to delete a specific string form an existing .txt file..it is very urgent... thanks in advance