HTML can be very useful in Flash for simple formatting of text.  If you 
have text with embedded formatting tags, like bold, italic, fonts, lists, 
etc., then it's much easier and still appropriate to send that to Flash for 
display as opposed to creating your own standard for demarcating these 
items and settings styles with setNewTextFormat.  If the HTML is more 
complex like tables and embedded images, then you probably want to separate 
it out (although a case can be made for leaving as is--for example we have 
built a table rendering engine in flash and could conceivably create an 
HTML type interface where it accepts standard HTML table tags and displays 
them).

While I was the one that initially disagreed with you on display of HTML in 
CFCs, I will say that I do agree with you to a point--as long as you 
separate your logic from your display, then having a CFC which is dedicated 
to display and does output HTML directly is architecturally fine.

However, please keep in mind that the original question on this thread was 
"how do we output HTML from a CFC?"  When you have a very basic question 
like this, you have to consider the audience and a simple answer of "you do 
it like this..." would not really be sufficient since it's probable that 
someone asking this type of question is not going to be familiar with 
n-tier or MVC development.

Sam

At 11:40 PM 12/9/2002, you wrote:

>I understand how to get the HTML to Flash. What I don't understand is
>why you think this is useful. Views should either be created in HTML or
>Flash. Why on earth would you want to send HTML to Flash to be rendered
>as a view?
>
>-Matt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to