collectionconsumeresult.swf
A small dialog shown when consuming an item adds something new to the player's collection: the item's square, its name, the title "You collected something new!" and an OK button.
Document/main class: CollectionConsumeResult (extends _kiwi.Core.UIComponent)
SWF-specific classes: 1
Main class: CollectionConsumeResult
Minimal dialog. Registers SET_NAME and SET_TITLE as ExternalInterface callbacks for the engine to populate text fields. The slot is sized to 75px on construction. The confirm button is pre-configured with data = 1 (an integer token passed back in the CONFIRM call). Frame scripts stop at frames 1 and 11.
Public methods
setName(name:String) : void— SetsnameTextField.text.setTitle(title:String) : void— SetstitleTextField.text.onConfirm(e:MouseEvent) : void— CallsExternalInterface.call("CONFIRM", e.target.data)— passes button data value (1) back to the engine.
Key fields
titleTextField : TextField— top label, set viaSET_TITLE.nameTextField : TextField— item name, set viaSET_NAME.confirmButton : LabelButton— labelled$OK,data = 1; clicking triggersCONFIRM.slot : Slot— 75×75 item icon display.slotSize : int = 75— slot dimension; passed toslot.setSlotSize()in constructor. No callback carries the item: the engine writes it straight onto theslotfield by name (slotis listed in the client's string table for this screen, besideCONFIRM,SET_TITLEandSET_NAME).
Frame scripts / timeline
Stage 531×200, 24 fps, 20 frames; root labels PC (frame 1) and Console (frame 11).
frame1—stop()(PC layout).frame11—stop()(console layout).
Runtime dependencies & integration
ExternalInterface.addCallback("SET_NAME", setName),("SET_TITLE", setTitle).ExternalInterface.call("CONFIRM", data)—datais always 1 (the button's.dataproperty).- Translate key:
$OK— button label. The same string table also holds$CollectionConsume_New("You collected something new!"), the title the client sends throughSET_TITLE. - Hovering
slotgoes through theSlotcomponent'sSLOT.POINTER_ENTER/LEAVEwith the item the engine wrote, so the tooltip shown is the game's own item tooltip. IggyFunctions.inIggy— callbacks registered only in live Iggy context.
Other game-specific classes
CollectionConsumeResult_fla.slotFrame_2 — Embed symbol29
Three-frame timeline symbol for the item slot border, one stopped frame per shape: square, circle, largeCircle. Embedded from assets.
CollectionConsumeResult_fla.equipped_4
Two-frame equipped-state indicator symbol, frames labelled square and circle (same pattern as in other SWFs).
Asset wrappers (12 classes)
rarity_frame_common_png, rarity_frame_uncommon_png, rarity_frame_rare_png, rarity_frame_epic_png, rarity_frame_legendary_png, rarity_frame_shadow_png, rarity_frame_relic_png, rarity_frame_resplendent_png, rarity_frame_radiant1_png, rarity_frame_stellar, BtnGreen, dummy — bitmap/skin asset classes, no logic.
Notable logic
- This is one of the smallest game-specific SWFs: a single main class with two text-field setters and one confirm callback. All complexity (item icon loading, rarity frame selection, quantity display) is handled by the
Slotkiwi component internally once the engine has written the item ontoslot. - The
CONFIRMcall passese.target.data(the button's data property = 1) rather than a hardcoded constant, suggesting this pattern supports multiple buttons with different data values in similar dialogs elsewhere.