RE: lingo-l Trouble importing W3D files on-the-fly

2002-08-19 Thread Thomas Higgins

Andreas,

 The file name of the w3d file has proven to have great impact on the 
 success too. No spaces allowed!

This may be due to the server you're posting your files to as Director/Shockwave don't 
impose this limit (our code will handle spaces in file names just fine). Linux, Unix, 
etc. don't allow spaces in file names and so I'd wager it's that limitation that 
you're running into. If you have an example where loading a local file using loadFile 
fails when there are spaces in the file name then can you provide details? (make a 
movie that's run from your server, put a model file somewhere like 
c:\dswMedia\file.w3d, then issue a loadFile on that local file [it will load because 
it's in a dswMedia folder and therefore safe]). 

 But I'm up and running! (Well mostly walking so far, but I 
 expect to Run soon.)

Keep us posted as to any other issues that arise.

Cheers,
Tom
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



RE: lingo-l Trouble importing W3D files on-the-fly

2002-08-17 Thread Andreas Gaunitz P11

The file name of the w3d file has proven to have great impact on the 
success too. No spaces allowed!

But I'm up and running! (Well mostly walking so far, but I expect to Run soon.)


-A.


Andreas,
Sorry for the delayed response on this one, but I just don't get the 
same results as you do. I made four test movies that issue a 
preloadNetThing to pull a W3D to the local cache and when that's 
complete I then create a new 3D member and use loadFile to merge the 
retrieved file with the new member. I did this in four combinations:

- preloadNetThing and loadFile both use a relative URL
- preloadNetThing and loadFile both use a full URL
- preloadNetThing uses a relative URL while loadFile uses a full URL
- preloadNetThing uses a full URL while loadFile uses a relative URl

In all cases I was able to load the file into the member without 
error using the following code:

tNewMem = new(#shockwave3d)
tNewMem.name = new3d
tNewMem.loadFile(http://myDomain.com/star.W3D;, FALSE, TRUE)

Of course the above was done only after having issued a 
preloadNetThing command and waited for successfull completion of 
that download (netDone was TRUE and netError returned OK). Have a 
look at my test files if ya like:

http://poppy.macromedia.com/~thiggins/loadFile

I'm just not certain as to why things are failing for you as I just 
don't see the same results. To be safe, you're sure that your 
relative URL built using the movie path does in fact match the full 
URL? Perhaps your relative URL and full hardcoded URL are not the 
same and thus the error? In my test cases they are the same and I'm 
not getting the same behavior so maybe that's part of the problem.

Hope that helps.

Cheers,
Tom

.
[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email [EMAIL PROTECTED]  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



RE: lingo-l Trouble importing W3D files on-the-fly

2002-08-13 Thread Thomas Higgins

Andreas,
Sorry for the delayed response on this one, but I just don't get the same results as 
you do. I made four test movies that issue a preloadNetThing to pull a W3D to the 
local cache and when that's complete I then create a new 3D member and use loadFile to 
merge the retrieved file with the new member. I did this in four combinations:

- preloadNetThing and loadFile both use a relative URL
- preloadNetThing and loadFile both use a full URL
- preloadNetThing uses a relative URL while loadFile uses a full URL
- preloadNetThing uses a full URL while loadFile uses a relative URl

In all cases I was able to load the file into the member without error using the 
following code:

tNewMem = new(#shockwave3d)
tNewMem.name = new3d
tNewMem.loadFile(http://myDomain.com/star.W3D;, FALSE, TRUE)

Of course the above was done only after having issued a preloadNetThing command and 
waited for successfull completion of that download (netDone was TRUE and netError 
returned OK). Have a look at my test files if ya like:

http://poppy.macromedia.com/~thiggins/loadFile

I'm just not certain as to why things are failing for you as I just don't see the same 
results. To be safe, you're sure that your relative URL built using the movie path 
does in fact match the full URL? Perhaps your relative URL and full hardcoded URL are 
not the same and thus the error? In my test cases they are the same and I'm not 
getting the same behavior so maybe that's part of the problem.

Hope that helps.

Cheers,
Tom

.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



RE: lingo-l Trouble importing W3D files on-the-fly

2002-08-13 Thread Andreas Gaunitz P11

Tom,

Thank you very much for your testing. It's comforting to know that it 
actually should work. I think Buzz Kettles might have provided the 
solution, but I haven't been able to try it: I need to add a MIME 
setting for .W3D to my server. Right now the W3Ds get downloaded as 
text files, and that seems to the problem in a nutshell.

Unfortunately I have no idea what the MIME type should be... I didn't 
find anything useful when I searched the Technotes for (mime type 
w3d) etc. Do you happen to know? I just improvised a MIME type of 
(.W3D and x-w3d).

(BTW I don't use a relative URL, but exactly the same as the one I 
used for preLoading.)


-A.


Andreas,
Sorry for the delayed response on this one, but I just don't get the 
same results as you do. I made four test movies that issue a 
preloadNetThing to pull a W3D to the local cache and when that's 
complete I then create a new 3D member and use loadFile to merge the 
retrieved file with the new member. I did this in four combinations:

- preloadNetThing and loadFile both use a relative URL
- preloadNetThing and loadFile both use a full URL
- preloadNetThing uses a relative URL while loadFile uses a full URL
- preloadNetThing uses a full URL while loadFile uses a relative URl

In all cases I was able to load the file into the member without 
error using the following code:

tNewMem = new(#shockwave3d)
tNewMem.name = new3d
tNewMem.loadFile(http://myDomain.com/star.W3D;, FALSE, TRUE)

Of course the above was done only after having issued a 
preloadNetThing command and waited for successfull completion of 
that download (netDone was TRUE and netError returned OK). Have a 
look at my test files if ya like:

http://poppy.macromedia.com/~thiggins/loadFile

I'm just not certain as to why things are failing for you as I just 
don't see the same results. To be safe, you're sure that your 
relative URL built using the movie path does in fact match the full 
URL? Perhaps your relative URL and full hardcoded URL are not the 
same and thus the error? In my test cases they are the same and I'm 
not getting the same behavior so maybe that's part of the problem.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



lingo-l Trouble importing W3D files on-the-fly

2002-08-09 Thread Andreas Gaunitz P11

I am experiencing severe trouble when attempting to import W3D files 
to a shockwave on-the-fly from a URL.

This code works excellently:

   fresh3dMem = new(#shockwave3d)
   fresh3dMem.loadFile(the moviePath  scene.W3D, FALSE, TRUE)

But this does not:

   fresh3dMem = new(#shockwave3d)
   fresh3dMem.loadFile(http://etc.etc.etc/scene.W3D;, FALSE, TRUE)

even if I have done a preloadNetThing on the W3D file. Same procedure 
with a jpg instead of W3D works well (of course).

Please note: The W3D files are not linked as members, but should 
rather be loaded from a (Internet) directory, containing an arbitrary 
number of W3Ds.

I've tried loadFile(), setting the fileName and importFileInto()... 
The best thing I can get is Error 2147221484.

Any suggestions most appreciated!




-A.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]