A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Need Help With Dynamic Text for Flash In Myspace

Hybrid View

  1. #1
    Josh C
    Join Date
    Aug 2006
    Posts
    23

    Need Help With Dynamic Text for Flash In Myspace

    Can anyone help me out here. I am new to the programing side of flash. I am using KoolMoves ver. 5.5.0 and I am trying to make a comment box in my flash with Dynamic text. I have the html code to make a comment box but I can't figure out how use that code in my flash. Am I going to have to use Dynamic text with a button and some kind of send form action or something? I have read up about some advanced action scripting but have not found anything on how to send to a backend like myspace. Help please

  2. #2
    Senior Member indogo's Avatar
    Join Date
    Dec 2005
    Posts
    282
    Well if you have the html version you could post it here (with anything personal changed)and we could walk you through converting to flash.
    It's fairly straightforward and once you have done one etc....

    regards

    mike

  3. #3
    Josh C
    Join Date
    Aug 2006
    Posts
    23
    Here is the code for the comment box i need to make work in flash.

    <center> <form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"> <input

    type="hidden" name="friendID" value="48942830"><textarea name="f_comments" cols="50" rows="10">Leave Me A Comment

    You ****!</textarea><br> <input type="submit" value="Send That ****"> <input type="reset" value="Oh **** Start

    Over"></form><br> <form action="http://www.htmate2.com/commentbox/" method="post"><style type="text/css"> textarea

    {background-color:FFFFFF; background-image:url(); border-width:2px; border-style:solid; border-color:000000;

    color:$ttc; font-family:;} input {background-color:FFFFFF; border-width:2px; border-style:solid;

    border-color:000000; color:000000; font-family:;} </style></center>

  4. #4
    Senior Member indogo's Avatar
    Join Date
    Dec 2005
    Posts
    282
    Ok in its simplest form...

    in the root timeline put

    fuseaction = "user.ConfirmComment";
    friendID = "48942830";

    create a dynamic text box ..give it the variable name (in properties) of f_comments

    create a send button ..give it the action of

    on(release){
    _root.loadVariables("http://comments.myspace.com/index.cfm","POST");
    }

    create a reset button with action

    on(release){
    f_comments = "";
    }

    and see what happens...
    there is no feedback included but instead you may wish to behave as the html version would so if you would use

    on(release){
    getURL("http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment&friendID= 48942830&f_comments="+f_comments);
    }

    try both methods and you will see the difference...

    there is a second form action started in your code...seemed incomplete s I ignored it for now...

    Oh and make your form pretty because you can...

    mike

  5. #5
    Josh C
    Join Date
    Aug 2006
    Posts
    23

    Thanks

    What do you mean by:

    in the root timeline put
    fuseaction = "user.ConfirmComment";
    friendID = "48942830";
    ?
    Last edited by [M2]Superman; 08-13-2006 at 06:22 PM.

  6. #6
    Senior Member indogo's Avatar
    Join Date
    Dec 2005
    Posts
    282
    Flashspeak...

    the root timeline is the timeline in the main movie...ie not a movieclip

    you can add actionscript to it by selecting the score/timeline dialogue (clock on the toolbar) select the third tab down on the left....click on '+'...
    choose 'actionscript'...and add the lines in the dialogue box.

    The easiest way to access after that is through the 'movie overview'...right click...edit

    the two lines mentioned are only needed for the first method.

    hope this makes things clearer...

    mike

  7. #7
    Junior Member
    Join Date
    Jan 2006
    Posts
    17
    neither of the two meathods work. the first one is just gets stuck there and doesn't really do anything.

    and the second one always says the user's profile is under maintenance. even though if meathod is tried through regular comment box, it works perfectly fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center