Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Enter Key In Flash Chat



Hi, folks!

I“m programming a flash chat,
where I have a multiline input textBox for the user entry.

the matter is that when the user types something
and press enter, I want to send his message,
clean the textBox and set the focus to the beginning
of the cleared text box.

that works fine with a button "send message"... but...
if the user types his message and press enter,
the textBox gains an empty line above the focus,
and I couldn“t solve this.

Anybody knows what can I do ignore the enter in the
next textBox entry?

thanx!

Zerooito



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-09-2003, 08:42 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Enter Key In Single Frame Chat
I'm working on a Flash/ASP chat application and have everything working BUT the enter key. I want the enter key to submit the comment the same way clicking the button does. The movie is only a single frame long.

In one layer, I have this action script:


Code:
function onChange(component) {
if (component._name == "btnGo") {
addComment()
}
if (component._name == "btnLogOff") {
getURL("leavechat.asp?isession="+isession)
}

}
function addComment() {
varComments = new LoadVars();
varComments.NewComment = myComment.Text;
loadVariablesNum("addcomment.asp?isession="+isession,0,"POST");
myComment.Text = "";
myComment.setFocus;
}
In another layer, I have:


Code:
if (Key.isDown(Key.ENTER)) {
addComment();
}
The enter key submits the form maybe 75% of the time but the other 25% of the time you have to hit the enter key twice or even three times to get it to go!

Any help would be appreciated!

Text Fades With Enter But Not With CTRL-Enter
I have followed steps I've found in tutorials, but my TEXT does not fade when I run the web-page version (CTRL-Enter) even though it does fade when I just hit Enter inside Flash. (I have converted the text to Symbol -- both graphic and movie clip)

Images fade fine in both.

Is this something simple I'm blind to?

Help With My Chat Application...? Maybe Thisll Help Others Wanting A Chat Too
hi i couldnt work out how to simply make my own chat... i just couldnt get my head around all the wierd .asp etc.
so i found a neat little code for this miniture live board (called qboard) that has no ads or anything. it works basic - from a html sense of the word.
1 text table for your name.
1 for your email/url (which when your nickname is clicked on the board itll go there).
1 text table for your message.
1 submit/send button .
and above all that an iframe which you get to see the converstaion on.

what i want to do is use the information about all those textframes in a flash file so it can suit my webpages look. rather than the tacky buttons html provides etc.

the source is below. BUT NOTE:
this is the source for the chat I have set up. if you use it DIRECTLY on your page you will be using my chat which means you will get my users messages etc. IF you wantt to have your own... simply get it at qboard.org

<html>
<head><title>Chat</title></head>
<Body>
<center><br><br><br><br><br><br><br>
<table border=0 cellspacing=0 border=0>
<tr><td colspan=3 width=100% height=100%>
<iframe src="http://www.tenshimedia.com/qboard/?view=3d2c2b305d2c&filter=true&lines=10&refresh=15 &bgimage=&bgcolor=FFFFFF&textcolor=000000&linkcolo r=9C6A4E&visited=9C6A4E&hovercol=FFCC00&scrollcol= 9C6A4E" name=GrenadeChat width=200 height=175 marginwidth=0 marginheight=0>
</iframe>
</td></tr>
<form action="http://www.tenshimedia.com/qboard/?post=3d2c2b305d2c&filter=true&lines=10&bgimage=&b gcolor=FFFFFF&textcolor=000000&linkcolor=9C6A4E&vi sited=9C6A4E&hovercol=FFCC00&scrollcol=9C6A4E" method=post target="qboard" name=qtag onSubmit="document.qtag.msg1.value='';">
<input type=hidden name=post value=3d2c2b305d2c>

<tr><td><font face="arial"><font size="2">Name:</td><td><input type=text size=15 name=name maxlength=20></td></tr>
<tr><td><font face="arial"><font size="2">email/url:</td><td><input type=text size=15 name=url maxlength=120></td></tr>
<tr><td colspan=3><font face="arial"><font size="2">Message:<br>
<textarea cols=20 rows=3 name=msg1></textarea>
<input type=hidden name=msg>
</td></tr>
<tr><td colspan=3 align=center><input type=submit onClick="qtag.msg.value=qtag.msg1.value;" value=" Send "></td></tr>
</form>
</table>



</body>
</html>

can anyone help>>???

Ctrl+Enter Instead Of Enter In TextArea
Hi,

