02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

Figure 11.10 Enabling remote debugging<br />

Before the page launches you will see<br />

the dialog box in Figure 11.11, accept the<br />

default of ‘Localhost’.<br />

This example is the same as ‘debug16’;<br />

there is a breakpoint set in the clip event<br />

for the ‘cat’ movie clip. The breakpoint<br />

occurs whenever the right arrow key is<br />

pressed. In this example a password of<br />

‘<strong>Flash</strong><strong>MX</strong><strong>2004</strong><strong>Games</strong>’ is used. Set the<br />

windows on the desk<strong>to</strong>p so that you<br />

can see both the debug window and the<br />

browser. At the breakpoint you can check<br />

Figure 11.11 The remote debugging confirmation box<br />

variables and step through the code as if<br />

the file were local. When you have got the project working correctly, deleting the ‘swd’ and<br />

unchecking the ‘Debugging Permitted’ check box will ensure that your code is secure from<br />

prying eyes.<br />

166

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!