Implementing osmf HTMLMediaContainer into HTML page from Flash Proffessional

Integrating communication between osmf and javascript via HTMLMediaContainer using Flash Proffessional
Quite new to this
Hello may someone please explain how this is done exactly, Not quite understanting the samples and examples, I get the  onHTMLMediaContainerConstructed function but after that, Im quite lost on the javascript inside the HTML body tags!! is this body tag javascript needed if im using flash professional...please help
Thanks evryone

Hi GeekTumiso,
i'm searching for documentation too ... i want to understand if i can load external html element to make an html player skin, but there is not documentation or good example :-(
any suggestions?

Similar Messages

  • Trying to call MM_showHideLayers on container HTML page from Flash

    I'm designing a site that is mostly in Flash, but I would
    like to show some content by changing the visibility of a layer on
    the HTML page that contains the swf file. I have tried
    on (press)
    {ExternalInterface.call("MM_showHideLayers",'testerbox','show');
    and
    on (press)
    {ExternalInterface.call("MM_showHideLayers('testerbox','','show')");
    and I have tried
    on (press)
    {getURL("javascript:MM_showHideLayers('testerbox','','show')");
    My HTML page code is below. Can anyone tell me what I am
    doing wrong and point me in the right direction? Can this be done?
    Is there a better way to display large amounts of highly formatted,
    dynamic content from within Flash without loading a new page or
    resorting to a pop-up window? I really want it to look and feel
    like it is all part of the same page, and I need more tags than I
    can use in a Flash textbox. Thanks in advance :-)
    Teri
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <script type="text/javascript"
    src="swfobject.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_showHideLayers() { //v6.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3) if
    ((obj=MM_findObj(args
    ))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style;
    v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
    //-->
    </script>
    <style type="text/css">
    <!--
    #testerbox {
    position:absolute;
    width:200px;
    height:115px;
    z-index:6;
    left: 69px;
    top: 42px;
    background-color: #FFFFFF;
    visibility: hidden;
    -->
    </style>
    </head>
    <body bgcolor="#FFFFFF">
    <table width="316" height="180" align="left"
    cellpadding="0" cellspacing="0">
    <tr>
    <td
    background="../images/innerpage/sidebar-bg-iframe.jpg">
    <div id="testerbox">My test</div>
    <div id="flashcontent" align="center">
    <p>
    You must have Flash Player to use this feature.<br>
    <br>
    <a href="
    http://www.macromedia.com/go/getflashplayer"
    target="_blank">Click
    here</a> to download or upgrade your Flash Player
    </p>
    </div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new
    SWFObject("leaders.swf","leaders","316","180","6");
    so.write("flashcontent");
    // ]]>
    </script>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Text
    Text
    Text
    Text

    Hi, did you get a solution to this problem, i am having a similar issue with the MM_showhidelayers not working in IE6, it works fine in IE8?
    the code im using on a flash button is:
    on (press) {
    import flash.external.ExternalInterface;
    ExternalInterface.call("MM_showHideLayers('menu','','show','menu_back','','show' )");
    Thanks
    Gary

  • Problem open new html page from flash

    Hello,
    in IE7 and IE8 block popup lock my external link(page html)
    I use GetUrl(url,"_blank") but not it works
    Why?
    i use flash cs4
    With firefox it work

    thank you for response,
    i have used correct command but not it works.
    It Works, in my popup setting are setting "CUSTOM" not MEDIUM
    thank you

  • Opening an HTML popup from Flash, not as tab

    Hi
    I need to open an HTML popup from Flash (using ActionScript in
    Flex 4).
    Thus far I found a solution, and it does work in Safari - a new
    and separate HTML window is popped up (with a new web page).
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    But in (my) Firefox (with my settings), when I click on the Flash
    (Flex) button, the page is being opened in a new tab.
    I need a solution which pops up the HTML page in a new/separate
    window, as far as possible regardless of the browser (and browser
    settings).
    I found an example where a popup is opened from HTML, and it opens a
    separate window (a real popup) in my Firefox:
    http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
    -> "Open a requested popup"
    The JavaScript code seems to be:
      OpenRequestedPopup(this.href, this.target); return false;
    with this function def:
      function OpenRequestedPopup(strUrl, strTarget)
        if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
        WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
        else
        if(WindowObjectReferenceOfRequestedPopup.focus)
          WindowObjectReferenceOfRequestedPopup.focus();
    How could I call such code from ActionScript? Should this work through
    ExternalInterface? I couldn't even get this to work:
      ExternalInterface.call('alert', 'foo');
    Should I use swfobject.js for embedding the .swf in the HTML wrapper?
    Any other ideas?
    The two files are pasted below.
    Here's the compiler command I'm using:
      mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
    I'm running the examples locally (as files, not over http). Would it
    help to place the files on a server?
    Tobi
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      horizontalAlign="center" verticalAlign="middle">
      <fx:Script>
        <![CDATA[
    import mx.controls.Alert;
    import flash.external.ExternalInterface;
    import flash.net.URLRequest;
    // This 'http://www.adobe.com' is just an example URL.
    // Works but opens tab in FF (not a separate window):
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    // Doesn't work:
    // var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
    // navigateToURL(url, "_self");
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('launch','http://www.adobe.com');
      // Or
      // ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
    // Perhaps it's necessary to try different approaches:
    // (As soon as I get two approaches to work.)
    private function popUpTheHtmlEditor():void {
      var s:String;
      if (ExternalInterface.available) {
        // Necessary? Safe?:
        // Security.allowDomain('*');
        s = ExternalInterface.call('launch','http://www.adobe.com');
      } else {
         // TODO: Then try URLRequest?
         s = "Wrapper not available";
      Alert.show(s);
        ]]>
      </fx:Script>
      <s:Panel title="One way to open the HTML editor"
      width="75%" height="75%">
        <s:Button id="button" label="Open the HTML editor"
        click="this.popUpTheHtmlEditor();"
        horizontalCenter="0" verticalCenter="0"/>
      </s:Panel>
    </mx:Application>
    <html
      xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en" lang="en">
      <head>
        <title>html_around_swf.html</title>
        <script type="text/javascript">
    function launch(url) {
      alert(url);
      //  OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
        </script>
      </head>
      <body>
        <object id="button" name="button" width="550" height="400"
        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
          <param name="movie" value="button.swf" />
          <param name="allowScriptAccess" value="always" />
          <embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
        </object>
      </body>
    </html>

    Hi, 
    Here's a solution.
    1. Make ExternalInterface work when files are loaded as local files: 
    Go to
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l 
    In tab Global Security Settings: Edit Locations -> Add Location ->
    browse to the .swf file, add it. Make sure it's in the list (under the
    Edit Locations drop down, with a green check mark.) 
    Now open the HTML wrapper in a browser (eg Firefox). 
    Now this works (ActionScript): 
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    On Windows: perhaps:
    http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
    "In order for external interface functions to be called, you must also
    specify the folder/file where the swf file is located." 
    The above setup isn't necessary when the files are on a server. 
    Also see: 
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
    ""ExternalInterface" "
    "call() method" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
    "About ExternalInterface API security in Flex" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
    "Using the ExternalInterface API to access JavaScript" 
    2. Open a real popup: Example: 
    ActionScript: 
    private function popUpSomething():void {
      var editorPathOrUrl:String =
        'wrapper.html';
      var windowName:String =
        "SomeNameSeeDocs";
      var windowFeatures:String =
        "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
      ExternalInterface.call(
        'launch',editorPathOrUrl,windowName,windowFeatures
    JavaScript: 
    function launch(editorPathOrUrl,windowName,windowFeatures) {
      windowRef = window.open(
        editorPathOrUrl,windowName,windowFeatures
    Works in all browser I tested except Opera. 
    Tobi

  • Report HTML page from XSL

    Hi All,
    I need help with generation HTML page from
    such XML by using XSL transformation.
    XML is generated from db table.
    <ITEM level=0 name="Page row 1" type="PR"/>
    <ITEM level=1 name="Page row 2" type="PR"/>
    <ITEM level=2 name="Table 1" type="T">
         <Captions>
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
              <Name>Caption 3</Name>
              <Name>Caption 4</Name>
         </Captions>
    </ITEM>
    <ITEM level=3 name="Table row 1" type="TR">
         <Values>
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
              <Value>Row 1 value 3</Value>
              <Value>Row 1 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=3 name="Table row 2" type="TR">
         <Values>
              <Value>Row 2 value 1</Value>
              <Value>Row 2 value 2</Value>
              <Value>Row 2 value 3</Value>
              <Value>Row 2 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=3 name="Table row 3" type="TR">
         <Values>
              <Value>Row 3 value 1</Value>
              <Value>Row 3 value 2</Value>
              <Value>Row 3 value 3</Value>
              <Value>Row 3 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=0 name="Page row 3" type="PR"/>
    <ITEM level=1 name="Table 2" type="T">
         <Captions>
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
         </Captions>
    </ITEM>
    <ITEM level=2 name="Table row 4" type="TR">
         <Values>
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
         </Values>
    </ITEM>
    HTML should looks like:
    Page row 1
         Page row 2
              |Caption 1 |Caption 2 |Caption 3 |Caption 4 |
              | Row 1 value 1|Row 1 value 1|Row 1 value 1|Row 1 value 1|               
              | Row 2 value 1|Row 2 value 1|Row 2 value 1|Row 2 value 1|                         
              | Row 3 value 1|Row 3 value 1|Row 3 value 1|Row 3 value 1|               
              | Row 4 value 1|Row 4 value 1|Row 4 value 1|Row 4 value 1|               
    Page row 3
         |Caption 1 |Caption 2 |
         | Row 1 value 1|Row 1 value 1|
         | Row 2 value 1|Row 2 value 1|
    There can be many levels but always table item is leaf,
    Thanks in advance,
    Regards Peter

    Hi
    You are probably better posting in the flash forum, as without seeing the code, (and if it is not standard flash html publish) they can probably better advise on a solution.
    PZ

  • Referencing static html pages from jsps...

              Hi,
              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?
              

              I've worked it out - directory mistake...
              Thanks,
              Chris
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >
              >is title.html reachable if you enter its address in the browser?
              >
              >is title.html in the same directory as your jsp?
              >
              >perhaps you could post your web.xml file?
              >
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >>
              >> Hi,
              >>
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >a
              >JSP...
              >>
              >> <frame name="title" src="title.html" scrolling=no>
              >>
              >> The title.html file has definitely been copied into my ear file, and
              >yet
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >registering
              >> it in web.xml. But this seems like serious overkill with static content!!
              >>
              >> Am I missing something really simple here?
              >
              >
              

  • Most compatable file type to use when copying and pasting specially formatted text into html pages?

    Hello,
      I have a simple web site at http://www.psychicmeatloaf.com which is an online poetry journal site. I use files people send me (mostly .doc or .docx) and cut and paste the text from those files into html pages in an older version of Dreamweaver and some of the text has special formatting (like this page: http://www.psychicmeatloaf.com/Chang-poetry.htm ). The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver. Even using this method, some text will not maintain it's special formatting and for those I just save the page as a .jpg file and use that, because I have no other choice.
      My question is, is there a better way and is there a better file type to work from other than .docx?
    Thanks a milliom,
    George

    neophyte weaver wrote:
    The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver.
    That's a lot of steps to get to a single end that could be done with a simple copy & paste of the text into code. Like Photoshop and Fireworks, Word writes some very bulky and dirty code. I wouldn't recommend it for direct copy by the method described above.
    I personally copy the text and paste it into code view. It takes a little more work, but I don't get dozens of lines of inline styles added with it and using a preformatted post div (saved and hidden in the code (<!--post block code goes inside-->), I can quickly put title, date, byline and links up with a cut & paste.
    That's just my $0.02 worth
    Also, since nearly EVERYONE will use a different formatting in a Word doc, putting a bunch of differently formatted posts into a page will make it look like one of those ransom notes made of cut out text from different newspapers and magazines.  Better to keep everything in a single format (your format) so it doesn't become an eyesore.
    Message was edited by: Curtis_E_Flush

  • How to embed Labview-style charts objects into html pages?

    Hello all,
    I am building a C# (.Net) application that publishes html web pages. Certain pages must contain graphs that I refresh dynamically using select statement that query data from SQL SERVER databases. I like the look-and-feel of the Labview graphs and would like to know in details by which means I could embed them in my C# application. I have looked on the NI web site but aside of certain old articles about Components Works (CW) in Labview 8, have not found any other information on the subject.
    Also are there alternate objects that you know on the market that would be more easily embeddable into html pages and still have the same functions as the Labview graphing objects?
    Thanks a lot
    Christophe

    Hello Crist0phe,
    Like tst mentioned it might be a good idea to have a look at Measurement Studio and evaluate it.
    You can just download the trial version over here:
    http://sine.ni.com/np/app/main/p/docid/nav-99/lang/nl/
    FYI: You can consider Measurement Studio as the newer set of tools that replaced Component Works.
    You could kind of consider it as a "next step" in evolution after Component Works.
    Most .NET developers that use Measurement Studio also really like the WPF UI Controls, so for sure have a look at them while evaluating Measurement Studio.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • How to Call HTML Layers from Flash?

    how to Call HTML Layers from Flash? i need a help on example
    or script.

    What do you mean html layers? You can call JavaScript on the
    page using the
    ExternalInterface class. There's examples in Help if you look
    up the EI
    class, and it's call method.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Open HTML page from the stage

    How can I open a HTML page by pressing a button on the stage?
    I've created a rollover button and I'm trying to make it open
    an existing html page from the local disk (not an internet URL).
    But I can't make it open with Lingo or behaviour.
    Please help.
    Thanks a lot.
    Gideon.

    goToNetPage "
    http://somewhere.html" is the
    typical form for a page on
    the web, director must use the address format the system's
    browser uses
    for local files, this is somewhat platform dependant, a
    practical
    aproach is to open the file in question from within your
    browser then
    copy and paste the displayed address into your lingo code.
    Some report the goToNetPage counterpart provided by the
    buddyAPI xtra
    works more reliably, the xtra can be used for free if limited
    to a
    couple of functions.
    An alternate approach buddyAPI can use is to have the browser
    directly
    access the html file as if it were double clicked in the file
    manager
    using the same form commonly used to open PDF files with
    acrobat.
    (sorry I don't have example code handy)

  • Opening a HTML page from a Navigation link

    Hi All,
           I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
      Please help.
    Thanks
    Indranil Datta

    Hi Sujit,
        Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
    Thanks,
    Indranil Datta.

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • Can I display html pages in flash player

    Hi all,
    Can I display html pages in flash player, i mean swf. Plz
    help me if it can be done. Can I call html pages in flash (i mean
    in flash player no new window)
    Thanks

    hi,
    Actullay i want the site to be opened with in the flash
    player, just like iframe in dreamweaver calling the external site
    in the mail html page. Plz Help me accessing external site page
    with in flash player
    Thanks

  • May by anyway view Local Network files[e-book] or videos or html pages, from the main PC

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

  • Exclude HTML page from Webcache with ESI

    Hi.
    I would like to exclude a html page from cache using ESI.
    Somebody can show me the tags that I need to use?
    Thanks in advanced.

    It is possible to dynamically exclude pages from caching through Surrogate-Control . I couldn't get what you are trying to achieve by using ESI...

Maybe you are looking for

  • Configuring Execute Thread Count

    Hi, I am working on a webapp thats using Weblogic 8.1 (SP2) as the application server. The admin server for Weblogic currently provides 2 execute threads as default. However I was wondering if I can configure the admin server for a higher number of e

  • Lumia 625 not registering update

    My Lumia 625 is not updating to Lumia black I go to phone update and it says my phone is upto date yet on my extras and info there is an exclamation mark on my Lumia amber software meaning that I need to update.......ive checked availability and yes

  • IMPOSSIBLE TO SELECT SPOT COLOR LAYER AS I DID WITH CS2

    Hello, I'm a french user (sorry for my english). I'm used to proceed with jobs that are using PSD files with spot colors layers. With AI CS2, a PSD file with spot color layer I was able to select each layer to change its color, its transparency or it

  • Link BP to Organizational Unit.

    Hi CRM Gurus: I have a problem, I need to link a BP with Organizational Unit. The situation is that the BP is already exist but this BP was not created as Organization Unit in the PPM_CRM transaction. So we need to create an organization unit and the

  • Snd-hda-intel doesn't work on 2.6.24

    Hi, I have troubles with the sound card on a fresh Arch install. I have a Asus P5B-Plus Mainboard, which has an ADI 1988 Soundchip. Sound works great in other distributions like opensuse 10.3 (kernel 2.6.22), so perhaps it is an issue with the new 2.