• beyond tellerrand – play. Register Now!
Zurück   Flashforum > Flex und AIR > Flex programmieren

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 06-08-2010, 11:29   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2009
Beiträge: 119
HTML / IFRAME /Flex 4

Hallo zusammen,

ich versuche dieses bsp. umzusetzen aber leider geht es nicht:

Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" creationComplete="iFrame.visible=true" viewSourceURL="srcview/index.html"> 
	
	<mx:HBox width="100%" height="100%">
		
		<mx:Panel title="Tree" width="200" height="100%" roundedBottomCorners="true">
			<mx:Tree id="tree" width="100%" height="100%" dataProvider="{treeData}"
					 labelField="@label" showRoot="false"
					 change="iFrame.source = (Tree(event.target).selectedItem.attribute('path').toString());"  />
		</mx:Panel>
		
		<mx:Panel width="100%" height="100%" title="Content" paddingTop="1" paddingBottom="1" paddingLeft="1" paddingRight="1" >
			<IFrame id="iFrame" source="http://www.adobe.com/devnet/flex/" width="100%" height="100%"  />
			<mx:ControlBar>
				<mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
			</mx:ControlBar>
		</mx:Panel>
		
	</mx:HBox>
	
	<mx:XMLList id="treeData">
		<node label="Flex Resources">
			<node label="Flex Developer Center" path="http://www.adobe.com/devnet/flex/" />
			<node label="Flex Team Blog" path="http://weblogs.macromedia.com/flexteam/" />
			<node label="Flex Blogs on MXNA" path="http://weblogs.macromedia.com/mxna/FeedList.cfm#Flex" />
			<!-- these sites pop themselves out of a frame:
			<node label="flex.org" path="http://www.flex.org" />
			<node label="Adobe Labs" path="http://labs.adobe.com/wiki/index.php/Main_Page" />
			-->
		</node>
		<node label="Search">
			<node label="Google" path="http://www.google.com" />
			<node label="Yahoo" path="http://www.yahoo.com" />
		</node>
	</mx:XMLList>
	
</mx:Application>
eine fehlermeldung bekomme ich wegen das IFrame tag.
1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit-Konstante: IFrame.

ich glaube, dass in Flex 4 dieses IFrame gar nicht gibt.
Hat jemand eine idee...(HTML in FLEX einbinden)

gruß,
Flo
f_mal ist offline   Mit Zitat antworten
Alt 06-08-2010, 11:51   #2 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 11.856
HTML in Flex geht nicht.
Omega Psi ist offline   Mit Zitat antworten
Alt 06-08-2010, 12:02   #3 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 11.856
Um genau zu sein, alles was über ein Subset der Textformatierungen hinaus geht.
Omega Psi ist offline   Mit Zitat antworten
Alt 06-08-2010, 12:06   #4 (permalink)
Neuer User
 
Registriert seit: Jul 2009
Beiträge: 119
ok...DANKE
f_mal ist offline   Mit Zitat antworten
Alt 06-08-2010, 15:12   #5 (permalink)
Neuer User
 
Registriert seit: Jul 2009
Beiträge: 119
Hallo ,

und wie funktioniert das hier?
WebORB Blog: Mixing HTML and Flex using IFrame

gruß,
flo
f_mal ist offline   Mit Zitat antworten
Alt 06-08-2010, 15:57   #6 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 11.856
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.
Omega Psi ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Flash CS4] html seit in iframe + film parallel bei klick corntheflake Flash Einsteiger 1 22-06-2009 15:21
Flash Clip steuern mit JS (im HTML iframe) robin1986 JavaScript & jQuery 5 06-12-2007 08:19
gästebuch(iframe html) im Flashseite flashan Flash 4 und Flash 5 1 24-12-2005 06:39
von iframe (flash) zu iframe (html) user Flash MX 2004 0 22-09-2005 02:15
Flash-Navigation: HTML-Seite in iFrame laden?! bluefactor HTML und CSS 4 03-06-2004 14:54


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:32 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele