Can Director read a Flash Local Shared Object using getNetText()?
I have a Flash movie and a Director movie in separate frames on the same web page.
I can use flash fscommand to communicate with director (calling a function to change
the text in a field) using evalScript in IE but it won't work in Netscape.
I now have the flash movie write a local shared object (flash cookie) to the drive and
I have a Director object ("txtlistener") that tries to read that file using
getNetText(pathtocookie ) but no luck ...
The object has a flag property that is initially off. A stepframe method (stripped to
the essentials..)is as follows:
on stepframe me
if orderflag = false then
set myNetID = getnettext("C:\Documents and Settings\boyd speer\Application
Data\Macromedia\Flash Player\localhost\flashcookie.sol")
-- now wait for netDone...
set orderflag = true
exit
else
if not netDone(myNetID) then exit
set the text of member ("together") = netTextResult(myNetID)
-- got the latest text from the cookie so now check again to see if there has bee
a change
set orderflag = false
end if
end
The result is an empty string but opening the cookie with notepad shows the data...
Any suggestions greatly appreciated..
-Boyd Speer
Touchstone Digital Design
[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!]