Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / March 2009



Tip: Looking for answers? Try searching our database.

Image Path Through A XML File Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
apocalipsis19 - 09 Mar 2009 20:22 GMT
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.
xchanin - 18 Mar 2009 19:35 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.