Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3242550
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:19:43+00:00 2026-05-17T18:19:43+00:00

I have a SWF loaded via a swfobject.embedSWF() I use Javascript’s methods to pass

  • 0

I have a SWF loaded via a “swfobject.embedSWF()”

I use Javascript’s methods to pass calls via the flash APIs: http://developer.longtailvideo.com/trac/wiki/Player4Api#Sendingevents

call.player.sendEvent('LOAD', theFile)

Using a XMLHttpRequest() call via GET to a PHP script I get a file url:

http://xx.yy.com/protected/5dde98716ad8f31127ab560d94f96b87/4cbabea0/test.mp4

Typing the URL into my browser starts the file, but passing the variable to the sendEvent() call does nothing. Why?

var response = http.responseText;    
loadFile(response);
player.sendEvent('PLAY');

Is there something obvious that I am doing wrong? :/

Thanks.

EDIT1: Solution

I have gotten the generated url to load and play correctly by not just returning the video url with the XMLHttpRequest() but returning an actual xml file with the necessary parameters to work with some of the modules I am using.

<rss version="2.0" 
    xmlns:media="http://search.yahoo.com/mrss/" 
    xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
    <channel>
        <title>Example media RSS playlist</title>
        <item>
            <title>Lighttpd Video</title>
            <media:content url="http://xx.yy.com/protected/91aa7dfa25596a7d59c3b9403fc4773f/4cbb35d6/test.mp4" />
            <jwplayer:provider>http</jwplayer:provider>
            <jwplayer:http.startparam>start</jwplayer:http.startparam>
        </item>
    </channel>
</rss>

I wonder if this is as obvious as it seems now. Can XMLHTTPRequest() only return responses formatted as xml files? :/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:19:43+00:00Added an answer on May 17, 2026 at 6:19 pm

    The file is not being loaded probably because is cross-domain restrictions in flash.

    I’m assuming that the domain from where flash swf is being loaded is not same the domain from where the audio file is being loaded.

    To override this restriction you need a crossdomain.xml file placed at the root directory of the server where your sound file is hosted.

    <?xml version="1.0"?>
    <!-- http://www.youtube.com/crossdomain.xml -->
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="*" />
    </cross-domain-policy>
    

    this file should be placed at the root directory of your web server, ie, http://xx.yy.com/crossdomain.xml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a compiled swf File (lets call it cat.swf) that is loaded via
I have a SWF file that connects to a remote flash server and receives
I have a swf that requires flash 9, and I'm trying to show content
I have this swf (flash) file that provides the json that needs to be
I have five SWF files that are loaded into a main SWF. All five
I have a swf loaded into another swf , is there a way to
I have SWF files that I load into my flash movie and those SWF
I have an application with a SWF loader. From the loaded SWF file, I'm
I have a swf that just contains library assets, no code. It's loaded by
Our product includes a Flash application that is loaded by SWFObject. For one customer,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.