Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-29-2008, 10:54 AM   PM User | #1
nikos101
Senior Coder

 
nikos101's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 1,004
Thanks: 58
Thanked 10 Times in 10 Posts
nikos101 is an unknown quantity at this point
However it is embedded in a page the images do not appear

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
__________________

nikos101 is offline   Reply With Quote
Old 03-29-2008, 11:24 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 03-29-2008, 11:30 AM   PM User | #3
nikos101
Senior Coder

 
nikos101's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 1,004
Thanks: 58
Thanked 10 Times in 10 Posts
nikos101 is an unknown quantity at this point
Yes that was the problem! Thanks
__________________

nikos101 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:50 PM.


Advertisement
Log in to turn off these ads.