# Linking Flash and HTML

**URL:** <https://forum.kirupa.com/t/linking-flash-and-html/19642>\
**Category:** flash\
**Created:** [April 30, 2003, 4:22am UTC](https://forum.kirupa.com/t/linking-flash-and-html/19642 "2003-04-30T04:22:20Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [April 30, 2003, 1:53pm UTC](https://forum.kirupa.com/t/linking-flash-and-html/19642/21 "2003-04-30T13:53:59Z")

</div>

Just right click, then “view code” hehe

---

<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:** [April 30, 2003, 2:17pm UTC](https://forum.kirupa.com/t/linking-flash-and-html/19642/22 "2003-04-30T14:17:50Z")

</div>

Yes… I agree that IFrames are the way to go as the entire page will not be reloaded, only the IFrame. Therefore, place the SWF file within the IFrame and use [AS]getURL(“page.html”, “\_self”);[/AS] to replace the SWF with an HTML page after the movie has completed (ie place this Action in the last frame).

If the appearance of the IFrame (ie scrollbars) do not fit with the layout of your page you can use CSS code to change the appearance.

Place the following within your HTML STYLE tags or in your stylesheet:

```
scrollbar-3d-light-color:#FFFFFF; 
scrollbar-arrow-color: #FFFFFF;    
            scrollbar-dark-shadow-color: #FFFFFF;
scrollbar-face-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-track-color:#FFFFFF;
            scrollbar-base-color: #FFFFFF;

```

That will (almost) camouflage the IFrame if you’re using a white page. Change the colours to suit your particular background. I hope this helps and apologise for my huge JavaScript code explanation above! :crazy:

---

<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:** [April 30, 2003, 6:32pm UTC](https://forum.kirupa.com/t/linking-flash-and-html/19642/23 "2003-04-30T18:32:54Z")

</div>

the problem with iFrames is that not all browsers support them.  
Regular frames, however, they all do.

---

<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:** [April 30, 2003, 6:35pm UTC](https://forum.kirupa.com/t/linking-flash-and-html/19642/24 "2003-04-30T18:35:28Z")

</div>

all the new browsers support Iframes just fine. older netscape didn’t but I think 6+ does.

[Previous page](https://forum.kirupa.com/t/linking-flash-and-html/19642.md?page=1)