I'm creating a Flash instant messaging application (through XMPP protocol) and run into a problem. It isn't that important but I was quite upset that I wasn't able to solve it and I want to know if their is a solution =D

I have a TextArea chat input and a button to send the text, the TextArea is multiline and so captures the Enter key to jump one line... What I need is to send the message with the Enter key and jump with a Ctrl+Enter combination... My ideas were to disable the bubbling of the Enter key, trap it, and then manually assign the Ctrl+Enter combination to jumping the line in TextArea but couldn't find how to do all this...

I have to programm this application in AS2 but will be glad if you have an AS3 solution as well (to use later, learn and help others reading this thread

thnx,
Philip Seyfi, fs-studio.eu

Can Somebody Help Me I Need Chat In Flash
I want to create a chatsite with my chat window built in Flash. But i don't know how to build that ...
I need it it with ban/kick functions for moderators only. Please help me.
Or does anyone has this Flash already ?

Flash Chat
Anyone willing to help with a chat demo?

You will need PHP support on your site as well as a mySQL database. This is a tutorial I am looking into that is a bit advanced for me. It will allow for real time multi user interactivity in a chat and could be a "game server' as well, although it would be slow for graphical intense games. I will probably look into an XML socket connection eventually, but I would like to explore the possibilities of HTTP multi user interactivity first. If your interested, post a reply and I'll set up a download fla of this.

Regards
~GD~

Flash Chat
I really wanted to purchase a Flash chat application like the one found at ultrashock.com. The developer of that chat (rocketsnail.com) says that he does not license it anymore. Anyone know of a good Flash chat app?

Please Help Wth FLASH CHAT Please?
Hi

I Have tried and tried to create a flash chat room with:

* Admin Function
* Login usernames
* Icons

I keep getting ppl saying goto Pipey, Moock , Xadra and that.

It doesn't help please

Can some1 tell me howto or do for me putting my ASP or my PHP script chats into flash.

Or has ne1 got any flash chat source code proper chat with icons. (Not Pipey Or Webwave)

I have an avatar walking script and was wondering how to get chat into it.

If i have to use a server side program can someone tell me how exactly to get it working with my chat movie.

Please Help Please. FREE AVATAR SCRIPT FOR HELPERS

Thanks

Asp + Flash = Chat ---> Xml
Hi all flashing people,

I made a chatprogram in flash using a database and 3 asp pages. But everytime I test it with other people they tell me it is too slow.
What I do is I have got two textfields one to insert your message and one to see all the posted messages. There is a movieclip in the swf that loops all the time and reloads the asp page after a few seconds. This works fine but with a delay of 3 seconds. I think this is because of the asp page using a database etc. etc.
Now my question is: is it possible to write the message of an user into an xml document instead of a database? I don't know a lot of xml, so I really don't have an idea.

Thanks all.

Flash Chat
I was wondering if anyone had a fla they could send me about a flash chat, so I could learn how to make it work. My email address is Mathew7000@aol.com

Flash Chat
I am interesting about the ways to create Flash chat.
The problem is that if I use LoadVariable and it takes data from dynamic script I can not fine a way to make this script to refresh.

Please advise.

What other solutions can be?

Flash Chat Help Please
Hi,

Flash Chat application URL: http://www.backpackerworld.com/chat_room/

I am developing a Flash Chat application. It used XML object to send a HTTP
request to IIS Server every 3-5 seconds, then IIS server send back data
about message, user list in XML format.

It run perfectly in Windows 2000. I leave the chat room running in Windows
2000 in hours without any problems.

However, it freezes a frame in Windows 98 after about 30 minutes. The
freezed frame is in the "chat message" movie clip (the textarea under
"logged in as:") . This movie clip is set to use XML object to send HTTP
request to IIS Server. Because it freezes a frame in this movie clip,
therefore, it could not send any HTTP request to IIS server. So it could not
receive any messages or any data or could not update the user list. Chat
application basicly dead after a while. User has to close the browser and
open it again to be able to chat.

Have anyone got any similar problems when using XML object in Windows 98
operating system?

Any helps/comments would be appreciate, my email address is
david@loadedinteractive.com

Flash Chat application URL: http://www.backpackerworld.com/chat_room/

Regards,

David Tran

Flash Chat Box
Hey, i was wondering if it is possible to use flash to make a little chat box with realtime chatting? if not with flash, what other ways? i would like to integrate this into my website. thanks for any help =)

