Log In · Register

 
comment box in flash?
aikb38
post Nov 6 2007, 10:36 AM
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 "
 

Posts in this topic
aikb38   comment box in flash?   Nov 6 2007, 10:36 AM
aikb38   any1 have any ideas. i hate to double post but ive...   Nov 6 2007, 06:17 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: