06-08-2010, 14:57
|
#6 (permalink)
|
| Perverted Hermit
Registriert seit: Mar 2004 Ort: Delmenhorst
Beiträge: 12.134
|
Steht auf der Website: Zitat: |
The approach is very simple: the HTML page hosting a Flex application contains an IFrame and some JavaScript functions responsible for positioning the internal frame and configuring it to load html content. All the Flex-to-IFrame communication is encapsulated in a MXML component which extends Canvas (see IFrame.mxml). When a the component is set to become visible, it uses the ExternalInterface API to call on the JavaScript function to position the IFrame exactly on top of the component and load corresponding content. When the component is hidden, it calls a JS function to hide IFrame. In the example above, the same IFrame is used to render HTML for each tab.
| |
| |