I think the problem is that the png is dynamically generated by some
cgi-script, but director needs correct file-endings, mime-types in the
http-header don't seem to be sufficient. if you have acces to any
web-space with php-support, you can put there the following little
php-script ("pcw.php").
<?php
copy('http://www.census.gov/cgi-bin/ipc/pcwpng','pcw.png');
?>
this creates a copy of the recent png in your web directory.
now, whenever you want to update the png in your shockwave movie, use a
script like the following (eg. attached to an "update"-button):
property pNetId
on mouseUp me
-- forces update of png
pNetId = getNetText("http//domain/path/pcw.php")
(the actorList).add(me)
end
on stepFrame me
if netDone(pNetId) then
-- use random to fool cache. set randomseed in prepareMovie
member("myPng").filename="http//domain/path/pcw.png?"&random(the
maxinteger)
updateStage()
(the actorList).deleteOne(me)
end if
end
valentin
Yariv Alter Fin wrote:
> Dear List,
>
> I am trying to download and link an online image file with my
> shockwave movie. the image adderss is:
> http://www.census.gov/cgi-bin/ipc/pcwpng . however, it wont link
> unless i download it to a known place on my harddisk and link it to
> the member from there. this offcourse i can't do from a shockwave
> movie... any idea's of how to be able to get this image into my
> shockwave movie?
>
>
> T.I.A,
>
> regards,
>
> Yariv Alter / alterFin
> [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!]