|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
toggle view design and code
Hi I need some help? I'm playing around with flash mX thanks to ben's new flash article (great article).
i have a input text box with the instance name of txt. using this action script txt.html = true; txt.htmlText = "<B>what ever blah blah</B>"; "what ever blah blah" is bold and thats great! I have made a button and added this action script to it. on (press) { txt.html = false; } this should make the input text box not render text as html. but it does not. my question is why? i just want to be able to toggle views. ![]() |
|
#2
|
|||
|
|||
|
so currently, the dynamic text displays in the flash file, but you want the ability to turn off the html rendering?
|
|
#3
|
|||
|
|||
|
That's exactly what i want to do. Do you know how to do this?
I really liked your article also it was great. I've read a few of your articles here at dev articles and i'm coming here more than i go to sitepoint now. ![]() |
|
#4
|
|||
|
|||
|
when you get stuck with action script, check out
URL text2.html = true; text2.html = false; if that doesnt work, make sure the VAR field has the name in it |
|
#5
|
|||
|
|||
|
solved
just type some html like <b>what ever</b> and click toggle http://www.sunet.com.au/~leighmac/edit.htm thanks for the link Ben. |
|
#6
|
|||
|
|||
|
Im glad I can help
|
|
#7
|
|||
|
|||
|
i think i could make a html text editor now using flash.
i'll keep you guys posted. i have no plans to sell it. if any one wants a html text editor that is stable buy http://www.editworkspro.comwatch this thread cause it's coming i'll post all code used to make my editor to. ![]() Last edited by Mr Chocloate : August 26th, 2002 at 05:26 AM. |
|
#8
|
|||
|
|||
|
hey, that would be great!
|
|
#9
|
|||
|
|||
|
I checked out the WYSIWIG editor, worked great....I even went as far as to attemp to use it as a CMS with a FlashMX front end. Ran into some problems here... The HTML won't render properly inside the flash due to the following;
The format that it putting the font size and color will not work with flash (or at least I think this is the problem). I did some testing.. with this system the format is like this <font face=arial size=3 color=red>text</font> ***note there are no " " around the options chosen. I tested the following and it worked just fine.. <font face="arial" size="3" color="red">text</font> another problem I noticed is when there is more than one space between words, this system automatically puts in ' ' ...unfortunately this causes an error as well (I think because of the '&' it assumes it's another variable). Flash has many limits and it very strict when trying to input anything but HTML 1.0. I was thinking or writing some functions to change/fix all these problems before it sends the info to the databse but I was wondering if anyone out there has already though of a better way.. ideas? -mo |
|
#10
|
|||
|
|||
|
I checked out the WYSIWIG editor, worked great....I even went as far as to attemp to use it as a CMS with a FlashMX front end. Ran into some problems here... The HTML won't render properly inside the flash due to the following;
The format that it putting the font size and color will not work with flash (or at least I think this is the problem). I did some testing.. with this system the format is like this <font face=arial size=3 color=red>text</font> ***note there are no " " around the options chosen. I tested the following and it worked just fine.. <font face="arial" size="3" color="red">text</font> another problem I noticed is when there is more than one space between words, this system automatically puts in ' ' ...unfortunately this causes an error as well (I think because of the '&' it assumes it's another variable). Flash has many limits and it very strict when trying to input anything but HTML 1.0. I was thinking or writing some functions to change/fix all these problems before it sends the info to the databse but I was wondering if anyone out there has already though of a better way.. ideas? -mo |
|
#11
|
|||
|
|||
|
I've been side tracked alittle bit but i'm still working on the flash editor. It will be on top of my to do list. I've found a few bugs as well moaguilar but i think a little action script could fix that. if you want to download the .fla file you can from the link below. What i'm working on now does not work so great but when it does i will post it .
http://www.sunet.com.au/~leighmac/editor.zip |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > toggle view design and code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|