PDA

View Full Version : Flex 3.2 Vs. HTML


arone
03-17-2009, 06:07 AM
Just curious if its possible to embed html coding in a flex web application. like <object> from a youtube video for example.

I also would like to know if its possible to use make a window/panel/canvas or somthing along those lines be able to point to an external HTML file.

I know theres a HTMLViewer for the AIR apps, but im building this for the web and want somthing that would turn the same results as (for example) <iframe source="somtihng.html" />

thanks

wvxvw
03-17-2009, 10:24 AM
Flash supports only few HTML tags and not all of their properties / styles. So, the answer is sooner "no" then "yes". Though, you can load HTML, parse whatever's inside and display that data in a custom way.
For YouTube, for example, there're API available for loading and displaying their videos.
http://www.lostinactionscript.com/blog/index.php/2007/10/13/flash-you-tube-api/
http://code.google.com/apis/youtube/flash_api_reference.html#AS3
(+ read this: http://code.google.com/apis/youtube/articles/tubeloc.html )

fx.barrett
03-17-2009, 12:15 PM
For the YouTube video thingie, I have an example I posted a few weeks ago. You can check it out here: http://blog.wisebisoft.com/2009/02/09/flex-youtube-video-player/ for the HTML part, what wvxvw said.

corbo950
03-18-2009, 03:31 AM
Just use an IFrame

arone
03-24-2009, 01:10 AM
Just use an IFrame


How do I use an iFrame in a web applacation?

wvxvw
03-24-2009, 01:23 AM
http://www.w3schools.com/TAGS/tag_iframe.asp