SoFunction
Updated on 2025-04-14

Add music to flash page using html

Now more and more people use flash to build websites. Since mx2004 supports some HTML tags, we can use them to enrich the page, not just text.

For detailed html tags, please see here:
/tech/multimedia/2003/

Here is one thing to note:
<img> Image tags
Note: This tag's function is not only to insert pictures in the text box, but also to insert SWF and MovieClip. Attribute: src: The URL of the JPG or SWF to be loaded, or the link ID of the MC. This property is necessary, and other properties are optional.

Well, on the surface, we can only load pictures and animations. If we want to add music, do we have to generate a swf for every music added and then load it with html? Of course, if you do this, I can't force you~
Continue, the difference here is that SWF and MovieClip can be loaded in flash. We can transmit parameters to external videos and then load them back.

I may not be able to explain clearly, look at the following:

Create a new flash, size can be adjusted, and write it on the first frame:

stop();
mysound=new Sound();
(a,true)

Save Posted as

Play a song in the same directory, here is qlx.mp3

Create a new flash and create a text box with the instance named feather. The first chapter wrote:

stop();
=true
="<img src='?a=qlx.mp3'/>"

Well, that's it, the page loads a music ~ If you want to load other articles, you can modify the file name after a= ~ the absolute address is also OK.

Many people may have thought of it, but I don’t seem to find such articles, so I’m so ugly.
I also forgot to say that I want to use IIS or upload website to test.

Download the source file of HBrO(You need to put a qlx.mp3 file yourself during testing)