Finnish Flash Code?

Associate
Joined
8 Oct 2006
Posts
379
Location
Leicester
EDIT: Problem re-identified, need to work out the variables which fit into the 2 places highlighted in red, and marked "this"

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:
Have you decomplied this code from someone elses swf file? Missing function names is a typical example of code thats been decompiled.
 
Have you decomplied this code from someone elses swf file? Missing function names is a typical example of code thats been decompiled.

no it's the final part of a puzzle...i just need to work out what i can put to make it run/compile!

that is the only part that's given!
 
Last edited:
sorry i made a mistake, i don't need to fill code...just figure out the variable which fits where it is highlighted "this" in the code above
 
Back
Top Bottom