flash - Loading external SWF in Actionscript 2 -


i creating animation within flash cs4 in actionscript 2.0 / flash player 7

at moment have handler (movie clip) called myholder used play other swf files within 1 main swf file, when called button

within button load swf main timeline - example

on (press) {     loadmovie("bullettraindraft.swf", myholder); } 

this works fine bring other swf files main swf file timeline, when bring swf file has video controls video within it, not respond within handler when played, work when swf file played within own external flash player window (the video within (movie clip) on own timeline within design fla)

video buttons - actionscript 2.0

btnstop.onpress = function(){      _root.vid.stop();  } btnplay.onpress = function(){      _root.vid.play();  }  btn_fastforward.onpress = function(){      _root.vid.nextframe();  }  btn_rewind.onpress = function(){      _root.vid.prevframe();  } 

i tried actionscript 3.0 code well

pausebtn.addeventlistener(mouseevent.click,pausehandler); stopbtn.addeventlistener(mouseevent.click, stophandler); playbtn.addeventlistener(mouseevent.click,playhandler);  function stophandler(event:mouseevent):void { // pause stream , move playhead // beginning of stream. video.gotoandstop(1); } function playhandler(event:mouseevent):void { // pause stream , move playhead // beginning of stream. video.play(); } function pausehandler(event:mouseevent):void { // pause stream , move playhead // beginning of stream. video.stop(); } 

problem have think, movie external swf loads on existing timeline child , doesn't unload timeline resulting actionscript not functional, can't fix this.

this fixed adding

this._lockroot=true 

to video main fla timeline, after on adobe forums ^_^

thank again help


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -