Section 1
//btn_6 (erasmi_fla.btn_6)
package erasmi_fla {
import flash.display.*;
public dynamic class btn_6 extends MovieClip {
public function btn_6(){
addFrameScript(0, frame1, 76, frame77);
}
function frame77(){
stop();
}
function frame1(){
stop();
}
}
}//package erasmi_fla
Section 2
//cross_3 (erasmi_fla.cross_3)
package erasmi_fla {
import flash.display.*;
public dynamic class cross_3 extends MovieClip {
public var mc_btn:MovieClip;
public var mc_stick:MovieClip;
public var mcCrossHit:MovieClip;
public function cross_3(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
mc_btn.play();
}
}
}//package erasmi_fla
Section 3
//JESUSCARA_7 (erasmi_fla.JESUSCARA_7)
package erasmi_fla {
import flash.display.*;
public dynamic class JESUSCARA_7 extends MovieClip {
public var mc_mask:MovieClip;
public var mc_ojos:MovieClip;
public var mc_cara:MovieClip;
}
}//package erasmi_fla
Section 4
//MainTimeline (erasmi_fla.MainTimeline)
package erasmi_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mc_loader:MovieClip;
public var counter:Number;
public var noiseSound:Sound;
public var mc_noise:MovieClip;
public var myTransform:SoundTransform;
public var mcJesus:MovieClip;
public var cy:Number;
public var mcCross:MovieClip;
public var cx:Number;
public var hasMorphed:Boolean;
public var myChannel:SoundChannel;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function playReverse(_arg1:Event):void{
if (this.mcCross.mc_btn.currentFrame >= 0){
this.mcCross.mc_btn.prevFrame();
this.mcCross.mc_btn.prevFrame();
this.mcCross.mc_btn.prevFrame();
} else {
stage.removeEventListener(Event.ENTER_FRAME, playReverse);
};
}
public function mouseUpHandler(_arg1:MouseEvent):void{
stage.removeEventListener(Event.ENTER_FRAME, playReverse);
this.mcCross.mc_btn.gotoAndPlay(2);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragHandler);
}
public function incrementAlpha(_arg1:Event):void{
if (this.mcJesus.mc_ojos.alpha <= 1){
this.mcJesus.mc_ojos.alpha = (this.mcJesus.mc_ojos.alpha + 0.1);
} else {
this.removeEventListener(Event.ENTER_FRAME, incrementAlpha);
};
}
public function playSound():void{
myChannel = noiseSound.play(0, 9999);
myTransform.volume = 0.1;
myChannel.soundTransform = myTransform;
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
this.mc_loader.lblLoader.text = (Math.floor(((_local3 / _local2) * 100)) + "%");
if (_local2 == _local3){
play();
this.removeEventListener(Event.ENTER_FRAME, loading);
};
}
function frame1(){
stop();
counter = 4;
this.addEventListener(Event.ENTER_FRAME, loading);
this.addEventListener(Event.ENTER_FRAME, generateNoise);
}
public function dragHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
cy = (mouseY - this.mcCross.y);
cx = (mouseX - this.mcCross.x);
_local2 = Math.atan2(cy, cx);
_local3 = ((_local2 * 180) / Math.PI);
if (cy < 0){
_local3 = (_local3 + 360);
};
if (_local3 > 180){
_local3 = 180;
};
if (!(((((this.mcCross.rotation >= 0)) && ((this.mcCross.rotation < 90)))) && ((_local3 > 100)))){
this.mcCross.rotation = _local3;
mc_noise.alpha = (_local3 / 180);
myTransform.volume = (_local3 / 180);
myChannel.soundTransform = myTransform;
} else {
this.mcCross.rotation = 0;
};
if ((((this.mcCross.rotation > 170)) && (!(hasMorphed)))){
this.mcJesus.mc_cara.play();
this.mcJesus.mc_mask.play();
hasMorphed = true;
this.addEventListener(Event.ENTER_FRAME, incrementAlpha, false, 0, true);
} else {
if ((((this.mcCross.rotation < 10)) && (hasMorphed))){
this.mcJesus.mc_cara.play();
this.mcJesus.mc_mask.play();
this.addEventListener(Event.ENTER_FRAME, decrementAlpha, false, 0, true);
hasMorphed = false;
};
};
}
public function decrementAlpha(_arg1:Event):void{
if (this.mcJesus.mc_cara.currentFrame > 75){
if (this.mcJesus.mc_ojos.alpha > 0){
this.mcJesus.mc_ojos.alpha = (this.mcJesus.mc_ojos.alpha - 0.2);
} else {
this.removeEventListener(Event.ENTER_FRAME, decrementAlpha);
};
};
}
public function clickHandler(_arg1:MouseEvent):void{
stage.addEventListener(Event.ENTER_FRAME, playReverse);
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragHandler);
}
function frame2(){
stop();
this.mcJesus.mc_mask.cacheAsBitmap = true;
this.mcJesus.mc_ojos.cacheAsBitmap = true;
this.mcJesus.mc_mask.stop();
this.mcJesus.stop();
this.mcJesus.mc_ojos.mask = this.mcJesus.mc_mask;
this.mcJesus.mc_ojos.alpha = 0;
this.mc_noise.alpha = 0;
this.mcCross.mcCrossHit.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler);
noiseSound = new NoiseSound();
myChannel = new SoundChannel();
myTransform = new SoundTransform();
playSound();
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
hasMorphed = false;
cy = 0;
cx = 0;
}
public function generateNoise(_arg1:Event):void{
var _local2:Number;
_local2 = 0;
if (counter == 0){
do {
_local2 = Math.floor((Math.random() * 4));
} while (_local2 == mc_noise.currentFrame);
mc_noise.gotoAndStop(_local2);
counter = 2;
} else {
counter--;
};
}
}
}//package erasmi_fla
Section 5
//mascaraojos_11 (erasmi_fla.mascaraojos_11)
package erasmi_fla {
import flash.display.*;
public dynamic class mascaraojos_11 extends MovieClip {
public function mascaraojos_11(){
addFrameScript(38, frame39, 79, frame80);
}
function frame80(){
gotoAndStop(1);
}
function frame39(){
stop();
}
}
}//package erasmi_fla
Section 6
//mc_cara_8 (erasmi_fla.mc_cara_8)
package erasmi_fla {
import flash.display.*;
public dynamic class mc_cara_8 extends MovieClip {
public function mc_cara_8(){
addFrameScript(0, frame1, 38, frame39);
}
function frame1(){
stop();
}
function frame39(){
stop();
}
}
}//package erasmi_fla
Section 7
//mc_loader_1 (erasmi_fla.mc_loader_1)
package erasmi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_loader_1 extends MovieClip {
public var lblLoader:TextField;
}
}//package erasmi_fla
Section 8
//noise_2 (erasmi_fla.noise_2)
package erasmi_fla {
import flash.display.*;
public dynamic class noise_2 extends MovieClip {
public function noise_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package erasmi_fla
Section 9
//NoiseSound (NoiseSound)
package {
import flash.media.*;
public dynamic class NoiseSound extends Sound {
}
}//package