EDIT: Problem re-identified, need to work out the variables which fit into the 2 places highlighted in red, and marked "this"
if anyone knows how to complete, please help, thanks a lot.
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 ( [COLOR="Red"][B]this[/B][/COLOR] );
_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 );
}
private function animPuzzleOut():void {
_compileButton.removeEventListener ( MouseEvent.MOUSE_UP, onCompile );
Tweener.addTween ( [B][COLOR="Red"]this[/COLOR][/B], { alpha:0, time:1, transition:"easeInOutCubic", onComplete:onAnimOut } )
}
}
}
if anyone knows how to complete, please help, thanks a lot.
Last edited: