AS3 Embed SWF

Source: Internet
Author: User

Use AS3 to embed the SWF in your code and encounter error:unable to resolve '. /resources/lv1.swf ' for transcoding this problem, check that the code does not have a problem:

public class Swfcontroller
{
[Embed (Source = ": /resources/lv0.swf ")] static private Var swf_0:class;
[Embed (Source = ": /resources/lv1.swf ")] static private Var swf_1:class;
[Embed (Source = ": /resources/lv02.swf ")] static private Var swf_2:class;
[Embed (Source = ": /resources/lv03.swf ")] static private Var swf_3:class;
[Embed (Source = ": /resources/lv04.swf ")] static private Var swf_4:class;
[Embed (Source = ": /resources/lv05.swf ")] static private Var swf_5:class;

But the error is not compiled, and finally carefully look at the original SWF name is wrong, [Embed (Source = "). /resources/lv1.swf ")] static private Var swf_1:class;

should be [Embed (Source = "). /resources/lv01.swf ")] static private Var swf_1:class;

The most painful thing in life is that the bugs you make are right in front of you and you can't find them.

AS3 Embed SWF

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.