Hier ist der Beispielcode für mein Akkordeon:Wie stelle ich ein Adobe Flex Accordion so um, dass in jedem Canvas-Header eine Schaltfläche enthalten ist?
<mx:Accordion x="15" y="15" width="230" height="599" styleName="myAccordion">
<mx:Canvas id="pnlSpotlight" label="SPOTLIGHT" height="100%" width="100%" horizontalScrollPolicy="off">
<mx:VBox width="100%" height="80%" paddingTop="2" paddingBottom="1" verticalGap="1">
<mx:Repeater id="rptrSpotlight" dataProvider="{aSpotlight}">
<sm:SmallCourseListItem
viewClick="PlayFile(event.currentTarget.getRepeaterItem().fileID);"
Description="{rptrSpotlight.currentItem.fileDescription}"
FileID = "{rptrSpotlight.currentItem.fileID}"
detailsClick="{detailsView.SetFile(event.currentTarget.getRepeaterItem().fileID,this)}"
Title="{rptrSpotlight.currentItem.fileTitle}"
FileIcon="{iconLibrary.getIcon(rptrSpotlight.currentItem.fileExtension)}" />
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
</mx:Accordion>
ich wie so eine Schaltfläche in jedem Kopf aufnehmen möchten:
wishful" onclick="alert('xss') http://www.kevinx.net/tf2/uploads/helpme.jpg
Hallo Shawn, Würdest du bitte den Quellcode von FlexLibs CanvasButtonAccordionHeader in deiner Anwendung teilen. Ich habe ein wenig Schwierigkeiten, den Weg zu finden und die Dokumentation auf der Seite hilft auch nicht viel. –