1 Reply Latest reply on Jun 1, 2010 9:32 AM by bringrags

    Include LineChart as MediaElement

    Gaetan S



      I wish to insert a Chart as a mediaelement in an OSMF composition, ie, being able to controle the state of the chart according to the current playback. There are ways to include video, audio, image an even external SWF, but not for a Chart, or aggregation of a Chart, a legend and others uicomponent into a Vbox, for instance. This custom composition will have CURRENT_TIME_CHANGE event listener in order to reflect the current playback position.


      How can I do this?


      Thank you.


        • 1. Re: Include LineChart as MediaElement
          bringrags Level 4

          If I were trying to build this, I would create a ChartElement which extends LoadableElementBase, and which adds a DisplayObjectTrait whose DisplayObject is the chart to display.  I would then wrap the ChartElement in a DurationElement, and specify the duration that you want to display the chart.  DurationElement provides the logic you'd need for expressing duration and current time, playing, pausing, seeking, etc.