Results 1 to 7 of 7

Thread: .swf can't access.xml file

  1. #1
    User
    Join Date
    10-07-11.
    Posts
    59

    Default .swf can't access.xml file

    Hi,
    I want to display a .swf in a lightbox, but it needs to access a .xml file.
    File manager won't let me upload the .xml file so where can i put it? Is this even possible to do?

    Thanks
    Corrie

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: .swf can't access.xml file

    The file Manager will let you - if you add xml as an uploadable file type in Settings.
    You may also need to add a crossdomain.xml into your site root, to ensure that the swf can access the xml from both www.yoursite.com and yoursite.com (do a Google search on crossdomain.xml)

  3. #3
    User
    Join Date
    10-07-11.
    Posts
    59

    Default Re: .swf can't access.xml file

    Hey, thanks for your help, I didn't know I could specify what files could be uploaded in settings, someone else set that bit up for me so thanks :)
    Will go play with my script, but for anyone else reading this, here's the adobe link about crossdomain:

    http://kb2.adobe.com/cps/142/tn_14213.html


    Thanks
    C

  4. #4
    User
    Join Date
    10-07-11.
    Posts
    59

    Default Re: .swf can't access.xml file

    Still not working with the crossdomain.xml on the server.

    It's been years since I wrote Actionscript so perhaps there is something wrong here in my .fla file?:

    Code:
    	var XMLPath:String = "http://www.la-design.co.uk/contao/tl_files/la-design/images/news/bookScaler.xml";
    	
    
    	this.flipbook.bookLoader.source="../brickPhotos.swf";
    Can any coders help??
    I also tried just using "../bookscaler.xml"

    Thanks
    C

  5. #5

  6. #6
    User
    Join Date
    10-07-11.
    Posts
    59

    Default Re: .swf can't access.xml file

    Ramjet, you're a legend thank you!
    Probably obvious to anyone that know's what they're doing ops: but I've learnt for next time

    Thanks
    C

  7. #7
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: .swf can't access.xml file

    no problem -
    sometimes the simplest mistakes are the hardest to spot

Bookmarks

Posting Permissions

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