# It just wont work (Flash + html)

**URL:** https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677
**Category:** flash
**Created:** [November 5, 2003, 3:11am UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677 "2003-11-05T03:11:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)
#### Post date: [November 5, 2003, 3:11am UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/1 "2003-11-05T03:11:57Z")

</div>

I am incredibly frustrated right now. I’m having trouble displaying my flash on my site. I’ve done many times, but now this once it wont work.

My site currently consists of two flash elements: A top banner, and a side menu. The top one is called “AFROTOPHEADER.swf” and the side one is called “AFROSIDEBAR2”

I have uploaded both movies into the same directory, they are right next to eachother. on the home.html page, I used the following code to implement them:

```auto

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="800" HEIGHT="150" id="AFROTOPHEADER" ALIGN="">
 <PARAM NAME=movie VALUE="AFROTOPHEADER.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#0099FF> <EMBED src="http://afro-ninjacom.readyhosting.com/Page_Home/AFROTOPHEADER.swf" quality=high wmode=transparent bgcolor=#0099FF WIDTH="800" HEIGHT="150" NAME="AFROTOPHEADER" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="200" HEIGHT="450" id="AFROSIDEBAR2" ALIGN="">
 <PARAM NAME=movie VALUE="AFROSIDEBAR2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#0066FF> <EMBED src="http://afro-ninjacom.readyhosting.com/Page_Home/AFROSIDEBAR2.swf" quality=high wmode=transparent bgcolor=#0066FF WIDTH="200" HEIGHT="450" NAME="AFROSIDEBAR2" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

```

The top banner shows up fine. The side bar does not. So then I checked the swf files themselves.

when I simply viewed “[http://afro-ninjacom.readyhosting.com/Page\_Home/AFROTOPHEADER.swf](http://afro-ninjacom.readyhosting.com/Page_Home/AFROTOPHEADER.swf)”

the swf file showed up fine. When viewing the other one I got nothing. So I uploaded some test swf files to see what results I got. Some of them showed up, some did not.

Does anyone have any idea what is causing this??

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 3:19am UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/2 "2003-11-05T03:19:10Z")

</div>

Hi  
If you load  
[http://afro-ninjacom.readyhosting.com/Page\_Home/AFROSIDEBAR2.swf](http://afro-ninjacom.readyhosting.com/Page_Home/AFROSIDEBAR2.swf)

Then right click you see the flash menu. That tells me that the swf is loaded but it is some how blank or faulty???/ not sure

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 3:47am UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/3 "2003-11-05T03:47:24Z")

</div>

It doesn’t make sense!!! what causes a flash file to be faulty?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 6:19pm UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/4 "2003-11-05T18:19:29Z")

</div>

Ok this is way off the front now… I’ll try a bump

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 7:44pm UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/5 "2003-11-05T19:44:30Z")

</div>

Try changing the PARAM name for one of them, they’re both using the PARAM name “movie.”

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 9:45pm UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/6 "2003-11-05T21:45:47Z")

</div>

Ah, I have made a new discovery. first off I reinstalled flash

I made a brand new movie, to the same dimensions of the menu that wouldn’t upload. I simply wrote “test” on it and uploaded it. It showed fine.

I took the same movie and pasted my menu in it from the original file. I renamed it and uploaded it. It did not work.

I went back to it. I removed all the buttons. renamed it again and uploaded it. It worked fine.

Why do the buttons cause this?  
here is the AS that I put on each button:

[AS]  
on (rollOver){

```
_root.display = "Home/ Updates";

```

}

on (rollOut){

```
_root.display = "Click a Button";

```

}  
on (release) {  
getURL (“[http://www.angelfire.com/games3/Icons/AfroNinja/Updatestest.html](http://www.angelfire.com/games3/Icons/AfroNinja/Updatestest.html)”);  
}  
[/AS]

the variable “display” is a text box that changes according to what button you’re on. It goes back to “click a button” on rollout. And accordingly, each button retrieves its own URL

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 10:41pm UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/7 "2003-11-05T22:41:57Z")

</div>

I know that’s the secure/pro way to do it but I prefer this for when I’m just uploading flash to an html page:

```auto
<embed src="filename.swf" height="-" width="-" quality="best" name="filename" menu="false"></embed>

```

- If you need to put it in a table to center it, go right ahead.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2003, 11:42pm UTC](https://forum.kirupa.com/t/it-just-wont-work-flash-html/34677/8 "2003-11-05T23:42:00Z")

</div>

Well I’ve discovered the problem isn’t the HTML. whenever I just try to view the swf standing alone, nothing appears…

here is the address of the top swf:  
[www.afro-ninja.com/Page\_Home/AFROTOPHEADER.swf](http://www.afro-ninja.com/Page_Home/AFROTOPHEADER.swf)

and the side bar that doesn’t work:  
[www.afro-ninja.com/Page\_Home/AFROSIDEBAR2.swf](http://www.afro-ninja.com/Page_Home/AFROSIDEBAR2.swf)

like I said, both display fine on my computer.
