Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Script   (RSS)

Fun Friends for Functions, Part 2: Handling Exceptions

Previously we looked at how you can bind a function to a set of arguments and then call the resultant function at some time in the future. This technique is very powerful, but as-is it is a ticking bomb. As Amy points out in her blog post on exception
Posted by ptorr | 0 Comments
Filed under: , ,

Why the ‘arguments’ object is bad, Exhibit #3,745

Having just written a post with an example of how to use the arguments object , you might question my choice of title for this blog post. In my not-so-humble opinion, the 'arguments' object in ECMAScript is only useful for one thing: The 'arguments' object
Posted by ptorr | 0 Comments
Filed under:

Fun Friends For Functions

And now for a more techy post. In ECMAScript, functions are considered first-class objects. "What," you might ask, "differentiates a 'first-class' object from a merely 'economy-class' object?" Well, the main thing is that functions in ECMAScript are treated
Posted by ptorr | 0 Comments
Filed under: , ,

Maintaining Callback Semantics

One of the key programming concepts in HDi is the use of asynchronous processing with callback functions. The HDi platform exposed to title authors is not multi-threaded (which helps reduce the complexity of writing applications), but many of the functions
Posted by ptorr | 0 Comments
Filed under: ,

Sliced bread ain’t got nuthin’ on this!

Forget being the best thing since sliced bread – this is the best thing ever . Well maybe not quite that good, but it's still darn cool! Finally – FINALLY! – you can get decent IntelliSense for JScript inside Visual Studio ! Holy hotcakes, Batman! This
Posted by ptorr | 3 Comments
Filed under: , ,

Using Timers Effectively in HDi

The use of timers in HDi applications is very common, and there are a few things you should keep in mind when using them to avoid performance issues when playing back your title. I will categorise these as: The autoReset problem The closure problem The
Posted by ptorr | 3 Comments
Filed under: ,

Simple ACA dumper

Quick one today – if you have an ACA with some files in it, you can use the createaca tool (provided as part of the Jumpstart Kit ) to list the files inside it. Trouble is that the output is not very helpful; it contains too much information. So here
Posted by ptorr | 0 Comments
Filed under: , ,

Helpful Tracing Routines

Last time we looked at conditional compilation , and how using it with HDiSim could aid with interactive debugging of runtime exceptions. But as useful as interactive debugging is, there are three major cases where it is impractical or impossible: When
Posted by ptorr | 3 Comments
Filed under: , ,

Attachment(s): TracingBlog.zip

Using Conditional Compilation in HDi

One of the cardinal rules for developing HD DVD applications is, "let no exception go unhandled." The reason for this is simple – if you fail to handle an exception, the player will kill your application and stop the disc. This leads many developers to
Posted by ptorr | 3 Comments
Filed under: ,

A Game of Chance that Pirates like to Play

Ahoy there me laddies! Yarrrr you better be readin' this blog then matey, or you'll be feelin' the lick o' the cat come nightfall! No, it's not Talk Like a Pirate Day ; it's Let's Post Another HDi Game Day . The other week I posted an HDi sample based
Posted by ptorr | 7 Comments
Filed under: ,

Attachment(s): LiarsDice.zip

Red Box Debugging

Today I have a simple debugging tip. Sometimes when you have an obscure bug, you need to answer the question "is my code even getting executed?" Often you can find that really obscure bugs are caused simply by a bad conditional, a typo, an unexpected
Posted by ptorr | 2 Comments
Filed under: ,

Simple Pre-Processor for HDi

Hope you all had a good break. I haven't blogged for a while due to travel (both business and pleasure) and laziness… but I thought I'd start off today with simple pre-processor for HDi. One of the things that is missing from HD DVD is a good pre-processor;
Posted by ptorr | 2 Comments
Filed under: ,

Attachment(s): HDDVD_PreProcess.zip

Script Execution Order in HD DVD

An HDi application can use multiple script files so that you can better manage your code (more manageable files; easier source control; etc.). You do this simply by listing the files inside <Script> elements inside the manifest (and of course add
Posted by ptorr | 2 Comments
Filed under: , ,

How do I get started with iHD?

Many DVD authoring professionals may be wondering how they can get started with HD DVD. Probably the first thing to do is to download the iHD Jumpstart kit and get yourself a good XML editor (like the free Visual Studio Web Developer edition ) and a graphics
Posted by ptorr | 8 Comments
Filed under: , ,

Inheritance in JavaScript - Part 2

Last time we took a (very) long-winded look at a simple JavaScript program that used basic inheritance. This time, we'll expand on that a little bit and improve on the techniques. Calling the Constructor Directly First of all, let's look back at the Point
Posted by ptorr | 1 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker