A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: HTML Editor..

  1. #1
    Cyber-Slacker
    Join Date
    Jan 2001
    Location
    Cape Cod
    Posts
    77

    HTML Editor..

    ...Nice job Chris Seahorn! They are featuring your Kool Moves HTML editor on the Flash Kit index page and it looks like a nice tool to have especially when working a Kool Moves content pane. Thanks!

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Holy cow! Thanks for letting me know jamnden

  3. #3
    Cyber-Slacker
    Join Date
    Jan 2001
    Location
    Cape Cod
    Posts
    77
    Chris,
    Is there any way to highlight the HTML text to cut and paste it in a content pane?

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    In the source...change the txt17.text textfield to selectable (in the properties). That way when you click the "Show Html" checkbox in the editor (when it's running), you can selct/copy the html source.

    I can take a couple of screenshots when I get back if you need to help show what I mean (I'm at my sons birthday party right now ).

  5. #5
    Cyber-Slacker
    Join Date
    Jan 2001
    Location
    Cape Cod
    Posts
    77
    Thanks-Works like a champ!

  6. #6
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    This will enable you to post your result to a text field
    This is a php that works to write a file page1.txt, it also sends you back an e-mail to let you know that it has been done, useful if ever you think you may get hacked. I've not included any type of abuse filter, but that could give you an extra layer of protection if you need it.

    <?
    ini_set("sendmail_from", " [email protected]");
    $txt17 = $_POST["txt17"];
    $txt17 = stripslashes($txt17);
    $ip = $_SERVER['REMOTE_ADDR'];

    $adminaddress = "[email protected]";
    $date = date("m/d/Y H:i:s");

    $action = $_POST["action"];


    if ($action == "send") {
    mail ("$adminaddress","site update notice",
    "An update of the site has been made, these are the new display values for page 1\n

    page 1 content : $txt17\n



    Logged Info :
    ------------------------------
    Using: $HTTP_USER_AGENT
    IP address: $ip
    Date/Time: $date","FROM:$adminaddress" ) ;

    $towrite .="$txt17\n";


    $file= fopen("page1.txt", "w");

    fwrite($file, $towrite);
    fclose($file);
    }


    ?>


    ------------------------------------------------------
    In the editor code you need to
    create a button on the movie clip with the editor on
    then create a mc called theresult
    and within it a dynamic text field titled myresult

    and add this code to the action script for the keyframe


    but1.onPress=function(evt){
    if (txt17.text == "" ) {
    theresult.gotoAndPlay("go");
    theresult.myresult.text = "Empty Fields";

    } else {
    var result_lv= new LoadVars();
    result_lv.onLoad = function(success) {
    if (success) {
    txt17.text="";

    theresult.gotoAndPlay("go");
    theresult.myresult.text = result_lv.returnMe;

    } else {
    theresult.gotoAndPlay("go");
    theresult.myresult.text = "Error";

    }
    };
    var send_lv = new LoadVars();
    send_lv.action = "send";
    send_lv.txt17 = "&txt1var=" + box1.text;
    send_lv.sendAndLoad("exit.php", result_lv, "POST");

    }
    }


    All this code is taken from Chris's loadvars mailform.
    Cheers

  7. #7

  8. #8

  9. #9
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    You can see the editor working live as an example here
    www.henshallbusiness.com - follow the live demonstration button link from the instant site page.

  10. #10
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Thanks guys over 100 of you have tried out the page in the last 48 hours, no one has reported any errors so I assume you all got to see it working ok on your various systems, thanks for that.

    ps Chris what's with the edits?

  11. #11
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Just cleaning up some odds and ends. Since I tend to give things away I gave my oldest son my copy of Koolmoves today and since I won't be using it anymore some posts of mine in here were in need of an update. Thanks for the concern though

  12. #12
    Junior Member
    Join Date
    Mar 2006
    Posts
    18

    Permission

    This is great works. I am just wondering if I can put this in my website as one of my free tools.

    Thanks

  13. #13
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    All my ties to Koolmoves are severed so there is no conflict there. It's archived here at Flashkit associated with my name , date of submission and copyright so I'm not sweating third party jacking. If it can help your users....go for it.

  14. #14
    Junior Member
    Join Date
    Mar 2006
    Posts
    18
    Quote Originally Posted by Chris_Seahorn
    All my ties to Koolmoves are severed so there is no conflict there. It's archived here at Flashkit associated with my name , date of submission and copyright so I'm not sweating third party jacking. If it can help your users....go for it.
    THANK YOU so much Chris! you really a great person. You're the man!

  15. #15
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Quote Originally Posted by HScott
    THANK YOU so much Chris! you really a great person. You're the man!
    Statements like that will put you in the minority of Koolmoves users

    It is nice to hear though !

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