A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Weird bug, commented code affecting mc

  1. #1
    2D/3D Artist & Programmer Dominicaninja's Avatar
    Join Date
    Jun 2005
    Location
    NY
    Posts
    157

    Weird bug, commented code affecting mc

    Not sure if something similar has been posted before, or if someone else has encountered this. So I have a movieClip with an animation. At frame x, I have code:

    if(bla == true)
    {
    this.weapon.gotoAndStop("boom");
    //commented code
    //more commented code
    }

    Now when I play that animation, it plays that frame twice! When I take out the commented code, it plays normally, only once. Has this happened to anyone else? I use MX. I've found many weird bugs like this lately but this one just stood out.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Posts
    467
    ow yeah, happens to me too
    Hope nobody knows I am still on Flash 5
    ______________________________________
    All artists are prepared to suffer for their work
    but why are so few prepared to learn to draw?(Banksy)

  3. #3
    2D/3D Artist & Programmer Dominicaninja's Avatar
    Join Date
    Jun 2005
    Location
    NY
    Posts
    157
    This has also happened to me using "trace" in certain frames. It's like Flash gets confused or something.

  4. #4
    Amiga freak Ironclaw's Avatar
    Join Date
    Jan 2001
    Location
    Sweden
    Posts
    1,650
    So THAT'S what it was... Happened to me too yesterday.

  5. #5
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    I've had this before, and I've had many problems with Commando 3 where I get inexplicable bugs caused by unrelated pieces of code - I changed part of the code for ambulance healings and the onEnterFrame disappeared whenever Light Infantry fired at you. And when I added a new Command, about 8 Ion Beams would appear whenever a Light Infantry fired... Most of my inexplicable bugs end up being something to do with Light Infantry, but the fixes have nothing to do with them.
    http://www.birchlabs.co.uk/
    You know you want to.

  6. #6
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Sometimes, I find some weird things will happen if you first make your clip a button or a graphic and then change it to movieclip on the stage. You need to also make it the correct behaviour in the library and drag it out onto the stage again to correct it.

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    FL, USA
    Posts
    442
    Yea, "converting" symbols (like from a graphic to a MC) rarely works for me. I usually have to cut the contents out and paste them into a new symbol.

  8. #8
    Senior Member Gloo pot's Avatar
    Join Date
    Aug 2005
    Location
    Australia Mate!
    Posts
    874
    Yes, this happens to me heeps. I have found that it only happens every so oftern, a couple of times i have saved the FLA with the *mysteriouse bug* and then come back the next day and it works fine.

    Im guessing its just one of those things

    PS, While i used MX i didnt encounter any such things but i have while useing F8
    92.7 Fresh FM for all your South Aussies - Doof Doof music FTW people!

  9. #9
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    If you run the debugger, Flash creates some temporary files, these for some terrible reason get imported when exporting!!! Make sure you delete everything but the .fla/.swf and then give it a shot.
    Christopher Rhodes
    squarecircleco.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center