Skip to main content
Participant
July 10, 2009
Question

Flash Presentation help

  • July 10, 2009
  • 1 reply
  • 1074 views

Hi can any one help me

How to build the flash presentation in AS3 by loading movie clips from library

i have 3 movie clips in library

mc_1, mc_2, mc_3

we have to play one by one

just need a code for this

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 10, 2009

assign each a class (say MC1, MC2 and MC3):

var mc2:MC2;

var mc1:MC1=new MC1();

addChild(mc1);

mc1.addEventListener(Event.ENTER_FRAME,f1);

function f1(e:Event){

if(mc1.currentFrame==mc1.totalFrames){

mc1.removeEventListener(Event.ENTER_FRAME,f1);

removeChild(mc1);

mc1=null;

mc2=new MC2();

addChild(mc2);

mc2.addEventListener(Event.ENTER_FRAME,f2);

}

}

function f2(e:Event){

if(mc2.currentFrame==mc2.totalFrames){

mc2.removeEventListener(Event.ENTER_FRAME,f2)

removeChild(mc2);

mc2=null;

var mc3:MC3=new MC3();

addChild(mc3);

}

}

RVOIPAuthor
Participant
July 11, 2009

Hi KGlad,

Thank you it is working

i added replay button in mc3

can u give the code for replay button