- Home /
 
How to load an image in flash build?
This code worked in editor,EXE and webplayer but not worked in Flash:
 public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg";   
 
  IEnumerator Start() {   
 
  WWW www = new WWW(url);   
 
  yield return www;    
 
  renderer.material.mainTexture = www.texture;    
 
  }
 
              
               Comment
              
 
               
              Answer by RalphH · Jun 21, 2013 at 01:29 PM
You need to have control over that domain and use a crossdomain.xml on it; images.earthcam.com doesn't have a crossdomain.xml
Your answer
 
             Follow this Question
Related Questions
Loading a higher resolution image into Unity than what is supported 0 Answers
Flash WWW.texture problem 2 Answers
www download strange...help 0 Answers
Load image through WWW taking too long 0 Answers