IAT167-ScoreboardExample.docx

4 Pages
90 Views
Unlock Document

Department
Interactive Arts & Tech
Course
IAT 167
Professor
Jack Stockholm
Semester
Winter

Description
Mainas packageimport flashdisplaySpriteimport flasheventsEventimport flasheventsMouseEventpublic class Main extends Sprite public var scoreboardScoreboardnew Scoreboard public var clicksint0 public var livesint10public function MainvoidaddChildscoreboardstageaddEventListenerMouseEventCLICK onMouseClickaddEventListenerCustomEventScoreboardUpdateSCOREBOARDUPDATE scoreboardUpadate public function onMouseClickeventEventvoidclicksvar newcustomEventCustomEventScoreboardUpdatenewCustomEventScoreboardUpdateCustomEventScoreboardUpdate SCOREBOARDUPDATE ScoreboardSCOREBOARDSCORE clickstoStringtruedispatchEventnewcustomEventif clicks5 clicks0 livesdispatchEventnew CustomEventScoreboardUpdate CustomEventScoreboardUpdateSCOREBOARDUPDATEScoreboardSCOREBOARDLIVES livestoString true public function scoreboardUpadateeventCustomEventScoreboardUpdatevoid scoreboardupdateTexteventelement eventvalue
More Less

Related notes for IAT 167

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit