# Complete Code

**URL:** <https://forum.kirupa.com/t/complete-code/271279>\
**Category:** random\
**Created:** [September 20, 2008, 7:50pm UTC](https://forum.kirupa.com/t/complete-code/271279 "2008-09-20T19:50:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ILikeMyNok](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@ILikeMyNok](https://forum.kirupa.com/u/ILikeMyNok)\
**Post date:** [September 20, 2008, 7:50pm UTC](https://forum.kirupa.com/t/complete-code/271279/1 "2008-09-20T19:50:51Z")

</div>

Hi to all! Im new in this forum, and to be honest I dont know how to program actionscript, I dont even know how to program!! I just need a little bit of help, I need to complete a code which I believe is actionscript, it is for solving a puzzle, I would greatly appreciate help. Here is the code:

package com.legendsTelegraph.puzzles.puzzle5  
{  
import flash.display.Sprite;  
import flash.events.Event;  
import flash.events.MouseEvent;  
import flash.geom.Rectangle;

import com.caurina.transitions.Tweener;

import com.legendsTelegraph.puzzles.puzzle5.CodeField;  
import com.legendsTelegraph.view.buttons.SendButton;  
import com.legendsTelegraph.data.TextXml;

public class FloaterContent extends Sprite  
{  
public static const ON\_COMPLETE :String = “onSubmitPuzzle5Complete”;private var \_codeField :CodeField;  
private var \_compileButton :SendButton;

public function FloaterContent() {  
\_codeField = new CodeField();  
\_codeField.x = 22;  
\_codeField.y = 20;  
addChild ( \_codeField );  
var codeFieldRect:Rectangle = \_codeField.getRect ( this );

\_compileButton = new SendButton ( TextXml.getText().puzzle5.compileButton );  
\_compileButton.x = int ( codeFieldRect.x + codeField.width / 2 );  
\_compileButton.y = int ( codeFieldRect.bottom ) + 20;  
addChild ( \_compileButton );

\_compileButton.addEventListener ( MouseEvent.MOUSE\_UP, onCompile );  
}

HERE IS WHERE THE CODE MUST BE COMPLETED

private function animPuzzleOut():void {  
\_compileButton.removeEventListener ( MouseEvent.MOUSE\_UP, onCompile );  
Tweener.addTween ( this, { alpha:0, time:1, transition:“easeInOutCubic”, onCompletenAnimOut } )  
}

HERE ALSO THE CODE MUST BE COMPLETED

Thanks to all!!!
