3 Replies Latest reply on Aug 22, 2006 8:52 AM by Newsgroup_User

    DataBinding for source attribute of SWFLoader

    Level 7
      Instead of specifying an inline string parameter for the SOURCE field of an
      SWFLoader:

      <mx:SWFLoader id="map" width="100%" height="100%"
      source="file:///C|/FlexWork/flex maps/FlashMap/flashMap.swf"
      autoLoad="true"
      x="1" y="1" scaleContent="true"/>


      I would like to do something like data binding to reference a bindable
      attribute:

      <mx:SWFLoader id="map" width="100%" height="100%"
      source={sourceFile} autoLoad="true"
      x="1" y="1" scaleContent="true"/>


      <mx:String id="sourceFile">file:///C|/FlexWork/flex
      maps/FlahMap/flashMap.swf</mx:String>

      Is there something like this possible in Flex? (This example does not
      compile, since it says it is expected a quoted string for the value of
      SOURCE.