FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

200 frih for a flash animation

 


linexpert
hi
i need a flash animation where a user can type in a question and the animation with a chat interface will answer it from the list of preprogrammed questions.

this is going to be used as a support tool and you'll need to show me how to add my own questions and answers.

i made a similar one with java and the way i did it was by looking for certain words in the question asked.

example: user types in how do i buy a ticket?
the program first goes looks for question words (how, what, when, who, when) next it looks for a certain preprogrmmed words in this case "buy a ticket" would be on the list. the program now just returns the preprogrammed answer for how->buy a ticket

if you need help understanding it better please let me know

thanks
m-productions
ill be more than happy to give this a try, I can even make it so you can input the question/answers into a text file (however it would be easier if you knew how to edit the .fla) the one thing that ill need to find out (which i can do real fast) is how to pull the first word out of the string, i use to know this, but its been so long, and ive never needed to do such a thing,plus I HATE ARYS, i always find ways to get around them... i so dislike them o,0 it might just be fast to match exact quotes. ... anyhow its 3:35 am right now .. kinda late (or really earily if you want to look at it like that) ill work on a demo and see if you like it, and if you do, we can go from there sound good?
ninjakannon
Why don't you just make an FAQ page? This would be must simpler and still get answer users questions; obviously not all questions would be answered on there so you'd need a contact page too - so that users could ask any questions not answered by the FAQ.

This flash program, although not too hard to create, is pretty much pointless. If a user asks a question that's got an pre-set answer then you're ok, but what if they ask something which doesn't have a pre-set answer? Then they'll need to contact you. Therefore, only certain questions will be answerable, thus you might as well have a list of questions you pick from, then the flash animation gives you the answer. But hang on a second, that's just a complicated way of doing FAQ.

The reason you would want this would be to add on a better looking, more interesting front-end to your FAQ.
linexpert
m-productions wrote:
ill be more than happy to give this a try, I can even make it so you can input the question/answers into a text file (however it would be easier if you knew how to edit the .fla) the one thing that ill need to find out (which i can do real fast) is how to pull the first word out of the string, i use to know this, but its been so long, and ive never needed to do such a thing,plus I HATE ARYS, i always find ways to get around them... i so dislike them o,0 it might just be fast to match exact quotes. ... anyhow its 3:35 am right now .. kinda late (or really earily if you want to look at it like that) ill work on a demo and see if you like it, and if you do, we can go from there sound good?


you don't need to pull the first word. the way i'm hoping this will work is it looks for "who,what,when,where,why, or how" in the sentence. it doesn't need to be the first thing.

secondly, the reason why i'm doing this is because i want a change from the old faq's. i'm hoping after enough use and user replies this thing will be able to answer most of the questions. Very Happy
m-productions
we would have to pull the first word fron the string, or pull every word from the string, if you want it to look for the "who what when where" words first, flash can not just search through a string to find 1 part of it, in order to do this, you may split the string into an arry, making each word one part of the ary and then searching the arry. Ive never done somthing like this (i always just match full quotes) im actully looking into this to see if i can even do it this way (cuase it semes like it might take a long time to learn how to, though i do like learning), if i cant, it still could be done by matching full quotes...in the end i think matching full quotes would take less scripting

Code:
if (_root.type.text == "where do i get the key") {
    _root.ans.text == "you get the key here";
   _root.animation.gotoAndPlay(whatever);
 } else if (_root.type.text == "what is the key") {
        _root.ans.text == "the key is....";
   _root.animation.gotoAndPlay(whatever);

}


and you get the idea that woudlnt be hard at all, and if done that way, i could even make it so you can place everything into a text file if you dont like flash
you would just type like this into a .txt file (however doing it in the fla is a bit better.

&Q1=where do i get the key&A1=you get the key here&Q2=and you get the idea

if we where to make it search for the words the code would end up somthing like this that actully is only searching for a single word, not even searching for 2 parts "a word then a set of words after" doing the full quotes i think would be a lot faster....[/code]
linexpert
wow! flash works really diffrently than java. in java it was able to look for certain words and select the best fit from answers.
when i did it in java it was just a bunch of if..then statements.
i'm also looking into a chat program called flashchat. last i tried it didn't work properly with the ai bots. i guess i'm going to have to give that another try.

thanks for helping Smile

if you figure it out i'll still pay you for your hard work
Reply to topic    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.