Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Automatically inserted code

Featured Replies

I'm rejigging a site due to a change in company name including reuploading a Flash animation on to the home page. The original version works smoothly.

 

Both versions seem to have "embed" code automatically inserted yet in the second version.

 

1. The Flash file has been inserted wrong with a double fileending ".swf.swf" which means that the image does not apppear.

 

2. When I use Firebug to delete the surplus filending the animation appears but not where it should be.

 

Any ideas?

Edited by Matt G

  • Author

Right. URLs altered, automatically inserted code in bold.

 

<div id="fp_flash_holder">

<script language="javascript">

if (AC_FL_RunContent == 0) {

alert("This page requires AC_RunActiveContent.js.");

} else {

AC_FL_RunContent(

'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',

'width', '350',

'height', '500',

'src', 'http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf',

'quality', 'high',

'pluginspage', 'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'true',

'scale', 'showall',

'wmode', 'opaque',

'devicefont', 'false',

'id', ',%20,%20boat_251010',

'bgcolor', '#ffffff',

'name', ',%20,%20boat_251010',

'menu', 'true',

'allowFullScreen', 'false',

'allowScriptAccess','sameDomain',

'movie', 'http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf',

'salign', ''

); //end AC code

}

</script><embed src="http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name=",%20,%20boat_251010" menu="true" allowfullscreen="false" allowscriptaccess="sameDomain" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="350">

Where does the automatically generated code come from? Find out where it's being generated as there are instances where the code takes the filename and adds the extension which is coded separately, so use the filename without the extension and then with luck the result will probably only have one .swf.

  • 2 weeks later...

bump - not even sure where the atomated code might be coming from.

 

Dont understand flash but logic tells me if i edit this line

 

src', 'http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf',

 

To

 

src', 'http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010',

 

Of course that could be utter crap

  • Author

The obvious worked to an extent - thanks! :)

 

However while the double filending problem is solved the image still isn't coming up.

I don't like the look of this filename

http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf

and in the embed tag:-

http://www.,,.co.uk/webdev/Flash/,%20,%20boat_251010.swf.swf"

 

The %20 is inserted automatically into a space, so perhaps you should get rid of the spaces by using - or _

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.