Looking For A Flash Chat...
I'm developing a Flash site that will need a small chat room. I have been using chatspace.com for a while because they have great chat rooms. In this case I need a chat that can live in my Flash movie. Has anyone seen a professionally developed Flash Chat out there? I'm not looking for a free one. I'll pay for top level development.
Thanks
- Patrick Mullady

FLASH CHAT } Help
does anyone have a working example of a flash chat,also the .fla will be good!

FLASH CHAT } Help
does anyone have a working example of a flash chat,also the .fla will be good!

Also i do not want components (i dont know how to use them)

Flash Chat Like This One ?
shadowness.com have a great flash chat...
or directly www.shadowness.com/popup_chat.html
where i can found the source of that...
(or something similar)
please i need it....
thx..

Add A Chat Using Flash.
I want to add a chatroom to my site, can some one give me the code for it

P.S. I don't know how to use HTML!

Flash Chat ?
friends.. i have a serious prob here...

I want to develop a flash based chat with socket connection...

can anyone please reffer me any usefull links about flash chat and sockets !!

and will be a much more greater help if anyone reffer me socket server and a sample chat application... plz..

send it here or mail me.. at . faheem_u_h@hotmail.com..

thanks in advance...

Flash Chat
Here is a good mix of a Flash chat and Real Video :

www.watchout.net

By the way, there is a live event Friday night, 11pm

Flash Chat Help
hi
I need help with a couple of things. First i have built a flash website, www.2heavy.co.uk , its alrite but i need something new with it...

I would like to have a flash chatroom with the site. I realise that i need to use flashMX and some CGI scripts (which i know nothing about).
Any help forwarding to a tutorial would be great.

Also i currently hold my web account free at geocities, but they do not support CGI or server scripts, does anyone know a free or cheap (£5/mo) website host that will benefit my needs.

Thanks alot guys, u usually help alot, so dont let me down this time .

cheers

Stocky

Chat In Flash ?
How can i make a simple chat in flash ????

I've got cgi on my site and no php.. Can it be done ?? How ??

Looking For Php Flash Chat
Hi there,

If anyone knows where i can find the following i'd be very thankful :-) ...

I'm after a flash chat room that i can download and edit which loads the messages etc from the chat room into a txt file using php.

...Thanks

Daniel Bull

Flash-chat
Hi guys
is anybody could help me with flash-chat source (+ mysql)?

thanx in advance

Php And Flash Chat?
ok heres the deal

im tring to make a flash chat with a php back end, so far ive got it so they can log-in and it adds them to a table in my my-sql database, but 50% of the time the online list is updates and 50% of the time its not.

The flash runs the function every 5secs "SetInterval"
im using a list component for the list of users.

so heres my question.
ive been reading that this aint a very goo way of doing it, because it has to access the php file, which increases bandwidth (which ofcourse i want to avoid), ive also been reading about the xml socket
i have no idea how to use it and i can find any help any where. So if you think i should use this or can think of a better way of me doing it as i am, please let me know.
I also saw that you have to has something on your server to use the xml socket, which is???

thank alot guys

p.s sry if this in the wrong place

PHP/Flash Chat
Basically I have a php socket server which my flash chat connects to, when the flash is opened locally, as in downloaded then opened, rather than right off a website, it can connect to the chat server, but when I try right off the site, it won't connect. Right now I'm using XMLSockets, does anybody know why this might be happening or how I can fix it?

Flash Chat...
is there anywere i can get a flash chatroom from or is there any place i can learn how to make my own so i could use top graphics if i wanted

Flash Chat
Hello everyone:

I was wondering how I could build a Flash Chat Application like 123 Flash Chat? All I want to know is how I could build the client side. I am pretty sure I can take the server side my self if I could use Java, ASP or PHP,

Flash Chat
i'm building flash chat.. i now how i can make it but i want to know is there a better way of doing it..

i can write all messages in TXT file and then users will load that TXT file every 10 seconds for example..


can i make some function that will load messages (TXT file) only when someone sends message??

Flash Chat
i'm building flash chat.. i now how i can make it but i want to know is there a better way of doing it..

i can write all messages in TXT file and then users will load that TXT file every 10 seconds for example..


can i make some function that will load messages (TXT file) only when someone sends message??

Flash Chat
Any tutorials on FK or elsewhere on how to make a Flash Chat System like: http://www.pipey.com/chat/default.asp

I have yet to find one on FK but sometimes my data-mining skills are low.

I Need Flash Chat
Hello!

Can somone help me??? I need a chat for my website and i cant get a Flash one anyware!?!

Can somone get me one??? Im using Flash MX 2004 Professional and Dreamweaver(i also have FrontPage). Please send me an Exemple.

Thx!!!

Chat In Flash MX
Somebody do a "CHAT" in Flash MX, if yes how?
I thinks that is possible with XML, or not?

thanks

Chat In Flash MX
Somebody do a "CHAT" in Flash MX, if yes how?
I thinks that is possible with XML, or not?

thanks

Chat & Flash
Hi everyone.
I've tried to download a flash chat system so that i can alter it to my requirements, but I can't find anything suitable for a PC developer.

I'd like to use PHP / MySQL as a kinda server.

I dunno if it'd be able to support private messages and / or animated banners (not necessarily adverts)

Any ideas welcome.

Free java servers anyone?

Flash-chat
Hey. I need flash chat. But i am on russian hosting what doesnt have php,perl,java.....I can use only flash,html,java-applets and dhtml...If it's possible to create flash chat without php-please say me...Thank you...

Flash Chat
I'm looking to make a chat using flash. if i could be pointed in the right direction that would be wonderful=)

Help With Flash-chat
Ok So I'm trying to change this flash-chat I found because in it's original form you have to use a .php gateway to start the applet for security reasons. security meaning that no one can just take the applet and throw it onto their page.

I need this function removed because I want to be able to just put the file on different pages.

If you know actionscript and you'd be willing to help or at least look at the file, please contact me. This shouldn't be too much work but I really don't know much about actionscript to even begin modifying stuff.

send me a messge at darth.saint@gmail.com

Like Doing Chat In Flash?
Good day...
It wanted to know if it is possible to create from flash chat to mount it and to use it in a pagina Web? This it is not of the type to messenger common, but that it runs directly in the pagina. In case of being possible, as serian the guidelines to follow and whichever tardaria time in making it an inexperienced programmer?
Thanks.

Like Doing Chat In Flash?
Good day...
It wanted to know if it is possible to create from flash chat to mount it and to use it in a pagina Web? This it is not of the type to messenger common, but that it runs directly in the pagina. In case of being possible, as serian the guidelines to follow and whichever tardaria time in making it an inexperienced programmer?
Thanks.

Like Doing Chat In Flash?
Good day...
It wanted to know if it is possible to create from flash chat to mount it and to use it in a pagina Web? This it is not of the type to messenger common, but that it runs directly in the pagina. In case of being possible, as serian the guidelines to follow and whichever tardaria time in making it an inexperienced programmer?
Thanks.

Like Doing Chat In Flash?
Good day...
It wanted to know if it is possible to create from flash chat to mount it and to use it in a pagina Web? This it is not of the type to messenger common, but that it runs directly in the pagina. In case of being possible, as serian the guidelines to follow and whichever tardaria time in making it an inexperienced programmer?
Thanks.

Flash Chat
I want to make my own Flash chat page and just wondered what the best thing to use would be.

I want multiple rooms, multiple users etc. I had a look at Unity, but i'd like more than one option really.

Thanks.

Chat In Flash
Is it possible to create a chat program in flash, that can have avatars walking about? How do u make something like that, if so? Or where can u buy something like that?

Flash Chat Bot
Do you know any ready made flash chatbots or is there any way to create them ?

I mean, a bot that chats with the visitor. Answers the questions etc.


Thanks.

Flash Chat
Hello people!
I wana make my own chath, buth dont know how to make And can`t find any tutorials
I wana make sample chath, wher people canRegister
Send private message, like duble click to nick and open new window with private chath
Hawe admins and moderators
One ot beter two chath rooms
Can place Ban, kick ect.
Can place smiles
Maybe anybody know any good tutorial how I can make it, better video tutorial, but I Loking for tutorial, but can`t find Please anybody help me..
Sory for my English, becoze I am Latvian..

Flash Chat
Hi!
I was wondering if one of you would be kind enough to post a link to a good tutorial on makeing a Chat Program in flash.

Also just incase you need to know, I have have Flash 9 Pro.

Thanks!

P.S. If I have posted this in the wrong place could a mod please move it? Sorry I'm new.

Flash Chat
does anyone know how to add emoticons to a flash chat?

Flash Chat
i have made working flash chat but would need help with plenty of trimming ^^
take a look: chat

ill attach fla and php files as well

how i would get moving text (old text moving up) and name list?
And is there any better way building flash chat than php saving?

+ How to make auto focus to text?

Copyright © 2005-08 www.BigResource.com, All rights reserved