Add music to flash pages using html

Source: Internet
Author: User

More and more people are using flash to build websites. mx2004 supports some html tags, so we can use them to enrich pages, not just text.

For details about html tags, refer to the following:
Http://www.blueidea.com/tech/multimedia/2003/789.asp

Note the following:
Image Tag
Note: The function of this label is not only to insert images in the text box, but also to insert SWF and MovieClip. Property: src: the URL of the JPG or SWF file to be loaded, or the ID of the MC link. This property is required, and other attributes are optional.

Well, on the surface, we can only load images and animations. If we want to add music, do we need to generate a swf every time we add a music and then load it with html? Of course, I cannot force you to do this ~
Next, unlike the ordinary html page, flash can load SWF and MovieClip. We can transmit parameters to external films and load them back.

I may not be clear about it. Let's take a look at the following:

To create a new flash, set the size and write the following in the first release:

Stop ();
Mysound = new Sound ();
Mysound. loadSound (a, true)

Save as mp3.swf

Let's write a song in the same region. Here we use qlx.mp3

Create a new flash file and a text box named feather. First write:

Stop ();
Feather.html = true
Feather.html Text = "

Well, the page loads a music ~ If you want to load other articles, you can modify the file name after a = ~ An absolute address is also acceptable.

Many people may have thought of it, but I don't seem to have found such articles, and my younger brother likes me.
Also, I forgot to say... I want to use iis or upload a website for testing.

HBrO Source File Download: HTMLSound.rar (A qlx.mp3 file is required for testing)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.