A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: HTML generator. Possible?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    4

    HTML generator. Possible?

    Hi guys, I'm new to this site and still quite new to Flash developing.

    Recently I've been given a uni project on developing a stand alone flash application that is able to create HTML templates (layout, font styles, add table etc.) and generate the HTML code.
    I want to know if it's possible to develop such application and the difficulty level of it.

    Thanks!

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    You could absolutely do this.

    We have built several xml "writers" that wrap content that users enter with tags, format them, and create the xml file. Would be easy to do the same thing with html.

    We just had the application take the users input, put it in an array, have flash write the initial "string" and then loop through the array to populate the xml tags and then used SWF Studio to have flash create the file...

    Hope that helps!!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Yeay!

    Thanks flashpipe! It's a relief to know that someone did it before, otherwise my groupmate would grill me for picking Flash to develop such application.

    It's good to know that the method you mentioned is similar to what I thought possible (inserting opening and closing tags in between user input). Now I have to figure out how to create previews of those HTML codes. Any idea where can I find related tutorial? This is a very large site so finding the right information could be very challenging.

  4. #4
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Not sure what you mean by "previews of those html tags"

    If you're talking about letting the user edit text with tags, there are lots of flash, rich-text-editor tutorials/samples, etc. out there.
    http://joshdura.com/article/494/text-editor

    ...and even some prepackaged components:
    http://www.ektron.com/ewebwp.aspx
    http://www.flashloaded.com/flashcomp...ashtexteditor/

    If you want the user to be able to preview the html, just write the html file and open it in a browser...

    We didn't find any samples out there when we were doing this, we basically just built the string and created the file. SWF Studio has all sorts of documentation on their site, and you can download and install their software and test it without purchasing it. The exe is only usable for 24 hours, but that's long enough to see if it does what you need before you purchase it...

    Hope that helps!!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  5. #5
    Junior Member
    Join Date
    Jul 2008
    Posts
    4
    Sorry my bad. I was trying to say let the user preview the template before the HTML code was generated for that template.
    So it might be a challenge for me to preview the template and let the user select the font they want to edit.
    It seems the text editor by Joshua provided some very good idea on how to develop the generator, just need a lot time to digest it.

    Thanks for the information and it does helps !

  6. #6
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    There is a component that renders html/xhtml out there, including tables and so on. I can't remember what it's called unfortunately.
    Here we go:
    http://sourceforge.net/projects/fpxhtmlrender/
    http://osflash.org/deng
    Sam



  7. #7
    Junior Member
    Join Date
    Jul 2008
    Posts
    4
    Thanks Sam! That certainly can help me understand more about previewing HTML with flash.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center