Random images wont load after embedding flash into site

Hey forums :slight_smile:

Pretty weird issue here!

I guess the example will explain better than words:
Heres a direct link to the swf. (Flash Player 9 Req)
http://www.co-opp.net/images/flash/flash-banner.swf
Note that it loads random images to the right.

Now, when I embed this same swf into the actual site:
http://www.co-opp.net
The images don’t load!

I don’t understand :frowning:

I’ve taken out the new javascript embed code, just to make sure that wasn’t messing things around, but to no avail.

Anyway, here’s some extra info that may help:
PHP OUTPUT
&f0=member3.png&f1=member1.png&f2=member4.png&f3=member6.png&f4=member5.png&f5=member2.png&

FLASH AS
Please excuse my incredibly messy AS, I was up all night simply trying to get my head around unique randoms :stuck_out_tongue:

 
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.BlurFilter;
var lv:LoadVars = new LoadVars();
var pics:Array = [];
var mcl:MovieClipLoader;
var ipic:Number;
var ifarleft:Number;
var count:Number = 6;
var options:Array = new Array();
var output:Array = new Array();
var get1:Number = 0;
function fillPicsArray(ok) {
 if (ok) {
  var i = 0;
  do {
   pics.push(this["f"+i]);
  } while (this["f"+(++i)] != undefined);
  var limit:Number = (pics.length)-1;
  for (var i = 0; i<=limit; i++) {
   options.push(i);
  }
  for (var i = 0; i<count; i++) {
   var choice:Number = random(options.length);
   output.push(options[choice]);
   options.splice(choice,1);
  }
  loadPic();
 } else {
  trace("problem with the script");
 }
}
function onLoadInit(pic:MovieClip) {
 pic._width = 85;
 pic._height = 85;
 pic._x = -65*ipic;
 pic._y = 0;
 pic._alpha = 100;
 new Tween(pic, "_y", Strong.easeOut, 85, 0, 1, true);
 new Tween(pic, "_alpha", Strong.easeOut, 0, 100, 1, true);
 if (++ipic<pics.length) {
  loadPic();
 }
}
function getit() {
 var rrr:Number = output[get1];
 mcl.loadClip(pics[rrr],holder["p"+ipic]);
 get1++;
 _root.test1.text = get1;
 _root.test2.text = output;
}
function loadPic() {
 _root.test4.text = pics.length;
 holder.createEmptyMovieClip("p"+ipic,ipic);
 holder["p"+ipic]._alpha = 0;
 getit();
}
function init() {
 lv.onLoad = fillPicsArray;
 lv.load("hard.php");
 mcl = new MovieClipLoader();
 mcl.addListener(this);
 ipic = 0;
 ifarleft = 0;
}
init();

Any help would be greatly appreciated, and I’m willing to provide more info/files if needed :slight_smile:

EDIT
Of course, I forget to mention the most important bit :stuck_out_tongue:

If I hard code the php file with the values listed above, everything works perfectly.
But I’m using a php script that checks the directory for images, then provides that output.