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)