Skip to main content
Inspiring
April 18, 2012
Question

How to load html web in flash?

  • April 18, 2012
  • 1 reply
  • 3822 views

How to load html web inside flash as2/as3?

This topic has been closed for replies.

1 reply

_spoboyle
Inspiring
April 18, 2012

is this a web app or desktop ?

for web you could use

http://code.google.com/p/htmlwrapper/

or

http://grfxguru.wordpress.com/2008/05/26/load-an-external-texthtml-file-using-actionscript-3-sample-code/

and put into the htmlText property of a textField, there are limitations on the supported tags though

AIR has

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/StageWebView.html

ZainuuAuthor
Inspiring
April 18, 2012

Hi spoboyle, thanks for your reply!

Will the above methods works for a web app if I want to load something like these in flash?

<iframe src=http://www.flickr.com/slideShow/index.gne?group_id=71332142%40N00 frameBorder=0 width=500 height=500 scrolling=no></iframe>

or maybe this

<object width="400" height="300"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fabefilm%2Fsets%2F74457524564396771%2Fshow%2F&page_show_back_url=%2Fphotos%2Fabefilm%2Fsets%2F72157622564396771%2F&set_id=72121762456636771&jump_to="></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=109615"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=109615" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fabefilm%2Fsets%2F72153224564396771%2Fshow%2F&page_show_back_url=%2Fphotos%2Fabefilm%2Fsets%2F72237624564396771%2F&set_id=72427624564396771&jump_to=" width="400" height="300"></embed></object>

UPDATED: I downloaded the wrapper and read the README and docs. Im still unable to use it, how do I use it inside my flash to load html?