Swf. Error

  • 1
  • Question
  • Updated 8 years ago
Hey guys. I know how to upload flash files to Yola, and what coding to use, (I have done it before with older sites) however I have just attempted to upload a flash file and add it to a page, but it's not working.

My file name is simply "button" with dimensions of 150 X 40, and my final code looks like this (without the <!-- and --> at each end)

<!--
<object width="150" height="40">
<param name="movie" value="resources/button.swf">
<embed src="resources/button.swf" width="150" height="40">
</embed>
</object>
-->

What is happening? It won't show up in eaither of my browsers, and it won't appear in the builder either.

If you want to take a look, check out the homepage where you'll see my swf. file in the top right corner. The only problem is that its just a blank box.

Help please!
Thanks :-)
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
  • unsure

Posted 8 years ago

  • 1
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Hey Brandon,

Can you post your web address please?

Thanks

John McCarthy
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
oh im sorry! haha here it is: http://brandonscorner.yolasite.com/bl...
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Hey Brandon,

When i go onto your site I see a Black button and when I hover above it, it turns blue.

Can you confirm this is what is supposed to happen?

Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
hmmmI've just opened my page in Firefox, and the flash file seems to be working now. It's not working in IE though. . .I wonder why this is?
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
yes thats right! im testing a button, but mines not working in IE. . .Firefox seems ok though
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
I wonder if its just an issue with my IE? Anyway thanks for the help though at least i know it's working somewhere! haha. . .
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
This is what I see in IE.



Is this what you are seeing?
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
yup! I don't know wht the problem is. . .
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Hey Brandon,

Sorry for keeping you waiting.

Try using this code

%3C%21--%5Bif%20%21IE%5D%3E%20--%3E%0A%3Cobject%20type%3D%22application/x-shockwave-flash%22%0A%20%20data%3D%22resources/button.swf%22%20width%3D%22150%22%20height%3D%2240%22%3E%0A%3C%21--%20%3C%21%5Bendif%5D--%3E%0A%0A%3C%21--%5Bif%20IE%5D%3E%20--%3E%0A%3Cobject%20classid%3D%22clsid%3AD27CDB6E-AE6D-11cf-96B8-444553540000%22%0A%20%20codebase%3D%22http%3A//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab%23version%3D6%2C0%2C0%2C0%22%0A%20%20width%3D%22150%22%20height%3D%2240%22%3E%0A%20%20%3Cparam%20name%3D%22movie%22%20value%3D%22resources/button.swf%22%20/%3E%0A%3C%21--%3E%3C%21--dgx--%3E%0A%20%20%3Cparam%20name%3D%22loop%22%20value%3D%22true%22%20/%3E%0A%20%20%3Cparam%20name%3D%22menu%22%20value%3D%22false%22%20/%3E%0A%0A%20%20%3Cp%3EThis%20is%20%3Cb%3Ealternative%3C/b%3E%20content.%3C/p%3E%0A%3C/object%3E%0A%3C%21--%20%3C%21%5Bendif%5D--%3E

Hope it helps

John McCarthy
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Sorry ignore the last post :P
<!--

<!--[if !IE]> -->
<object type="application/x-shockwave-flash"
data="resources/button.swf" width="150" height="40">
<!-- <![endif]-->

<!--[if IE]> -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/sh...;
width="150" height="40">
<param name="movie" value="resources/button.swf" />
<!--><!--dgx-->
<param name="loop" value="true" />
<param name="menu" value="false" />

<p>This is <b>alternative</b> content.</p>
</object>
<!-- <![endif]-->

-->
Try this :)
Photo of Callum

Callum

  • 357 Posts
  • 32 Reply Likes
It looks like you haven't closed the 'param' tag
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Hey Callum,I also though that to start with but even with it closed it wouldn't load a test flash file I used.
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hey John Mc,
Awesome work on this thread! Thanks so much for your help :)

Emmy
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Glad to help, P.S sorry about the weird post up there,I couldn't remove it :S
Photo of Brandon

Brandon

  • 243 Posts
  • 33 Reply Likes
when i put that code in i see a --> at the top of every flash file i put on my pages. How do i get rid of that?