htmlwrapper standalone

134 views
Skip to first unread message

Danny Lazarow

unread,
Jun 11, 2011, 3:34:59 AM6/11/11
to htmlwrapper
The site http://motionandcolor.com in not opening.
Could the newer version of the library to be used standalone (outside
the ASTRID framework)
I just want to parse a simple site, with not much javascripts.

Tyler Larson

unread,
Jun 11, 2011, 1:46:08 PM6/11/11
to htmlw...@googlegroups.com

Think of ASTRID as a collection of utilities. You don't need to use all of it but the function of rendering HTML to the screen is complicated so to do this most of the utilities that ASTRID provides are used. 

If you are really just looking for a parser and not something that renders it to screen you can just use that.
but I assume you want the whole thing and todo that most of ASTRID is used.

Thanks for reminding me about my site. I have been super busy lately, I will try to fix it asap. If there is anything you need from it I can post it to the mailing list in the mean time. 

-Tyler



--
You received this message because you are subscribed to the Google Groups "htmlwrapper" group.
To post to this group, send email to htmlw...@googlegroups.com.
To unsubscribe from this group, send email to htmlwrapper...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/htmlwrapper?hl=en.


Danny Lazarow

unread,
Jun 11, 2011, 3:44:02 PM6/11/11
to htmlwrapper
Hi Tyler.

What I want is to parse html and css of page and render it in flex
component.
I already saw your code, and thing it's great. Except the only thing -
the Html render is in as framework and I cannot use it in my flash
bulder application. Am I right?

I'm thinking now how to get it working outside the ASTRID.

As a main developer of this library can you compare it in detail
with : http://as3htmlparser.svn.sourceforge.net/viewvc/as3htmlparser/

I know that you may be'll praise your code but it'll be realy
interesing for me to hear your opinion.
I'll develop flex 4 application (fx) and want to render not very
complicated html/css/javascript pages.

On Jun 11, 8:46 pm, Tyler Larson <tallty...@gmail.com> wrote:
> Think of ASTRID as a collection of utilities. You don't need to use all of it but the function of rendering HTML to the screen is complicated so to do this most of the utilities that ASTRID provides are used.
>
> If you are really just looking for a parser and not something that renders it to screen you can just use that.https://github.com/talltyler/ASTRID/blob/master/lib/src/framework/vie...
> but I assume you want the whole thing and todo that most of ASTRID is used.
>
> Thanks for reminding me about my site. I have been super busy lately, I will try to fix it asap. If there is anything you need from it I can post it to the mailing list in the mean time.
>
> -Tyler
>
> On Jun 11, 2011, at 3:34 AM, Danny Lazarow wrote:
>
>
>
>
>
>
>
> > The sitehttp://motionandcolor.comin not opening.

Tyler Larson

unread,
Jun 12, 2011, 12:00:59 AM6/12/11
to htmlw...@googlegroups.com

All of my projects are ActionScript only projects, because of this they can be used in any environment including within the Flex framework.

I've never used this project so I can't really say but the base of the project is tightly linked the the concepts of Flex. Everything is a UIComponent and it follows the normal Flex component life cycle in many spots. If you are working on a Flex only project maybe this is good for you but from what I have seen in this project it has few features that match the HTML and uses the Flex CSS I think. 

In my opinion the Flex framework is slow and bloated. The CSS support is extremely basic and follows it's own conventions rather than anything to do with web standards. If you want to be able to parse some random page following as much of the standards as you can should be the goal. 

I've written a HTML/CSS libraries. I wouldn't call any of them perfect but they all have there place. I started with http://code.google.com/p/htmlwrapper/ which was the first AS3 one as far as I know, it was trying to act as a plugin on an HTML page, the goal was to render anything in the source within flash instead of by the browser, I was trying to solve the problems with browser incompatibilities and add features like animation and filters to the browser long before HTML5 and CSS could do these things. But it didn't have an API and many of the tags you might want are not implemented. 

I then got a job and created a closed source one that had a way to script things and add for loops to html code, the markup turned into a dynamic scripting language. While doing this I learned a few things and saw how people wanted to use it.

I then tried to make the simplest HTML/CSS parser I could. https://github.com/talltyler/MiniHTML it's extremely fast and does 90% of want anyone might need but it needs XHTML and all of the properties are named based on the Flash equivalent not the standard HTML or CSS names (like x,y instead of top,left). If you are coding custom pages this doesn't matter but if you are rendering random pages it wouldn't work at all.

I then wanted to make something better, something with an API, something that was more than just able to display HTML/CSS, I wanted it to have plugins to render anything and take in any type of data. I want to be able to extend HTML and to control what was rendered like how JavaScript can manipulate a page after it is rendered. And if you can render one web standard the utilities that you are writing are the same to render any other web standard. So with ASTRID is mostly these utilities to break down development of any of these web standards and really utilities to help with development of any ActionScript project. The HTML and CSS part of it also got a lot more love and includes many of the new HTML5 features and many of the things that people requested from my HTMLWrapper projects. I never fully implemented tables but or a few things like z-index and frames but all of this is started and almost works. 

Maybe ASTRID isn't for everyone or every project. If you want something simpler or specifically focusing on HTML/CSS maybe one of the other projects I built would be better. But without all of this larger structure ASTRID would not be able to do all of the things that it can do. 

Also my projects and this one you have linked to are not the only HTML renderers. There are maybe 4 or 5 other ones, I don't have links for all of them. If you have time, try them all out and see what fits best for your project. Let me know what you end up going with, even if it's not my stuff. 

-Tyler

gjain

unread,
Aug 30, 2012, 7:13:15 AM8/30/12
to htmlw...@googlegroups.com
I want to display google maps in my site www.kamalkanhaiya.com so I was wondering if it possible to use htmlWrapper to display google maps inside a flash site, and if so could you post the link to the documentation. the site: www.motionandcolor.com is not accessible. and i have no idea where to start.

Tyler Larson

unread,
Aug 30, 2012, 3:28:55 PM8/30/12
to gjain, htmlw...@googlegroups.com

Google maps for flash was discontinued I think so I don't know if this is a good idea even if it is possible. 

At this point it is likely a better idea to focus on real HTML outside of flash and if you need flash for anything to use it between elements.

After looking at your current site you might want to start with a tool like Edge http://edge.adobe.com/ it's free and enables you to create most things that flash enables.
If you want to spend the money (or use the 30 day trial) the newest version of flash also exports to standard HTML5. You might be able to take the site you already have, export it to HTML and then modify the HTML to have your map or whatever else you might need. They are making this HTML exporting from Flash better and better I think this might be a better direction for you than to use ASTRID or these other Flash based libraries. 
 
-Tyler
.



To view this discussion on the web visit https://groups.google.com/d/msg/htmlwrapper/-/iBv4FOavwD4J.
Reply all
Reply to author
Forward
0 new messages