I find loadfile() can not load file on web (It can work in Director and in projector). I try this simple example. Look this picture:
Very simple, I want to click the button and the new objects (a pyramid and a sphere) will be added into the 3d scene.
The scripts of the button are as follows:
on mouseUp me
scene = member("3dScene")
put "scene.state=" & scene.state & RETURN after member("t_Debug")
scene.loadfile(the moviePath & "_LimnPanoResS.w3d",false,true)
In Director and in projector, it is OK. This picture is the snapshot of projector:
I put the whole movie on here: Checked the state of the 3D member, and I found it was always 1. If it is normal, it can become 4 or –1.
I put the whole movie on here:
Checked the state of the 3D member, and I found it was always 1. If it is normal, it can become 4 or –1.
Why? I use Director MX 2004.
Using a packet sniffer, I see that your file requests /testvr/_LimnPanoResS.w3d and that this (GET) request returns a 404 error. Are you sure you uploaded the W3D, and that IIS has the correct MIME type added?
That's it! I forgot the MIME.
Thank you very much!