Change Html Title dynamic from Flash

Hi,
I want to change the Title of the Html page dynamically from
the embedded Flash.
The Title, that appears on Browser bars etc.
Could I do this?
On init I can load the Html source code in with LoadVars, and
onData (src) change the Title with subString method, but, how then
could I pass the new value back to the Html page, so the Browser
Title changes?
Thank you.
Luciewong

Thank you both GWD and Dave for the help.
I know your code works under normal circumstances, just in my
case, I can't get it to work.
Because, on a subsequent Frame, called after the
ExternalInterface.call,
I have a getURL(javascript) to change the doc. background
color.
Now, either the Title changes or the background color
changes, but both after each other, can't make it.
I have tried Ext,CallBack function, so when the Title changes
and callBack is true, move on, but still then it changes the BG,
but not the title anymore.
I must do something wrong with the callBack function?
Thank you for your help.
Regards,
Luciewong

Similar Messages

  • How to change report title dynamically??

    Hi,
    I need to change the report title dynamically. The report title must contain the value of a particular culumn in the same report.
    ex:
    col1----col2
    123----abcd
    Report title should be report123
    Thanks

    Hi BIPUser,
    Thanks for your answer.
    @1 in title view is not working. It shows @1 in the title view.
    But Narrative view is working fine.
    Thanks again
    Have great weekend
    Edited by: bob123 on Apr 2, 2010 8:41 AM

  • Changing tab title dynamically

    Hi All
    i've four tab pages in a portal page and i want to change the labels of these tab pages dynamically taking data from table.
    for example i've a table named TAB_TITLES with thest columns TAB_ID,TAB_NAME
    there are four rows
    TAB_ID TAB_NAME
    1 Tab-1
    2 Tab-2
    and so on
    i want to read values from this table and put the tab label in oracle portal page having tabs.
    thanks

    So .. ?
    You should have some expression of problem, information of your attempt, question about something or request for help. I do not see anything in this message like this, although it is also posted twice for no reason.
    so help others in assisting you my friend; or otherwise help yourself!

  • Human Task change task title dynamically

    Hi,
    I have a BPEL Human Task with several steps in SOA 11.1.1.7.
    I try to change dynamically the task title according to the Participant Name or stage .
    I tried different solutions(swicth, updateTask service) but I am unable to get the participantName or the stage name before entering in the initiateTask function.
    Please can you give me a clue of how it could be done?
    Thank you!

    Hi,
    Could you please check in wftask and wftask_tl tables whether the title has been updated?
    Also, could you please check "Reevaluate the translation every time" in HT and try again?
    You should try this.

  • Probleme pour changer la langue dynamiquement avec flash cs4

    Actuellement , je cherche un moyen simple de changer de langue dans mon swf
    je travaille avec flash cs4
    bien sur j ai Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
        static function start():Void {   
            var langCode:String = xmlLang;
            currentXMLMapIndex = 0;
            xmlDoc.load(xmlMap[langCode][0]);
        static function setXMLLang(langCode:String):Void {
            xmlLang = langCode;
    et les différents fichiers xml dans le répertoire du swf
    dans chaînes , j ai coché : "remplacer les chaînes automatiquement lors de l'exécution"
    avec donc une langue par défaut ( d'ailleurs je me demande , si le problème ne vient pas de là)
    si je coche dans les paramètres de chaînes : "remplacer les chaînes manuellement en utilisant la langue de la scene" ou "remplacer les chaînes via actionscript lors de l'exécution"
    mon code ne fonctionne pas.
    donc j ai gardé :  "remplacer les chaînes automatiquement lors de l exécution"
    dans mon animation j ai plusieurs scènes (pages)
    p1, p2, p3, p4
    dans p1
    j intègre une barre de langue
    puis 2 calques
    Calque--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
        var target = eventObj.target;
        var newLang = target.selectedItem.data;
        MyLocale.setXMLLang(newLang);
        MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Calque--langue ex Fr:
    // Forces combobox to have the correct value
    on (release) {
        var component = _parent.lang_cb;
        for (var i=0; i< component.length; i++) {
            var item = component.getItemAt(i);
            if (item.data == "fr") {
                component.setSelectedIndex(i);
                component.dispatchEvent({type:"change"});
                break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
         var component = _parent.lang_cb;
         for (var i=0; i< component.length; i++) {
             var item = component.getItemAt(i);
             if (item.data == "ja") {
                 component.setSelectedIndex(i);
                 component.dispatchEvent({type:"change"});
                 break;
    quand je change la langue dans p1 , la langue est modifié pour  p2, p3 et p4
    cependant , après une navigation dans p2, p3 et p4 ,dès que je reviens sur p1 , la langue par défaut se remet automatiquement , alors que je le l'ai pas changé manuellement.
    je ne sait quoi faire pour résoudre le problème
    à mon avis , le script ce reinitialise quand je reviens sur p1
    y a t'il un moyen de conserver les changements de langues effectués  , jusqu'au changement manuelle de la langue ??
    merci

    pour la langue je crois qu'il faut désintaller et ré-installer, c'est long et pénible mais je ne vois pas d'autre solution. pour ré-installer en français, je crois qu'il est possible de télécharger un installeur depuis le site NI, sinon il faut contacter NI et leur demander d'envoyer un CD, à conditions bien entendu d'avoir une license valide.
    pour le type de fichier, je ne sais pas, je n'utilise pas ce logiciel.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Change url text dynamically from text file

    I need to use a text file created from a form to rewrite the
    links on my main page. Can I put some kind of javascript in the
    href so when the page loads it'll rewrite the link to point to
    "newpic1.jpg" where newpic1.jpg is one of the items from the text
    file created by my form?
    Please help, this has got me really stuck. All help greatly
    appreciated!!!
    ff

    flashfloozie wrote:
    > how would I identify what line of the text file each
    link will use?
    >
    > btw I really appreciate you taking time to help me with
    this!!!
    >
    > ff
    that is the difficulty with a text file...
    if the links are to remain only for a session, you can set a
    session var
    a simplified method - using PHP - would be:
    1. form
    <form id="form1" name="form1" method="post"
    action="process_form.php">
    <label for="selectimg">Select Image:</label>
    <select name="selectimg1" id="selectimg">
    <option value="img_blue.gif">Image blue</option>
    <option value="img_red.gif">image red</option>
    </select>
    </form>
    2. process_form.php
    <?php
    $_SESSION['img_array']['img1']=$_POST['selectimg1'];
    ?>
    3. wherever the image needs to be displayed:
    <img src="/images/<?php echo
    $_SESSION['img_array']['img1']; ?>" />
    Please be advised that this is a very simplified version and
    that if you
    do use something like this you have to first clean up
    whatever the form
    submits. NEVER trust user input - it could be malicious
    code...
    Anurag

  • Change HTML Color

    Hi,
    I am trying to change the html page color from flash - I use
    the "getURL" method - It works fine within GoLive but when I
    display it in any browser I get: "
    javascript:document.body.bgColor='#773707'" in the address
    bar and the color does not change - What am I doing wrong?
    Thank you for any help

    use the externalinterface class to call javascript
    functions.

  • Displaying  Window Title Dynamically

    Hi Gurus,
    I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from  respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
    Points will be rewarded
    Thanks,
    Kishor

    Rather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
    report zlocal_jc_sdn_titlebar1.
    data:
      g_title                 type sy-ucomm.
    parameter:
      p_gday                  type sy-datum.
    * Events:
    initialization.
      perform initialization.
    at selection-screen output.
      set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
    *&      Form  initialization
    form initialization.
      message e398(00) with 'Hello' sy-uname 'today is' sy-datum
        into g_title.
    endform.                    "initialization
    Jonathan

  • Changing title & icon in Flash projector

    I want to create a projector from Flash (projector.exe) that
    has my own custom icon and title text in the top window bar.
    This is something that I routinely do with Director, (by
    editing the icons in the projec32.skl file in Director's Program
    Files' folder), but I can't figure out how to do this for Flash.
    The idea is to change where it says "Macromedia Flash Player
    7" in the title bar and the little "f" icon next to it
    to say, "My Own Application Name" , and have my own icon.
    Can anyone suggest a solution?
    Thanks!

    I think there are some free icon hacking tools out there...
    or you
    could go the easy route and create your exe with mProejctor,
    as part of
    the build cycle you can spec a custom icon, and there is a
    lot of
    flexibility with window types.
    download here
    http://www.screentime.com/software/mprojector/demo.html
    and some docs
    http://www.screentime.com/software/mprojector/docs/index.html
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • 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

  • I want to create an HTML table of img maps dynamically from DB retrieves...

    Hi,
    How do I build dynamic HTML code in a function and then populate a HTML region to render it.. (did I say that right?)
    I want to create an HTML table of img maps dynamically from DB retrieves...
    Thank you, Bill

    Vikas and Andy,
    Using Andy's code I'll go further...
    I want to create a function that returns HTML code that has been built dynamically.
    create or replace function "GET_CH_TABLE"
    return VARCHAR2
    is
    HTML_STRING VARCHAR2(2000); -- Create a string variable
    BEGIN
    HTML_STRING:= '<table align="center">' ||chr(10)||
    ' <tr>' ||chr(10)||
    ' <td> TEST ' ||chr(10)||
    ' /td>' ||chr(10)||
    ' /tr>' ||chr(10)||
    ' tr>' ||chr(10)||
    ' td>' ||chr(10)||
    ' a href=https:// ............etc. etc.. building the <TABLE> and <TD> cells having whatever I want... example.. changing the name of an image dependant on something else..
    return HTML_STRING; -- output the string to the region
    --also tried htp.p(HTML_STRING);
    END;
    =====================================
    Building the dynamic HTML is not my problem. It is how to get it into a region and to be read as HTML from a function call...
    I'd like the source of the region to be the returned HTML from a function call to GET_CH_TABLE();
    but it gives error:
    ORA-06550: line 1, column 7: PLS-00221: 'GET_CH_TABLE' is not a procedure or is undefined
    ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    Debug:
    1: begin
    2: GET_CH_TABLE();
    3: end;
    I

  • Change browser title from framename

    Hello, I've created with robohelp 8 a WebHelp. The browser display's in the title bar the title of my project. Is it possible to change this title when you choose a topic? Like you click from the startpage (title=startpage) on topic A, the the browser title changes to A? I've searched the web for answers, but the ones I found wouldn't work in my Webhelp. For example there is a javascript, which you include in your topic HTML:
    <body OnLoad="parent.document.title=document.title"> Unfortunately this doesn't work.
    Does anybody know how to solve this?

    I have found the solution:
    Just put this code in your topic pages:
    <body onload="parent.parent.document.title=document.title">
    This works great. The only problem is that when you put this code in your masterpage's RoboHelp strips the code, so in you export such as webhelp the code has disappeared. The solution is to modify the page's afther exporting your webhelp. I use dreamweaver, this tool has an batch function for search and replace which makes it an easy job!
    I wil send Adobe a suggestion to make this function in the software, that would be easier.

  • How to use an dynamic text from Flash in FlashBuilder with swf ?

    Hello,
    i'm trying to develop a game in flex builder and i got a problem with the dymanic text i've imported from flash. I want to insert a scoreboard in my application and for doing that i should use dynamic text in flash. I create a dynamic text in flash and then a import it to Flash Builder in a movie clip, and i called the dynamic text "Score". Now i've tried to use the "Score" variable to change the value of the dynamic text box un my flash builder application, but it doesn't change anything.
    I read somewhere that i've got to use the score.text value to change the number of my score but that doesn't works because Flash Builder tells me that this sort of variable don't contain the .text value.
    Thank you for trying to help me.
    bye.

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • Display PDF document from Servlets to browser - how 2 change the title

    Hi, need help of changing the html title when Display PDF document from Servlets to browser. By default the browser's title shows the obsolute URL where the rdf comes from (i.e. http://www.google.com/sample.pdf), because servlet responds a binary data (PDF), there seems to be no other way to change the browser's title to fit my own choice.
    Appreciate your quick help,

    You can try and check with
    .setTitle("Welcome");

  • Change the title of the new HTML page screen

    Hi,
    I would like to change the title displayed in the screen to create a new HTML file from "New HTML Document" to something like "New Page". Is there any properties file which I can edit to get this done? Or does it come from some java class file?
    Awaiting reply.
    Thanks & Regards
    Ranjith

    Hi,
    I have found the text here:
    <i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.km.cm.ui\lib\km.appl.ui.edit_api.jar\com\sapportals\wcm\control\edit\ResourceEditControl.properties</i>
    and here:
    <i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.km.cm.ui\lib\km.appl.ui.edit_api.jar\com\sapportals\wcm\control\edit\ResourceEditControl_en.properties</i>
    So seems you could change it. But I think when you apply a patch to the KM the .properties files will be overwritten - so you will have to do it again...
    Romano

Maybe you are looking for

  • Time evaluation to generate future quotas

    Hi Gurus, We must generate absence quotas for the future(year 2015) cause personnel must request absences for next year. We run time evaluation till 01/01/2015 to generate quotas: 2015 quotas were generated correctly. If we run time evaluation till d

  • How to use an OBR outside the application

    Hi All, I am using SOA and Jdev 11.1.1.1.0. I have created business Rule and deployed it(using Decision table). Now I want to use that rule out side my application. In JDev i am able to import .rules file only with in that application. But we need th

  • Error TF223006: not able to edit the WI Template from VS2012

    hi,  I am using VS2012 with powertools 2013 and our TFS Server is 2013. when i try to edit a BUG WI template i am getting an error as shown in the picture.

  • RC-50004: Fatal: Error occurred in StageDBTier

    Can anybody help on this issue Please. We are using 11.5.10.2 applications with 10.2.0.4 database and trying to clone the Applications, got the error while doing adpreclone. $ perl adpreclone.pl dbTier Running Rapid Clone with command... perl /ul01/a

  • Reports Runtime - Settings in Designer 9i

    Hi. When executing Reports Runtime, through Repository Reports (Designer 9i) and the program call the browser. I tried to alter General Settings, but it didn't advance I tried to alter registration variables and also without success. Did anybody alre