Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 108516

Re: how to restart flash by inner child button.

$
0
0

import flash.events.MouseEvent;

 

pplay.addEventListener(MouseEvent.CLICK, onClick3);

 

function onClick3(event:MouseEvent):void {

 

    pplay.removeEventListener(MouseEvent.CLICK, onClick3);

 

    MovieClip(parent.parent.parent.parent).gotoAndPlay(1);

 

this is my code... i want to play first frame video or restarting the move by onclicking the button. this code is working fine.. after clicking it. we access to first stage or main frame but my movie is stopped. not playing. so plss tell me how can i auto play my video after click the button. thnks in advance..


Viewing all articles
Browse latest Browse all 108516


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>