Nowadays, more and more people are using Flash to build websites. Since mx2004 supports some HTML tags, we can use them to enrich the page, not just text.
Here's something to note:
<img> image tag Note: The function of this tag is not only to insert pictures in the text box, but also to insert 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 other attributes are optional.Well, on the surface, we can only load pictures and animations. If we want to add music, do we need to generate a swf for each piece of music added and then load it with html? Of course, if you want to do this, I can’t force you~
Continuing, the difference here from ordinary HTML pages is that SWF and MovieClip can be loaded in flash. We can transfer parameters to external movies and then load them back.
I may not be able to explain it clearly, take a look below:
Create a new flash, the size can be adjusted, write on the first frame:
stop();
mysound=new Sound();
mysound.loadSound(a,true)
Save and publish as http://www.chinahtml.com/0608/mp3.swf
Put a song in the same directory, here is qlx.mp3 as an example
Create a new flash and create a text box with the instance name feather. The first frame reads:
stop();
feather.html=true
feather.htmlText=<img src='http://www.chinahtml.com/0608/mp3.swf?a=qlx.mp3'/>
Well, that's it, the page has loaded a piece of music~ If you want to load other articles, you can modify the file name after a=~ The absolute address can also be used.
Many people may have thought of it, but I don't seem to have found such articles. I'm sorry.
Also...forgot to mention...you need to use iis or upload the website for testing.