I have a flash movie
here that takes its images from URLS like so
Code:
package {
import flash.display.DisplayObject;
import org.papervision3d.materials.BitmapFileMaterial;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.objects.primitives.Cube;
[SWF(width="200", height="150", backgroundColor="0xB1CEDF", frameRate="31")]
public class MC_Cube extends PaperBase {
private var frontMaterial:BitmapFileMaterial = new BitmapFileMaterial("../../images2/logotrans.png");
private var backMaterial:BitmapFileMaterial = new BitmapFileMaterial("http://missionofcompassion.org/beta_web/images2/logo%20edges%20trans.png");
private var leftMaterial:BitmapFileMaterial = new BitmapFileMaterial("http://missionofcompassion.org/beta_web/images2/logo%20edges%20trans.png");
private var rightMaterial:BitmapFileMaterial = new BitmapFileMaterial("http://missionofcompassion.org/beta_web/images2/logo%20edges%20trans.png");
private var topMaterial:BitmapFileMaterial = new BitmapFileMaterial("http://missionofcompassion.org/beta_web/images2/logo%20edges%20trans.png");
private var bottomMaterial:BitmapFileMaterial = new BitmapFileMaterial("http://missionofcompassion.org/beta_web/images2/logo%20edges%20trans.png");
However when it is embedded in a page the images do not appear, the cube is black. It doesn't matter whether I use dreamweaver to embed it or swfobject2