Image Path Through A XML File Issue

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Image Path Through A XML File Issue

    Hello Community:

    I am not a flash wiz, rather I am a coldfusion developer. I have attached a
    flash banner that reads two attributes from a XML file: image and link. Image
    is the image that my flash movie will display and link is the link that will be
    open if the user click on the banner. I have the file banner.html which is has
    the follwoing code:

    <!-- Flash Rotator -->
    <html>
    <body>

    <div style="width:550px;height:160px;">
    <div id="flashcontent">
    <script type="text/javascript"
    src="/cigars/include/FlashBanner/swfobject.js"></script>
    <script type="text/javascript">
    var so = new SWFObject("/cigars/include/FlashBanner/banner.swf",
    "mymovie", "550", "160", "8");
    so.addVariable("xmlPath", "/cigars/include/FlashBanner/data.xml");
    so.addParam("menu", "false");
    so.addParam("wmode", "opaque");
    so.write("flashcontent");
    </script>
    </div>
    </div>

    </body>
    </html>
    <!-- End Flash Rotator -->

    Then I have a XML file that has the following code:

    <?xml version="1.0" encoding="UTF-8"?>
    <Banner alignButtonsLeft="no" alignTextTop="no" autoPlay="yes"
    bannerBackgroundColor="000000" bannerHeight="160" bannerWidth="550"
    imageRandomizeOrder="no" imageResizeToFit="yes" showBackButton="no"
    showNextButton="no" showNumberButtons="no" showNumberButtonsAlways="no"
    showNumberButtonsAscending="no" showNumberButtonsHorizontal="no"
    showPlayPauseOnTimer="no" showTimerClock="no" textAreaWidth=""
    textBackgroundBlur="true" textBackgroundColor="000000"
    textBackgroundTransparency="20" textColor="" textLetterSpacing="-0.5"
    textLineSpacing="0" textMarginBottom="5" textMarginLeft="12" textSize=""
    transitionBlur="yes" transitionDelayTimeFixed="5"
    transitionDelayTimePerWord=".5" transitionRandomEffects="yes"
    transitionSpeed="5" transitionType="1">

    <item buttonLabel="" delay=""
    image="http://www.url.com/cigars/images/weeklysale/RPC.jpg"
    link="http://development.url.com/cigars/search/sr.cfm/st/1/bc/RPC/cm_sp=Home%20P
    age-_-Weekly%20Banner-_-RPC" target="_self" textBlend="no"><!--<![CDATA[FAMOUS
    DOMINICIAN SELECTION 1000.<BR>This is one <font color='#FFCC00'>sweet</font>
    cigar.
    ]]>--></item>

    <item buttonLabel="" delay=""
    image="http://www.url.com/cigars/images/banners/macanudo_allstars.jpg"
    link="http://www.url/cigars/search/sr.cfm?st=macallstar" target="_self"
    textBlend="no"><!--<![CDATA[Go on a <font color='#FFFF00'>FRENZY</font><BR>and
    pick out your favorite 5 cigars.
    ]]>--></item>

    </Banner>

    One thing that I noticed was that if the images reside in the same location as
    my files then the images get displayed but if the images are in different
    locations they don't get displayed. My images could even be in different
    servers. Any thoughts? Someone having the same problem?

    Thanks!

    Ysais.

    apocalipsis19 Guest

  2. Similar Questions and Discussions

    1. php include / image path
      I have a site that uses php includes and i need to make those editable. The text is not the problem, I can tell the users to access the pages via ...
    2. UNC Path Issue
      Anyone come across an issue where having IIS set to a UNC Path works for htm files but not for cfm files? I'm using Win2003/IIS6 with MX7. I'm able...
    3. DMXzone Smart Image Processor .tif file issue
      I'm using the DMXzone ASPupload & smart image processor. I'm having an issue creating thumbnails from .tif files. All other formats work well. I've...
    4. Class Path Cold Fusion Administrator Issue
      I tried to add a class path for an evaluating tag from Java and JVM of Cold Fusion Administrator. page. I am running MX 6.1 in Unix Sun Solaris. ...
    5. RubyCocoa 0.4.0 path [?] Issue
      Any Mac OS X/Ruby users out there? Okay...I like the command line but I'm itching for a GUI. I'm using Mac OS X 10.2.6 and Ruby 1.6.8 (compiled...
  3. #2

    Default Re: Image Path Through A XML File Issue

    If you're able to see and load the images when they're in the same place as
    your .swf, your problem could be a cross-domain issue, assuming the images
    reside on a different domain than the one your .swf is on.

    xchanin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139