XML Links in Flash

Ok I have made a site that needs to have different galleries
(swfs) loading in from an XML text field. The problem is if I use
the XML command to open a new swf it opens in a new window and I
can't have that. Even if I type '_self' it opens a new window.
I know there is a way of setting up a few nodes in XML with a
name and web address, then somehow getting Flash to list these in a
textfield, then having the gerURL command to make them into
clickable links. As you can see by the vagueness of that last part
I have no idea what the XML or Action Script would look...
Does anybody else know!??
Gavin

Yes, its a simple rule to live by. If the end product will be
online, always test online to get the full scope of the end
product. Especially when dealing with XML, PHP, etc.
"I want those hours back."

Similar Messages

  • Properly Linking a Flash Animation to a URL

    Hi Folks,
    I'm Running CS4, AS3. Thanks in advance for taking a look at this.
    I was asked to link a Flash banner ad to a URL. To accomplish this, I created a new layer with one keyframe in frame 1, which spans the whole animation. In this layer I entered the ActionScript in REFERENCE 1. It works fine in several browsers, including IE8, FF3.6, and Chrome, and works for the customer. Then....
    Their webmaster emailed back saying that he "did not see any links in the new banner." I'm not sure what this means, and if he actually tested the code.
    They sent me an example from a previous developer, which is REFERENCE 2.
    I compared it to what I published--which was generated by the CS4 "Publish" option. This is REFERENCE 3.
    Did I do something wrong? Everything works in all my tests, and they work for the customer.
    It looks like they're missing a lot of information from the header. It is much smaller than the header that CS4 generates. They also have a link under the <!--url's used in the movie--> comment. Could this affect the performance? To my knowledge, this is obsolete. Perhaps they used an older version of Flash?
    tyvm!
    REFERENCE 1: ACTIONSCRIPT TO MAKE BANNER A LINK.
    stage.addEventListener(
      MouseEvent.CLICK,
      function(evt:MouseEvent):void
      var url:String = "http://www.URL.com/";
      var window:String = "_blank";
      var request:URLRequest = new URLRequest(url);
      try
          navigateToURL(request,window);
        catch (e:Error)
          trace("Page unavailable. Please refresh this page to try again.");
    REFERENCE 2: EXAMPLE SENT FROM WEBMASTER
    (NOTE VERY SMALL HEADER)
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>148x300_af</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <a href="http://www.URL.com/"></a>
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                'width', '148',
                'height', '300',
                'src', '148x300_af',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'window',
                'devicefont', 'false',
                'id', '148x300_af',
                'bgcolor', '#ffffff',
                'name', '148x300_af',
                'menu', 'true',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', '148x300_af',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="148" height="300" id="148x300_af" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="148x300_af.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="148x300_af.swf" quality="high" bgcolor="#ffffff" width="148" height="300" name="148x300_af" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>
    REFERENCE 3: MY PUBLISHED HTML
    (NOTE MUCH LONGER AND MORE ROBUST HEAD)
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>1.3.1a</title>
    <script language="JavaScript" type="text/javascript">
    <!--
    //v1.7
    // Flash Player Version Detection
    // Detect Client Browser type
    // Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.
    var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
    var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
    var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
    function ControlVersion()
        var version;
        var axo;
        var e;
        // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
        try {
            // version will be set for 7.X or greater players
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
            version = axo.GetVariable("$version");
        } catch (e) {
        if (!version)
            try {
                // version will be set for 6.X players only
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
                // installed player is some revision of 6.0
                // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
                // so we have to be careful.
                // default to the first public version
                version = "WIN 6,0,21,0";
                // throws if AllowScripAccess does not exist (introduced in 6.0r47)       
                axo.AllowScriptAccess = "always";
                // safe to call for 6.0r47 or greater
                version = axo.GetVariable("$version");
            } catch (e) {
        if (!version)
            try {
                // version will be set for 4.X or 5.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
                version = axo.GetVariable("$version");
            } catch (e) {
        if (!version)
            try {
                // version will be set for 3.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
                version = "WIN 3,0,18,0";
            } catch (e) {
        if (!version)
            try {
                // version will be set for 2.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
                version = "WIN 2,0,0,11";
            } catch (e) {
                version = -1;
        return version;
    // JavaScript helper required to detect Flash Player PlugIn version information
    function GetSwfVer(){
        // NS/Opera version >= 3 check for Flash plugin in plugin array
        var flashVer = -1;
        if (navigator.plugins != null && navigator.plugins.length > 0) {
            if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
                var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
                var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
                var descArray = flashDescription.split(" ");
                var tempArrayMajor = descArray[2].split(".");           
                var versionMajor = tempArrayMajor[0];
                var versionMinor = tempArrayMajor[1];
                var versionRevision = descArray[3];
                if (versionRevision == "") {
                    versionRevision = descArray[4];
                if (versionRevision[0] == "d") {
                    versionRevision = versionRevision.substring(1);
                } else if (versionRevision[0] == "r") {
                    versionRevision = versionRevision.substring(1);
                    if (versionRevision.indexOf("d") > 0) {
                        versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
                var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
        // MSN/WebTV 2.6 supports Flash 4
        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
        // WebTV 2.5 supports Flash 3
        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
        // older WebTV supports Flash 2
        else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
        else if ( isIE && isWin && !isOpera ) {
            flashVer = ControlVersion();
        return flashVer;
    // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
    function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
        versionStr = GetSwfVer();
        if (versionStr == -1 ) {
            return false;
        } else if (versionStr != 0) {
            if(isIE && isWin && !isOpera) {
                // Given "WIN 2,0,0,11"
                tempArray         = versionStr.split(" ");     // ["WIN", "2,0,0,11"]
                tempString        = tempArray[1];            // "2,0,0,11"
                versionArray      = tempString.split(",");    // ['2', '0', '0', '11']
            } else {
                versionArray      = versionStr.split(".");
            var versionMajor      = versionArray[0];
            var versionMinor      = versionArray[1];
            var versionRevision   = versionArray[2];
                // is the major.revision >= requested major.revision AND the minor version >= requested minor
            if (versionMajor > parseFloat(reqMajorVer)) {
                return true;
            } else if (versionMajor == parseFloat(reqMajorVer)) {
                if (versionMinor > parseFloat(reqMinorVer))
                    return true;
                else if (versionMinor == parseFloat(reqMinorVer)) {
                    if (versionRevision >= parseFloat(reqRevision))
                        return true;
            return false;
    function AC_AddExtension(src, ext)
      if (src.indexOf('?') != -1)
        return src.replace(/\?/, ext+'?');
      else
        return src + ext;
    function AC_Generateobj(objAttrs, params, embedAttrs)
      var str = '';
      if (isIE && isWin && !isOpera)
        str += '<object ';
        for (var i in objAttrs)
          str += i + '="' + objAttrs[i] + '" ';
        str += '>';
        for (var i in params)
          str += '<param name="' + i + '" value="' + params[i] + '" /> ';
        str += '</object>';
      else
        str += '<embed ';
        for (var i in embedAttrs)
          str += i + '="' + embedAttrs[i] + '" ';
        str += '> </embed>';
      document.write(str);
    function AC_FL_RunContent(){
      var ret =
        AC_GetArgs
        (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
         , "application/x-shockwave-flash"
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    function AC_SW_RunContent(){
      var ret =
        AC_GetArgs
        (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
         , null
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
      var ret = new Object();
      ret.embedAttrs = new Object();
      ret.params = new Object();
      ret.objAttrs = new Object();
      for (var i=0; i < args.length; i=i+2){
        var currArg = args[i].toLowerCase();   
        switch (currArg){   
          case "classid":
            break;
          case "pluginspage":
            ret.embedAttrs[args[i]] = args[i+1];
            break;
          case "src":
          case "movie":   
            args[i+1] = AC_AddExtension(args[i+1], ext);
            ret.embedAttrs["src"] = args[i+1];
            ret.params[srcParamName] = args[i+1];
            break;
          case "onafterupdate":
          case "onbeforeupdate":
          case "onblur":
          case "oncellchange":
          case "onclick":
          case "ondblclick":
          case "ondrag":
          case "ondragend":
          case "ondragenter":
          case "ondragleave":
          case "ondragover":
          case "ondrop":
          case "onfinish":
          case "onfocus":
          case "onhelp":
          case "onmousedown":
          case "onmouseup":
          case "onmouseover":
          case "onmousemove":
          case "onmouseout":
          case "onkeypress":
          case "onkeydown":
          case "onkeyup":
          case "onload":
          case "onlosecapture":
          case "onpropertychange":
          case "onreadystatechange":
          case "onrowsdelete":
          case "onrowenter":
          case "onrowexit":
          case "onrowsinserted":
          case "onstart":
          case "onscroll":
          case "onbeforeeditfocus":
          case "onactivate":
          case "onbeforedeactivate":
          case "ondeactivate":
          case "type":
          case "codebase":
          case "id":
            ret.objAttrs[args[i]] = args[i+1];
            break;
          case "width":
          case "height":
          case "align":
          case "vspace":
          case "hspace":
          case "class":
          case "title":
          case "accesskey":
          case "name":
          case "tabindex":
            ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
            break;
          default:
            ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
      ret.objAttrs["classid"] = classid;
      if (mimeType) ret.embedAttrs["type"] = mimeType;
      return ret;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="JavaScript" type="text/javascript">
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
            'width', '728',
            'height', '90',
            'src', '1.3.1a',
            'quality', 'high',
            'pluginspage', 'http://www.adobe.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', '1.3.1a',
            'bgcolor', '#ffffff',
            'name', '1.3.1a',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', '1.3.1a',
            'salign', ''
            ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="728" height="90" id="aperio1.3.1a" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="aperio1.3.1a.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="1.3.1a.swf" quality="high" bgcolor="#ffffff" width="728" height="90" name="1.3.1a" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>

    You should check with whoever made the comment regarding the links -- it's not clear though it may refer to the difference between these lines in 2 and 3.
    2)
    <!--url's used in the movie-->
    <a href="http://www.URL.com/"></a>
    3)
    <!--url's used in the movie-->
    So you may just need to add some link after that line to appease them? So asking is your best means to resolution for that.
    As far as your mention of a more robust head section goes, there is probably no difference between the two--they both use the AC_FL_RunContent coding to embed the Flash file.   The REF3 head section just contains all of the javascript code that is in the file they are linking in the following line...
    <script src="AC_RunActiveContent.js" language="javascript"></script>

  • How do i link a flash file to a web site in dreamweaver 8

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6000.16448"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DArial
    size=3D2>Hi</FONT><FONT face=3DArial =
    size=3D2></FONT></DIV>
    <DIV><FONT size=3D1>
    <P><FONT size=3D3>How do i link a flash file to a
    web site in =
    dreamweaver=20
    8</FONT></P>
    <P> </P>
    <P><FONT face=3DArial =
    size=3D2>Thanks</FONT></P></FONT></DIV></BODY></HTML>
    ------=_NextPart_000_0059_01C7A541.7942B2A0--

    In Flash. There is no way to apply an HTML link to a swf
    file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dave" <[email protected]> wrote in message
    news:f3s8f0$cla$[email protected]..
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks

  • JEditorPane - How to display XML Linked HTML File in JEditorPane ?

    Dear Friends,
    I have a HTML File consisting of stylesheet, xml linked (for data) and with headers, footers...
    When i called a ordinary html file using setpage property of JEditorpane..it's working no problem...but when i call the html file having xml linked or buttons...it's not properly displayed....
    If anybody hits this problem....pls...help me....
    Regards,
    V.Prasanna

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • Making a Link in Flash Professional 8

    Hey,
    I'm wondering how to make a link in Flash Professional 8, any tutorials around?

    Linking to a web page and linking to another section of the same Flash file involves different code.  I'll show you examples of both wrt using a button for the interactive control.
    In this case the button is assigned an instance name of linkBtn (it's assign in the properties panel).  The code I show is placed on a frame that is the same as the button (different layers for good housekeeping).
    Link to web page:
    linkButton.onRelease = function(){
         getURL("http://www.yoursite.com/page.html");
    Link to section (section starts on a frame having a label... "section1"):
    linkButton.onRelease = function(){
         gotoAndStop("section1");
    OR
    linkButton.onRelease = function(){
         gotoAndPlay("section1");
    The difference between the two for the section link would depend on whether section1 is an animated timeline piece that would play when you get there or a self-contained movieclip that has controls of its own.

  • Broken Links inside FLash

    I notived that the links inside my flash header do not work
    on this page as well as other pages inside this directory. The
    links do work in the root directory. Does someone know how to fix
    this problem I am having? Here is the link:
    http://www.school-psychologist.com/nick/worshipping/creative.html
    The action script URL setting is index.html, about.html, etc.
    For some reason when you click the following link, the flash header
    sends the user to
    http://www.school-psychologist.com/nick/worshipping/index.html
    instead of
    http://www.school-psychologist.com/nick/index.html
    Thanks a bunch!!

    impossible to say other then your code is wrong - always
    always always copy/paste the code in
    question or we have nothing to go by - but flash simply does
    not replace urls with other urls - you
    must have the wrong code on the wrong button and missed
    something simple.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    Mike Splat wrote:
    >
    >
    > I notived that the links inside my flash header do not
    work on this page as
    > well as other pages inside this directory. The links do
    work in the root
    > directory. Does someone know how to fix this problem I
    am having? Here is the
    > link:
    >
    >
    http://www.school-psychologist.com/nick/worshipping/creative.html
    >
    > The action script URL setting is index.html, about.html,
    etc. For some reason
    > when you click the following link, the flash header
    sends the user to
    >
    http://www.school-psychologist.com/nick/worshipping/index.html
    instead of
    >
    http://www.school-psychologist.com/nick/index.html
    >
    > Thanks a bunch!!
    >

  • How to overwrite  the xml file by  flash using Php

    Hi
    i am creating getting data from the xml file ... and i am
    doing some Alteration in the xml file by flash after that flash
    producing the xml file i finished upto this process...
    nw i neeed to overwrite the xml file.... using Php.....
    can any one give me some idea ... to solve this issue
    ~~SK

    Flash Player cannot write XML files at all. but using
    php+flash we could do it .

  • Linking between Flash, pdf and html

    How to link from Flash to certain page in pdf document
    displaying in web browser?
    this is not working:
    on (release) {
    getURL("interfaces.pdf#example", "_self");
    neither: #nameddest=example, #page=2
    This works though from html, but only first time. If you surf
    beck and then go to the same link it doesnt navigate to that page!
    Any idea very appreciated!
    Thanx

    Hi Raymond,
    To respond to your question:
    Would I have to create two regions with each region the same chart one in Flash and one in HTML and Hide/Show the region depending on the platform I am running eg iPAD or Desktop?
    No, this isn't necessary at all. One chart region with a "Chart Rendering" setting of "Flash Chart" on the Chart Attributes page will do the trick. With APEX 4.2, we introduced HTML5 chart support using AnyChart, our existing supplier of Flash charts in APEX. One of the great features of their new HTML5 charting support is how they handle the rendering of a chart. If you take a look at AnyChart's documentation on the rendering options available as part of their HTML5 support, http://www.anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types, there are 4 possible rendering options available. We declaratively support two of those options in APEX:
    AnyChart Rendering Option       Associated APEX "Chart Rendering" setting
    FLASH_PREFERRED                 Flash Chart
    SVG_ONLY                        HTML5 ChartSo if you choose to generate a "Flash Chart" in APEX 4.2, AnyChart will handle the rendering of that chart for you, depending upon whether Flash is found on the device or not. Where Flash is detected, a Flash chart is rendered, however if Flash isn't detected (e.g. on devices such as an iPad), then a HTML5 chart will be rendered. So there's nothing additional for you to do - no need for two regions on your page with two different charts. If you choose to generate a "HTML5 Chart", then a HTML5 chart will always be rendered - this is no fallback to Flash with this option.
    I hope this helps to clarify things for you.
    Regards,
    Hilary

  • Link INTO Flash Site?

    My photographer wife just posted her brand new Flash site.
    And it's great.
    But, we just noticed that other specialist sites linked to
    the relevant page of her old site. Is there a way to create links
    into Flash sites without creating separate HTML pages? The idea
    would be to go to a specific navigation point.
    Thanks,
    Gary

    You can use a javascript code within the .html file pointing
    to your exact section on the flash movie. I just forget what's the
    term of that. I'll look at it and get back to you
    Spain Travel - one
    of my inspirations in using flash

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • Link ancher  flash-html

    im building a website in HTML but i made the menu in Flash.
    I would like to know what is the code to ancher link the
    flash menu to different parts of the page.
    The site it has to be mainly made in html.
    I wrote this in the html code: <a name="print">
    and this in the button flash menu : on (release) {
    getURL("#print");
    With no luck

    Yes, use on getURL me,data. Attach a behavior to the Flash
    sprite that looks something like this:
    property thisSprite
    on beginSprite me
    thisSprite = me.spriteNum
    end
    on getURL me,data
    gotoNetPage data
    end
    Flash expects to be wrapped in a browser window. When that
    same Flash swf is inside a Director movie, there is no browser to
    communicate with, so the getURL method fails. Director can take the
    string that you send from Flash and use it in a gotoNetPage method.
    Be sure to include the network xtras with your
    projector.

  • XML editing from flash, any idea, suggestion

    Hello,
    I have created for a client a website dynamically loaded with
    XML formatted content (XML Files), now the client wants to be able
    to edit the contents of its site (CMS), the site displays several
    things but more specifically a list of products, which you can see
    by browsing the "PRODUCT RANGE" section of
    http://www.cellap.com/.
    I planned to use a php to rewrite the XML with the edited
    data sent from the flash (oldData, newData), it works fine, except
    that there are several problems:
    -I use the "ereg_replace" command of PHP, which seems not to
    handle correctly special charachters such as "*"...
    -If the php is told to replace i.e. "FACE" with "FIGURE", it
    will replace it everywhere on the XML, which is not what I want; so
    maybe I'm not using the right technique; I know it'd be more easy
    to do if the content was on a MySQL database, but the client wanted
    XML, to be able to browse the site offline...
    Any help or suggestions would be greatly appreciated!
    Tks

    loading yes. editing no.
    you need some sort of server script to do the editing(php,
    asp, cmf)
    Dan Mode
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    "ELTIGRE" <[email protected]> wrote in
    message
    news:e94vsk$fjb$[email protected]..
    > is it posible Loading and Editing xml data from flash
    without any
    > programing language using actionscript only?

  • Update XML files with Flash

    Hi,
    I would like to know if its possible to insert or update
    existing data of a XML file with flash?
    And how can I do it?

    This code have two procedures or functions the createXML is
    called first this one asks for the variable send using get called
    fileName (Append this variable to the page request). The function
    called writeToFile opens the file and writes to it.
    Form flash you need to create the xmlfile and call the
    sendAndLoad method.

  • Adding Hypertext Link in Flash CS5?

    How do I add a Hypertext Link in Flash Pro CS5? Do I need to use Action script 3 and asign to a button? My website has a text file to add and edit text content. Is there any way to add a Hypertext Link into this text file?
    Thanks

    I am only well versed in ActionScript 3 and that is not even being well-versed.  I used to know some things about AS2 but that
    has faded.
    To answer your question yes you need ActionScript and you need to assign an event listener to a button and assign an event handler to that listener which will be a function.  Try to read up on the topic "navigateToURL" in the help documentation with Flash CS5 Pro.  There should be an example that you can follow.  It is not as easy as it sounds at first but once you get the gist of the syntax you will know how to do it for any situation.

  • How to edit xml link?

    First a few words about my context:
    I received a layout made on a CS3 version of InDesign. Now I am trying to create a procedure to automate the production of several pdf based on this layout. Manually the process would be to open the layout; edit the xml link with each xml source and create a corresponding pdf...
    First issue:
    In CS4 when I want to manually edit the xml link, the opened dialog prevent me (xml files are in gray) to select xml files, is it a well-known issue? How can I avoid it?
    Second question:
    How to edit the xml link from script?
    Last question - applescript question - :
    How to skip application dialogs? Like "This document miss some links, would you continue?"
    If you'd be able to help me, thanks in advance!

    Dear Loic_aigon
       Many thanks!
    But I used what you said!.
    But Still I'm facing the same problem [ not find : "image"]
    Here the below tag I used..
    <Figure id="f0020"><label>Figure 2 </label><caption>Dummy Figure </caption>
    <image href="C:/Program %20Files/VUG/clouds.jpg"></image></Figure>
    Program :
    //============== Start =====================//
    #include "E:/HariharaSudhan/XMDOM_TEST/xml_for_script-3.1/jsXMLParser/xmldom.js";
    var myFile = File("E:/HariharaSudhan/XMDOM_TEST/xml/test.xml");
    myFile.open("r");
    var myXMLString = String(myFile.read());
    var objDom = new XMLDoc(myXMLString, undefined);
    var domTree = objDom.docNode;
    $.writeln(domTree);
    var myImage = domTree.getElements("image");
    var myDoc = app.open(File("E:/HariharaSudhan/XMDOM_TEST/Indd/test.indd"), true);
    $.writeln(myImage);
    for(var i=0; i<myImage.length; i++)
    $.writeln( myImage[i].name);
    myImage[i].getAttribute("href").replace('file:///','');
      var myPage = doc.pages[0].duplicate(LocationOptions.AT_END);
      var myFrame = myPage.pageItems.item("image");
      myFrame.place(File(myImage[i].getAttribute("href").replace('file:///','')));
      app.pdfExportPreferences.pageRange = myPage.name;
      app.pdfExportPreferences.viewPDF  = false;
      myDoc.exportFile(ExportFormat.pdfType, File("E:/HariharaSudhan/XMDOM_TEST/PDF/" +(i+ 1)+".pdf"), undefined, undefined, undefined, undefined);
    myDoc.close(SaveOptions.NO);
    //===================== End ============================//
    So please kindly see the attached xml file, and please send me the solutions.
    Please this is my humble request.
    Thanks & Regards
    T.R.Harihara SudhaN

Maybe you are looking for

  • How to get the content of a website to a txt file via powershell

    Hello, I have a reporting server that creates a report to a URL, by running multiple .xsl files. I want to be able to gather the data in the URL and convert it to csv or txt file via powrshell. Again I want the data inside the URL, I've been playing

  • Front Row lists Podcasts in Movies?

    For some reason my Front Row is listing some of my podcasts (early Diggnation and AOTS) in the movies directory. I only have like 5 .mov files (random clips from the net) in that folder and it's anoying that there is all those extra podcasts in that

  • Simple logging under Java 1.3.1?

    Hi, I am not able to use Java 1.4 at the moment and so cannot take advantage of its new logging classes, can anyone point me in the direction of any tutorials on doing basic transaction logging with 1.3? Is it just a case of calling a function that o

  • Bridge is non responsive

    I have recently lost the ability to open adobe bridge. I have photoshop CS4 and have been using it without any problems for a few years now but suddenly I lost the abiliy to access Bridge from either the icon at the top of photoshop or through the co

  • FCE won't open at all.

    Reinstalled all of FCE. Still won't open. I am running a MBP with 10.6.7 and FCE 3.5