Why do I get an Error Message When you use "Embed" to access a file png (for an asset class)?

I use Flash Builder and Starling to create a new project. I created the initial classes for Starling running. Everything works fine.

However, I created a class of assets (that will manage all the assets of the project) and I get an error message when you reference the png file. This png will serve as the main screen for the project. See below:

{

Import starling.textures.Texture;

public class active

{

[Embed (source = ' assets/screenMain_background.png']

private static var MainScreen: Class;

public static var MainScreenTexture:Texture;

Public Shared function init (): void

{

MainScreenTexture = Texture.fromBitmap (new MainSreen());

}

}

}

I have the file in a folder called 'active' which is in the main project folder. Why I get this error?

In the "Issues" tab it reads as follows:

"Couldn't find Embed source" assets/screenMain_background.png"

Capture1.PNG

you have a path problem.

Start by adding the current directory in your src directory.  If this fails, experiement.

Tags: Adobe Animate

Similar Questions

  • Why do I get an error message when you use the windows installer?

    OK, I am trying to install the Chipset drivers using windows install. I go to the gigabyte website and download the drivers from the chipset support and downloads. I go in the config file and click on the chipset of windows file install. It gives me the error "this installation package could not be opened. Contact the application vendor to verify that this is a valid installer package. "I made sure I got the download of the good mother Rev. and the right windows (x 64) option. IM at my wits end. I've asked this question before but cannot get a straight answer from anyone.  He has this annoying 1 cm around my screen black line. This isn't my moniter and it isn't my video drivers. IV update of windows. The only other option is my chipset. Any suggestions on how to work around this error?

    PS - I recently wiped my hard drive with Dban. If this would have anything to do with that.
    CPU: fx 8150 3.6 ghz
    MB: GA-990fxa-ud3 rev.3
    GPU: EVGA GTX 670 ftw
    RAM: Skill G 16 GB Ripjaws
    PSU: Corsair Tx 750
    OS: Windows 7 x 64 service pack 1
    Hardrives - 120 GB samsung ssd
    Western digital 1 TB

    Hi Ricky,.

    ·         You are able to install programs and drivers?

    ·         What is the motherboard Chipset Drivers file extension?

    You may experience this problem if the installer has downloaded file is corrupted. Follow these methods and check if that helps:

    Method 1:

    I suggest to download the drivers to a different location on the computer and see if you can install it from there. I suggest you to install the driver Chipset in high Mode and check if it installs.

     

    http://www.gigabyte.com/products/product-page.aspx?pid=4397#DL

    Method 2:

    Try to update your BIOS and then install the motherboard chipset drivers and all other available device drivers check if you get the error message.

    http://Windows.Microsoft.com/en-in/Windows7/BIOS-frequently-asked-questions

    Warning: BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Hope this information helps. Let us now if you would like more support on Windows.

  • Why I get these error messages when you try to print a pdf file?

    'This document could not be printed' and then, 'he is have not chosen to print pages.

    I've already printed these backup files.

    EDIT: now, I'm getting "the plugin cannot start the broker.

    What the hell is happening?

    Post edited by: Buckawicki

    All what I can say is that you try to upgrade to the latest version of Reader X with http://ardownload.adobe.com/pub/adobe/reader/win/10.x/10.1.5/misc/AdbeRdrUpd1015.msp

  • Why do I get an error message when you try to install CC?

    Screen Shot 2015-04-27 at 10.31.04 PM.png

    Hi Scott,.

    Please try the below steps to remove corrupt files of Adobe Creative cloud.

    https://helpx.Adobe.com/Creative-Suite/KB/CS5-cleaner-tool-installation-problems.html

    Try to download and install it by using: https://creative.adobe.com/products/creative-cloud

    Thank you

    Atul Saini

  • With premiere pro cc2015 why can I get this error message when reading 'timers video and audio are not synchronized?

    With premiere pro cc2015 why can I get this error message when reading 'timers video and audio are not synchronized?

    Hello

    Here are the steps.

    Install a cable Audio virtual on your machine:

    http://virtual-audio-cable.en.softonic.com/

    Under HW Audio Configuration configured Virtual audio cable as default input device

    And value clock maser virtual audio cable and try reading.

    This issue with the message 'Audio material e/s overloaded at 00' can be fixed, follow these steps.

    Vinay

  • Why do I get an error message when I try to download creative cloud on my new mac laptop?

    Why do I get an error message when I try to download creative cloud on my new mac laptop?

    There are MANY messages of error... which is yours?

    or

    A chat session where an agent can remotely look inside your computer can help

    Cloud creative support chat (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • I get an Error Message When you try to send emails. "some errors occurred while processing the requested tasks. Please see the list of errors below for more details". __

    I get an Error Message When you try to send emails. "some errors occurred while processing the requested tasks. Please see the list of errors below for more details".

    But it sends the message anyway... multiple copies, and she also is put in the "Outbox" in Outlook Express as if it is not sent.

    To stop the email to be sent repeatedly to the recipient, I erase it from the "Outbox" but a) you don't know if they really got it) b it is embarrassing for the receiver c) is this a bug I can fix it?

    Thanks for any help.

    You have a corruption of dbx file easily corrected.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • I'm trying to download 11 items that I already have on a new computor windows 8.1 after downloadind the first file and the extraction I get the error message when I try to download the second file: the party reach the components file is missing

    I'm trying to download 11 items that I already have on a new computor windows 8.1 after downloadind the first file and the extraction I get the error message when I try to download the second file: the party reach the components file is missing

    Make sure you have both. (1 of 2) file .7z and .exe file (2 of 2) under the same folder files

    Then double-click on the .exe file (2 of 2) it will start the installation process.

  • I get an error message when you try to download adobe reader acrobat dc [Android]

    Can anyone provide assistance? I get an error message when you try to download adobe reader acrobat dc

    Hello

    The error is not related to the Adobe Acrobat application. There is a problem with the store to play on your phone. You can try the precautions listed in the error store play 927 - 3 ways to get rid of it in Android | Difficulty of errors.

    If all goes well, that should solve your problem.

    Thank you

    Adobe Acrobat team

  • Get the error message when you try to launch the 64-bit CC bridge.

    Get the error message when you try to launch Bridge from Photoshop CC 64 bit.  "Cannot complete order because the extension cannot be loaded."  Need of difficulty.  Thank you.

    Hey Adobe Bubba,

    Please uninstall the software, run the cleanup tool, reboot your machine and install again.

    Cleaning tool: http://www.adobe.com/support/contact/cscleanertool.html .

    Kind regards

    Romt Sinha

  • C00D11C8 error message when you use Windows Media Player

    How to fix C00D11C8 error messages when you use Windows Media Player.

    I've recreated the error on another computer running the same level of the OS and SP but received a more explicit error message telling me to get the codex of GoToMeeting.

    I downloaded the GoToMeeting codex and the problem was solved.

  • You met the C00D10D1 error message when you use Windows Media Player

    Hello

    I have no sound through Windows Media Player and also a player from Youtube and BBCi.  I have the following error message, please notify :-)

    You met the C00D10D1 error message when you use Windows Media Player. The following information can help you resolve the problem.

    Codec is missing

    Windows Media Player cannot play the file (or can't play the part of the file either audio or video) because theMP3 - codec MPEG Layer III (55) is not installed on your computer.

    The missing codec may be available for download on the Internet. For more information about codecs, seeCodecs: frequently asked questions.

    Hello
     
     
    1. What is the file type or extension that you try to play?

    If you get a message stating that your computer is missing a codec, you are probably trying to play, burn, or sync a file that was compressed by using a codec that does not include Windows or the default player. You will need to download codecs.
    Player Windows Media for Windows XP supported Codecs
    http://support.Microsoft.com/kb/291948
     
    Package of Installation of codec
     
    See also:
    Windows Media Player C00D10D1 error: MP3 - MPEG Layer III (55)
    http://Windows.Microsoft.com/en-us/Windows7/C00D10D1-55
     
    Note: The above are published in the Windows 7 category, but they apply to Windows XP too.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • WMP has encountered an error while fire-"you met an error message when you use Windows Media Player".

    Original title: WMP has encountered an error when burning.  Check that the burner is connected properly and that the disc is clean and not damaged.

    I'm getting the above error message.  I tried at least 4 different drives and they are not the first discs I used this pack. also, I burned 30 + drives prior to receiving this message. When I click on the button "help", he says "you have encountered an error message when you use Windows Media Player.  Additional information is not currently available for this error. »

    Hello

    Have you made changes on the computer before this problem?

    I suggest you try these methods and check the status of the issue.

    Method 1:

    Keep the computer in a clean boot and check the status of the issue. If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem. Continue with the remaining steps to pin-point on the third party service. After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Please go up to step 7 of the Kb to maintain the computer to a normal startup after you fix the problem

    Method 2:

    Open the troubleshooter in Windows Media Player settings, run and check the status of the issue.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

  • CC of Dreamweaver generates one of the 3 error messages when you use find and replace on 8.1 Win 64 bit.

    CC of Dreamweaver generates one of the 3 error messages when you use find and replace is used more than twice in a row. "While executing onLoad in bc_afterSave.htm, the following JavaScript error occurred: at line 188 of file C:\Program Files (x 86) \Adobe|. Adobe DreamweaverCC | Configuration | Shared | ' BC\JS\bc_sites.js': out of memory.

    or

    When executing RunCommand in File_Save.htm, a JavaScript erroroccurred.

    or

    While exciting getDynamicContent inAdressURL.htm, an erroroccirred of Javascript.

    Any thought - I find myself CBWMS of closing and reopening. Will work for the other two find and replace once again before the popup of messaged\s error.

    Cough, cough, cough - 38 500 pages? !  Really?  It's a big site!

    I'm not surprised, that you are short of memory.  Try to limit your F & R records or select files rather than the entire Site.

    Nancy O.

  • Why I get an error message when you import directly XAVC images filmed on a Sony FS7?

    I am importing XAVC footage of a Sony FS7, and when I import the file XDROOT, first gives me an error message 'Failure to import a file' saying only that "the importer reported a generic error." And yet, all the video & audio seem to actually come and play very well in the front. It seems strange and a little disconcerting, to get an error message that maybe I can just ignore.

    If you do not import this file, you use the media browser to navigate to it and import from there.

Maybe you are looking for

  • Lack of apps after upgrade of the system

    My operating system has recently been replaced by OS X Yosemite version 10.10.5. And not only does garage band disappears, but I also lost two other programs (Word & Paint Shop, etc...) that I bought (in a box with their installation CD) simultaneous

  • The y410p of cleaning

    How do you clean fingerprints and oil from the surface brushed aluminum?

  • PS5000E alert problem

    Hi people, I inherited an Equallogic PS5000E recently and he had a bad drive. I replaced the drive and in Group Manager, everything is superb. All drives, except the new spare wheel, are green and I see no warning at all. The problem is, 2 - 3 times

  • Assemble product always fail

    Hi all I tried to change my product. But it always fails and shows the following message: An error occurred saving ' *' to the database. What is the problem with my supplier portal? Thank you. brad_qqq

  • Minimum hardware requirements for the scenario of VPDN (LAKE & LNS)

    Hello I need assistance with selection of the hardware platform for the scenario of vpdn. This deployment will serve up to 20 users Max can you tell me which is the minimum routing platform and version of IOS to use to the LAKE? And for LNS? Thank yo