[REQUEST] Dictionary Object for SWF
I'm working on a word game, and I just realized that my favorite extension, the Dictionary Object isn't working for swf output. :(
I have compiled my own csv file with 58,111 words. If someone can make a dictionary object and wants to have the words already loaded (so it doesn't have to be loaded at run time) then let me know... I'll PM the csv file to you.
Either way, it would be very helpful to have the dictionary object working with swf output. Word games are very popular.
Re: [REQUEST] Dictionary Object for SWF
i tried using the string parser to load my dictionary.csv file but its probably too large of a file. It crashes on run.
Re: [REQUEST] Dictionary Object for SWF
Can anyone help me think of a way to get around this? I've got a game that I know will do well and I just hate having it sit idle because i can't check if words exist.
Re: [REQUEST] Dictionary Object for SWF
If all you want to do is check if they exist, just have all the words predefined in a list. Then you can compare if FindStringExact retuns -1 or not to know if it exists or not. You can use lower$() on both of them to make them the same case :)
Re: [REQUEST] Dictionary Object for SWF
Using what, the string parser? My words list is 58,111 entries... the string parser chokes on that file. Is there another way that I'm unaware of?
Re: [REQUEST] Dictionary Object for SWF
I am guessing LB was thinking the word list would be less, not sure really other than the object getting ported.
Maybe when Flash Haxx is done you could use a action-script Dictionary library to do something like that, i guess there is a few available for that type of stuff.
Re: [REQUEST] Dictionary Object for SWF
Do you happen to have a guess as to the limit (on the number of comma delimited entries) the string parser might have?
Perhaps I could break the list into 5 sections... I would test that but I don't have the list with me at work. I'll test that tonight for sure.
Re: [REQUEST] Dictionary Object for SWF
Quote:
Originally Posted by Tuna
Using what, the string parser? My words list is 58,111 entries... the string parser chokes on that file. Is there another way that I'm unaware of?
Quote:
Originally Posted by LB
in a list.
He means to use FindStringExact$() to test for the word being found.
Re: [REQUEST] Dictionary Object for SWF
The actual List Object, not just any old list, haha.
Re: [REQUEST] Dictionary Object for SWF
Thanks a million! This works just fine! It does take some time to load the list though.
Now, how would I go about loading this list at run time in a swf? Sure, if its local, I can see that working, but I don't know how to pull that off when the game is hosted on Mochigames.com, or others.