A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
BinaryXtra Usage/Debugging

BinaryXtra for Macromedia Director

Debugging your scripts using BinaryXtra

Every BinaryXtra wrapper instance has internal last error flag and error description. The last error flag is cleared before any access to the binary data. If property access or method call failed or another error happened, this flag is raised. So you may detect whether last call completed successfully. Use object.Failed or object.Succeeded properties to check whether the last call was successful. If an error happened you may see its description using object.lastError property.
Also you may adjust BinaryXtra wrapper objects to output its lastError directly to the Message window every time error happens. Set object.DebugMode to true (1) to do this. By default, BinaryXtra wrappers created by Create call inherit the xtra's default value for debugMode. You may change this default with Init xtra-level method.

Note: While you are just investigating BinaryXtra capabilities it is better to set DebugMode by default, to ensure you always know if something goes wrong.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com