GOoooooooooooooooooooooodDDD
Good work Guys :)
is there any chance of using this work as a componant in flash MX ??
excellent, but one question
this is great stuff... I am new to flash, and I am just wondering, is there a way to make cut and paste work in a text editor like this?
Bye
Sergio
help implementing Subway's code
I'm new to AS, so I'm having some difficulty utilizing Subway's great example. It works just fine as is, but I want to use it with multiple input text fields. I'd like to have three text boxes on the same frame and, depending on the focus, have all the formatting buttons apply changes only to the selected text box. Can anyone point me in the right direction?
Thanks,
rsam
Re: help implementing Subway's code
Quote:
Originally posted by rsam
I'm new to AS, so I'm having some difficulty utilizing Subway's great example. It works just fine as is, but I want to use it with multiple input text fields. I'd like to have three text boxes on the same frame and, depending on the focus, have all the formatting buttons apply changes only to the selected text box. Can anyone point me in the right direction?
Thanks,
rsam
If you get focus, you have to save the instance name of the focused textfield in a variable.
Something like:
Code:
TextField1.onSetFocus = function(){
_root.fieldOnFocus = "TextField1";
};
TextField2.onSetFocus = function(){
_root.fieldOnFocus = "TextField2";
};
TextField3.onSetFocus = function(){
_root.fieldOnFocus = "TextField3";
};
TextField4.onSetFocus = function(){
_root.fieldOnFocus = "TextField4";
};
/...
Hope that helps.
Fredi
Re: ALL HTML-FORMAT TAGS:
Quote:
Originally posted by Subway
But how can we set leading, indent ... ?
The way to do this is to use the "TEXTFORMAT" tag:
Code:
<*TEXTFORMAT LEFTMARGIN=\"1\" RIGHTMARGIN=\"1\" LEADING=\"2\"><*P ALIGN=\"CENTER\"><*FONT FACE=\"_sans\" SIZE=\"12\" COLOR=\"#000000\">Some text<*/FONT><*/P><*/TEXTFORMAT>
(without all the "*" of course)
Nice, isn't it? ;)
Is there any documentation anywhere on this TEXTFORMAT tag? Also, are there any known support issues using it (is it supported cross platform?). Thanks!
Re: Re: help implementing Subway's code
Fredi --- what about the Selection.getFocus() ?! :D
Quote:
Selection.getFocus
Availability
Flash Player 5. Instance names for buttons and text fields work in Flash Player 6.
Usage
Selection.getFocus()
Parameters
None.
Returns
Nothing.
Description
Method; returns the variable name of the text field that has focus. If no text field has focus, the method returns null. If the current focus is a button, and the button is an instance of the Button object, getFocus returns the target path as a string. If the current focus is a text field, and the text field is an instance of the TextField object, getFocus returns the target path as a string.
If a button movie clip is the currently focused button, Selection.getFocus returns the target path of the button movie clip. If a Text Field with an instance name is currently focused, Selection.getFocus returns the target path of the TextField object. Otherwise, it returns the Text Field's variable name.
it seems to me that you're passing a variable that doesn't need to be passed
Text editor with html converter
Ok,
here is the final for me :
http://www.modilo.fr/index.cfm?fusea...wPage&page=100
ColdFusion is used to convert the horrible html that flash generates.
Sorry, this is a commercial product, decission of my employer.
Re: Recognizing changes made
The FlashHtml is rewritten by the coldfusion server which clean and correct everything.That's it
Re: Re: Recognizing changes made
Quote:
Originally posted by Gerome
The FlashHtml is rewritten by the coldfusion server which clean and correct everything.That's it
I understand that you are using CF to parse the HTML from Flash, but I'm having trouble with Flash not showing changes in the html of the field.
In my test, if I select a word, then make it bold, then view the html of the text field, the bold tags aren't showing up as part of the variable. They do show up if I move the cursor to the end and type a letter. It seems I'm having a disconnect between the style shown and the html it produces. Any suggestions?
M@