Re: [Dave] how can I make a swf appear like an image when uploaded?
Thanks Dave ... this is working as it should in terms of calling in the specific swf file.
I'm just getting an issue with a Java Run Content script which is needed now whenever using flash files in a website.
I need to be able to pull in the url link or flash name into the Java script code but need to knock off the extension (ie: .swf) form the end. This would then enable the flash file to be embedded into the web page running correctly.
Here is the Java code:
<?php foreach ($roomsRecord['header'] as $upload): ?><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','960','height','362','src','<?php echo $upload['urlPath']?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#181818','movie','<?php echo $upload['urlPath']?>' ); //end AC code
</script>
You can see I have tried including the CMS php 'urlPath' code in the 2 places necessary ... this is working fine and is pulling in the full file link address. I just need to be able to knock off the .swf extension that is being included.
Is this possible?
I would guess that this will be a major point for most users who want to upload and embed swf files through the CMS software as most people will be using the Java Run Content script ... so would be very useful if a fix is identified.
Website is due for launch over the weekend so your quick assistance would be much appreciated.
many thanks
Adrian