display and navigate a web page from a flex tab

2019-09-07 20:25发布

i have a flex project that runs in using flash player 11. What i am trying to achive is to have a tab of my project which, when loaded displays a web page within the tab. I do not want to naviagate away from my project but display it within my tab layout. Is this possible? i have found plenty of info on how to do this using air but nothing with regards to my flex project not using air.

thanks

2条回答
乱世女痞
2楼-- · 2019-09-07 20:52

if you have to do, try to use flex-iframe, but is not a good way to use iframe in flex, it will have many mask problems.

查看更多
放荡不羁爱自由
3楼-- · 2019-09-07 20:54

No, this isn't directly possible. The HTML and StageWebView components would do the trick, but they're AIR-only.

What you can do is call a javascript function using ExternalInterface to load your desired web page in an iframe positioned above your Flex area.

See Div above iframe with flash content for more info on putting an iframe above your flash content area.

查看更多
登录 后发表回答