Search code examples
phphtmlactionscript-3flash-cs4

How to create html page dynamically from flash?


I have a flash movie with a button to 'view items in new browser window.'

These items are all dynamically generated in flash. So the html has to be dynamically generated as well.

Can any sugest a way to do this? Do I need to use php or some server side script?


Solution

  • if you mean "in new browser window." , then all you need to do is something like

    navigateToURL(new URLRequest("http://www.yoursite.com/somePage.php?content=hi_there"), "_blank");
    

    where the http://www.yoursite.com/somePage.php contains dynamically generated content from the querystring ( say... retrieve the content "hi there" from the example above) using PHP/server side script

    if you mean "html content generated INSIDE flash", then you can use FlashML http://osflash.org/flashml (seems to be actionscript 2 tho )

    if you mean "html like content in Flash", then you can write script to form your own content inside flash, like dynamically putting movieclips together to make it like a html page