Add a music _flash tutorial with HTML for flash pages

Source: Internet
Author: User
Tags html page html tags

Now more and more people use Flash to build a website, because mx2004 support some HTML tags, we can use them to enrich the page, not just text.

Detailed HTML tags can be seen here:
Http://www.blueidea.com/tech/multimedia/2003/789.asp

Here's one to note:
Image Labels
Description: This tab does not just insert pictures in a text box, it can also be inserted into SWF and MovieClip. Attributes: src: The URL of the JPG or SWF to be loaded, or the link ID of the MC, this attribute is necessary, and the other attributes are optional.

Well, on the surface, we can only load pictures and animations, if you want to add music, is it necessary to generate a SWF for each additional music and then load it with HTML? Of course, I can't force you to do this.
Continue, here is different from ordinary HTML page, flash inside can load SWF and MovieClip, we can transmit parameter to external movie, then load back.

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

A new flash,size can be adjusted, in the first book written:

Stop ();
Mysound=new Sound ();
Mysound.loadsound (A,true)

Save Publication as mp3.swf

Put a song in the same directory, here for example Qlx.mp3

Create a new flash, create a text box with an instance named feather. First write:

Stop ();
Feather.html=true
feather.htmltext= "

Well, that's it, the page loaded a music ~ if you want to load other articles can modify the a= after the file name ~ Absolute address can also.

Maybe a lot of people have thought of it, but I don't seem to have found this kind of article, the younger brother shortcoming.
And also.. Forgot to say. To test using IIS or uploading Web sites.

hbro source file Download : Htmlsound.rar (you need to put a Qlx.mp3 file on your test)

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.