Multiple swf call paths in Flash files

Source: Internet
Author: User

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 );

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.