Stop videoplayback in flash on frame exit?


is there way stop video playback video when leave frame?

 

on first frame video plays, when click button goto second frame, stills plays sound. can't add stop action flv_mc.stop because on next frame there no video flv_mc not exist. tried putting on frame outside stage disrupts tweens have on stage. tried putting video player inside movie clip 2 frame, 1 vido player , blank one, see if rig exist on both main frames on 1 stopped , set blank frame video player doenst work when nested 2 movieclips deep. video player not on main timeline inside of content_mc , works put putting inside of own movieclip broke it.

 

i have tried removed_from_stage , works give me output errors. have buttons (with gotoandstop actions) , 2 of them have videos. @ first used removed stage , copy , pasted on frames buttons navigate two, gave me , error of duplicate function, have 3 functions removed_from_stage. , seemingly work , output errors saying:

 

typeerror: error #1009: cannot access property or method of null object reference.

          at woomer_disneycruiseupdate_fla::content_mc_12/frame2()

          at flash.display::movieclip/gotoandstop()

          at woomer_disneycruiseupdate_fla::maintimeline/goone()

 

the file name woomer_disneycruiseupdate_fla.

 

btw buttons on main timeline , control navigation on inside of movieclip called content_mc

for each of flvplayback component instances, add removed_from_stage listener calling same function:

 

function stopvideof(e:event):void{
flvplayback(e.currenttarget).stop();

}



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP