Section 1
//accessories_21 (cde_spiderman_fla.accessories_21)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class accessories_21 extends MovieClip {
public function accessories_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 2
//adddollbox_42 (cde_spiderman_fla.adddollbox_42)
package cde_spiderman_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class adddollbox_42 extends MovieClip {
public var frame:int;
public var tab_btn:SimpleButton;
public var dollcode:TextField;
public function adddollbox_42(){
addFrameScript(0, frame1, 14, frame15, 29, frame30);
}
function frame15(){
dollcode.text = MovieClip(this.parent).dollcode;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
frame = 16;
stop();
}
function frame1(){
frame = 2;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
stop();
}
function frame30(){
gotoAndStop(1);
}
public function onTabBtnMouseDownHandler(_arg1:MouseEvent):void{
gotoAndPlay(frame);
}
}
}//package cde_spiderman_fla
Section 3
//bottoms_17 (cde_spiderman_fla.bottoms_17)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class bottoms_17 extends MovieClip {
public function bottoms_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 4
//effects_23 (cde_spiderman_fla.effects_23)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class effects_23 extends MovieClip {
public function effects_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 5
//Main_mc_2 (cde_spiderman_fla.Main_mc_2)
package cde_spiderman_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Main_mc_2 extends MovieClip {
public var adfa:MovieClip;
public var e:ReferenceError;
public var i:uint;
public var MusicClass:Class;
public var stop_btn:SimpleButton;
public var play_btn:SimpleButton;
public var shoes:MovieClip;
public var effects:MovieClip;
public var backgrounds:MovieClip;
public var masks:MovieClip;
public var item:MovieClip;
public var musicLoops:uint;
public var accessories:MovieClip;
public var button1:SimpleButton;
public var button4:SimpleButton;
public var button5:SimpleButton;
public var button6:SimpleButton;
public var button7:SimpleButton;
public var button2:SimpleButton;
public var button3:SimpleButton;
public var musicAutoStart:Boolean;
public var reset:SimpleButton;
public var button8:SimpleButton;
public var musicClassName:String;
public var webs:MovieClip;
public var bottoms:MovieClip;
public var doNotMoveToTopLayer;
public var tops:MovieClip;
public var cde_btn:SimpleButton;
public var box:MovieClip;
public var dollcode:String;
public var villains:MovieClip;
public var musicSound:Sound;
public function Main_mc_2(){
addFrameScript(0, frame1);
}
public function onItemMouseDownHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.startDrag();
if (!_local2.doNotMoveToTopLayer){
this.setChildIndex(_local2, (this.numChildren - 1));
};
}
public function onPlayBtnMouseDownHandler(_arg1:MouseEvent):void{
SoundMixer.stopAll();
if (musicSound != null){
musicSound.play(0, musicLoops);
};
}
function frame1(){
dollcode = "<iframe src ='http://www.cdeboys.com/cde_boygames_link.html?link=games_spiderman.html&name=spiderman' WIDTH='902' height='702' frameborder='0' scrolling='auto'></iframe>";
musicClassName = "music";
musicLoops = 9999;
musicAutoStart = true;
doNotMoveToTopLayer = [];
if (((!((musicClassName == null))) && (!((musicClassName == ""))))){
try {
MusicClass = (ApplicationDomain.currentDomain.getDefinition(musicClassName) as Class);
} catch(err:ReferenceError) {
err.message = (("Music '" + musicClassName) + "' does not exist in library. Please check that the 'musicClassName' variable is correct in Configuration layer.");
throw (err);
};
musicSound = (new MusicClass() as Sound);
if (musicAutoStart){
musicSound.play(0, musicLoops);
};
};
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, onPlayBtnMouseDownHandler);
stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, onStopBtnMouseDownHandler);
cde_btn.addEventListener(MouseEvent.MOUSE_DOWN, onCDEBtnMouseDownHandler);
stop();
stage.addEventListener(MouseEvent.MOUSE_UP, onItemMouseUpHandler2);
i = 0;
while (i < this.numChildren) {
if ((((this.getChildAt(i).name.search("instance") > -1)) || (isInDoNotMoveToTopLayer(this.getChildAt(i))))){
if ((this.getChildAt(i) is MovieClip)){
item = MovieClip(this.getChildAt(i));
item.doNotMoveToTopLayer = isInDoNotMoveToTopLayer(item);
item.addEventListener(MouseEvent.MOUSE_DOWN, onItemMouseDownHandler);
if (!item.doNotMoveToTopLayer){
item.addEventListener(MouseEvent.MOUSE_UP, onItemMouseUpHandler);
};
};
};
i++;
};
stop();
button1.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton1MouseDownHandler);
button2.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton2MouseDownHandler);
button3.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton3MouseDownHandler);
button4.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton4MouseDownHandler);
button5.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton5MouseDownHandler);
button6.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton6MouseDownHandler);
button7.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton7MouseDownHandler);
button8.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton8MouseDownHandler);
reset.addEventListener(MouseEvent.MOUSE_DOWN, onMyButton9MouseDownHandler);
}
public function onItemMouseUpHandler2(_arg1:MouseEvent):void{
if ((_arg1.target is MovieClip)){
_arg1.target.stopDrag();
};
}
public function onStopBtnMouseDownHandler(_arg1:MouseEvent):void{
SoundMixer.stopAll();
}
public function onCDEBtnMouseDownHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cdeboys.com"), "_blank");
}
public function onItemMouseUpHandler(_arg1:MouseEvent):void{
_arg1.currentTarget.stopDrag();
}
public function onMyButton1MouseDownHandler(_arg1:MouseEvent):void{
if (effects.currentFrame < effects.totalFrames){
effects.nextFrame();
} else {
effects.gotoAndStop(1);
};
}
public function onMyButton2MouseDownHandler(_arg1:MouseEvent):void{
if (masks.currentFrame < masks.totalFrames){
masks.nextFrame();
} else {
masks.gotoAndStop(1);
};
}
public function onMyButton4MouseDownHandler(_arg1:MouseEvent):void{
if (shoes.currentFrame < shoes.totalFrames){
shoes.nextFrame();
} else {
shoes.gotoAndStop(1);
};
}
public function onMyButton5MouseDownHandler(_arg1:MouseEvent):void{
if (bottoms.currentFrame < bottoms.totalFrames){
bottoms.nextFrame();
} else {
bottoms.gotoAndStop(1);
};
}
public function onMyButton7MouseDownHandler(_arg1:MouseEvent):void{
if (backgrounds.currentFrame < backgrounds.totalFrames){
backgrounds.nextFrame();
} else {
backgrounds.gotoAndStop(1);
};
}
public function onMyButton9MouseDownHandler(_arg1:MouseEvent):void{
effects.gotoAndStop(1);
masks.gotoAndStop(1);
accessories.gotoAndStop(1);
shoes.gotoAndStop(1);
bottoms.gotoAndStop(1);
tops.gotoAndStop(1);
backgrounds.gotoAndStop(1);
villains.gotoAndStop(1);
}
public function isInDoNotMoveToTopLayer(_arg1:DisplayObject):Boolean{
var _local2:*;
for (_local2 in doNotMoveToTopLayer) {
if (doNotMoveToTopLayer[_local2] == _arg1){
return (true);
};
};
return (false);
}
public function onMyButton8MouseDownHandler(_arg1:MouseEvent):void{
if (villains.currentFrame < villains.totalFrames){
villains.nextFrame();
} else {
villains.gotoAndStop(1);
};
}
public function onMyButton6MouseDownHandler(_arg1:MouseEvent):void{
if (tops.currentFrame < tops.totalFrames){
tops.nextFrame();
} else {
tops.gotoAndStop(1);
};
}
public function onMyButton3MouseDownHandler(_arg1:MouseEvent):void{
if (accessories.currentFrame < accessories.totalFrames){
accessories.nextFrame();
} else {
accessories.gotoAndStop(1);
};
}
}
}//package cde_spiderman_fla
Section 6
//masks_22 (cde_spiderman_fla.masks_22)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class masks_22 extends MovieClip {
public function masks_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 7
//shoes_19 (cde_spiderman_fla.shoes_19)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class shoes_19 extends MovieClip {
public function shoes_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 8
//SoundContainer_mc_1 (cde_spiderman_fla.SoundContainer_mc_1)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class SoundContainer_mc_1 extends MovieClip {
public function SoundContainer_mc_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 9
//spiderman_bgs_3 (cde_spiderman_fla.spiderman_bgs_3)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class spiderman_bgs_3 extends MovieClip {
public function spiderman_bgs_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 10
//tops_20 (cde_spiderman_fla.tops_20)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class tops_20 extends MovieClip {
public function tops_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 11
//webflaps_15 (cde_spiderman_fla.webflaps_15)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class webflaps_15 extends MovieClip {
public function webflaps_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 12
//Villians_25 (cde_spiderman_fla.Villians_25)
package cde_spiderman_fla {
import flash.display.*;
public dynamic class Villians_25 extends MovieClip {
public function Villians_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package cde_spiderman_fla
Section 13
//FlashDollTemplateV2 (com.cde.templates.FlashDollTemplateV2)
package com.cde.templates {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class FlashDollTemplateV2 extends MovieClip {
private var preloaderLoader:Loader;
private var _frame:Number;
private var showPreloaderWhenDeveloping:Boolean;
private var preloaderMc:MovieClip;
public var main:MovieClip;
private var _percentLoaded:Number;
private var _mainMovieComplete:Boolean;
private var _preloaderURL:String;
public function FlashDollTemplateV2(){
addFrameScript(0, frame1);
stop();
_percentLoaded = 0;
setupUrls();
}
private function setupUrls():void{
var _local1:String;
_local1 = loaderInfo.url;
_preloaderURL = "http://www.cartoondollemporium.com/cdeprofile/modules/as3/";
if (loaderInfo.parameters.hasOwnProperty("preloaderURL")){
_preloaderURL = loaderInfo.parameters.preloaderURL;
} else {
if (_slot2.isLocal(_local1)){
_preloaderURL = "http://dev.cartoondollemporium.com/~andres/cdeprofile/modules/as3/";
} else {
if (_slot2.getRootURL(_local1).search("cdeboys.com") == -1){
_preloaderURL = "http://www.cartoondollemporium.com/cdeprofile/modules/as3/";
} else {
if (_slot2.getRootURL(_local1).search("cdeboys.com") > -1){
_preloaderURL = "http://www.cartoondollemporium.com/cdeprofile/modules/as3/";
};
};
};
};
}
private function onMainMovieProgress(_arg1:ProgressEvent):void{
var _local2:int;
_percentLoaded = (Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100)) / 100);
preloaderMc.loadBar.fill.width = (440 * _percentLoaded);
_local2 = (_percentLoaded * 100);
preloaderMc.percent_txt.text = (_local2 + "%");
if (_percentLoaded >= 1){
playAnime();
};
}
private function onMainMovieComplete(_arg1:Event):void{
_mainMovieComplete = true;
if (((_slot2.isLocal(loaderInfo.url)) && (!(showPreloaderWhenDeveloping)))){
showDoll();
return;
};
}
public function loadPreloader(_arg1:String="CDEBoysPreloader.swf", _arg2:String=null):void{
var _local3:String;
preloaderLoader = new Loader();
preloaderLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPreloaderLoaderComplete);
if (_arg2 != null){
_preloaderURL = _arg2;
};
if (_arg1 != null){
_preloaderURL = (_preloaderURL + _arg1);
};
_local3 = loaderInfo.url;
if (_slot2.isLocal(_local3)){
};
preloaderLoader.load(new URLRequest(_preloaderURL));
loaderInfo.addEventListener(Event.COMPLETE, onMainMovieComplete);
}
function frame1(){
stop();
showPreloaderWhenDeveloping = false;
goToAfterPreloader(3);
loadPreloader("CDEBoysPreloader.swf");
}
public function goToAfterPreloader(_arg1:Number):void{
if (_arg1 < 3){
throw (ArgumentError("Specified frame number must be at least 3!"));
};
_frame = _arg1;
}
private function onInit(_arg1:Event):void{
}
private function playAnime():void{
preloaderMc.addEventListener(Event.COMPLETE, onPlay);
preloaderLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onPreloaderLoaderComplete);
loaderInfo.removeEventListener(Event.COMPLETE, onMainMovieComplete);
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onMainMovieProgress);
preloaderMc.removeChild(preloaderMc.loadBar);
preloaderMc.removeChild(preloaderMc.percent_txt);
preloaderMc.anime_mc.play();
}
private function onPlay(_arg1:Event):void{
showDoll();
}
private function onPreloaderLoaderComplete(_arg1:Event):void{
preloaderMc = (preloaderLoader.content as MovieClip);
preloaderMc.loadBar.fill.width = 0;
preloaderMc.anime_mc.stop();
stage.addChild(preloaderLoader);
if (_mainMovieComplete){
playAnime();
} else {
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onMainMovieProgress);
};
}
private function showDoll():void{
if (preloaderMc != null){
preloaderMc.removeEventListener(Event.COMPLETE, onPlay);
preloaderMc.removeEventListener(Event.COMPLETE, onPlay);
};
if (preloaderLoader != null){
preloaderLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onPreloaderLoaderComplete);
if (stage.contains(preloaderLoader)){
stage.removeChild(preloaderLoader);
};
};
loaderInfo.removeEventListener(Event.COMPLETE, onMainMovieComplete);
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onMainMovieProgress);
preloaderLoader = null;
if (!isNaN(_frame)){
gotoAndStop(_frame);
} else {
gotoAndStop(3);
};
}
}
}//package com.cde.templates
class URLInfo {
private function URLInfo(){
}
public static function getBaseURL(_arg1:String):String{
var _local2:int;
var _local3:int;
_local2 = _arg1.search(/\?/);
if (_local2 > -1){
_arg1 = _arg1.substr(0, _local2);
};
_local3 = _arg1.search(/\/[^\/]+$/);
_arg1 = _arg1.substr(0, (_local3 + 1));
return (_arg1);
}
public static function isLocal(_arg1:String):Boolean{
if (getRootURL(_arg1).search("file://") > -1){
return (true);
};
return (false);
}
public static function getRootURL(_arg1:String):String{
return (_arg1.substr(0, (_arg1.search(/\w\//) + 2)));
}
}
Section 14
//music (music)
package {
import flash.media.*;
public dynamic class music extends Sound {
}
}//package