╨╧рб▒с>■  ■   ■                                                                                                                                                                                                                                                                                                                                                                                                                                                   Root Entry        pк|Yкr╧ГRASHрЭ╔╒4<└■   Contents        █Page 1            <            ■   ¤            ■                                        !"■                                                                                                                                                                                                                                                                                                                                                                                       Root Entry        pк|Yкr╧ГRASHpо▌х2╙└■   Contents            █Page 1        <                    ■   ¤    ■   ■                                                                                                                                                                                                                                                                                                                                                                                                                             CPicPage   CPicLayer   CPicFrameААк  ╠ єB И ( тў0└&0╕ўh0h08№Г0┼0( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0ц·0j√j√0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц3ж%*ё└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў30· Ц0( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·3└оh0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў0└&0╕ўh3 Ш ╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў0└&38сТэ└&0╕ўh0h0а√0√и0ж·P 0В80( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0g¤0┘■┌ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў3X°Ф0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў0└&3°¤0¤ ЄЎ0x  0( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙3аJЇ Ц0( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·3:╛╞ё╕ўh0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0( тў0└&33=е∙ы0h0а√0РўРў0@ўИ 0а√>№0HВ°0hўH∙0Иb·0 Ц0H╩Ў0Г0 Й·0hўH∙0Иb·0 Ц0( тў0└&0╕ўh0h0а√0РўРў0@ўИ 0а√>№А6А╬   ?  ААcontent    O O АА  CPicTextАА{$W   Е█  РX@=└Arial█ Щ "ф¤constructor prototype __proto__ inherited properties instance АААuВHщ  ┐ ш╚Lucida Consolef Щ 1( // create a new class constructor, Square function Square (side) { this.side = side; } // instantiate a Square object sq = new Square(4); // add a property to the Square class' prototype object // all instances of Square will inherit this property Square.prototype.area = function () { return this.side * this.side; }; // Object is the constructor-function for generic objects. trace(Object);// displays: [type Function] // the prototype object of Object is, hence, an instance of Object itself trace(Objec ╚Lucida Consolef Щ 1(t.prototype);// displays: [object Object] // add a method that all objects will inherit Object.prototype.sayHi = function () { trace("hi there"); }; trace(sq.sayHi());// displays: hi there // why did that work? Square.prototype is an object of Object class. Hence, // Square.prototype itself inherits the properties of Object.prototype. // Object.prototype has the sayHi method, so Square.prototype inherits it. // Then sq inherits the properties of Square.prototype, so it too inherits // the sayHi method. ААА`▒ Ї   ▒ы&╕Arialff "(this is strictly a code-example movie. АААf$k   Е█  ╪√  0@└ArialЩЩ "м■class//object code ААА▓чў  Yы%╕Arialff "(take a look at the code on frame 1... АААL"жD№мЁArialff "Ф°void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly void sampleonly ?ЁArialff "Ф°void sampleonly void sampleonly void sampleonly void sampleonlyААf Щ ёаU00>0`к8 j· ищ8 Ў (╪   ?  ААtitle and text     OO АААА   ?   ╕// let's play with the prototype-based class system of actionscript... // create a new class constructor, Square function Square (side) { this.side = side; } // instantiate a Square object sq = new Square(4); // add a method to the Square class' prototype object // all instances of Square will inherit this method Square.prototype.area = function () { return this.side * this.side; }; // Object is the constructor-function for generic objects. trace(Object); // displays: [type Function] // the prototype object of Object is, hence, an instance of Object itself trace(Object.prototype); // displays: [object Object] // add a method that all objects will inherit Object.prototype.sayHi = function () { trace("hi there"); }; trace(sq.sayHi()); // displays: hi there // why did that work? Square.prototype is an object of Object class. Hence, // Square.prototype, itself inherits the properties of Object.prototype. // Object.prototype has the sayHi method, so Square.prototype inherits it. // then sq inherits the properties of Square.prototype, so it too inherits // the sayHi method. // now let's overwrite the toString method of Square to make it // a little more expressive... function squareToString () { return ("I am a square with a width and height of: " + this.side); } Square.prototype.toString = squareToString; trace(sq); // every object gets a __proto__ property, and every class gets a // .prototype property. so, even when a class's prototype object is created, // that object naturally gets a __proto__ property, which contains a reference to // the prototype object of *its* constructor. In this case, the .prototype of // Square is an instance of the Object class, so Square.prototype.__proto__ // is the prototype of Object, which as we've already seen, // is an instance of Object itself. trace(Square.prototype.__proto__); // displays: [object Object] // just as we overwrote our Square.prototype's default toString method, // some internal Classes overwrite their prototype's toString methods. now = new Date(); trace(now.toString()); // displays: Sat Jul 22 12:02:39 GMT-0400 2000 x = new Array(4, 5); trace(x); // displays: 4,5 ААscripts    OА  АА    CDocumentPage Page 1Scene 1г╕y9 С∙Є9°*@hБhhhhэ ╠ └└└  ┤Vector::Template"PublishFormatProperties::generator    ¤   CColorDef А А А3 PяАf Pя0АЩ PяHА╠ Pя`А  PяxА3 яА33 (яА3f <я0А3Щ CяHА3╠ Fя`А3  HяxАf я0Аf3 я0Аff (я0АfЩ 5яHАf╠ <я`Аf  @яxА А333 0А А3 аяА33 xяАf3 dя0АЩ3 ]яHА╠3 Zя`А 3 XяxА33 ╚яА333 0А3f3 PPHА3Щ3 Px`А3╠3 PРxА3 3 PяРАf3 ▄я0Аf33 PHАff3 (PHАfЩ3 <x`Аf╠3 CРxАf 3 FяРА Аfff `А Аf ая0А3f Мя0Аff xя0АЩf kяHА╠f dя`А f `яxА3f ┤я0А33f аPHА3ff xPHА3Щf dx`А3╠f ]РxА3 f ZяРАff ╚я0Аf3f ╚PHАfff `АfЩf P0xАf╠f PxРАf f PяиА АЩЩЩ РА АЩ аяHА3Щ УяHАfЩ ЕяHАЩЩ xяHА╠Щ nя`А Щ hяxА3Щ няHА33Щ аx`А3fЩ Мx`А3ЩЩ xx`А3╠Щ kРxА3 Щ dяРАfЩ ╗яHАf3Щ ┤x`АffЩ а0xАfЩЩ x0xАf╠Щ dxРАf Щ ]яиА А╠╠╠ └А А╠ ая`А3╠ Ця`Аf╠ Мя`АЩ╠ Вя`А╠╠ xя`А ╠ pяxА3╠ кя`А33╠ аРxА3f╠ УРxА3Щ╠ ЕРxА3╠╠ xРxА3 ╠ nяРАf╠ ┤я`Аf3╠ нРxАff╠ аxРАfЩ╠ МxРАf╠╠ xxРАf ╠ kяиА А    ЁА А  аяxА3  ШяxАf  РяxАЩ  ИяxА╠  АяxА   xяxА3  ияxА33  аяРА3f  ЦяРА3Щ  МяРА3╠  ВяРА3   xяРАf  ░яxАf3  кяРАff  аяиАfЩ  УяиАf╠  ЕяиАf   xяиА А  яxА АЩ яHАЩ3  яHАЩf яHАЩЩ (яHАЩ╠ 2я`АЩ  8яxА╠ я`А╠3  я`А╠f я`А╠Щ я`А╠╠ (я`А╠  0яxА  яxА 3 яxА f яxА Щ яxА ╠  яxА   (яxА А  PяxА АЩ3 уяHАЩ33 x`АЩf3 x`АЩЩ3 (x`АЩ╠3 5РxАЩ 3 <яРА╠3 ця`А╠33 РxА╠f3  РxА╠Щ3 РxА╠╠3 (РxА╠ 3 2яРА 3 шяxА 33 яРА f3  яРА Щ3 яРА ╠3 яРА  3 (яРА А  аяxА АЩf ╒яHАЩ3f ▄x`АЩff 0xАЩЩf (0xАЩ╠f <xРАЩ f CяиА╠f ▄я`А╠3f уРxА╠ff xРА╠Щf xРА╠╠f (xРА╠ f 5яиА f ряxА 3f цяРА ff яиА Щf  яиА ╠f яиА  f (яиА А   (яxА АЩЩ ╚яHАЩ3Щ ╚x`АЩfЩ ╚0xАЩЩЩ РАЩ╠Щ PPиАЩ Щ Pя└А╠Щ ╥я`А╠3Щ ╒РxА╠fЩ ▄xРА╠ЩЩ PиА╠╠Щ (PиА╠ Щ <я└А Щ ╪яxА 3Щ ▄яРА fЩ уяиА ЩЩ я└А ╠Щ я└А  Щ (я└А А   xяxА АЩ╠ ╛я`АЩ3╠ ╗РxАЩf╠ ┤xРАЩЩ╠ аPиАЩ╠╠ xPиАЩ ╠ dя└А╠╠ ╚я`А╠3╠ ╚РxА╠f╠ ╚xРА╠Щ╠ ╚PиА╠╠╠ └А╠ ╠ Pя╪А ╠ ╨яxА 3╠ ╥яРА f╠ ╒яиА Щ╠ ▄я└А ╠╠ я╪А  ╠ (я╪А А   ╚яxА АЩ  ╕яxАЩ3  ┤яРАЩf  няиАЩЩ  ая└АЩ╠  Мя└АЩ   xя└А╠  └яxА╠3  ╛яРА╠f  ╗яиА╠Щ  ┤я└А╠╠  ая╪А╠   xя╪А   ╚яxА 3  ╚яРА f  ╚яиА Щ  ╚я└А ╠  ╚я╪А    ЁА Аэ ╠ 6я╪А       А       А     А     А     А f¤ `    z    АЩf к ╠      А   *   ]     к  ╘      PQ|ё  hwill inherit Object.prototype.sayHi