...

View Full Version : However it is embedded in a page the images do not appear



nikos101
03-29-2008, 11:54 AM
I have a flash movie here (http://missionofcompassion.org/beta_web/flash/cube/cube.swf) that takes its images from URLS like so


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

abduraooft
03-29-2008, 12:24 PM
The problem might be with the path of the image files. Have a try by removing(replace with _ ) the spaces in the files and call the files using the absolute path, Say /beta_web/images2/logotrans.png, /beta_web/images2/logo_20_edges_trans.png etc

nikos101
03-29-2008, 12:30 PM
Yes that was the problem! Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum