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)