Zalord
Content Creator
- Joined
- Jun 12, 2013
Hi there.
I'm have a small problem with a mod that I've written. What my mod does is select a random background from a folder named "bgs" and applies it to the character. It's a pretty simple thing, but it's my first ever AS3 project which means I screwed up somewhere.
It works... for the most part. It does select a random background, but the message "Mod Loading Failed" still pops up in the top right corner. I am pretty sure that this is because I don't have a unloadMod() statement in the code. Whenever I put it in there, the error goes away but none of the backgrounds load.
I've attached a working character folder with the mod in it, including the .as file and the as3->swf compiler. A sample bgs folder is also included.
Can someone take a look at it and tell me what I'm doing wrong? Thanks.
I'm have a small problem with a mod that I've written. What my mod does is select a random background from a folder named "bgs" and applies it to the character. It's a pretty simple thing, but it's my first ever AS3 project which means I screwed up somewhere.
It works... for the most part. It does select a random background, but the message "Mod Loading Failed" still pops up in the top right corner. I am pretty sure that this is because I don't have a unloadMod() statement in the code. Whenever I put it in there, the error goes away but none of the backgrounds load.
I've attached a working character folder with the mod in it, including the .as file and the as3->swf compiler. A sample bgs folder is also included.
Can someone take a look at it and tell me what I'm doing wrong? Thanks.
Attachments
BGLoader.zip
1.9 MB · Views: 95
1.9 MB · Views: 95