TypeError: Error #1009
Monkey Targets Forums/Flash/TypeError: Error #1009
| ||
hi does anyone know what this error is TypeError: Error #1009 i just get a blue screen with this written across it. My program runs fine in html and android |
| ||
Usually this means that a NULL Object has been accessed. Most of the time for me it's audio files. |
| ||
i was thinking it might be something to do with the audio as i converted all my ogg to mp3. I will have to go through and check to see if i missed anything.Thanx for the help |
| ||
hmm i deleted all reference to audio and still getting the error |
| ||
ok ive fixed it.It doesnt like the line DrawText("GAME LOADING",100,100) if you put in the oncreate().The reason it was in there is because i use it as a splash screen.It works on android devices but not flash guess ill have to figure out another way. |
| ||
ok ive fixed it.It doesnt like the line DrawText("GAME LOADING",100,100)if you put in the oncreate().The reason it was in there is because i use it as a splash screen.It works on android devices but not flash guess ill have to figure out another way. I thought that would have been better putting such code in the OnLoading() method?I hope non of you audio files were meant to loop as there is a flaw in the mp3 format (silence is add to the font) and it's heavy going getting it to work (with varying degrees of success) as you have to calculate the original sample length and edit and add code to the as file that monkey creates. This isn't such a problem from what I can gather if you have the Flash Profession IDE/Flash Builder as you can embed/compress wav files. Note I'm not a flash/flex guru. |
| ||
@dawlane I just tried putting it in the onloading() but alas i get the same error.Im in the process of trying to get the game working with sounds on a website.iTs my first website and quite a big learning curve for me.Ive got the looping background music going and will finish putting sounds in tommorow.My first attempt can be viewed below. http://www.gamecentaur.com/space-invaders-.html |
| ||
@dave.h GFK is having problems with the mp3's on the ios targets and QuickSilva posted a link there for a tool that encodes wav files to mp3 minus the gap (or be it a very small pause). http://www.monkeycoder.co.nz/Community/posts.php?topic=1577 http://www.compuphase.com/mp3/mp3loops.htm |
| ||
Thanks for the help apart from a splash screen ive managed to get it running now. |