аЯрЁБс>ўџ ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot EntryџџџџџџџџpЊ|YЊrЯƒRASHрЭшШФ@jContentsџџџџ…uPage 1џџџџџџџџџџџџ ?-Symbol 5џџџџu §џџџџџџџџџџџџџџџ§џџџf§џџџb0џџџџўџџџh !"#$%&'()*+,-./1c23456789:j =>?@ABCDEFGHIJKLMNўџџџPQRSTUVWXYZ[\]^_`aўџџџn;deўџџџglkq†ioptrsmuvwxyz{|}~€Root EntryџџџџџџџџpЊ|YЊrЯƒRASH`™У}1ШФ@jContentsџџџџЁuPage 1џџџџџџџџџџџџŠK-Symbol 5џџџџuџџџџџџџџ §џџџ§џџџ§џџџfџџџџџџџџџџџџbўџџџh !"#$%&'()*+,-./1џџџџ23456789:j =>?@ABCDEFGHIJKLMNўџџџPQRSTUVWXYZ[\]^_`aўџџџџџџџ;deўџџџglkq†iџџџџџџџџџџџџrsmџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ‡ˆ‰ўџџџ‹ŒŽ‘’“”•–—˜™š›œžŸ ўџџџЂЃЄЅІЇЈЉЊЋЌўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 11 џџџџЌSymbol 12џџџџџџџџџџџџ Symbol 13 џџџџ§ Symbol 14џџџџџџџџџџџџј Symbol 15џџџџѓ Symbol 16џџџџџџџџџџџџю Symbol 17 џџџџгЌSymbol 18џџџџџџџџџџџџЮ Symbol 19џџџџЩ Symbol 20џџџџџџџџџџџџФ Symbol 21џџџџП Symbol 22џџџџџџџџџџџџК ‚ƒ„ўџџџ­‡ˆ‰ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЎЏАБВГДЕЖЗўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 40џџџџџџџџџџџџgсSymbol 41)џџџџ™тSymbol 2џџџџџџџџ_=Symbol 1џџџџџџџџџџџџV=џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteГ Гdџ#Hbox1€џ џdџ„gbox2€€,џџџ?џџ)€€ boxesџџџџO€џџ€€€G GSymbol 40џџџџџџџџџџџџgсSymbol 41)џџџџ™тSymbol 2џџџџџџџџ_=Symbol 1џџџџџџџџџџџџV=Symbol 39'џџџџSymbol 42џџџџ*џџџџъSymbol 43џџџџџџџџџџџџ}сџџџџџџџџџџџџўџџџ ўџџџ  !"#$%&'()ўџџџ+,-./01ўџџџ3456789:;<=>?@ABCDEFGHIJKLMNOPQўџџџSTUVўџџџXYZ[ўџџџ]^_`ўџџџbcdeўџџџghijўџџџlmnopqrstuvwxyz{|}~€џџCPicPageџџ CPicLayerџџ CPicFrame€€даиџѓо ˆ~ѓ0-џ0 dыџџџ?џџ,i€€ assetџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџџѓ/ј0ј 00`№0шяџџџ?џџкs€€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteшЫ …јшЫdџ& boundingBoxџџ CPicShape€€fffџs€Ÿ `№0`№0 0 €€џџџ?џџ‹y€€шЫ ‹јшЫОООdОООџ&Ъ& boundingBox2 €€€fffџѓŸ `№0`№0 0 €€џџџ?џџАX€€ Skin ElementsџџџџO€џџ€€€€џџџ?џџ™6џјvar component = _parent; //::: don't delete the above //::: SKIN ELEMENT REGISTRATION /* To add styleFormat properties to your skins : 1) Break up your skin into individual movie clips (skinElements) 2) add a registerSkinElement line of code for each skinElement component.registerSkinElement(skinElement, propertyName) // makes the skinElement Listen to the propertyName specified (eg: "background") n*/ component.registerSkinElement(boundingBox, "background"); stop();€€€џџџ?џџ L component.registerSkinElement(boundingBox2,"backgroundDisabled"); stop();€€ READMEџџџџOџOџ€€€€џџџ?џџenabledЙ{€€€џџџ?џџdisabledrW€€ labelsџџџџ™3Ьџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€€€€џѓ0ј§0ј§0џџџ?џџ Symbol_10"€€ Layer 1џџџџO€џџ€€€€џџџ?џџ‘Y€€ Layer 2џџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ Н((T"€№_sansџ( labelField€€џџџ?џџ Symbol_32Ё€€ Label AssetџџџџO€џџ€€€€џџџ?џџ"Tџ“#initclip 0 _global.FLabelClass = function() { if (this.hostComponent==undefined) { this.hostComponent = (this._parent.controller==undefined) ? this._parent : this._parent.controller; } if (this.customTextStyle==undefined) { if (this.hostComponent.textStyle==undefined) { this.hostComponent.textStyle= new TextFormat(); } this.textStyle = this.hostComponent.textStyle; this.enable = true; } } FLabelClass.prototype = new MovieClip(); Object.registerClass("FLabelSymbol", FLabelClass); //::: PUBLIC METHODS FLabelClass.prototype.setLabel = function(label) { var val = this.hostComponent.styleTable.embedFonts.value; if (val!=undefined) { this.labelField.embedFonts = val; } this.labelField.setNewTextFormat(this.textStyle); this.labelField.text = label; this.labelField._height = this.labelField.textHeight + 2; } FLabelClass.prototype.setSize = function(width) // note that height is textFormat-based. { this.labelField._width = width; } FLabelClass.prototype.setEnabled = function(enable) { this.enable=enable; var tmpColor = this.hostComponent.styleTable[ (enable) ? "textColor" : "textDisabled" ].value; if (tmpColor==undefined) { tmpColor = (enable) ? 0x000000 : 0x888888; } this.setColor(tmpColor); } FLabelClass.prototype.getLabel = function() { return this.labelField.text; } FLabelClass.prototype.setColor = function(col) { this.labelField.textColor = col; } #endinitclip€€ Class MethodsџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€шшшџѓ,дљ0,0,0дљџџџ?џџђM€€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџO1€€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџм €€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,,дљ0дљ0,0,џџџ?џџ}y€€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓаа00ј00ј0аџџџ?џџі;€€ elementџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprite 5dџ2_frame1€ ВgВgdџž:frame2€dd KG‚ƒ„…ўџџџ‡ˆ‰ŠўџџџŒŽўџџџ‘’“”ўџџџ–—˜™ўџџџ›œžўџџџ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙўџџџЛМНОўџџџРСТУўџџџХЦЧШўџџџЪЫЬЭўџџџЯабвўџџџдежзийклмнопрстуфхцчшщъыьэўџџџя№ёђўџџџєѕіїўџџџљњћќўџџџўџKGdddџ I_frame3€dd у&у&dddџ!­Lframe4€ШШ {{ШШdџ"^frame5€€џџџ?џџI€€ skin elementsџџџџO€џџ€€€€џџџ?џџDIџОvar component = _parent._parent; //::: don't delete the above //::: SKIN ELEMENT REGISTRATION /* To add styleFormat properties to your skins : 1) Break up your skin into individual movie clips (skinElements) 2) add a registerSkinElement line of code for each skinElement component.registerSkinElement(skinElement, propertyName) // makes the skinElement Listen to the propertyName specified (eg: "background") n*/ component.registerSkinElement(frame5, "face"); component.registerSkinElement(frame3, "shadow"); component.registerSkinElement(frame1, "darkshadow"); component.registerSkinElement(frame4, "highlight"); component.registerSkinElement(frame2, "highlight3D"); €€ READMEџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€шшшџѓ,дљ0,0,0дљџџџ?џџ@K€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџP#€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџ €€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,,дљ0дљ0,0,џџџ?џџЎV€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓа0ј0а0а00јџџџ?џџ0€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprite 5dџ frame1€ ВgВgdџл frame2€dd KGKGdddџ2frame3€dd у&у&dddџšuframe4€ШШ {{ШШdџю"frame5€€џџџ?џџ‰k€€ skin elementsџџџџO€џџ€€€€џџџ?џџxXџНvar component = _parent._parent; //::: don't delete the above //::: SKIN ELEMENT REGISTRATION /* To add styleFormat properties to your skins : 1) Break up your skin into individual movie clips (skinElements) 2) add a registerSkinElement line of code for each skinElement component.registerSkinElement(skinElement, propertyName) // makes the skinElement Listen to the propertyName specified (eg: "background") n*/ component.registerSkinElement(frame5, "face"); component.registerSkinElement(frame3, "shadow"); component.registerSkinElement(frame1, "darkshadow"); component.registerSkinElement(frame4, "highlight"); component.registerSkinElement(frame2, "highlight3D"); €€ READMEџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€шшшџѓ,дљ0,0,0дљџџџ?џџ–€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,дљ0,0,0дљџџџ?џџЫc€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,дљ0,0,0дљџџџ?џџ]n€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,,дљ0дљ0,0,џџџ?џџ%;€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓа0ј0а0а00јџџџ?џџ E€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprite 5dџ}vframe1€ ВgВgdџ8frame2€dd KGKGdddџframe3€dd у&у&dddџдframe4€ШШ {{ШШdџќkframe5€€џџџ?џџZz€€ skin elementsџџџџO€џџ€€€€џџџ?џџѕџОvar component = _parent._parent; //::: don't delete the above //::: SKIN ELEMENT REGISTRATION /* To add styleFormat properties to your skins : 1) Break up your skin into individual movie clips (skinElements) 2) add a registerSkinElement line of code for each skinElement component.registerSkinElement(skinElement, propertyName) // makes the skinElement Listen to the propertyName specified (eg: "background") n*/ component.registerSkinElement(frame5, "face"); component.registerSkinElement(frame4, "shadow"); component.registerSkinElement(frame2, "darkshadow"); component.registerSkinElement(frame3, "highlight"); component.registerSkinElement(frame1, "highlight3D"); €€ READMEџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€шшшџѓ,дљ0,0,0дљџџџ?џџЛf€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџШM€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџѓ,дљ0,0,0дљџџџ?џџ-€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓ,,дљ0дљ0,0,џџџ?џџоTdџl=Won(press){ this.startDrag(false); } on(release){ stopDrag(); _root.overBox(this); }word2€і 5 і 5dџRiWon(press){ this.startDrag(false); } on(release){ stopDrag(); _root.overBox(this); }word1€€,џџџ?џџсJ€€ wordsџџџџџOOџ€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€™™™џѓа0ј0а0а00јџџџ?џџЗM€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprite 5dџ Mframe1€ ВgВgdџ Gframe2€dd KGKGdddџГ9frame3€dd у&у&dddџMframe4€ШШ {{ШШdџCdframe5€€џџџ?џџI€€ skin elementsџџџџO€џџ€€€€џџџ?џџ‹BџОvar component = _parent._parent; //::: don't delete the above //::: SKIN ELEMENT REGISTRATION /* To add styleFormat properties to your skins : 1) Break up your skin into individual movie clips (skinElements) 2) add a registerSkinElement line of code for each skinElement component.registerSkinElement(skinElement, propertyName) // makes the skinElement Listen to the propertyName specified (eg: "background") n*/ component.registerSkinElement(frame5, "face"); component.registerSkinElement(frame3, "shadow"); component.registerSkinElement(frame1, "darkshadow"); component.registerSkinElement(frame4, "highlight"); component.registerSkinElement(frame2, "highlight3D"); €€ READMEџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprite dџ  Dup_mc€€џџџ?џџ^0€€€џџџ?џџІ&€€ dџ]down_mc€€џџџ?џџp€€€џџџ?џџEN€€ statesџџџџOџOџ€€€€џџџ?џџ;2€€ dџ &over_mc€€џџџ?џџ"€€€џџџ?џџ6k€€ dџ> disabled_mc€€џџџ?џџ§\€€ statesџџџџџOџџ€€€€џџџ?џџ@.stop();€€€џџџ?џџfstop(); €€€џџџ?џџаstop();€€€џџџ?џџk6stop();€€ actions: frameџџџџO€џџ€€€€џџџ?џџupФf€€€џџџ?џџover0B€€€џџџ?џџdownЗ~€€€џџџ?џџdisabled2`€€ labelsџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџCPicTexSymbol 35#%џџџџ2ЪSymbol 36џџџџџџџџџџџџ*фSymbol 37$(џџџџ хSymbol 38џџџџџџџџџџџџ џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteuџџџ jjuџџџџџџџ ‡~€€џџџ?џџ<€€ versionџџџџџOOџ€€€€џџџ?џџ Symbol_36>џу!#initclip 0 /*============= FUIComponentClass The base class for all FUI controls in flash6. ==============*/ function FUIComponentClass() { this.init(); } FUIComponentClass.prototype = new MovieClip(); FUIComponentClass.prototype.init = function() { this.enable = true; this.focused = false; this.useHandCursor = false; //accessibility :: hide non accessible components from screen reader this._accImpl = new Object(); this._accImpl.stub = true; this.styleTable = new Array(); if (_global.globalStyleFormat==undefined) { _global.globalStyleFormat = new FStyleFormat(); globalStyleFormat.isGlobal = true; _global._focusControl = new Object(); _global._focusControl.onSetFocus = function(oldFocus, newFocus) { oldFocus.myOnKillFocus(); newFocus.myOnSetFocus(); } Selection.addListener(_global._focusControl); } if (this._name!=undefined) { this._focusrect = false; this.tabEnabled = true; this.focusEnabled = true; this.tabChildren = false; this.tabFocused = true; if (this.hostStyle==undefined) { globalStyleFormat.addListener(this); } else { this.styleTable = this.hostStyle; } this.deadPreview._visible = false; this.deadPreview._width = this.deadPreview._height = 1; this.methodTable = new Object(); this.keyListener = new Object(); this.keyListener.controller = this; this.keyListener.onKeyDown = function() { this.controller.myOnKeyDown(); } this.keyListener.onKeyUp = function() { this.controller.myOnKeyUp(); } for (var i in this.styleFormat_prm) { this.setStyleProperty(i, this.styleFormat_prm[i]); } } } // ::: PUBLIC METHODS FUIComponentClass.prototype.setEnabled = function(enabledFlag) { this.enable = (arguments.length>0) ? enabledFlag : true; this.tabEnabled = this.focusEnabled = enabledFlag; if (!this.enable && this.focused) { Selection.setFocus(undefined); } } FUIComponentClass.prototype.getEnabled = function() { return this.enable; } FUIComponentClass.prototype.setSize = function(w, h) { this.width = w; this.height = h; this.focusRect.removeMovieClip(); } FUIComponentClass.prototype.setChangeHandler = function(chng,obj) { this.handlerObj = (obj==undefined) ? this._parent : obj; this.changeHandler = chng; } // ::: PRIVATE METHODS FUIComponentClass.prototype.invalidate = function(methodName) { this.methodTable[methodName] = true; this.onEnterFrame = this.cleanUI; } FUIComponentClass.prototype.cleanUI = function() { // rules of invalidation : setSize beats everyone else if (this.methodTable.setSize) { this.setSize(this.width, this.height); } else { this.cleanUINotSize(); } this.methodTable = new Object(); delete this.onEnterFrame; } // EXTEND this method to add new invalidation rules. FUIComponentClass.prototype.cleanUINotSize = function() { for (var funct in this.methodTable) { this[funct](); } } FUIComponentClass.prototype.drawRect = function(x, y, w, h) { var inner = this.styleTable.focusRectInner.value; var outer = this.styleTable.focusRectOuter.value; if (inner==undefined) { inner = 0xffffff; } if (outer==undefined) { outer = 0x000000; } this.createEmptyMovieClip( "focusRect", 1000 ); // this.focusRect._alpha = 50; // uncomment out this line if you want focus rect with alpha this.focusRect.controller = this; this.focusRect.lineStyle(1, outer); this.focusRect.moveTo(x, y); this.focusRect.lineTo(x+w, y); this.focusRect.lineTo(x+w, y+h); this.focusRect.lineTo(x, y+h); this.focusRect.lineTo(x, y); this.focusRect.lineStyle(1, inner); this.focusRect.moveTo(x+1, y+1); this.focusRect.lineTo(x+w-1, y+1); this.focusRect.lineTo(x+w-1, y+h-1); this.focusRect.lineTo(x+1, y+h-1); this.focusRect.lineTo(x+1, y+1); } FUIComponentClass.prototype.pressFocus = function() { this.tabFocused = false; this.focusRect.removeMovieClip(); Selection.setFocus(this); } // OVERWRITE THIS METHOD FOR YOUR OWN RECTANGLES FUIComponentClass.prototype.drawFocusRect = function() { this.drawRect(-2, -2, this.width+4, this.height+4); } FUIComponentClass.prototype.myOnSetFocus = function() { this.focused =true; Key.addListener(this.keyListener); if (this.tabFocused) { this.drawFocusRect(); } } FUIComponentClass.prototype.myOnKillFocus = function() { this.tabFocused = true; this.focused =false; this.focusRect.removeMovieClip(); Key.removeListener(this.keyListener); } FUIComponentClass.prototype.executeCallBack = function() { this.handlerObj[this.changeHandler](this); } // An FUIComponentClass Helper for the styleFormat : // puts a styleFormat value into the component's styleTable, // updates the component (the coloredMCs that make up a skin) FUIComponentClass.prototype.updateStyleProperty = function(styleFormat, propName) { this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal); } FUIComponentClass.prototype.setStyleProperty = function(propName, value, isGlobal) { if (value=="") return; var tmpValue = parseInt(value); if (!isNaN(tmpValue)) { value = tmpValue; } var global = (arguments.length>2) ? isGlobal : false; if (this.styleTable[propName]==undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal=true; } if (this.styleTable[propName].useGlobal || !global) { this.styleTable[propName].value = value; if (this.setCustomStyleProperty(propName, value)) { // a hook for extending further styleProperty reactions. } else if (propName == "embedFonts") { this.invalidate("setSize"); } else if (propName.subString(0,4)=="text") { if (this.textStyle==undefined) { this.textStyle = new TextFormat(); } var textProp = propName.subString(4, propName.length); this.textStyle[textProp] = value; this.invalidate("setSize"); } else { for (var j in this.styleTable[propName].coloredMCs) { var myColor = new Color(this.styleTable[propName].coloredMCs[j]); if (this.styleTable[propName].value==undefined) { var myTObj = { ra: '100', rb: '0', ga: '100', gb: '0', ba: '100', bb: '0', aa: '100', ab: '0'}; myColor.setTransform(myTObj); } else { myColor.setRGB(value); } } } this.styleTable[propName].useGlobal = global; } } /* Another styleFormat helper -- / A skin mc calls up to this to register its existence and the / styleTable property it wants to listen to */ FUIComponentClass.prototype.registerSkinElement = function(skinMCRef, propName) { if (this.styleTable[propName]==undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].coloredMCs==undefined) { this.styleTable[propName].coloredMCs = new Object(); } this.styleTable[propName].coloredMCs[skinMCRef]=skinMCRef; if (this.styleTable[propName].value!=undefined) { var myColor = new Color(skinMCRef); myColor.setRGB(this.styleTable[propName].value); } } // ============ styleFormat Class =========== // _global.FStyleFormat = function() { this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true}; this.listeners = new Object(); this.isGlobal = false; if (arguments.length>0) { for (var i in arguments[0]) { this[i] = arguments[0][i]; } } } _global.FStyleFormat.prototype = new Object(); // ::: PUBLIC FStyleFormat Methods FStyleFormat.prototype.addListener = function() { for (var arg=0; arg0) { for (var j=0; j€€џџџ?џџ™€€ AssetsџџџџOџџџ€€€ 33dџ%сboundingBox_mc€€џџџ?џџ@€€ Bounding Boxџџџџ™3Ьџ€€€ dџ'Ip deadPreview€€џџџ?џџ€€ NameџџџџO€џџ€€€€џџџ?џџ€Jџj#initclip 1 function FPushButtonClass() { this.init(); } FPushButtonClass.prototype = new FUIComponentClass(); Object.registerClass("FPushButtonSymbol", FPushButtonClass); FPushButtonClass.prototype.init = function() { super.setSize(this._width,this._height); this.boundingBox_mc.unloadMovie(); this.attachMovie("fpb_states","fpbState_mc",1); this.attachMovie("FLabelSymbol","fLabel_mc",2); this.attachMovie("fpb_hitArea","fpb_hitArea_mc",3); super.init(); this.btnState = false; this.setClickHandler(this.clickHandler); this._xscale = 100; this._yscale = 100; this.setSize(this.width,this.height); if(this.label != undefined)this.setLabel(this.label); // ACCESSIBILITY DEFINED ::o:: _accImpl object defined in base class ::o:: this.ROLE_SYSTEM_PUSHBUTTON = 0x2b; this.STATE_SYSTEM_PRESSED = 0x00000008; this.EVENT_OBJECT_STATECHANGE = 0x800a; this.EVENT_OBJECT_NAMECHANGE = 0x800c; this._accImpl.master = this; this._accImpl.stub = false; this._accImpl.get_accRole = this.get_accRole; this._accImpl.get_accName = this.get_accName; this._accImpl.get_accState = this.get_accState; this._accImpl.get_accDefaultAction = this.get_accDefaultAction; this._accImpl.accDoDefaultAction = this.accDoDefaultAction; } FPushButtonClass.prototype.setHitArea = function(w,h) { var hit = this.fpb_hitArea_mc; this.hitArea = hit; hit._visible = false; hit._width = w; hit._height = (arguments.length > 1) ? h : hit._height; } FPushButtonClass.prototype.setSize = function(w,h) { w = (w < 6) ? 6 : w; if (arguments.length >1){ if (h < 6){ h = 6; } } super.setSize(w,h) this.setLabel(this.getLabel()); this.arrangeLabel(); this.setHitArea(w,h); this.boundingBox_mc._width = w; this.boundingBox_mc._height = h; this.drawFrame(); if(this.focused)super.myOnSetFocus(); this.initContentPos("fLabel_mc"); } FPushButtonClass.prototype.arrangeLabel = function() { var label = this.fLabel_mc; var h = this.height; var w = this.width-2; var b = 1; // frame border width this.fLabel_mc.setSize(w - (b * 4)); label._x = (b * 3);//padding value; label._y = ( h/2-label._height/2); } FPushButtonClass.prototype.getLabel = function() { return (this.fLabel_mc.labelField.text); } FPushButtonClass.prototype.setLabel = function(label) { this.fLabel_mc.setLabel(label); this.txtFormat(); this.arrangeLabel() // ACCESSIBILITY EVENT if (Accessibility.isActive()){ Accessibility.sendEvent( this, 0, this.EVENT_OBJECT_NAMECHANGE ); } } FPushButtonClass.prototype.getEnabled = function() { return(this.enabled); } FPushButtonClass.prototype.setEnabled = function(enable) { if ( enable || enable == undefined ) { this.gotoFrame(1); this.drawFrame(); this.flabel_mc.setEnabled(true); this.enabled = true; super.setEnabled(true); } else { this.gotoFrame(4); this.drawFrame(); this.flabel_mc.setEnabled(false); this.enabled = false; super.setEnabled(false); } } FPushButtonClass.prototype.txtFormat = function() { var txtS = this.textStyle; var sTbl = this.styleTable; txtS.align = (sTbl.textAlign.value == undefined) ? txtS.align = "center" : undefined; txtS.leftMargin = (sTbl.textLeftMargin.value == undefined) ? txtS.leftMargin = 1 : undefined; txtS.rightMargin = (sTbl.textRightMargin.value == undefined) ? txtS.rightMargin = 1 : undefined if(this.fLabel_mc._height > this.height){ super.setSize(this.width,this.fLabel_mc._height); }else{ super.setSize(this.width,this.height); } this.fLabel_mc.labelField.setTextFormat(this.textStyle); this.setEnabled(this.enable); } FPushButtonClass.prototype.drawFrame = function () { var b = 1; // border width of frame; var x1 = 0; var y1 = 0; var x2 = this.width; var y2 = this.height; var mc_array = ["up_mc","over_mc","down_mc","disabled_mc"]; var frame = mc_array[(this.fpbState_mc._currentframe) -1]; var mc = "frame"; for (var i =0;i<6; i++){ x1 += ((i)%2)*b; y1 += ((i)%2)*b; x2 -= ((i+1)%2)*b; y2 -= ((i+1)%2)*b; var w = Math.abs (x1 - x2)+2*b; var h = Math.abs (y1 - y2)+2*b; this.fpbState_mc[frame][mc+i]._width = w; this.fpbState_mc[frame][mc+i]._height = h; this.fpbState_mc[frame][mc+i]._x = x1-b; this.fpbState_mc[frame][mc+i]._y = y1-b; } } FPushButtonClass.prototype.setClickHandler = function(chng,obj) { this.handlerObj = (arguments.length<2) ? this._parent : obj; this.clickHandler = chng; } FPushButtonClass.prototype.executeCallBack = function() { this.handlerObj[this.clickHandler](this); } FPushButtonClass.prototype.initContentPos = function (mc) { this.incrVal = 1; // DISTANCE TEXT SHIFTS DOWN AND RIGHT ::mr:: this.initx = this[mc]._x - (this.getBtnState())*this.incrVal; this.inity = this[mc]._y - (this.getBtnState())*this.incrVal; this.togx = this.initx + this.incrVal; this.togy = this.inity + this.incrVal; } FPushButtonClass.prototype.setBtnState = function (state) { this.btnState = state; if (state) { this.fLabel_mc._x = this.togx; this.fLabel_mc._y = this.togy; }else{ this.fLabel_mc._x = this.initx; this.fLabel_mc._y = this.inity; } } FPushButtonClass.prototype.getBtnState = function () { return this.btnState; } FPushButtonClass.prototype.myOnSetFocus = function() { this.focused = true; super.myOnSetFocus() } FPushButtonClass.prototype.onPress = function () { this.pressFocus(); this.fpbState_mc.gotoAndStop(3); this.drawFrame(); this.setBtnState(true); // ACCESSIBILITY EVENT if (Accessibility.isActive()){ Accessibility.sendEvent( this, 0, this.EVENT_OBJECT_STATECHANGE,true ); } } FPushButtonClass.prototype.onRelease = function () { this.fpbState_mc.gotoAndStop(2); this.drawFrame(); this.executeCallBack(); this.setBtnState(false) // ACCESSIBILITY EVENT if (Accessibility.isActive()){ Accessibility.sendEvent( this, 0, this.EVENT_OBJECT_STATECHANGE,true ); } } FPushButtonClass.prototype.onRollOver = function () { this.fpbState_mc.gotoAndStop(2); this.drawFrame(); } FPushButtonClass.prototype.onRollOut = function () { this.fpbState_mc.gotoAndStop(1); this.drawFrame(); } FPushButtonClass.prototype.onReleaseOutside = function () { this.setBtnState(false); this.fpbState_mc.gotoAndStop(1); this.drawFrame(); } FPushButtonClass.prototype.onDragOut = function () { this.setBtnState(false); this.fpbState_mc.gotoAndStop(1); this.drawFrame(); } FPushButtonClass.prototype.onDragOver = function () { this.setBtnState(true); this.fpbState_mc.gotoAndStop(3); this.drawFrame(); } FPushButtonClass.prototype.myOnKeyDown = function( ) { if (Key.getCode() == Key.SPACE && this.pressOnce == undefined ) { this.onPress(); this.pressOnce = 1; } } FPushButtonClass.prototype.myOnKeyUp = function( ) { if (Key.getCode() == Key.SPACE) { this.onRelease(); this.pressOnce = undefined; } } // START ACCESSIBILITY METHODS FPushButtonClass.prototype.get_accRole = function(childId) { return this.master.ROLE_SYSTEM_PUSHBUTTON; } FPushButtonClass.prototype.get_accName = function(childId) { return this.master.getLabel(); } FPushButtonClass.prototype.get_accState = function(childId) { if(this.pressOnce){ return this.master.STATE_SYSTEM_PRESSED; }else{ return this.master.STATE_SYSTEM_DEFAULT; } } FPushButtonClass.prototype.get_accDefaultAction = function(childId) { return "Press"; } FPushButtonClass.prototype.accDoDefaultAction = function(childId) { this.master.onPress(); this.master.onRelease(); } // END ACCESSIBILITY METHODS #endinitclip boundingBox_mc._visible = false; deadPreview._visible = false; €€ Actions: ClassџџџџO€џџ€€ Symbol 7џџџџ џџџџO<$Symbol 8џџџџџџџџџџџџ< $Symbol 9џџџџOSymbol 10џџџџџџџџџџџџ" €€џџ CPicButtonЧС ~УКшЧСџџџџ)ёZ$on(release){ _root.onClickShow(); }€Н1 УКшН1џџџџ*І.%on(release){ _root.onClickCheck(); }€ЧЃ УКшЧЃџџџџ+ 9%on(release){ _root.onClickReset(); }€€,џџџ?џџSymbol 31!џџџџa Symbol 32џџџџџџџџџџџџ\ Symbol 33&џџџџW Symbol 34џџџџџџџџџџџџR Symbol 27џџџџ‹ Symbol 28џџџџџџџџџџџџ† Symbol 29 џџџџkЌSymbol 30џџџџџџџџџџџџf Symbol 23џџџџŸЋSymbol 24џџџџџџџџџџџџš Symbol 25"џџџџ• Symbol 26џџџџџџџџџџџџ ‚ƒ„…†‡ˆ‰Š‹ŒўџџџŽ‘’“”•–—˜ўџџџš›œžŸ ЁЂЃЄЅІЇЈўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџўџџџ      !ўџџџ#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNўџџџPQRSTUўџџџWXYZ[\]^ўџџџ`abcdefzhijklmnopqrst{vwxyўџџџўџџџ|ўџџџ~€€€€џџ™џџѓФ ЈŠы0ињ0v0(џџџ?џџ R€€ boxџџџџџOOџ€€џџCPicText€€ а§џџњўџџ$цVerdanaџ(reset€€џџџ?џџѕh€ €€t€€ jњџџИ, э TextField12*Ш_sansџ(Flash Components Version 6.0_r24 03.07.02 €€џџџ?џџ 9€€ actionsџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџџѓИьџш0Hљ0ќ0Иџџџ?џџ-:€€ backgroundџџџџџOOџ€€џџCPicText€€ ,)мЖhVerdanaџџ"(that€€џџџ?џџщ&€€ textџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€€ а§џџњўџџ$цVerdanaџ(reset€€џџџ?џџХE€€ textџџџџO€џџ€€џ"(thisџџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџџѓФ ЈŠы0ињ0v0(џџџ?џџєl€€ Layer 1џџџџO€џџ€€€€ textџџџџO€џџ€€b€€ textџџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџџѓФ €§(0Šы0ињ0vџџџ?џџЮ ёm€€ controlsџџџџџџOџ€€€€'џџџ?џџ D€џџ CPicShape!€S^8˜џџ™џџs€€nlШ2 ­0ц0іR0№џџCPicText€€ s$Рц Verdanaџ"You scored€€€ џБьц@ scorePercentVerdanaџ"€€€ Ÿ#ИЎцVerdanaџ"%€ы!  УКшы! џџџџ(M%on(release){ gotoAndStop("start"); }€€џџџ?џџI€€ scoreџџџџ€€€џ€€€€џџџ?џџ-џT // ** you will edit the code below this point ** // sets up an array for the word destinations (the boxes) var boxes = new array(); // adds the name of each box symbol to its variable boxes[1] = box1; boxes[2] = box2; // tells flash how many boxes there are var boxNo = 2; //sets up array for the words var words = new array(); words[1] = word1; words[2] = word2; // tells flash how many words there are var wordNo = 2; /џџџџѓР@ќ00Р0шљџџџ?џџц2€€ backgroundџџџџџOOџ€€џџCPicText€€ 0)•ЖhVerdanaџџ"(this€€џџџ?џџRiџџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџџs€€Ф ЈŠы0ињ0v0(џџџ?џџ‚r€€€џџџџs€Ф €§(0Šы0ињ0vџџџ?џџ%€€ boxџџџџџOOџ€€џџCPicText€€ Рўџџџџџ$цVerdanaџ(OK€€џџџ?џџ€ €€€ Рўџџџџџ$цVerdanaџ(OK€€џџџ?џџpџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџџџs€№Pц0Ањ0№0Pџџџ?џџО/ sets the reset position of all words to their starting position word1.starty = word1._y; word1.startx = word1._x; word2.starty = word2._y; word2.startx = word2._x; // sets up an array for the correct answers var answer = new array(); // sets the correct answer for each word // answer[1] = word1 destination box etc. answer[1] = 1; answer[2] = 2; // ** you should not change any code below this point ** // sets up array to use when want to change only selected labels var selWord = new array(); // makes some important varables global by creating them at the start var xdif; var ydif; var mymc; var xadif = new array(); var yadif = new array(); var showClick; // function linked to reset button function onClickReset(){ allGoBack(); } // sends an individual word back to its start position function sendBack(backLabel){ mymc = backLabel; xdif = (mymc._x - mymc.startx) / 10; ydif = (mymc._y - mymc.starty) / 10; gotoAndPlay("goback"); } // sends all words back to start position function allGoBack(){ for (var i = 1;i <= wordNo;i++){ xadif[i] = (words[i]._x - words[i].startx) / 10; yadif[i] = (words[i]._y - words[i].starty) / 10; selWord[i] = true; } gotoAndPlay("allback"); } // sends selected words back to start position function someGoBack(){ for (var i = 1;i <= wordNo;i++){ xadif[i] = (words[i]._x - words[i].startx) / 10; yadif[i] = (words[i]._y - words[i].starty) / 10; } showClick = false; gotoAndPlay("allback"); } // checks if a word is being dropped over a destination box function overBox(currWord){ var flag = false; for(var i = 1;i <= boxNo;i++){ if(currWord.hitTest(boxes[i])){ if(occTest(boxes[i],currWord) == false){ flag = true; currWord._x = boxes[i]._x + ((boxes[i]._width + 2 - currWord._width)/2); currWord._y = boxes[i]._y + ((boxes[i]._height - currWord._height)/2); } } } if (flag == false){ sendBack(currWord); } } // checks if a destination box is already occupied function occTest(currBox,thisWord){ var flag = false; for(var i = 1;i <= wordNo;i++){ if(words[i] != thisWord){ if(currBox.hitTest(words[i])){ flag = true; } } } return flag; } // click event for the check button function onClickCheck(){ _root.scoreVar = 0; for(var i = 1;i <= wordNo;i++){ selWord[i] = false; } for(var i = 1;i <= wordNo;i++){ for(var j = 1;j <= boxNo;j++){ if(words[i].hitTest(boxes[j])){ if(j == answer[i]){ _root.scoreVar = _root.scoreVar + 1; } else { selWord[i] = true;} } } } showClick = false; _root.scorePercent = (_root.scoreVar / _root.wordNo) * 100; gotoAndPlay("score"); } // click handler for show button function onClickShow(){ for (var i = 1;i <= WordNo;i++){ xadif[i] = (words[i]._x - (boxes[answer[i]]._x + ((boxes[answer[i]]._width - words[i]._width)/2))) / 10; yadif[i] = (words[i]._y - (boxes[answer[i]]._y + ((boxes[answer[i]]._height - words[i]._height)/2))) / 10; selWord[i] = true; } showClick = true; gotoAndPlay("allback"); }€€€џџџ?џџMstop();€€€џџџ?џџШM3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџCd3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџЛf3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ‹B3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџІ&3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџp3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ]3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџZz3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ}v3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ EJmymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif; gotoAndStop("start"); €€€џџџ?џџ8…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ%;…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ]n…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџд…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџЫc…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџќk…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ–…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџѕ…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџEN›for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } } gotoAndStop("start");€€€џџџ?џџ;2stop();€€ scriptsџџџџOџOџ€€€€џџџ?џџsetvars"€€€џџџ?џџstart &€€€џџџ?џџgoback‰k€€€џџџ?џџallback €€€џџџ?џџscore0€€ namesџџџџOџџџ€€ џџџ?џџЩ#3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€)џџ CDocumentPagePage 1Scene 1eЋAџџџџІГ“Aџџџџ€Symbol 5boxDтA7Symbol 5џџџџDтAџџџџ€Symbol 2word2ЌЌASymbol 2џџџџžЏ€€€џџ™џџѓФ €§(0Šы0ињ0vџџџ?џџE_€€ boxџџџџџOOџ€€џџCPicText€€ М§џџњўџџ8цVerdanaџ(score€€џџџ?џџг€€ textџџџџO€џџ€€џџџ?џџ™hџџCPicPageџџ CPicLayerџџ CPicFrame€€ЬЬЬџџѓФ ЈŠы0ињ0v0(џџџ?џџR(€€€џџ™џџs€Ф €§(0Šы0ињ0vџџџ?џџлH€€ boxџџџџџOOџ€€џџCPicText€€ а§џџњўџџ$цVerdanaџ(show€€џџџ?џџ%'€ €€€ а§џџњўџџ$цVerdanaџ(show€€џџџ?џџC€€ textџџџџO€џџ€€the start var xdif; var ydif; var mymc; var xadif = new array(); var yadif = new array(); var showClick; // function linked to reset button function onClickReset(){ allGoBack(); } // sends an individual word back to its start position function sendBack(backLabel){ mymc = backLabel; xdif = (mymc._x - mymc.startx) / 10; ydif = (mymc._y - mymc.starty) / 10; gotoAndPlay("goback"); } // sends all words back to start position function allGoBack(){ for (var i = 1;i <= worџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteГ Гdџ#Hbox1€џ џdџ„gbox2€€,џџџ?џџ)€€ boxesџџџџO€џџ€€€G Gdџl=Won(press){ this.startDrag(false); } on(release){ stopDrag(); _root.overBox(this); }word2€і 5 і 5dџRiWon(press){ this.startDrag(false); } on(release){ stopDrag(); _root.overBox(this); }word1€€,џџџ?џџсJ€€ wordsџџџџџOOџ€€џџ CPicButtonЧС ~УКшЧСџџџџ)ёZ$on(release){ _root.onClickShow(); }€Н1 УКшН1џџџџ*І.%on(release){ _root.onClickCheck(); }€ЧЃ УКшЧЃџџџџ+ 9%on(release){ _root.onClickReset(); }€€,џџџ?џџёm€€ controlsџџџџџџOџ€€€€'џџџ?џџ D€џџ CPicShape!€S^8˜џџ™џџs€€nlШ2 ­0ц0іR0№џџCPicText€€ s$Рц Verdanaџ"You scored€€€ џБьц@ scorePercentVerdanaџ"€€€ Ÿ#ИЎцVerdanaџ"%€ы!  УКшы! џџџџ(M%on(release){ gotoAndStop("start"); }€€џџџ?џџI€€ scoreџџџџ€€€џ€€€€џџџ?џџ-џ` // ** you will edit the code below this point ** // sets up an array for the word destinations (the boxes) var boxes = new array(); // adds the name of each box symbol to its variable boxes[1] = box1; boxes[2] = box2; // tells flash how many boxes there are var boxNo = 2; //sets up array for the words var words = new array(); words[1] = word1; words[2] = word2; // tells flash how many words there are var wordNo = 2; // sets the reset position of all words to their starting position word1.starty = word1._y; word1.startx = word1._x; word2.starty = word2._y; word2.startx = word2._x; // sets up an array for the correct answers var answer = new array(); // sets the correct answer for each word // answer[1] = word1 destination box etc. answer[1] = 1; answer[2] = 2; // ** you should not change any code below this point ** // sets up array to use when want to change only selected labels var selWord = new array(); // makes some important varables global by creating them at the start var xdif; var ydif; var mymc; var xadif = new array(); var yadif = new array(); var showClick; // function linked to reset button function onClickReset(){ allGoBack(); } // sends an individual word back to its start position function sendBack(backLabel){ mymc = backLabel; xdif = (mymc._x - mymc.startx) / 10; ydif = (mymc._y - mymc.starty) / 10; gotoAndPlay("goback"); } // sends all words back to start position function allGoBack(){ for (var i = 1;i <= wordNo;i++){ xadif[i] = (words[i]._x - words[i].startx) / 10; yadif[i] = (words[i]._y - words[i].starty) / 10; selWord[i] = true; } gotoAndPlay("allback"); } // sends selected words back to start position function someGoBack(){ for (var i = 1;i <= wordNo;i++){ xadif[i] = (words[i]._x - words[i].startx) / 10; yadif[i] = (words[i]._y - words[i].starty) / 10; } showClick = false; gotoAndPlay("allback"); } // checks if a word is being dropped over a destination box function overBox(currWord){ var flag = false; for(var i = 1;i <= boxNo;i++){ if(currWord.hitTest(boxes[i])){ if(occTest(boxes[i],currWord) == false){ flag = true; currWord._x = boxes[i]._x + ((boxes[i]._width + 2 - currWord._width)/2); currWord._y = boxes[i]._y + ((boxes[i]._height - currWord._height)/2); } } } if (flag == false){ sendBack(currWord); } } // checks if a destination box is already occupied function occTest(currBox,thisWord){ var flag = false; for(var i = 1;i <= wordNo;i++){ if(words[i] != thisWord){ if(currBox.hitTest(words[i])){ flag = true; } } } return flag; } // click event for the check button function onClickCheck(){ _root.scoreVar = 0; for(var i = 1;i <= wordNo;i++){ selWord[i] = false; } for(var i = 1;i <= wordNo;i++){ for(var j = 1;j <= boxNo;j++){ if(words[i].hitTest(boxes[j])){ if(j == answer[i]){ _root.scoreVar = _root.scoreVar + 1; } else { selWord[i] = true;} } } } showClick = false; _root.scorePercent = Math.round((_root.scoreVar / _root.wordNo) * 100); gotoAndPlay("score"); } // click handler for show button function onClickShow(){ for (var i = 1;i <= WordNo;i++){ xadif[i] = (words[i]._x - (boxes[answer[i]]._x + ((boxes[answer[i]]._width - words[i]._width)/2))) / 10; yadif[i] = (words[i]._y - (boxes[answer[i]]._y + ((boxes[answer[i]]._height - words[i]._height)/2))) / 10; selWord[i] = true; } showClick = true; gotoAndPlay("allback"); }€€€џџџ?џџMstop();€€€џџџ?џџШM3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџCd3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџЛf3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ‹B3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџІ&3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџp3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ]3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџZz3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ}v3mymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif;€€€џџџ?џџ EJmymc._x = mymc._x - xdif; mymc._y = mymc._y - ydif; gotoAndStop("start"); €€€џџџ?џџ8…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ%;…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ]n…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџд…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџЫc…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџќk…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџ–…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџѕ…for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } }€€€џџџ?џџEN›for(var i = 1;i <= wordNo;i++){ if(selWord[i]){ words[i]._x = words[i]._x - xadif[i]; words[i]._y = words[i]._y - yadif[i]; } } gotoAndStop("start");€€€џџџ?џџ;2stop();€€ scriptsџџџџOџOџ€€€€џџџ?џџsetvars"€€€џџџ?џџstart &€€€џџџ?џџgoback‰k€€€џџџ?џџallback €€€џџџ?џџscore0€€ namesџџџџOџџџ€€ џџscore^€€ namesџџџџOџџџ€€ UY’јАј0ЈgуzrІ+bГЄ3)ЦЂЊ_—ІE^„RbbУ hš^­эЃMDONˆЈdfѓcFЦ(аf‰r p)џџ CDocumentPagePage 1Scene 1eЋAџџџџюв“Aџџџџ€Symbol 5boxDтA7Symbol 5џџџџDтAџџџџ€Symbol 2word2ЌЌASymbol 2џџџџžЏ‹Aџџџџ€Symbol 1word1ІЌASymbol 1џџџџnЏ‹Aџџџџ€ Symbol 40ok(Ч„A@.\photosynthesis.flaokMШ„AЧ„A@MШ„Aџџџџ€ Symbol 41show)YФ„A:.\photosynthesis.flashowYФ„AYФ„A:YФ„Aџџџџ€ Symbol 42score*yФ„A>.\photosynthesis.flascoreЇФ„AyФ„A>ЇФ„Aџџџџ€ Symbol 43reset+gФ„A<.\photosynthesis.flaresetУФ„AgФ„A<УФ„Aџџџџ,ј*@hhhhhџџџџРРРџ Дџџџџќџџ 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џџШяЈ €џ™џџШяР €џЬџџШяи €џџџџ№ €џ €џџџџџџџ €џџџџџџџ €џџџџџ €џџџџџ €џџџџџ €џf§џ`џџџџzџџџџ€™fџЊџЬџџџџџџ €џџџ*џџџ]џџџџџЊџџдџџџџџџџџh€ Symbol 13fpb_leftOutFrame_up fЊд;І!wд;“R..\..\..\..\..\..\..\atlas_backup\a