Frame 1
function init() {
frameVisibiltiy(frame2_assets, false);
frame1_in();
setTimeout(frame1_out, SLIDE_TIMER);
}
function frameVisibiltiy(assets, visible) {
var _local1 = 0;
while (_local1 < assets.length) {
assets[_local1]._visible = visible;
_local1++;
}
}
function reset_init_positions(assets, map) {
var _local1 = 0;
while (_local1 < assets.length) {
assets[_local1]._x = map[_local1]._x;
assets[_local1]._y = map[_local1]._y;
assets[_local1]._alpha = map[_local1]._alpha;
assets[_local1]._yscale = map[_local1]._yscale;
assets[_local1]._xscale = map[_local1]._xscale;
assets[_local1]._rotation = map[_local1]._rotation;
_local1++;
}
}
function capture_frame_asset_position(assets) {
var _local4 = [];
var _local1 = 0;
while (_local1 < assets.length) {
var _local2 = {};
_local2._x = assets[_local1]._x;
_local2._y = assets[_local1]._y;
_local2._alpha = assets[_local1]._alpha;
_local2._xscale = assets[_local1]._xscale;
_local2._yscale = assets[_local1]._yscale;
_local2._rotation = assets[_local1]._rotation;
_local4.push(_local2);
_local1++;
}
return(_local4);
}
function frame1_in() {
frameVisibiltiy(frame1_assets, true);
reset_init_positions(frame1_assets, frame1_init_positions);
gs.TweenLite.from(frame1_dots, 1, {delay:0.1, _alpha:0});
gs.TweenLite.from(you_could, 1, {_yscale:0, _xscale:0, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(win, 1, {delay:0.2, _yscale:0, _xscale:0, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(a, 1, {delay:0.7, _yscale:0, _xscale:0, ease:gs.easing.Expo.easeOut});
gs.TweenLite.from(years, 1, {delay:0.9, _yscale:0, _xscale:0, ease:gs.easing.Expo.easeOut});
gs.TweenLite.from(supply, 1, {_yscale:0, _xscale:0, delay:1.1, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(of, 1, {_yscale:0, _xscale:0, delay:1, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(groceries, 1, {_yscale:0, _xscale:0, delay:1.3, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(cart, 1.3, {delay:1.8, _y:-100, _rotation:15, ease:gs.easing.Bounce.easeOut});
}
function frame1_out() {
var _local1 = 0.8;
gs.TweenLite.to(you_could, _local1, {_yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(win, _local1, {delay:0.2, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(a, _local1, {delay:0.5, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(years, _local1, {delay:0.6, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(supply, _local1, {_yscale:0, _xscale:0, delay:0.8, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(of, _local1, {_yscale:0, _xscale:0, delay:0.9, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(groceries, _local1, {_yscale:0, _xscale:0, delay:1, _y:"-10", ease:gs.easing.Back.easeIn});
gs.TweenLite.to(cart, _local1, {delay:1.3, _x:180, _rotation:18, ease:gs.easing.Back.easeIn, _alpha:0, onComplete:frame2_in});
gs.TweenLite.to(frame1_dots, _local1 - 0.2, {delay:0.6, _alpha:0});
}
function frame2_in() {
frameVisibiltiy(frame2_assets, true);
gs.TweenLite.from(enter_the, 0.8, {_yscale:0, _xscale:0, ease:gs.easing.Back.easeOut});
gs.TweenLite.from(fuel, 1, {delay:0.2, _yscale:0, _xscale:0, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(your, 1, {_alpha:0, delay:0.7, _yscale:250, _xscale:250, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(family, 1, {delay:1.2, _yscale:0, _xscale:0, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(tm, 1, {delay:1.2, _yscale:0, _xscale:0, ease:gs.easing.Bounce.easeOut});
gs.TweenLite.from(meal, 1, {_yscale:0, _xscale:0, delay:1.8, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(solutions, 1, {_yscale:0, _xscale:0, delay:1.9, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(contest, 1, {delay:2.2, _yscale:0, _xscale:0, _y:"-10", ease:gs.easing.Back.easeOut});
gs.TweenLite.from(frame2_dots, 1, {delay:0.1, _alpha:0});
setTimeout(frame2_out, SLIDE_TIMER);
}
function frame2_out() {
var _local1 = 0.8;
gs.TweenLite.to(enter_the, _local1, {_yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(fuel, _local1, {delay:0.2, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(your, _local1, {delay:0.5, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(family, _local1, {delay:0.6, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(tm, _local1, {_yscale:0, _xscale:0, delay:0.8, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(meal, _local1, {_yscale:0, _xscale:0, delay:0.9, ease:gs.easing.Back.easeIn});
gs.TweenLite.to(solutions, _local1, {_yscale:0, _xscale:0, delay:1, _y:"-10", ease:gs.easing.Back.easeIn});
gs.TweenLite.to(contest, _local1, {delay:1.3, _yscale:0, _xscale:0, ease:gs.easing.Back.easeIn, onComplete:frame1_in});
gs.TweenLite.to(frame2_dots, 1, {delay:0.1, _alpha:0});
}
clickTagBtn.onRelease = function () {
getURL (clickTAG, "_blank");
};
var frame1_assets = [frame1_dots, you_could, win, a, years, supply, of, groceries, cart];
var frame2_assets = [frame2_dots, enter_the, fuel, your, family, meal, solutions, contest, tm];
var SLIDE_TIMER = 8000;
var frame1_init_positions = capture_frame_asset_position(frame1_assets);
init();
Symbol 47 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _classInitted, _curTime, _gc, _listening;
var tweenID, endTargetID, vars, duration, delay, _active, target, tweens, _subTweens, _hst, _initted, initTime, startTime, _hasUpdate;
function TweenLite ($target, $duration, $vars) {
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
if (($vars.overwrite != false) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
_active = ($duration == 0) && (delay == 0);
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
vars._visible = vars._alpha > 0;
}
tweens = [];
_subTweens = [];
_hst = (_initted = false);
if ((_e._visible != false) || (!_classInitted)) {
_curTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
_e = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
_e.onEnterFrame = executeAll;
_classInitted = true;
}
initTime = _curTime;
if (_active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
startTime = _curTime;
if (_active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
if ((!_active) && (!_listening)) {
_listening = true;
}
}
function initTweenVals($hrp, $reservedProps) {
var _local8 = typeof(target) == "movieclip";
var _local4;
var _local2;
if (target instanceof Array) {
var _local5 = vars.endArray || ([]);
_local2 = 0;
while (_local2 < _local5.length) {
if ((target[_local2] != _local5[_local2]) && (target[_local2] != undefined)) {
tweens[tweens.length] = {o:target, p:_local2.toString(), s:target[_local2], c:_local5[_local2] - target[_local2]};
}
_local2++;
}
} else {
if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local8 || (target instanceof TextField))) {
var _local13 = new Color(target);
var _local10 = vars._alpha;
if (_local10 != undefined) {
delete vars._alpha;
} else {
_local10 = target._alpha;
}
if (((vars.removeTint == true) || (vars.tint == null)) || (vars.tint == "")) {
addSubTween(tintProxy, _local13.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local10, ga:_local10, ba:_local10, aa:_local10}, {color:_local13});
} else {
addSubTween(tintProxy, _local13.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local10}, {color:_local13});
}
}
if ((vars.frame != undefined) && (_local8)) {
addSubTween(frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target});
}
if ((vars.volume != undefined) && (_local8 || (target instanceof Sound))) {
var _local14;
if (_local8) {
_local14 = new Sound(target);
} else {
_local14 = Sound(target);
}
addSubTween(volumeProxy, {volume:_local14.getVolume()}, {volume:vars.volume}, {sound:_local14});
}
for (_local4 in vars) {
if (((((((((((((((((((_local4 == "ease") || (_local4 == "delay")) || (_local4 == "overwrite")) || (_local4 == "onComplete")) || (_local4 == "onCompleteParams")) || (_local4 == "onCompleteScope")) || (_local4 == "runBackwards")) || (_local4 == "onUpdate")) || (_local4 == "onUpdateParams")) || (_local4 == "onUpdateScope")) || (_local4 == "persist")) || (_local4 == "volume")) || (_local4 == "onStart")) || (_local4 == "onStartParams")) || (_local4 == "onStartScope")) || (_local4 == "renderOnStart")) || (_local4 == "proxiedEase")) || (_local4 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local4) + " ") != -1))) {
} else if ((!(_local8 && (((((_local4 == "_visible") || (_local4 == "autoAlpha")) || (_local4 == "tint")) || (_local4 == "removeTint")) || (_local4 == "frame")))) && (target[_local4] != undefined)) {
if (typeof(vars[_local4]) == "number") {
tweens[tweens.length] = {o:target, p:_local4, s:target[_local4], c:vars[_local4] - target[_local4]};
} else {
tweens[tweens.length] = {o:target, p:_local4, s:target[_local4], c:Number(vars[_local4])};
}
}
}
}
if (vars.runBackwards == true) {
var _local3;
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3.s = _local3.s + _local3.c;
_local3.c = _local3.c * -1;
_local2--;
}
}
if (vars._visible == true) {
target._visible = true;
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
_initted = true;
}
function addSubTween($proxy, $target, $props, $info) {
var _local5 = {proxy:$proxy, target:$target, info:$info};
_subTweens[_subTweens.length] = _local5;
for (var _local8 in $props) {
if (typeof($props[_local8]) == "number") {
tweens[tweens.length] = {o:$target, p:_local8, s:$target[_local8], c:$props[_local8] - $target[_local8], sub:_local5};
} else {
tweens[tweens.length] = {o:$target, p:_local8, s:$target[_local8], c:Number($props[_local8]), sub:_local5};
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:false}));
}
function render($t) {
var _local5 = ($t - startTime) / 1000;
var _local4;
var _local3;
var _local2;
if (_local5 >= duration) {
_local5 = duration;
_local4 = 1;
} else {
_local4 = vars.ease(_local5, 0, 1, duration);
}
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3.o[_local3.p] = _local3.s + (_local4 * _local3.c);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2]);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
static function executeAll() {
var _local5 = (_curTime = getTimer());
if (_listening) {
var _local2 = _all;
var _local1;
var _local4;
var _local3;
for (_local3 in _local2) {
for (_local4 in _local2[_local3]) {
_local1 = _local2[_local3][_local4];
if (_local1.active) {
_local1.render(_local5);
}
}
}
}
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
if (!_initted) {
initTweenVals();
}
startTime = _curTime - (duration * 1000);
render(_curTime);
return(undefined);
}
if (vars._visible != undefined) {
if ((vars.autoAlpha != undefined) && (target._alpha == 0)) {
target._visible = false;
} else if (vars.runBackwards != true) {
target._visible = vars._visible;
}
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
if (vars.persist != true) {
removeTween(this);
}
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
static function killGarbage() {
if (_listening) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_listening = false;
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
function get active() {
if (_active) {
return(true);
}
if (((_curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (vars._visible != undefined) {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
return(true);
}
return(false);
}
static var version = 7.01;
static var killDelayedCallsTo = killTweensOf;
static var _all = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 48 MovieClip [__Packages.gs.easing.Back] Frame 0
class gs.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
}
Symbol 49 MovieClip [__Packages.gs.easing.Expo] Frame 0
class gs.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
}
Symbol 50 MovieClip [__Packages.gs.easing.Bounce] Frame 0
class gs.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}