Hi!
I dont really know much about actionscript, just very slightly knowledge. Altough I made research it is complex and is not those things that you learn quickly.
Anyway I need to solve a puzzle, I think by completing the code, I made research but is really complex and nothing comes to my head, Im looking forward if anyone could please give me some info or advice. This really is not my area, (my area are S60 devices)
Here it is:
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 );
}
[SIZE="5"]HERE IS WHERE THE CODE MUST BE COMPLETED[/SIZE]
private function animPuzzleOut():void {
_compileButton.removeEventListener ( MouseEvent.MOUSE_UP, onCompile );
Tweener.addTween ( this, { alpha:0, time:1, transition:"easeInOutCubic", onCompletenAnimOut } )
}
[SIZE="5"]HERE ALSO THE CODE MUST BE COMPLETED[/SIZE]
Basically I need to finish the code, where I wrote ‘‘Here needs to be completed’’
Thanks for hearing me!