View Full Version : Code just stops working
bestpilotever
02-21-2009, 11:04 PM
For some unknown reason I have an if else statement that prevents the program from working. The .swf loads but none of the buttons work. I comment (//)the else part and it runs again. Nothing is wrong with the code as far as I can tell. (way too many lines to post here)
My question is there a limit on how many lines of code in a program/layer?
This is driving me nuts. HELP PLEASE!!!!!
bestpilotever
02-21-2009, 11:15 PM
Ok now it's crazy.
If I comment out a function it works. If I call on it, it doesn't work even if nothing is in it.
kkbbcute
02-22-2009, 04:02 AM
Ok now it's crazy.
If I comment out a function it works. If I call on it, it doesn't work even if nothing is in it.
Care to upload your source file so we can have a look at it, its quite hard to debug if we don't even have an idea of how your code is done.
cjx3711
02-22-2009, 06:33 AM
Flash usually has strange problems like these. A few retarded but sometimes useful tips:
1. Delete some blank frames
2. Split up your code onto seperate frames
3. Copy all frames and paste it into a brand new document
These may sound stupid, but they have helped me alot in many occasions.
Of course, uploading your source file will be better for all of us to analyze the issue
kkbbcute
02-22-2009, 07:13 AM
Or if you really cannot figure out the problem and don't want to post your source file, you can check for common errors, such as typing:
if (someVar == 1) //Correct
if (someVar = 1) //Wrong
someVar = "Hi" //Correct
someVar = 'Hi' //Wrong
Or other careless things like that.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.