Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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>
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.
Thanks for your reply.
I have done it just like you said.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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>
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.
Thanks for your reply.
I have done it just like you said.
is working on a reply...