logMessage
Description
Adds the specified message to the message log. These messages are broadcasted to either the parent movie (in case of running as a MIAW), the Flash LocalConnection or the browser environment (using externalEvent), and as such can be used to send messages to these environment.
The message also shows up in the debug window, which can be accessed by pressing the 'd' key in the SPi-V window.
Syntax
Action:
<action event="ready" type="logMessage" message="Hello world!" importance="info"/>
API call:
logMessage("helloworld","info")
Arguments
-
message
Message to add to the message log. -
importance
Sets the importance, or 'weight' of the message. "silent" messages will not show up in the debug window, but will still be broadcast to the containing environment. "warning" and "error" messages will get an approriate label prefixed.Values:"info", "warning", "error" or "silent", defaults to "info"
History
- 13-Jan-06: Initial version
fieldOfView | SPi-V dev
Is there a way ....
Hi Aldo,
Is there a way to show values in the message?
e.g. message='=getProperty("_camera","pan")'
(unfortunately the example is not working..)
Thanks in advance.
I can see why
I can see why you would want to do it, and I will see about implementing it in the next release
added in upcoming 1.3.5
added in upcoming 1.3.5
The importance: ....
The importance: "silent" is not working.
It's still showing up in the debug window.
/BBD
looking in to it
Found that out myself a couple of days ago. I'll see what's going on.
PS: thanks for going over the documentation so diligently...
fixed in upcoming 1.3.5
fixed in upcoming 1.3.5
Great ...
Great, looking forward to test it ...
Thanks a lot!
BBD
Re: logMessage
Starting the viewer by holder Ctrl+ Del brings up a separate debug windows.
pressing Ctrl+Del while viewer is open adds an overlay debug.
But none of my logMessage are displayed.
Is logMessage currently broken?
Jim Watters
Graphic software developer
http://photocreations.ca
Re: logMessage
It should be Ctrl+Alt, not Ctrl+Del. If you press Ctrl+Alt twice, you should get at the debug overlay. People were having issues with the previous 'a' and 'd' keys, so this changed in SPi-V 1.4