This function returns true if their are messages that have not yet
been processed.
USAGE:
on startMovie
global object
object = new(xtra "TCPUDPXtra")
object.waitForUDP(1627)
object.sendUDPMessage("192.168.0.100", 1627, "HERE IS A SAMPLE MESSAGE")
end
on enterFrame me
global object
if object.hasNext() then
alert "THERE IS A NEW MESSAGE!!"
end if
end
This function returns any messages that have not yet been sent to
director, or -1 if their is no messages. For USB it will return a string, for
TCP/UDP it will return a message in the format [message, sourceIP]
USAGE:
on startMovie
global object
object = new(xtra "TCPUDPXtra")
object.waitForUDP(1627)
object.sendUDPMessage("192.168.0.100", 1627, "HERE IS A SAMPLE MESSAGE")
end
on enterFrame me
global object
if object.hasNext() then
alert object.getNext()
end if
end
Basically a closing parameter in this application, it ensures that the memory is
cleaned of any remaining unread messages and closes all open ports that it was using.
USAGE:
on startMovie
global object
object = new(xtra "TCPUDPXtra")
object.waitForUDP(1627)
object.sendUDPMessage("192.168.0.100", 1627, "HERE IS A SAMPLE MESSAGE")
end
on enterFrame me
global object
if object.hasNext() then
alert object.getNext()
end if
end
on StopMovie
global object
if object <> void then
object.DestroyAllThreads()
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA