comment box in flash? |
comment box in flash? |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 2 Joined: Nov 2007 Member No: 588,137 ![]() |
ive been searching google for a couple days on how to make a comment box in flash. i even found a source code for a comment box in flash, but when i use it, it doesnt work work. there is no link on it, so it doesnt do anything when you click it. i will post the code. and i am using flash mx 2004. Please give me whatever information you can. thanks.
CODE var commentVars = new LoadVars(); var defaultText = "###LOAD UP TEXT###."; comment_txt.text = defaultText; commentVars.friendID = "###FRIENDID###"; commentVars.Mytoken = ""; comment_txt.onSetFocus = function () { if (comment_txt.text == defaultText) { comment_txt.text = ""; } // end if }; commentSubmit_mc.onPress = function () { if (comment_txt.text != defaultText) { commentVars.f_comments = comment_txt.text; commentVars.send("http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment", "_self", "POST"); comment_txt.text = defaultText; } // end if }; commentReset_mc.onPress = function () { comment_txt.text = ""; }; commentReset_mc.onRelease = function () { Selection.setFocus("comment_txt"); }; he also said "make the comment box>dynamic and name it comment_txt make a submit button name it commentSubmit_mc make a reset button name it commentReset_mc " |
|
|
![]() ![]() |