/*************************************************
** INCLUDES
*************************************************/
#include "lmc_tween.as"
/*************************************************
** VARS
*************************************************/
var button1activated=false;
var button2activated=false;
var button3activated=false;
/*************************************************
** FRAME ACTIONS
*************************************************/
openingAni();
stop();
/*************************************************
** ANIMATIONS
*************************************************/
function openingAni():Void {
middlescratch.alphaTo(100, .3, 'easeInOutSine', 3.5);
leftscratch.alphaTo(100, .3, 'easeInOutSine', 5);
rightscratch.alphaTo(100, .3, 'easeInOutSine', 6, playFrm1);
}
function playFrm1():Void {
whiteblock.tween('_x', 0, .0, 'easeInOutSine', 3);
ribb.alphaTo(100, .2, 'easeInOutSine', 3.2);
orangeblink.alphaTo(0, .5, 'easeInOutSine', 4);
blackbox.alphaTo(100, .3, 'easeInOutSine', 4);
ticket.alphaTo(100, .5, 'easeInOutSine', 4.1);
ribb.scaleTo(24, .3, 'easeInOutSine', 4.2);
ribb.tween('_y', 146, .3, 'easeInOutSine', 4.2);
ribb.tween('_x', 142, .3, 'easeInOutSine', 4.2);
ribb.alphaTo(0, .4, 'easeInOutSine', 4.4, playFrm2);
}
function playFrm2():Void {
ticket.scaleTo(54, .3, 'easeInOutSine', 2);
ticket.tween('_y', 14, .3, 'easeInOutSine', 2);
ticket.tween('_x', 153, .3, 'easeInOutSine', 2);
logoagain.alphaTo(100, .5, 'easeInOutSine', 2.5);
endtext.alphaTo(100, .5, 'easeInOutSine', 3);
bb.tween('_y', 0, .0, 'easeInOutSine', 3);
bb.tween('_x', 0, .0, 'easeInOutSine', 3);
}
/************************************************** ********
* BUTTONS
************************************************** ********/
leftscratch.onRollOver= function():Void {
button1activated=true;
leftscratch.alphaTo(100, .3, 'easeInOutSine'); button_check_mc.nextFrame();
}
middlescratch.onRollOver= function():Void {
button2activated=true;
middlescratch.alphaTo(100, .3, 'easeInOutSine');button_check_mc.nextFrame();
}
rightscratch.onRollOver= function():Void {
button3activated=true;
rightscratch.alphaTo(100, .3, 'easeInOutSine');button_check_mc.nextFrame();
}
onEnterFrame=function(){
if (button1activated==true && button2activated==true && button3activated==true ){
gotoAndStop(2); //if is a frame number put a number there,
//if is a frame label put gotoAndStop("YourLabelNameHere"); with quotes
}
}
bb.onRelease = function():Void {
getURL(clickTag, "“_blank”");
}




Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries 
Reply With Quote
