Rectangle 27 3

Is the path to the swf correct?

Depending on the browser-capabilities jplayer chooses the playback mode (html5/flash). Try using an absolute path for the swf, includeing the file-part - eg:


and make sure that you can access it, in your case maybe something like:

As written in the Developer Guide you should make sure to propperly set the mimetypes. Not sure if you have an issue there. When checking the mentioned stream with:

ICY 200 OK

The manual tells that you should set audio/mp4 for m4a. (and audio/mpeg is used for mp3)

Streaming live audio with jPlayer - Stack Overflow

Rectangle 27 0

try adding this param-value pair to your swf path: <param value="...swf?src=f785" name="movie">upd this is the code i use for static embedding:

<object height="500" width="500" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="lol" name="lolo"><param name="wmode" value="transparent"><param name="movie" value="....swf?src=f785"><param name="allowScriptAccess" value="always"><embed height="500" width="500" src="....swf?src=f785" allowscriptaccess="always" wmode="transparent" type="application/x-shockwave-flash" id="lol" name="lolo"></object>

actionscript 3 - How to get param value in as3 from Html? - Stack Over...

html actionscript-3
Rectangle 27 0

Have you tried using the complete HTTP path to your swf file such as:

decoder.load(new URLRequest("http://localhost/site/decoder.swf"));

If that was the case I think it would throw a different error, along the lines of "could not load". Unless he has two different versions of the loaded swf in different paths, but that is unlikely.

The error message states that there may be a null reference causing the trouble. I though that maybe it was due to decoder not being created correctly. But you are right, using Enable Debugging is the best way to go +1.

Actionscript 3.0 Loading swf file into flash project - Stack Overflow

actionscript-3 flash swf loading
Rectangle 27 0

you will need to specify the path to the swf file :

var clip = new ZeroClipboard( document.getElementById('d_clip_button'),{moviePath: "/path/ZeroClipboard.swf"} );

javascript - ZeroClipboard just isn't working - Stack Overflow

javascript google-chrome typeerror zeroclipboard referenceerror
Rectangle 27 0

There maybe couple issues going on here... 1. Make sure your path to swfPath: "js/" file is correct. It should point to a swf file for IE to work. I used fiddler to see if it was getting a 404 error when downloading the swf file.

