Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sun 403 posts 395 karma points
    Nov 17, 2010 @ 06:48
    sun
    0

    How to get a flash file in media

    I use $src as media picker, the flash file named headbanner in media/site, how can I get it?  

       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="{$width}" height="{$height}">
            <param name="movie" value="{umbraco.library:GetMedia($src,0)/umbracoFile}" />
      <param name="quality" value="high" />
      <param name="allowScriptAccess" value="always" />
            <param name="wmode" value="transparent"/>
         <embed src="{umbraco.library:GetMedia($src,0)/umbracoFile}"
          quality="high"
          type="application/x-shockwave-flash"
          WMODE="transparent"
          width="{$width}"
          height="{$height}"
          pluginspage="http://www.macromedia.com/go/getflashplayer"
          allowScriptAccess="always" />
    </object>

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Nov 17, 2010 @ 14:27
    Tom Fulton
    1

    When you use mediaCurrent as a macro parameter, it passes in the entire XML so there is no reason to use GetMedia. 

    So use this instead:  {$src/*/umbracoFile}

    The * is because it wraps the properties in a tag of the media type alias, ie <Image> or <Folder> or maybe <Flash> if you are using a custom type.

  • sun 403 posts 395 karma points
    Nov 17, 2010 @ 14:28
    sun
    0

    Thanks for your reply.

    I have done it just like you said.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies