Controling the flv via javascript

I am looking for some tutorials on how to change the flv
being played in a flash video component using javascript.
Anyone have an idea of some good reading?

I am looking for some tutorials on how to change the flv
being played in a flash video component using javascript.
Anyone have an idea of some good reading?

Similar Messages

  • Can I control an Applet via JavaScript?????????????

    Please Guys! Can I control an applet via JavaScript?
    How????????????
    Thanks
    Renato

    Great to see you back, bbritta! Problems with the
    reauthentication stuff?The reauthentication was just another annoyance. I was getting fed up with answering posts for a variety of reasons (mostly because I don't have the patience you seem to have).
    I got assigned to modify some old ColdFusion code. I thought it would be a nice change of pace having never done it before. Yick... Gak... I should have started over with JSP's, but the user insisted they wanted the old code modified. I have never seen so much cut and paste coding in my life. They actually got hold of the old developer and he was so proud of his code that I didn't have the heart to tell him what I thought of his efforts.
    Anyway, a couple of weeks ago, I ran into a problem with an applet I wrote about a year ago and wanted to search the bug database. I reauthenticated fairly easily, but found out nothing had changed.
    A couple of days ago, there was a post in advanced topics asking if the forums were any use. I saw Dana respond and I thought it might be a chance to discuss some of the problems I saw with the forum. I came back to see if there was any response, but it looks like there will never be any meaningful discussion between Sun & the members about the forums.
    I have tried for a couple of years to just post a link to a search page if the answer could be easily found by searching. It seemed like a better thing to do than just saying 'Do a search!' I'm not sure anybody gets it though.

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • Automute microphone, when Jabber is controlling the Deskphone via CTI ?

    Does anybody know a way on how to mute the Microphone of the Deskphone when controlling the Phone via CTI. I want to have a true human interaction with the hardphone when controlling it via CTI. Otherwise the Deskphone could be easily used as a remote Microphone.
    Thanks a lot in advance
    Björn

    Hi Mohammed,
    Thank you for your answer- I hoped for a more native way than implementing it on my own via JTAPI. I cannot imagine  that i am the only one feeling uncomfortable in letting all people remotecontrol their Phones/microphones in this CTI Way. If i am sitting in a neighbour Office- i could still call my own and remotely listen to the remote office. There should be a simple way to prevent users from doing this.
    Does anyone feel the same- or has a hint for me on what to do ?
    thanks again.
    Björn

  • Controlling Browser Elements via JavaScript or ActionScript

    From within one Flash movie, I'd like to open another browser
    window containing a different Flash movie. The movie opens just
    fine, but I'd like to deactivate the menu bar, address bar, and
    toolbar.
    Questions:
    • Can I control/set these elements?
    • Should this be done with AS? With JavaScript?
    • I've heard that using JS to perform such a task is
    problematic in some browsers?
    Any help shedding light on these questions is greatly
    appreciated.
    Octothorpe

    I would suggest getting yourself a javascript primer if
    you're going to do any sort of web programming. I've found some
    free tutorials hosted by
    http://www.w3schools.com/
    really helps. Second, it looks like Dave's script is using a
    javascript function that's he's added to the page, it's not part of
    the standard javascript library. The real javascript command is
    window.open(params). There are many many examples on the web of how
    to do this given the right search. Just be aware that it's real
    easy to get confused on the quotes and parentheses required for any
    getURL command that calls javascript.

  • Controll HTMLB:Checkbox via JavaScript

    Hi all,
    I`ve created a BSP application containing HTMLB:Checkbox components.
    In this example the checkboxes are organized as a three of 2 levels.
    When clicking/checking the parent checkbox, I want the rest of the checkboxes (children) to change status depending on their parent's status. e.g checked=true/false and disabled=true/false. The checkboxes become disabled/enabled, but you cannot see any change in their checked/unchecked status.
    Though this works fine with design="classic", it doesn't when using design="design2003"...
    I have to use design2003 in my application, and want to use HTMLB:Checkbox instead of regular HTML Checkbox- which also works.
    The javascript syntax follows:
    (it's from a loop containing all the children checkboxes)
    nodeEl = elements<i>;
    nodeEl.checked = true/false;
    nodeEl.disabled = false/false;
    I would have appreciated any kind of help.
    Ogert

    This is my intire code, Raja T. The Javascript works fine with regular HTML Checkbox, or HTMLB:Checkbox combined with classic design.
    **HTML CODE
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <%<htmlb:content design="classic">%>
    <htmlb:content design="design2003">
      <htmlb:document>
      <htmlb:documentHead>
      <script language='javascript' src='control_checkbox.js'></script>
      </htmlb:documentHead>
        <htmlb:form>
    <table width="309" border="1">
      <tr>
        <td width="299" bgcolor="#999999">
        <htmlb:checkbox id        = "E1"
                        text      = "Parent"
                        checked   = "true"
                        onClientClick = "check_chkbox('E1');"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0102|E1"
                        text      = "Child 1.1.1.2"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0103|E1"
                        text      = "Child 1.1.1.3"/>
        </td>
      </tr>
        </htmlb:form>
      </htmlb:document>
    </htmlb:content>
    **Javascript Code:
    var forms;
    var elements;
    function check_chkbox(id) {
      var el;
      var nodeEl;
      var splitname;
      var ind = 2;
      var name = id;
      var tempname = split_name(id,'',ind);
      if(tempname != '') {
        ind = 1;
        name = tempname;
      getCheckBoxes();
      el = document.getElementById(id);
      if(!eval(el.checked)) {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = false;
              nodeEl.disabled = true;
      else {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = true;
              nodeEl.disabled = false;
    function split_name(name,splitname,ind) {
      var split_array = name.split("|");
      var size = split_array.length;
      var string;
      if(size == 3) {
        if(splitname != '') {
          string = split_array[ind];
          array = string.split(splitname);
          if(array[0] == '') {
            return splitname;
        string = split_array[1];
        return string;
      return '';
    function getCheckBoxes() {
      var tempArray = new Array();
      if(elements == null) {
        tempArray = document.all;
    <%--    case Firefox, Netscape --%>
        if(tempArray == null) {
          forms = document.forms;
          tempArray = forms[0];
        elements = new Array();
        for(i = 0; i < tempArray.length; i++) {
          if(tempArray<i>.getAttribute("type") == "checkbox") {
            elements[elements.length] = tempArray<i>;

  • Is it possible to control the cursor of a XY-graph via Keyboard and read the y value of the curser x-position?

    I have following problem when I control the cursor via an attribute note, it is neccersary to free the cursor, but then it is not possible to read the y-Value of the cursor position. I want to control the cursor via keyboard and buttons, but with the funtionality of attribute setting "cursor fixed to plot".

    You know the X position so just read the Y value by reading it straight from the Y array instead of from a property node...
    Alternatively unlock the cursor if the position control has changed...and lock it again if it is constant for n milliseconds; to produce the Y value from the Y property.
    MTO

  • Controling a Gallery With Javascript

    I would like to use a Boolean array to control the images in a gallery.  Each index in the array would correlate to a specific image, which would not appear in the gallery if array[i] == false, but the image would appear if array[i] == true.
    I could use some help with controlling the gallery.  Is there a way to do the following?
        Access a specific slide at an index via javascript.
        Get the number of slides in the gallery via javascript.
        Add/remove slides to/from the gallery via javascript.
        Set the image path for a given slide via javascript.
    It seemed to me like such information should be here:
    https://developer.apple.com/library/iad/documentation/iAdJS/Reference/iAP.Galler yViewClassRef/iAP/iAP.html#//apple_ref/doc/uid/TP40010655
    However, I think I must be missing something.  If anyone could point me in the right direction, I would appretiate it!
    Thanks,
    Robbie

    Hmmm....Did you double-click on the cell and drop in the image object or just lay it on top.  It's gotta be inside the cell so it's included in the serialization.  Not sure what else it could be.
    Code for the page that works for me is:
    this.milestones = [];
    this.onViewControllerViewWillAppear = function (event) {
              // Code here for the "View Will Appear" event.
        // path to my server
        var webservicePath = "http://localhost/myfeed.json";
        // asynchronously load the webservice
        var xmlLoader = new iAd.XHRLoader(webservicePath);
        xmlLoader.delegate = this;
        xmlLoader.load();
    // Called when the XHR call failed
    this.loaderDidFail = function ( loader, error ){
        alert("Load failed with error: " + error);
    // Called when the XHR call was successful
    this.loaderDidComplete = function (loader){
        var galleryView = this.outlets.timelineGalleryView;
        galleryView.dataSource = this;
        // grab and store the content returned
        var json = loader.content;   
        var jsonObj = JSON.parse(json);
        this.milestones = jsonObj.timeline.milestones;
        // store an archived copy of the prototype cell
        this.archivedPrototypeCell = iAd.Archiver.archive(galleryView.cellAtIndex(0));
        // tell the gallery to update itself
        galleryView.reloadData();
    this.cellAtIndexInContainer = function(container, index) {
        // create a new instance of the prototype cell
        var newView = iAd.Archiver.restoreFromArchive(this.archivedPrototypeCell);
        // event data at the index
        var milestone = this.milestones[index];
        // get the path to the event image
        var imagePath = milestone.image || '';
        // create an image object and assign to the image property of the imageView
        newView.subviews[3].image = iAd.Image.imageForURL(imagePath, false);
        // set the text values
        newView.subviews[0].text = milestone.date || '';
        newView.subviews[2].text = milestone.title || '';
        newView.subviews[4].text = milestone.description || '';
        return newView;
    this.numberOfCellsInContainer = function(container) {
        return this.milestones.length;
    and the cell hierarchy looks like this:
    -M

  • Controlling the swf timeline (swf is in captivate)

    i am making a swf (in Flash) that I want to be sequencial. in other words i have a (for example) expanding and shrinking sphere in frame one. then in frame two i have an arrow that will point at the sphere. then in frame three I have a 'hi' blinking. I want it to go 'play frame one' then have some audio over top, then when it plays the next audio i want it to go to frame two. when that audio is over i want it to go to frame three and play more audio.
    how do i do this?
    do I control the frames via captivate, or do i control the captivate via the swf?

    I would think that you could create individual swf's and bring each one into your timeline.  I did not see that the student was interacting at all, so you could tie audio to the objects (object audio) as they are introduced to the stage.
    My first thought.

  • How do I control the sampling rate of a PCI-6602 counter

    Labview version: 7.1
    Processor: Pentium 4 1.8 GHz
    Hello All,
    I have two avalanche photo diodes connected to two counter entrances on a 6602 (ctr 0 and ctr 1).
    As can be seen in the attached VI, I'm generating a signal on ctr2 and using that as an external clock for the counters.
    My objective is to accurately read the counter values at a rate of ~100KHz (i.e. 0.01 ms between measurements) and to be able to control the rate via the front panel. This should be possible (80MHz timebase), however when I run the program it is only able to actually sample at ~5 ms intervals. Also I'm encountering error 200141 even though I set the rate in the counter to 1M, which should buffer enough.
    What am I doing wrong? Any help would be greatly appreciated.
    Thanks a lot,
    Attachments:
    FRET_ver_14.vi ‏456 KB

    Hello Aadam,
    After looking at your code, I would not use the DAQ assistants to implement this. The DAQ assistant are best to be used for simple acquistion and since you are looking to use more lower level properties of you card, I would suggest to move to use the lower level VIs. It will be easier to understand where the problem is occurring at and will run better than using the DAQ assistant.
    I have done some initial research for you to implement this design. I have described each of them below and how they will assist you.
    The first example I have found is the Change Counter Output Frequency While the Task is Running. In this example, it will show you how to change the frequency and duty cycle of a counter output frequency task. One thing to remember about these counters are that the frequency will not change until the period has finished. For example, if you changed the frequency in the middle of a period of frequency of 1 Hz, it has to complete the 1Hz period before changing it to the next frequency.
    The next example I would investgate is in the NI Example Finder called Correlated Dig Write With Counter.vi. The NI Example Finder can be found in Help » Find Examples... This VI will explain how to use the counter as a clock for another task. You will need to combine the concepts of the first example with this to make sure that you can vary the sample clock.
    Finally, in the NI Example Finder, there is an example how to count digital events with an external clock called Count Digital Events-Buffered-Continuous-Ext Clk.vi. With this example, I first suggest to add the counter task and make sure you can get the external clock to work. After this, I would then implement changing clock.
    Jim St
    National Instruments
    RF Product Support Engineer

  • Control a VFD via cDAQ 9178

    Hi!
    I want to control a Variable frequency driver through the cDAQ-9178.
    I got an analog input module NI 9201,analog output module NI 9263 and digital output module NI 9472.
    I have never connected analog modules and digital modules together and was wondering if anyone could help me. How do you connect a my VFD to these inputs and outputs?
    I have attached the connection diagram for my VFD
    I would like to add a knob to control the frequency via labview so i can increase/decrease the speed and also turn it ON/Off.
    I know this is possible solution, but I don't really know how to wire it up to my VFD.
    If I succeed with the wiring to my modules, could I then use DAQ- assistant in labview to wire a knob to it to change the speed for an example, or is there another way to do it?
    Best Regards - Maurlind!
    Attachments:
    Connection diagram.PNG ‏76 KB

    Hi!
    Could you take a look at my wiring, (se attached picture). I just want to make sure I'm doing this correctly before I'm plugging in and starts messing around with LabView.
    I don't know where to put T3 +10v reference output. 
    Should I connect B3 instead of B2 Vsup, (Voltage supply).  I don't know what "NC" stands for or what it does on the modules NI 9263 and NI 9201
    As far as I have understood, I can control the frequency from the VFD by making a DAQ assistant function via the analog outputs AO0 and AO1. 
    What does B1 do? It is Analog output (motor speed), if wired to AI0 can i monitor the speed then, like in a graph?
    Can I connect as i have done with T1 (0volt, ground) to the COM ports, from the same ground? (In reality just put a lot of cables in T1 and the connect to all of the corresponding COM ports? 
    With the analog output I control the motors frequecny, the speed. With Analog input I can get the motor speed information. With the digital output I can control the motor direction, start stop, enable the VFD and so on. This i have got right I think.
    Since I have never done this before I just want to be sure I'm doing this right, or if I have to change something.
    Best Regards Maurlind!
    Attachments:
    Connection sketch.png ‏114 KB

  • [CS3] Calling scriptable PanelTreeView via JavaScript?

    Hello!
    As far as I can see is the PanelTreeView sample already a scriptable plugin, i.e. it can be called from JavaScript.
    Does anybody know how to call the plugin via JavaScript?
    I get an error at following line:
    var PTVRunner = app.PanelTreeView;
    Thanks,
    Alois Blaimer

    You should be able to look at the source code to see what script names it publishes and where it publishes them to - which bosses etc. ExtendScript's data view lets you look at what methods and parameters are available on current items - you can probably look at app to see what names are published there.
    Ian

  • Digital signature properties field name via javascript

    I am creating secure digital signature fields with random number names with similar prefixes.  The idea is to have multiple fields available in a single regular PDF (non portfolio).  So on each sheet we sign 3 fields.  One field is a name, another is a date and the last is a release.  This goes on every sheet and the PDF would contain up to 1500 pages.  Adding a random number to the end of each field name was the only way to make this work....now I have a problem of finding the particular fields for my script to sign the sheets. 
    I am guessing that there must be some way to identify how many fields I have on a sheet and return the name of all the fields.  If I can get the name of all the fields I can use that info to run my script to place the digital signature appearances in their correct field.  My field names all begin with either 'Date', 'Sig' or 'RFC' followed by a random number to avoid duplicate fields.
    So in a nut shell, how can I find the names of the fields via JavaScript?
    Thanks you!

    Are you able to add another prefix, specifically using hierarchical field names that include the page number? For example, on page one the fields could be named:
    P1.Date[random number goes here]
    P1.Sig[random number goes here]
    P1.RFC[random number goes here]
    You can then get all of the P1 fields like this:
    var fields = getField("P1");
    and then use the getArray method to get an array of the individual field references and iterate through the array.
    Otherwise, you can loop through the fields and look at the page property of each to determine which ones are on which pages. You can use the getNthFieldName document method and numFields document property to do this.

  • Controlling imported flv's

    Hi.
    I want to have a video imported in flash and controlled
    through action script for pause and resume actions and maybe
    replay.
    I converted a .mov into a .flv and imported the flv in flash.
    I did it that way because i need it to be in a certain spot with a
    mask and only pauseble by click.
    So is there any way to control the flv by click or i have to
    load at runtime the whole thing and trigger it through action
    script?

    I have followed Dean's instructions but the Flash progress
    slider and volume
    slider's that are in Flash don't really work. You can click
    on them and
    drag them about a pixel but it seems as though Director is
    grabbing the
    mouse event before you can finish dragging the slider. The
    play/pause
    button in Flash works fine, I'm guessing because a single
    mouseDown/mouseUp
    gets through.
    "womp" <[email protected]> wrote in message
    news:g2u2gu$btj$[email protected]..
    >I have a project where I'll be given FLV files. Which is
    the best way to
    >implement them.
    >
    > 1) add them to SWF files and use Lingo to control the
    video?
    >
    > 2) create a self contained Flash file with all video
    controls and use it
    > as a sprite in Director?
    >
    > 3) use the FLV's by themselves, imported into Director
    with Lingo
    > controlling them?
    >
    > Thanks for any help
    >
    > Craig
    >
    >

  • The status bar is blocking my content, is there a way to disable it via Javascript and the likes?

    I'm working on a site that requires a bottom footer in a fixed position, with a control button on the left hand side, my problem is, that the `new` status bar area covers this section for quite some time whilst it's requesting data, or waiting for the server, is there a way to disable it via JavaScript or some sort? It seems kind of silly for a status bar to cover your content (no offence), the old way was much nicer, sure it used more screen space, but atleast it didn't assume things. I just couldn't find a solution anywhere else, other than to move the button. :)

    You can use this extension to hide the pop-up that shows the URL of a link on hover and other data that previously appeared on the Status bar.
    *Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/
    Add code to userChrome.css below the @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    *http://kb.mozillazine.org/Editing_configuration
    <br />
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #statusbar-display { display:none!important; }
    </nowiki></pre>

Maybe you are looking for

  • Animated GIF not working. Tried everything, doesn't help.

    Hello, A short while ago, I had a problem with the overlarge size of my site, when viewed using Firefox, and reduced the "font size," etc., to 1.0 via about:config. However, as I now need to reset the font to its original (Firefox 24.0?) size. Can an

  • How to sync iPhone 4 contacts to Mac address book

    Hello! I can sync all my contacts from the Mac address book on my MacBook Pro to my iPhone 4. However, why does it not sync the iPhone contacts to the Mac address book? Should it not be like a two way sync? I was looking at the syncing options but it

  • Final Cut doesn't open

    I have been trying to move FCE clips and sequences between two computers using an exterior hard drive. I was doing ok until FCE quit on the second computer. I must have messed something up because when I try to open the program it starts as usual for

  • HT201269 Still trying to get old saved voicemail from deceased mom. Doesn't go back far enough....what to do?

    Still trying to get old saved voicemail from deceased mom. Doesn't go back far enough....what to do?

  • Proxy issues

    I am having some problem with the web publishing tool in a proxy network. I have kept a VI online using the web publishing tool, when in an open network it works perfectly fine. By working fine I mean when i try to open up the front panel from the li