[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Section 1 (604 B)
//Amadifrontclip_9 (AmadiRefAnimated_fla.Amadifrontclip_9)
package AmadiRefAnimated_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Amadifrontclip_9 extends MovieClip {
public var Penis:MovieClip;
public var TogglePenis:SimpleButton;
public function Amadifrontclip_9(){
super();
addFrameScript(0, frame1);
}
function frame1(){
Penis.visible = false;
TogglePenis.addEventListener(MouseEvent.CLICK, onTogglePenis);
}
public function onTogglePenis(event:MouseEvent):void{
Penis.visible = !(Penis.visible);
}
}
}//package AmadiRefAnimated_fla
Section 2 (591 B)
//AmadiRearclip_6 (AmadiRefAnimated_fla.AmadiRearclip_6)
package AmadiRefAnimated_fla {
import flash.events.*;
import flash.display.*;
public dynamic class AmadiRearclip_6 extends MovieClip {
public var ToggleTail:SimpleButton;
public var Tail:MovieClip;
public function AmadiRearclip_6(){
super();
addFrameScript(0, frame1);
}
public function onToggleTail(event:MouseEvent):void{
Tail.visible = !(Tail.visible);
}
function frame1(){
Tail.visible = true;
ToggleTail.addEventListener(MouseEvent.CLICK, onToggleTail);
}
}
}//package AmadiRefAnimated_fla
Section 3 (2.49 KiB) ●
//MainTimeline (AmadiRefAnimated_fla.MainTimeline)
package AmadiRefAnimated_fla {
import flash.events.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var ClothingButton:SimpleButton;
public var ColourRef:MovieClip;
public var clicked;
public var ColourButton:SimpleButton;
public var a;
public var AmadiFront:MovieClip;
public var Stats:MovieClip;
public var buttons;
public var BioButton:SimpleButton;
public var Clothing:MovieClip;
public var AmadiRear:MovieClip;
public var BioInfo:MovieClip;
public var StatButton:SimpleButton;
public var FrontRearButton:SimpleButton;
public function MainTimeline(){
super();
addFrameScript(0, frame1);
}
public function init():void{
AmadiFront.visible = true;
AmadiRear.visible = false;
}
public function onFrontRearButton(event:MouseEvent):void{
AmadiFront.visible = !(AmadiFront.visible);
AmadiRear.visible = !(AmadiRear.visible);
}
function frame1(){
init();
FrontRearButton.addEventListener(MouseEvent.CLICK, onFrontRearButton);
Clothing.visible = false;
ColourRef.visible = false;
Stats.visible = false;
BioInfo.visible = false;
clicked = MouseEvent.CLICK;
buttons = new Array(ClothingButton, ColourButton, StatButton, BioButton);
a = 0;
while (a < buttons.length) {
buttons[a].addEventListener(clicked, buttonClick);
a++;
};
}
public function buttonClick(e:Event):void{
switch (e.target.name){
case "ClothingButton":
Clothing.visible = !(Clothing.visible);
ColourRef.visible = false;
Stats.visible = false;
BioInfo.visible = false;
break;
case "ColourButton":
ColourRef.visible = !(ColourRef.visible);
Clothing.visible = false;
Stats.visible = false;
BioInfo.visible = false;
break;
case "StatButton":
Stats.visible = !(Stats.visible);
Clothing.visible = false;
ColourRef.visible = false;
BioInfo.visible = false;
break;
case "BioButton":
BioInfo.visible = !(BioInfo.visible);
Clothing.visible = false;
ColourRef.visible = false;
Stats.visible = false;
break;
};
}
}
}//package AmadiRefAnimated_fla