8000 Create RandomFrameClipPlay.as · SaffronCode/SaffronCode@38e47cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 38e47cd

Browse files
committed
Create RandomFrameClipPlay.as
1 parent 8d1ebb0 commit 38e47cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
package movieClipAssist
3+
//movieClipAssist.RandomFrameClipPlay
4+
{
5+
import flash.display.MovieClip;
6+
import contents.alert.Alert;
7+
8+
public class RandomFrameClipPlay extends MovieClip
9+
{
10+
public function RandomFrameClipPlay()
11+
{
12+
super();
13+
this.gotoAndPlay(Math.floor(Math.random()*this.totalFrames+1));
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)
0