Note that there are some explanatory texts on larger screens.

plurals
  1. POBig bug on my .fla file, can't find any reason why it's not working
    text
    copied!<p>i have this .fla file that before isn't playing the sniper shot sound until you click the fire button. now it play 3-4 time while the game is playing without even playing the movieclip that is supposed to play with it. </p> <p>PLEASE HELP!!!! </p> <p>i've just encountered this and have checked every possible way i know to solve it. i don't know if it's a bug or not but i need to fix it right away or else this game, OUR THESIS, is done for! :(((((</p> <p>link for <a href="http://www.mediafire.com/?4mi4e9cvasaou39" rel="nofollow">download</a>: name is sample_1, almost 8mb in size, saved on flash pro 6 format.</p> <p>sample code as @musefan requested.</p> <p>this is on the first stage. as you noticed it doesn't call for any music to be played.</p> <pre><code>function shootfired():void{ if(sample_1.reloading == 0 &amp;&amp; sample_1.GamePlaying == true){ if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian1)){//if fired on target if(mission.civillian1.currentLabel != "death"){ mission.civillian1.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian2)){//if fired on target if(mission.civillian2.currentLabel != "death"){ mission.civillian2.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian3)){//if fired on target if(mission.civillian3.currentLabel != "death"){ mission.civillian3.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian4)){//if fired on target if(mission.civillian4.currentLabel != "death"){ mission.civillian4.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian5)){//if fired on target if(mission.civillian5.currentLabel != "death"){ mission.civillian5.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian6)){//if fired on target if(mission.civillian6.currentLabel != "death"){ mission.civillian6.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.civillian7)){//if fired on target if(mission.civillian7.currentLabel != "death"){ mission.civillian7.gotoAndPlay("death"); trace("target hit!"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.target1)){//if fired on target if(mission.target1.currentLabel != "death"){ mission.target1.gotoAndPlay("death"); } } else if(MC_SniperGun.MC_Sniper.MC_SniperScope.RedDot.hitTestObject(mission.target2)){//if fired on target if(mission.target2.currentLabel != "death"){ mission.target2.gotoAndPlay("death"); } } MC_SniperGun.MC_Sniper.gotoAndPlay(2); } } </code></pre> <p>next this is the code for the snipergun again no music is call to be played.</p> <pre><code>import flash.events.*; import flash.geom.Rectangle; SniperFunction(); function SniperFunction():void{ stop(); MC_SniperGun.addEventListener(TouchEvent.TOUCH_BEGIN, Tdrag); MC_SniperGun.addEventListener(TouchEvent.TOUCH_END, Tdrop); function Tdrag(e:TouchEvent){ MC_SniperGun.MC_Sniper.startTouchDrag(e.touchPointID, false, boundArea); } function Tdrop(e:TouchEvent) { MC_SniperGun.MC_Sniper.stopTouchDrag(e.touchPointID); } MC_SniperGun.addEventListener(MouseEvent.MOUSE_DOWN, drag); MC_SniperGun.addEventListener(MouseEvent.MOUSE_UP, drop); function drag(event:MouseEvent):void { MC_SniperGun.MC_Sniper.startDrag(false,boundArea); } function drop(event:MouseEvent):void { MC_SniperGun.MC_Sniper.stopDrag(); } gotoAndPlay("mission" + sample_1.MissionNumber); } </code></pre> <p>and lastly the codes from movieclip that contains the animation of the snipergun.</p> <pre><code>SniperShot(); function SniperShot():void{ sample_1.reloading = 1; trace("Sniper Shot"); } </code></pre> <p>the movieclip that contains the animation of the snipergun has a frame that has a sound property that when that particular frame is being played the sniper music file will be played but when i play that game the animation doesn't play but the sniper music files play for 3-4 time without pressing the fire button.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload