When we learn how to use Flash and web pages in combination, we often encounter problems when Flash is inserted into a web page. It turns out that there are problems with the path of multiple swf when calling, let's see if there is any good solution.
Q:LoadMovie has a swf. After the swf is published, you can see the load swf after opening the swf, but why cannot it be displayed after it is inserted into the webpage?
A:Note that if your swf is placed in the images folder, and the html inserted by swf is outside the images folder or another path, the relative path should be subject to this html.
For example, we have three files: a.swf?# B .html=#c.html ". A.swf is in the images folder, B .html and c.html are in the hierarchical directory of the images folder, a.swf is embedded in B .html, and a.swf is linked to c.html as follows:
On (release) { GetURL ("c.html "); } |
But cannot be written:
On (release) { GetURL ("../c.html "); } |
The same applies to loadMovie.
Suppose a.swf0000b.swf is in the same images folder and they are inserted into c.html. If a.swf is to load B .swf, it can be written as loadMovie ("B .swf", 2) in flash ); after the webpage is inserted, the path should be: loadMovie ("images/B .swf", 2 );