You are no longer bound to
using clunky output apps in order to view content spouting through the Flash trace function. What ??™ s
more, this cool little function is supported by the JS and Neko platforms, too. Of course, these platforms
display things a little differently. Though, you already knew all of this. If you recall back in Chapter 2 ,
you ??™ ve already used this function. In this chapter, however, you ??™ ll start to see how it is meant to be used.
Trace Output
Just to reiterate, you can trace in haXe, whether it is a Flash, JavaScript, or Neko application, using the
trace function. This function is used in the same way for each platform, though the method of its
display is different in each. For completeness, this chapter will run through tracing out text for each
platform.
Flash
As previously mentioned, the output from a trace function, when used in a Flash application, is written
to a TextField object that is overlaid above the entire movie. The field is scrollable, so if the amount of
text gets too long, you can scroll through the text to read the part of interest.
Pages:
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356