|
-
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!
-
up to my .as in code
Holy cow! Thanks for letting me know jamnden
Last edited by Chris_Seahorn; 11-21-2006 at 12:36 AM.
-
Chris,
Is there any way to highlight the HTML text to cut and paste it in a content pane?
-
up to my .as in code
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 ).
-
Thanks-Works like a champ!
-
That web bloke
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
Last edited by Stoke Laurie; 11-19-2006 at 05:26 PM.
-
up to my .as in code
Last edited by Chris_Seahorn; 11-20-2006 at 11:47 PM.
-
That web bloke
cheers
-
That web bloke
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.
-
That web bloke
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?
-
up to my .as in code
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
Last edited by Chris_Seahorn; 11-22-2006 at 08:57 PM.
-
Permission
This is great works. I am just wondering if I can put this in my website as one of my free tools.
Thanks
-
up to my .as in code
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.
Last edited by Chris_Seahorn; 11-23-2006 at 01:10 PM.
-
 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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|