There is an extra comma after the mp3 assignment.

  • This is a suggestion but you can turn errorAlerts to true. $(document).ready(function() { $("#jquery_jplayer").jPlayer({ ready: function () { // alert("test"); $(this).jPlayer("setMedia", { mp3:"media/music.mp3" }).jPlayer("play"); }, swfPath: "/jquery-jplayer/something.swf", ---not sure what this path will be solution: "flash, html", supplied: "mp3", wmode: "window", loop: "true", errorAlerts:"true" }); });

jQuery jPlayer issue in IE - Stack Overflow

jquery jplayer
Rectangle 27 0

I'm using an absolute path - a full url:, unfortunately. I did try a relative path to see if that would work, but I may have had it wrong.

With absolute paths, keep in mind that http:// and http:// www. are considered different domains and can raise security problems without a crossdomain policy file.

flash - Unable to load MP3 from same domain in AS3 - Stack Overflow

flash actionscript-3 security
Rectangle 27 0

This would get all files in path/to/files with an .swf extension into an array and then sort that array by the file's mtime

$files = glob('path/to/files/*.swf');
usort($files, function($a, $b) {
    return filemtime($a) < filemtime($b);

The above uses an Lambda function and requires PHP 5.3. Prior to 5.3, you would do

usort($files, create_function('$a,$b', 'return filemtime($a)<filemtime($b);'));

If you don't want to use an anonymous function, you can just as well define the callback as a regular function and pass the function name to usort instead.

With the resulting array, you would then iterate over the files like this:

foreach($files as $file){
    printf('<tr><td><input type="checkbox" name="box[]"></td>
            <td><a href="%1$s" target="_blank">%1$s</a></td>
            $file, // or basename($file) for just the filename w\out path
            date('F d Y, H:i:s', filemtime($file)));

Note that because you already called filemtime when sorting the files, there is no additional cost when calling it again in the foreach loop due to the stat cache.

-1 You don't utilize his code and usort is the worst sort function to use in that case. But hell, all vote for you because it looks fancy. -

@elias No offense, but I find it rather ridiculous to downvote a perfectly valid answer for the reasons you gave. Talking about readability your code takes much longer to figure out than mine. I'd call it Spaghetti code. And if you are unhappy about usort being oh so terrible, than file a complaint with PHP's bugtracker.

Granted this question is aeons old, I'm about to make use usort() right now; pray, what is the problem with usort()? (Relating to @elias comment above.)

@IfediOkonkwo I don't know elias particular concerns, but some people dont like usort because sorting via the closure adds some internal function call overhead, e.g. it's slower than other sorts. In practise you want to profile your test before jumping to conclusions though. In most cases, the overhead does not have a relevant impact.

Well, if you need to sort by something non-trivial, then you probably DO need to use a callback anyway. And in this case of sorting by filemtime, that's about the only option: I did indeed come up against the key overwriting problem evident in elias' answer. Thanks @Gordon for your time and attention.

sorting - sort files by date in PHP - Stack Overflow

php sorting
Rectangle 27 0

In your debug configurations, make sure that the url or path to launch points to the html file that the swf is embeded in, not the swf itself. You can reach the debug configuration menu by clicking the little arrow next to the debug bug icon... (and probably some other way, but i always use that menu).

I can see that in the run/debug settings now, but it's pretty weird to me that it's happening at all. I'm creating these run/debug configurations right now, and they all point at the .swf file instead of an HTML file. And yet, for other projects, they point to the HTML file. I want to know why that's happening so that I can prevent it.

flex - Why does Flash Builder 4 use Flash Player instead of a browser ...

flex eclipse adobe flash-player flash-builder
Rectangle 27 0

I got it to work, but I hat to link the php file not trough it's HTTP address, instead just the path relative to the .swf file (just myFile.php or path/myFile.php).

AS3 file:

NewRequest = new URLRequest("numOnline.php");
var numberOfVisitors:int = 10;
var NewRequest:URLRequest;
var UrlLoader:URLLoader;

UrlLoader = new URLLoader();
UrlLoader.dataFormat = URLLoaderDataFormat.TEXT;
UrlLoader.addEventListener(Event.COMPLETE, onLoaded);

function onLoaded(e:Event):void {
    numberOfVisitors = int(;

I convert the text As3 receives to int, because i don't know yet how to send veria

main PHP file (the file that as3 connects to):

include_once 'config.php'; //This file would contain the variables needed to connect to the database with $link, below
include_once 'functions.php'; //We include the functions we have created

$database = "online";

$link = mysql_connect($server, $db_user, $db_pass)or die ("Could not connect to mysql because ".mysql_error());
mysql_select_db($database)or die ("Could not select database because ".mysql_error());

usersOnline(5); //We call the usersOnline function with a time span of 5 minutes

showUsersOnline(1); //Show the number of users online, and the list of users



the function file sends the number of Visiters Online with echo $count;

actionscript 3 - Flash As3 Number of people online - Stack Overflow

actionscript-3 flash flash-cs5
Rectangle 27 0

   flashVersion: 9,
   preferFlash: false,
   useHighPerformance: true, // keep flash on screen, boost performance
   wmode: 'transparent', // transparent SWF, if possible
   url:  'http://www.hiding-my-file/Soundmanager2Files/soundmanager2_flash9.swf/'

In one of Soundmanager's script, I found they put it at the end of the setup. It works for me.

javascript - Soundmanager 2, whatever I try, I cant setup the SWF path...

javascript html5 swf soundmanager2
Rectangle 27 0

Yes, in sifr-config.js you have a relative path to the swf file containing your font. Change it to an absolute path:

var nfslab = { src: 'wp-content/themes/zooka-blog/flash/nfslab.swf' };
var nfslab = { src: '' };

doh! what a silly mistake, thanks Klaus!

sifr3 - sIFR 3 works on home page but not others in wordpress - Stack ...

sifr sifr3
Rectangle 27 0

Do you have a cross-domain.xml set in your development environment? Meaning is the SWF player hard-coded to embed from localhost/path/to/player.swf, so it would load from the same hostname of localhost but chokes with Read more on this site.

You could attempt to fix this by setting this file at the root of your localhost document root in a file name cross-domain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "">
    <allow-access-from domain="*"/>

well the SWF file is hosted on a server elsewhere, I'm just pulling it into my local server.

@AlexGiunta That might explain the issue. On whatever server that hosts the SWF, check this URL: Perhaps the cross-domain.xml only allows localhost? View the contents of cross-domain.xml & see what you can glean.

I found the crossdomain.xml file, and none of the entries say localhost and/or the hostname of my webserver. i think it's worth noting that im doing this on the LAN. when i access my web server with the external URL, it doesn't work either. It only works when I'm on the LAN and using the internal hostname of the lamp server.

html - 403 Forbidden only when accessing via IP - Stack Overflow

html apache web
Rectangle 27 0

It sounds very much like you are using a relative path for the .swf file that becomes broken when you deploy to the server :

use an absolute path instead :

oTableTools: {
   sSwfPath: "",
... - Jquery datatable tabletool Save as Excel, CSV, PDF, copy and...

jquery flash iis-7.5 jquery-datatables
Rectangle 27 0

The message "Movie not loaded" as seen in the context menu of an SWF object in a webpage means that the .swf file was not loaded by the browser plugin. The main cause is that that SWF file doesn't exist and the plugin got a 404 error, in which case make sure that the path to the SWF file is correctly set.

Also, the <embed> element is obsolete in modern HTML. Use <object> instead, as seen below.

Note that various versions of IE (except IE9/10, possibly including IE8) do not support the HTML5 <object data="" /> element, they prefer the IE4-era <object clsid="" /> element, so use a conditional comment, like so:

<!--[if IE]>
<object width="640" height="480" data="" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
<!--[if !IE]>-->
<object width="640" height="480" data="" />

html - How can I play a flv file that is hosted on a remote website? -...

html flash flv playback
Rectangle 27 0

Unlike CSS, the root path of a Flash movie is the location of the hosting webpage, not the location of the SWF file itself. As Michal says, using a full path to the XML file should resolve this issue.

actionscript 3 - Embed swf XML path issue - Stack Overflow

xml actionscript-3
Rectangle 27 0

Try changing the path of SWF in the code:

 'flashplayer': '/jwplayer/player.swf',

It was in fact a path problem. The setup instructions were wrong. They say "Transfer the player.swf, jwplayer.js and swfobject.js file from the ZIP to your website. We recommend putting these files in a folder named "jwplayer" in the root of your site." Well I did make a 'jwplayer' folder in the root of my site. But that was wrong. After I moved the folder outside of my site's root folder, one folder above my site, now the player shows up. So I'm wondering if my 'localhost' setting is bad? Or something.

remove the beginning slash(/) from all properties. now u can keep the folder inside your root

php - jwplayer just downloaded, setup followed, does not appear - Stac...

php javascript jwplayer
Rectangle 27 0

When you embed a SWF in HTML, any relative path is relative to that HTML path. They are not relative to the SWF location. As the HTML is not in the same directory of SWF, you need to modify the paths accordingly.

actionscript 3 - AS3 - XML not loading when Flash on server - Stack Ov...

xml actionscript-3 flash loading
Rectangle 27 0

Check your SWF sources - they differ. I'd guess the path you use for embed does not exists but the Param one does.

Add the /bin/ in and you'll be set.

javascript - Why is IE refusing to render a swf on my site? - Stack Ov...

javascript html flash swf swfobject
Rectangle 27 0

FileReference is, let's say, rather odd on how it works with relative paths. In most cases, the base path is the path your swf was loaded from. Except for IE (or it was the other way round? I can't remember right now). I think this is not an IE/Firefox/chrmoe issue, but rather a player issue. There's a flash player for IE -that uses ActiveX- and a player for the rest of the browsers. At some point they diverge in how they handle relative paths for FileReference objects. If this is a feature, it's quite stupid, so my feeling is this is a bug, but haven't checked the bug base, so I'm not sure if it's officially considered a bug or not. Also, setting the base_path in the embed code doesn't work.

Anyway, the only sane way to avoid this madness is using a full path. Trying to detect if it's IE or not will probably work, but I think at some point this annoyance will be fixed; and when that happens, your code will break, so I think it's a bad idea.

Now, you'll probably not want to hardcode the full path in your swf, so a simple solution I've used to work around this (assuming you can change the embed code) is passing this path through a flash var when you embed your swf. Generally, I retrieve this path with php so I don't have to manually change it when deploying or if you move stuff around (I pass the absolut path to the "app root", which for me it's usually the html code that embeds the swf; then I concatenate that to the relative path where the file that handles the post lives, so from your swf it's like using a relative path in a way).

So, if you can use some server side, you can just write this little piece of code once and forget about it. But even if you do this manually, it'll be easier to mantain than recompiling your swf.

flash - AS3 File upload IOError #2038 - Stack Overflow

flash actionscript-3 upload