Trouble seeing in the browser

Software: Away3D 4.x

dyoung, Newbie
Posted: 06 May 2015 08:16 PM   Total Posts: 5

I am making great progress in learning to use away3d. I have been able to build a project that plays the .awd file and have added interactivity.

Here is the issue I find myself facing right now. When I put the file out on the web and launch it with a browser the awd file never loads.

I found information on changing the wmode value to direct as shown here. 

However that has not solved my issue.
When I published the file I published it with several different flash player settings 11, 11.5, 11.9, 13, and 16. But none of these seem to make any difference. Unless I am missing something.

The file works with no problems from the hard drive. It launches and plays just fine from the html file.  It is just when I publish it to the Internet that I have an issue.

I used flash professional to create the code.

Not sure where to look. Does anyone have any ideas???

P.S. I am about to publish a tutorial on the whole subject of writing code to use away3d and an awd file within Flash Professional . But until I can get past this issue. A tutorial appears to be out of the question.

 

 

   

Avatar
Fabrice Closier, Administrator
Posted: 06 May 2015 08:28 PM   Total Posts: 1265   [ # 1 ]

first look if you can access the file directly from browser.
http//server/somedir/myfile.awd
if you get a file not found, while you are typing the right adress, you need to add the server mime awd.

usually its done making a text file, you call it web.config and upload it into root, or if nested it will affect only the children directories.

the content would look like this:
<?xml version=“1.0” encoding=“UTF-8”?>
<configuration>
  <system.webServer>
      <staticContent>
        <mimeMap fileExtensi mimeType=“text/plain” >
  <mimeMap fileExtensi mimeType=“text/plain” >
      </staticContent>
  </system.webServer>
</configuration>

(because this forum engine suxx, some chars are truncated/removed, fileExtensi for instance… should be fileExtension= awd quoted)
Just google mime type web.config and you’ll find correctly formated examples

   

dyoung, Newbie
Posted: 06 May 2015 09:13 PM   Total Posts: 5   [ # 2 ]

That worked, Thank you very much.

<?xml version=“1.0” encoding=“UTF-8”?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtensi mimeType=“awd”>
</staticContent> 
</system.webServer>
</configuration>

This is what I used. Not sure whether it will truncate on me as well but it is
mimeMap fileExtension=’.awd’ mimeType=‘awd’

   

Avatar
Fabrice Closier, Administrator
Posted: 07 May 2015 09:32 AM   Total Posts: 1265   [ # 3 ]

Glad I could help.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X