So the carousel.swf is hard coded to load the file named carousel.xml. What is happening is that since the swf is being loaded from a different location, the swf makes a call to load the xml, and it is in the context of the HTML page, so it tries to load the XML from:
http://www.littletreeartstudios.com/index.php/site/studios/carousel.xml At the moment, the way your server is set up means it serves up the http://www.littletreeartstudios.com/index.php/site/studios/ page instead. So, since the swf cannot take in a XML location externally, you can either: 1. set the BASE param on the swf to try to set the correct relative pathing <script type="text/javascript"> var flashvars = {}; var params = {}; params.base = "http://www.littletreeartstudios.com/images/"; var attributes = {}; swfobject.embedSWF("http://www.littletreeartstudios.com/images/carousel.swf" , "doors", "590", "150", "9.0.0", false, flashvars, params, attributes); </script> OR if that still doiesn't work 2. place the carousel.xml in the location the swf is trying to load it with absolute paths to the iamges Aran -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Hill Sent: Wednesday, 11 February 2009 6:17 AM To: SWFObject Subject: Re: issue implementing swfobject using a swf that draws an xml file hmm... It looks to not displaying properly..... I also standardized the links in the xml file: <!-- XML CONFIGURATION HELP ====================== vertical - (yes/no) vertical movement autoMove - (yes/no) if set to yes, the carousel will spin by default maxSpeed - set maximum speed for the carousel radiusX, radiusY - set carousel x/y radius (these two are inverted in vertical mode) blurScale - set blur scale value (recomended values are powers of 2: 2 4 8 16 32 ...) reflections - (yes/no) enable/disable reflections showBorder - (yes/no) if set to yes, it will show a border around the image showTooltip - (yes/no) if set to yes, it will show a tooltip above the image stopOnRollOver - (yes/no) if set to yes, it will pause the movement when you roll over a thumbnail allButtons - (yes/no) if set to no, the buttons in the background will not interact with the mouse hitAreaWidth, hitAreaHeight - define the hit area where the carousel will interact with the mouse --> <carousel vertical="no" autoMove="no" maxSpeed="4" radiusX="200" radiusY="20" blurScale="8" reflections="yes" showBorder="no" showTooltip= "yes" stopOnRollover="yes" allButtons="no" hitAreaWidth="590" hitAreaHeight="300"> <image src="http://www.littletreeartstudios.com/images/01.jpg" tooltip="101: Donna Horn" link="http://www.littletreeartstudios.com/ index.php/site/studio101/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/02.jpg" tooltip="102: Phyllis Vaughn" link="http:// www.littletreeartstudios.com/index.php/site/studio102/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/03.jpg" tooltip="103: Vacant" link="http://www.littletreeartstudios.com/ index.php/site/studio103/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/04.jpg" tooltip="104: Bonnie Carter" link="http://www.littletreeartstudios.com/ index.php/site/studio104/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/05.jpg" tooltip="105: Jennifer Jones" link="http:// www.littletreeartstudios.com/index.php/site/studio105/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/06.jpg" tooltip="106: Vene Franco" link="hhttp://www.littletreeartstudios.com/ index.php/site/studio106/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/07.jpg" tooltip="107: Matt Armstrong" link="http:// www.littletreeartstudios.com/index.php/site/studio107/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/08.jpg" tooltip="108: Karen Ku" link="http://www.littletreeartstudios.com/ index.php/site/studio108/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/09.jpg" tooltip="109: Robert Hill and Julia Lutgendorf" link="http:// www.littletreeartstudios.com/index.php/site/studio109/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/10.jpg" tooltip="110: Vacant" link="http://www.littletreeartstudios.com/ index.php/site/studio110/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/11.jpg" tooltip="111: Toni McDaniel" link="http://www.littletreeartstudios.com/ index.php/site/studio111/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/12.jpg" tooltip="112: Katherine Marbury" link="http:// www.littletreeartstudios.com/index.php/site/studio112/" target="_self" /> <image src="http://www.littletreeartstudios.com/images/13.jpg" tooltip="113: Linda Benson" link="http://www.littletreeartstudios.com/ index.php/site/studio113/" target="_self" /> </carousel> The only thing I have not hard linked, is the the path to the xml itself... could this be the problem? thoughts? -robret On Feb 8, 8:50 pm, "Aran Rhee" <[email protected]> wrote: > Ok. > > Seems to be a simple issue in the location you are delivering your > carosel.swf vs where the rest of the site is. > > You swf is being referenced as:http://littletreeartstudios.com/images/carousel.swf > > You are then trying to load content from:http://www.littletreeartstudios.com/ > > As far as Flash is concerned, these are two separate security domains. There > is an error behind the scense saying: > > Warning: Failed to load policy file fromhttp://www.littletreeartstudios.com/crossdomain.xml > *** Security Sandbox Violation *** > Could not load xml ! Check xml (must be carousel.xml) > Error: Request for resource athttp://www.littletreeartstudios.com/index.php/site/studios/carousel.xmlby > requestor fromhttp://littletreeartstudios.com/images/carousel.swfis denied > due to lack of policy file permissions. > > You can either: > > - reference your carousel with the www. in the path :http://www.littletreeartstudios.com/images/carousel.swf > > Or > > - add a crossdomain.xml security policy file to the root of your sever > specifying that the two domains can talk. > > It sounds like the first option is easier for you to do as it is > non-technical. > > BTW - your swfobject.js is also being referenced without the www. I > recommend you standardise all locations to use the www. > > Cheers, > Aran > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > > Behalf Of Robert Hill > Sent: Monday, 9 February 2009 12:34 PM > To: SWFObject > Subject: Re: issue implementing swfobject using a swf that draws an xml file > > Thanks for looking at my thread. > > The page is athttp://www.littletreeartstudios.com/index.php > > http://www.littletreeartstudios.com/index.php/site/studios/ > > On Feb 7, 6:24 pm, "Aran Rhee" <[email protected]> wrote: > > Without knowing what code the swf calls into relation to loading the XML > > file, it is a bit hard for us to work out what is going wrong. You can try > > posting your page and people can then have a look at any pathing issue > that > > maybe going on. > > > Aran > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On > > > Behalf Of Robert Hill > > Sent: Saturday, 7 February 2009 2:22 AM > > To: SWFObject > > Subject: issue implementing swfobject using a swf that draws an xml file > > > Greetings all, > > > Been using swfobject for a while and I love it, but I ran into issues > > with a flash file that I purchased from flashden. > > > the swf file, xml and images are all in images dir: > > "littletreeartstudios.com/images" and the script is in > > "littletreeartstudios.com/Scripts" > > > here is the code before the head: > > > <script type="text/javascript" > src="http://www.littletreeartstudios.com/Scripts/swfobject.js"></script> > > > <script type="text/javascript"> > > swfobject.embedSWF("http://www.littletreeartstudios.com/images/ > > carousel.swf", "doors", "590", "150", "9.0.0"); > > </script> > > > Is there something more I need to do to pass the xml into the swf > > using swobject? > > > If one just navigates > tohttp://www.littletreeartstudios.com/images/carousel.swf > > the swf plays, so I'm thinking somehow it is an issue with the xml. > > > many many thanks for looking, even more thanks for advice! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
