Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 20th, 2002, 07:28 AM
Mr Chocloate Mr Chocloate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Anglesea
Posts: 12 Mr Chocloate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old August 20th, 2002, 06:49 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
so currently, the dynamic text displays in the flash file, but you want the ability to turn off the html rendering?

Reply With Quote
  #3  
Old August 21st, 2002, 03:27 AM
Mr Chocloate Mr Chocloate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Anglesea
Posts: 12 Mr Chocloate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old August 23rd, 2002, 10:52 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #5  
Old August 25th, 2002, 01:34 AM
Mr Chocloate Mr Chocloate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Anglesea
Posts: 12 Mr Chocloate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old August 25th, 2002, 06:28 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Im glad I can help

Reply With Quote
  #7  
Old August 25th, 2002, 06:52 PM
Mr Chocloate Mr Chocloate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Anglesea
Posts: 12 Mr Chocloate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.com

watch 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.

Reply With Quote
  #8  
Old August 27th, 2002, 10:27 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hey, that would be great!

Reply With Quote
  #9  
Old September 11th, 2002, 02:28 AM
moaguilar moaguilar is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 2 moaguilar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 '&nbsp;' ...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

Reply With Quote
  #10  
Old September 11th, 2002, 02:35 AM
moaguilar moaguilar is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 2 moaguilar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 '&nbsp;' ...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

Reply With Quote
  #11  
Old September 11th, 2002, 09:13 AM
Mr Chocloate Mr Chocloate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Anglesea
Posts: 12 Mr Chocloate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > toggle view design and code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT