Movieclip random frame

New Here ,
Oct 18, 2021 Oct 18, 2021

Copy link to clipboard

Copied

Hello,

Using AS3, I'd like to know this. Is it possible to play frames in a movieclip in a random order.

Sort of like Press Your Luck's big board?

Views

41

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Oct 19, 2021 Oct 19, 2021

Copy link to clipboard

Copied

LATEST

yes.

 

function displayF(mc:MovieClip):void{

mc.gotoAndStop(Math.ceil(mc.totalFrames*Math.random()));

}

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines