Change Movie with JavaScript

Hi,
I have a Flash Media Server that is serving about 10
different video clips on demand. I have player that's embedded into
a web page which streams one of those clips. I'd like to be able to
click on a button and have Javascript interact with the player so
it loads and streams a new movie based on parameters passed to it.
My movie loads using the AC_FL_RunContent() class in
AC_RunActiveContent.js which was generated when I published my .swf
file for the web.
How can I use Javascript to access those parameters so that
when a user clicks a button the player gets updated with a
different stream from the server?
Thanks in advance for the advice, kind words and heckles for
the newbie.
Jon

Hi,
Try this.
this.assist.toolTip.value = "Hi from Avoka";
Regards
Philip

Similar Messages

  • Resize and hide a movie with JavaScript Fonctions

    Hello,
    I've read your topic about JavaScript Scripting Guide for QuickTime and I want to know if there is a solution for to rezise and to hide movie with JavaScript fonctions.
    Thank in advance

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • Change Tooltip with Javascript

    i want to change the tooltip-text with javascript.
    is there a way to do that?
    i have a lot of checkboxes and want to change the caption AND tooltip with javascript from an array. it works fine with the caption-text
    thanks
    herbert

    Hi,
    Try this.
    this.assist.toolTip.value = "Hi from Avoka";
    Regards
    Philip

  • Controlling captivate movie with JavaScript

    Hi,
    I am trying to use Flash methods to control a captivate movie
    using procedures documented in the support center article:
    http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html
    I am using the following code in a JavaScript:
    var movie = window.document.Captivate1;
    movie.StopPlay();
    Captivate1 is the object ID assigned by Captivate when it
    generates the HTML file. The movie does not respond to the command.
    I have created my own Flash movie and the StopPlay command
    works with it.
    Thanks in advance for any help anybody can provide!

    Captivate SWFs don't respond like other Flash movies. You can
    use similar techniques, but must use some specific, legacy "control
    variables" that are hanging around since the RoboDemo days:
    To pause a movie, use rdcmndPause = 1;
    A good place to find more details is here:
    http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=27&Itemid=29

  • Playing different flash movies with Javascript

    I've been researching this on the web to no avail so I figured I would post.
    I am developing a homepage similar to http://www.extractable.com/
    I have several different areas of text, which when you hover over them, I would like a different flash movie to play.  I have created this using pictures (example of one piece of the code is below), but want to increase the flashyness with, well, flash
          if (obj.id =="txtHolderPrograms")
          document.getElementById("imgLargePicture").style.filter="blendTrans(duration=.5)";
          document.getElementById("imgLargePicture").filters.blendTrans(duration=.5).Apply();
          document.getElementById("imgLargePicture").src = "PMDO.png";
          document.getElementById("imgLargePicture").filters.blendTrans(duration=.5).Play();
          document.getElementById("imgLargePictureHREF").href = "XXXXXXXXXXXX";
    I have a div where I want the different movies to play in.  What is the best way to get the different flash files?  Keep in mind that extractable site is doing just about exactly what I want to do.
    Any help would be greatly appreciated!

    I can't tell how you have things set up between the title of your posting and what you say to explain the problem.  What are you calling pages?  How do the pageselate to the 2 flash file in the doc you mention?

  • Changing prefs with javascript (CS1-CS5)

    Items created on one side of the spread need to be duplicated and moved to the other side (template information, etc.). We need the preferences in InDesign CS1-CS5 to remember layers when pasting during the running of the script, but we don't want to permanently hijack the customers preferences.
    Is there a way to 1) check a preference setting, 2) apply a change if needed, and then 3) return the setting to its previous state only if changed?
    Thanks in advance,
    Seth

    I'm not sure if this was even a preference pre-CS3, and, if so, if it always has been exposed to the scripting engine. In CS4, it is scriptable as a boolean value:
    app.clipboardPreferences.pasteRemembersLayers
    .. and the usual way of working around nasty user preferences is this:
    1. Start of script:
    originalValue = app.clipboardPreferences.pasteRemembersLayers;
    app.clipboardPreferences.pasteRemembersLayers = true;
    2. Do Your Stuff.
    3. End of script:
    app.clipboardPreferences.pasteRemembersLayers = orginalValue;

  • Change page attribute with JavaScript

    Hi,
    hope someone can help.
    Is it possible to change a BSP page attribute with JavaScript??
    I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
    Some ideas?
    Regards Anton

    Hi,
    The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
    Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
    I didn't try that out yet though.
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • I need to change the sum of a column's total with javascript.

    Hi,
    The HTML output of a SUM column is as follows:
    <td align="center" headers="COST" class="t2data"><b> 827.49</b></td>
    I need to change the sum total with javascript.
    The initial loading of the page SUMs the DB values correctly. Then onchange JS for a couple of factors may change one items COST.
    When that one item's COST changes I need to reSUM the total with JS.
    I was trying the following.. I don't know JS to well.
         var tds = document.getElementsByTagName('td');
         for (var xtd in tds) {
         //alert('Here:'+xtd.headers);
         if (xtd.headers=="COST") {
         // you found the element, do what you need
         alert(xtd.innerHTML);
         After inserting the above code into my javascript is popups up
         my alert, "Here:undefined"
         and never hits the alert(xtd.innerHTML);

    Hi Ya'll,
    I got the following working. See any problems?
    headers=="COST" actually showed up in each row of the whole column, including the SUM. So it ended up being great so I could sum it in the JS.
    I had to change the column type to NUMBER from VARCHAR2 for the initial SUM to work, so adding any formating to the SQL was not good. It looks pretty much what Andy has though... I found a slight hesitation it it though.. I have to work out a bug that prints the old total instead of the first.
    var ltotal =0;
    var tds = document.getElementsByTagName('td');
    for (var k=0; k<tds.length; k++) {
    if (tds[k].headers=="COST") {
    var inputObjs= tds[k].getElementsByTagName('input');
    if(inputObjs.length>0) {
    for (var j=0;j<inputObjs.length;j++) {
    ltotal+= parseFloat(inputObjs[j].value);
    //alert(inputObjs[j].value);
    //alert(ltotal);
    }else{
    tds[k].innerHTML=ltotal;
    Message was edited by:
    changed i to k to avoid the italics
    Bill Carlisle

  • Change TextView value with Javascript

    Hello,
    I'm trying to find a way of changing the value of an HTMLB TextView on the client side with javascript.
    Do you know how to do that ? Cannot work it out...
    Many thanks
    Nicolas

    Hi,
    this can be a bit tricky, because you have to know, how to access the element. that means you need an unique id or an absolute position of the TextView-element
    if you can see, how to access the specific element in your client-pagesource, a possible javascript could be:
    document.getElementById("<id of element>").firstChild.nodeValue="My new Text"
    or access by name/count of the element:
    document.getElementsByName("<name of element>")[#position of occurance].firstChild.nodeValue="My new Text"
    kr, achim

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Change margins + object move with margins

    Hello!
    We have a catalogue with 300+ pages!
    Margins size for that catalogue are:
    Top: 18 mm
    Bottom: 18 mm
    Indise: 12,7mm
    Outside: 12.7 mm
    Margins Inside and outside must to be change to 20 and 15 mm
    After i change the margins, the objects(incl. contet, tables, text.... etc) is not move with new margins size!
    Enable Layout adjusment.. it is not working like I want.
    How can i change Margins and all object to move with new margins size?
    Thank you in advance!

    If the objects are not currently snapped to guides they will not move reliably. If they are all athe same distance from the current margins, however you can, with Layout Adjustment off, change the margins so they snap, then enable layout adjustment and change the margins to where you really want them.
    Other than that, you need to do your moving object-by-object. If they all need to move the same amount it's probably scriptable, and you should ask in the scripting forum for help: InDesign Scripting

  • Changing applet parameters with Javascript

    Is it possible to have an applet read a param value which has been changed with Javascript after the applet loads?
    I've tried changing the param value in this way, but the applet doesn't read the new value. It reads the default value in the HTML when the applet loads, and getParameter is in the main loop of the applet which runs and updates other (internal) values fine...

    Well that page says that param values can't be changed at run-time. Never mind though because I read some more and found out how to implement a method in the applet (which can be called from Javascript) that reads the host page's DOM, thereby achieving the same result.
    Thanks for the pointer.

  • Button with Javascript appearance changed.

    Hi,
    I created button with javascript from
    Re: Button and Function
    Everything works fine, But button looks different now
    No appearance of button is there & button label is displayed in orange color.
    Have i missed something or i will never like original.

    I have done some changes suggested by ATD for another thread.
    In your app, through Shared Components, Templates create a new button template based on a copy of an existing one (pick whichever existing template you prefer, the normal Button may be ok). When the new template is created, edit it. You should see something like the following in the "Template" setting:
    a href="#LINK#" class="t12Button" #BUTTON_ATTRIBUTES#>#LABEL#</a
    There may be other HTML around this, but this is the important part as it is the actual button itself. Change this to:
    a href="#" class="t12Button" #BUTTON_ATTRIBUTES#>#LABEL#</a
    Now, on your button on the page, change it to use your new button template. In the Button Attributes setting, add in:
    onclick="javascript:checkText();"
    everything works fine except appearance of button.
    Edited by: TEJU on Jun 4, 2009 10:21 AM
    Edited by: TEJU on Jun 4, 2009 10:22 AM
    Edited by: TEJU on Jun 4, 2009 10:24 AM

  • I recently downloaded a movie with an avi extension, I changed it to .m4v and then tried to import it into iTunes but never goes through the importing process and it never shows up.

    I recently downloaded a movie with an avi extension, I changed it to .m4v and then tried to import it into iTunes but never goes through the importing process and it never shows up.

    That WON'T convert it.
    If I do the same with an MP3 and change the extension to JPG, it DOESN'T make it a picture. It makes it unusable.
    Change it back to AVI and download "Handbrake". http://handbrake.fr/
    Use HandBrake to "convert" it to M4V.

  • Can a display image field be changed with javascript

    I have a select list (P3_RECON_CONDITION). when it changes It triggers javascript..
    in that javascript I would like it to change a Display Image field (P3_RECON_COLOR) without having to refresh the whole page..
    P3_RECON_COLOR is a Display image filed that gets its image from a blob from SQL:
    select color from projstat.condition_color, projstat.project where condition_color.condition = nvl(:P3_RECON_CONDITION,'W') and project.job_piece = :P3_JOB_PIECE
    the display field works now, but only for what the P3_RECON_CONDITION is when the page is loaded..

    yes, I tried that, but couldn't figure out how to do the: " dynamic action refresh the item P3_RECON_COLOR"
    I have
    Event: Change
    Selection Type: Item
    Item: P3_RECON_CONDITION (the select list)
    no condition
    TRUE ACTION: Refresh
    Fire when True:
    Selection Type: Item
    Item: P3_RECON_COLOR (the display image)
    (if I change the action to submit page.. it does fire.. but the refresh item does nothing..)

Maybe you are looking for

  • Content won't display in iTunes

    So i have the new shuffle, and i have put about 80 songs on it and it works fine... BUT, when hooked up to iTunes, i wanted to check the contents of my new shuffle, maybe remove a couple of songs, but the content won't appear on the screen, although

  • Downloading pictures from a  camera phone.

    How do you download pictures from a (Motorola RAZR ) camera phone?

  • Sprint Connection Manager with Palm 700p

    I'm having a problem with the Sprint Connection Manager.  Recently I had to replace my HD as the old one was degrading and about to fail.  On the old HD I had no problem using my phone as a modem and connecting to the internet.  After installing the

  • Problem with NumericStepper and MovieClip's gotoAndStop

    I have a NumericStepper that increment/decrements the slides in a MovieClip called libMC: <mx:NumericStepper id="slide" change="{libMC.gotoAndStop(slide.value)}" value="1" minimum="1" maximum="{numberOfPages}" stepSize="1" /> For some reason when I a

  • Multiple instances' sapstartsrv processes

    Hello, After restarting SAP I regularly have multiple sapstartsrv for a single instance running: # ps -ef | grep -i /usr/sap/SID/DVEBMGS00/exe/sapstartsrv | grep -v grep sidadm   12959     1  0 Jun10 ?        00:02:10 /usr/sap/SID/DVEBMGS00/exe/sapst