13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

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>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Using digital rights managem<strong>en</strong>t<br />

One way to implem<strong>en</strong>t this type of simple interface is to include the panel as part of a new state. The new state<br />

originates from the base state wh<strong>en</strong> the DRMAuth<strong>en</strong>ticateEv<strong>en</strong>t object is thrown. The following example contains a<br />

VideoDisplay object with a source attribute that points to a protected FLV file. In this case, the cred<strong>en</strong>tials()<br />

method is modified so that it also returns the application to the base state. This method does so after passing the user<br />

cred<strong>en</strong>tials and resetting the TextInput object values.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!