Class or Interface could not be loaded error on standard components

I am trying to learn how to use Event Listeners. I created a
TextInput field on my screen. In action script I have:
var my_ti:TextInput;
var enterHandler:Object = new Object();
enterHandler.enter = function(e:Object):Void{
trace("entered field");
my_ti.addEventListener("enter", enterHandler);
When I test the movie, I receive the error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: The
class or interface 'TextInput' could not be loaded.
var my_ti:TextInput;
Any tips on fixing this would be greatly appreciated. All
references that I have found to this error message have to do with
paths. Given that this is a standard component, I don't know why it
would be failing or what path to add, if that is indeed the
problem.
TIA

You have the .fla and .as saved in the same file? Or the same folder?
Also you will notice that you have
class ship extends MovieClip
But it looks like for your symbol you have given it a defintion of Ship. (Caps matter!)
Your code should be capitalized, as should the name of the Ship.as file. You will notice that the Flash classes all start with a cap and that instances start with lowercase letters. You don't have to do this, but it makes it easier to know what is what.
As a recommendation I would recommend the book by Keith Peters, Making things move. And also unless you have an overwhelming need to learn AS2, I would recommend skipping it and moving right to AS3.

Similar Messages

  • The class or interface could not be loaded...?

    I'm doing a simple link code. I've tried many diferrent ways to do this but this error keeps comming up saying The class or interface could not be loaded...
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("my site"));
    This is the most recent method I've tried in doing this. I've tried changing the publishing settings of the document to and from Action Script 3.0- using an import command. But thats too complicated. I know this is simple... but can anyone please help?

    Thanks, but whenever I change the publish settings back to As3 the flash tween gets caught in a loop and it doesn't end, it just re-runs the swf over and over again. I'm not sure how to fix this problem now.
    I even tried to add a stop(); at the beginning of the new script.
    stop();
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("http://www.knirv.com"));
    I'm still getting an error message saying "1046: Type was not found or was not a compile-time constant: Void."...However, I'm sure your advice to upload to my server will solve this. Much thanks for the expertise

  • Class or interface could not be loaded?

    I am very new to coding in general, ini fact this is my fisrt crack at it, and right now I'm just going off a tutorial, but for whatever reason i'm having an issue that the class/interface not being loaded.
    My code right now is:
    class ship extends MovieClip
         var velocity;
         function onLoad()
              velocity = 10;
         function onEnterFrame()
              _x = _x + velocity;
    Essentailly when I test play this i should see my object going across the screen, but instead it does nothing and i get the error:
    "Symbol=Ship, layer=1, frame=1, Line 1      The class or interface 'Ship' could not be loaded."
    I do have the .fla and .as saved in the same file, but does it matter where that file is located, or have I come across some basic mistake or..?
    I'm using ActionScript2.0 for this.
    (Very secondary, but does anybody have any tutorial reccomendations?)

    You have the .fla and .as saved in the same file? Or the same folder?
    Also you will notice that you have
    class ship extends MovieClip
    But it looks like for your symbol you have given it a defintion of Ship. (Caps matter!)
    Your code should be capitalized, as should the name of the Ship.as file. You will notice that the Flash classes all start with a cap and that instances start with lowercase letters. You don't have to do this, but it makes it easier to know what is what.
    As a recommendation I would recommend the book by Keith Peters, Making things move. And also unless you have an overwhelming need to learn AS2, I would recommend skipping it and moving right to AS3.

  • Scripting.aex could not be loaded error

    I recently had a hard drive failure but managed to save everything onto a new drive.  All Creative Cloud program work except After Effects which gives me this error upon startup: "After Effects Error: plug-in "scripting.aex" could not be loaded (126)."  Do I need to uninstall and re-install AE cc?

    Based on the extremely limited amount of information in your post (you haven't even told us what operating system your computer has), I would say yes. That seems like a reasonable step.

  • ASIO Driver could not be loaded Error CS3

    Hi,
    Today, i have installed my Production premium CS3 on my MacBook Pro (Macbookpro 2,2) This Macbook is already 3 years old. Previously my production premium was installed on my iMac (iMac5,1). On my iMac everything worked perfect.
    But on my Macbook Pro i can't open premiere pro because of this error:
    'The previously selected ASIO driver could not be loaded, and may be in use by another application. The default ASIO driver is now in use"
    After this error, premiere gets another fatal error and shuts down.
    I already had find a solution but i can't perform it because premiere keeps shutting down before i can do something in the preferences.
    Because i know it is something with sound i tested Soundbooth. But soundbooth also keeps shutting down...
    Please help me, i need this software for school.
    If you need any other information, please say it and i will give it to you.
    SPECS: MACBOOK PRO: Mac OS Snow Leopard, 3GB RAM, 120GB HDD, Model: MACBOOKPRO2,2, Intel Core 2 duo 2.16Ghz. ATY RadeonX1600 128mb. 15"= 1440 x 900, 32bit pixel depth.
    AUDIO (built In): Device ID: 0x83847680
                             Audio ID:   30
    IMAC:  Device ID: 0x83847680
                  Audio ID:   23
    So, the only difference with the audio is the AUDIO iD...
    i Realy don't know what to do..
    I thank you already
    Nicholas.

    I am having similar problems on the Mac computers in our lab. I have found that the error does not appear in administrator accounts only on the standard user accounts. That makes me think that maybe Premiere might be looking at some file that my users accounts don't have acces to. It is a fresh install of CS3 onto OSX 10.6.2 What files is Premiere looking at when its trying to load the ASIO driver? Any help would be appreciated. At this point making the standard user administrators is not an option.
    Scott

  • Alarm & Event (AlertView​.dll) control report Control could not be loaded error on LV Runtime

    Hello, when I try to execute my application that use Alarm & Event control, the window show in red color the text: Control could not be loaded.
    I have tried to manually copy the AlertView.dll on C:\Program Files\National Instruments\Shared and then register the control with:
    regsvr32 C:\Program Files\National Instruments\Shared\AlertView.dll
    but still the control is never on the screen.
    When the window is invoked and the ActiveX is loading the system show several error message (unable to initialize ComponetWorks control ...) and then exit the the red color error message Control could not be loaded.
    If I install the DSC everything works fine ...
    Any idea?
    Regards.
    Marco Savegnago

    Hi msave,
    I'm not sure I've understood correctly your problem, but reading your post it seems that you want to execute your application that loads an ActiveX control without installing the DSC module.
    I did some researches for you and what I found is that copying the alertview.dll (in your case) into the path: <drive:>\Program Files\National Instruments\Shared  and register it into regsrv32, may not be sufficient.
    National Instruments, suggests to install the DSC (and from your post it seems you can do it) in order to have correctly installed all the parts you need effectively (in fact, in your case when you install the DSC all seems to work properly).
    I hope I've been of some help
    carlo> 

  • Moved Servers - log4net could not be loaded error

    My code programmatically creates crystal reports.
    Everything was working fine until we moved servers (unfortunately don’t have access to the old server anymore)
    Get the dreaded error about log4net 1.2.10 that could not be loaded.  (Other assemblies in my solution rely on 1.2.11, so can’t just take it out)
    I installed (repeatedly uninstalling the other and restarting the server)  the CRforVS_clickonce_13_0_9 32bit and 64 bit versions.
    My application pool is set to allow 32bit applications.
    I checked an do have log4net 1.2.10 in the GAC
    Really out of things to try here and need fix this urgently for a demo to important client tomorrow (it’s midnight..make it today!)
    For what it matter:
    Development Machine (all fine here)
    Windows 7, 64 bit
    Visual Studio 2012
    Crystal Reports 2012
    Production Machine
    Windows Server 2008, 64 bit
    Full error (but guess you know it well)
    Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    btw, I moved 2 servers.  different projects but same technologies / tools.
    Installed CRforVS_redist_install_64bit_13_0_8 on the one....works fine when creating reports and return as pdf.
    On the other server....nope.  (the one I spoke about in original post)
    For whatever it matter, here's the code I use (but doubt relevant since it worked just fine before)
    var report = new ReportClass { FileName = reportPath };
    report.Load();
    report.SetDatabaseLogon(user, password, server, database);
    var parameterValue = new ParameterDiscreteValue { Value = claim.Id };
    var parameter = new ParameterValues { parameterValue };
    report.DataDefinition.ParameterFields["@claimId"].ApplyCurrentValues(parameter);
    report.ExportToDisk(ExportFormatType.PortableDocFormat, path);

  • The common language runtime could not be loaded.

    The common language runtime could not be loaded error in receiving while opening excel file in windows 7.

    Hi,
    Is this problem just occures when opening excel file? How about other office program?
    Did you make any change to your Office, such as install language package, etc. that may cause this problem?
    Since your problem is specific with Office program, it would be better to provide your question at Office Forum.
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=officeitpro
    Roger Lu
    TechNet Community Support

  • MapPoint Control 11 in Labview Container = Control could not be loaded

    I am working with Labview 6.1 to create an application using a "Microsoft MapPoint Control 11.0" ActiveX component. When I first create a container for it, I can insert the component and it will load and operate correctly. However, after closing the vi and reopening it, the container says "Control could not be loaded", and I need to re-insert the object to get it to work each time. I will need to compile and run this at some point, so I need to fix this problem or ditch Labview now. I have tried reinstalling Labview runtime and the MapPoint Application, but this does not fix the problem. Working with MapPoint as an automation object (without a container) seems to work ok, but I need interactive control through the container. Any suggestions?

    Ankita--
    Yup. Tried that one, as a search of the NI site comes up with reinstall and register as the only solutions for "control could not be loaded" errors ... but it didn't make a difference for me...
    Odd to think that it can run fine right after the control is loaded, but after save/close/reopen, it's not working... hmmm.
    --Brent

  • 'crdb_oracle.dll' could not be loaded

    Post Author: jimg72
    CA Forum: Data Connectivity and SQL
                                                      Getting
    this error when trying to load a CR.  I'm in CR XI R2 and Visual Studio
    2.  I'm beginning to wonder if CR is worth the trouble. Failed to load database information.Details: The database DLL
    'crdb_oracle.dll' could not be loaded.Error in File
    C:\DOCUME1\BIGRED\ASPNET\LOCALS1\Temp\temp_ae31abe9-76e9-4e0d-b283-e647ae9c8ff0
    {D7E74355-4DBF-46A1-8518-C08B2822CD57}.rpt:Failed to load database
    information. Here's
    my login code that is causing the error.  The parameters I'm passing
    are correct, the report works fine in preview in VS and CR.  
        public static void LogonToDatabase(ReportDocument MyReport, string
    UserId, string Password, string ServerName, string DatabaseName)         {             ConnectionInfo MyConnectionInfo = new CrystalDecisions.Shared.ConnectionInfo();             TableLogOnInfo MyLogonInfo = new CrystalDecisions.Shared.TableLogOnInfo();             if (ServerName != "")             {                 MyConnectionInfo.ServerName = ServerName;                 MyConnectionInfo.DatabaseName = DatabaseName;             }             MyConnectionInfo.UserID = UserId;             MyConnectionInfo.Password = Password;             MyLogonInfo.ConnectionInfo = MyConnectionInfo;             foreach (CrystalDecisions.CrystalReports.Engine.Table MyTable in MyReport.Database.Tables)             {                 MyTable.ApplyLogOnInfo(MyLogonInfo);                 if (ServerName != "")                 {                     MyTable.Location = MyTable.Location.Substring(MyTable.Location.LastIndexOf(".") + 1);                 }             }         } 
                                                 This worked fine with CR 10 and ASP.net 1.1.

    Post Author: dotnetcoder08
    CA Forum: Data Connectivity and SQL
    Did you try and make sure that the aspnet account has access to the oracle home directory?

  • "PDE bundle could not be loaded," HP 7510 All-in-One​, Mac OS X 10.9.5

    The selection "PDE" in the print dialogue box is listed with a strikethrough.
    Choosing PDE displays the message "This bundle could not be loaded because the required components could not be found.  Contact the bundle's creator ... for the newest version. HP PDE 4.6.0."
    Haven't been able to find HP PDE download.
    Any help appreciated.

    You need to download the full Mavericks installer from the AppStore.  You need an Apple ID and you must claim the OS in your account.  If you are already running 10.9.5 it will tell you so.  Opt to download anyway.  Inside the installer is the InstallESD.dmg. 
    However, this is an installer, not a "clone-able" image.  If you are looking to make a clone, then boot from the Recovery partition and opt to reinstall the OS fresh.  Or better yet, get an external drive and install Mavericks to the drive.  Then add all your software and customizations that are not user or device specific.  Once done, you can then capture a DMG can can be used to image other systems.
    Reid
    Apple Consultants Network
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store
    Author "Mavericks Server – Control and Collaboration" :: Exclusively available in Apple's iBooks Store

  • AS 2 Error: The class or interface 'Event' could not be loaded.

    Hey, I'm new to the forums and I have problems with Flash that i just cant fix. I have this error that keeps telling me how "The class or interface 'Event' could not be loaded. The error is on the 5th line of the code:
    1  stop();

    3  addEventListener(Event.ENTER_FRAME, preLoad);

    5  function preLoad(e:Event):void{
    6      var bytestoLoad:Number = loaderInfo.bytesTotal;
    7      var numberLoaded:Number = loaderInfo.bytesLoaded;
    8      if(bytestoLoad == numberLoaded){
    9          removeEventListener(Event.ENTER_FRAME, preLoad);
    gotoAndStop(2);
    } else {
    _root.preLoader.preLoaderFill.scaleX = numberLoaded/bytestoLoad;
    _root.preLoader.bytesPercent.text = Math.floor(numberLoaded/bytestoLoad*100) + "%";
    I know that the code is for AS3 but I cant switch to AS3 atm and I need the same code, but for AS2. So, can anyone convert this for me? By the way, this is supposed to be a preloader and I am putting this on the 1st frame. I have so extensions (.as), just the .fla file.
    Also, I am using the newest Flash, Adobe Flash CS6.

    Just search Google for an AS2 preloader tutorial instead of trying to convert AS3 to AS2.

  • The class or interface 'MouseEvent' could not be loaded

    I am creating a swf file that would get populated with images
    and text taken entirely from an XML file from the local folder. All
    i need to do now is manouver between the images using a click of a
    button. Say there are some images lined up one below the other and
    there would be a button on screen.. on click of which the focus has
    to shift from one image to the other. To achieve this functionality
    i have created a Movie Clip that would act as the BG for the Images
    to show that the image is in Focus. I check the current location of
    the Movie Clip on cick of the button and then set the next location
    of the Bg movie clip accordingly.
    The Functionality of moving/changing coordinates of the movie
    clip on click of a button works fine when done separately in a new
    file, but when combined with the code where the XML gets parsed and
    the Imges are set on the UI, it gives me an error -- "The class or
    interface 'MouseEvent' could not be loaded"
    I'm adding my code below
    RPNext_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void {
    trace("here");
    var XCo = SwatchBGRght_MC.x;
    var YCo = SwatchBGRght_MC.y;
    trace("X coordinate::"+XCo);
    trace("Y coordinate::"+YCo);
    if(YCo==145){
    //SwatchBGRght_MC.y = 282.2;
    if(YCo==282.2){
    //SwatchBGRght_MC.y = 419.4;
    if(YCo==419.4){
    //SwatchBGRght_MC.y = 145;
    __________________________________

    Well, I guess I'll have to see the code, that is NOT
    functioning, to track this error down.

  • The class or interface 'flash.utils.ByteArray' could not be loaded.

    Hi all, I am trying to use some of the new functionality that
    is available in AS3 and I keep getting an unfathomable error
    message. The code that I am using is at the bottom of this post.
    No matter what I do I keep getting the following error when I
    compile this code
    The class or interface 'flash.utils.ByteArray' could not be
    loaded.
    And the source line is
    var pixels:ByteArray = srcBmp.getPixels( new
    Rectangle(0,0,imageWidth,imageHeight) );
    Can anybody see what I am doing wrong here? This is driving
    me crazy!!

    I AM THE ULTIMATE CHUMP!!!!!
    I finally figured it out, you can tell I am new to Flash!
    Anyway, I assumed that by selecting ActionScript 3.0 in my
    Actions frame then this ias the version that would be used when the
    movie was exported. However I have found out that I should also
    have been setting the ActionScript version to 3.0 in the Publish
    settings page to. I feel like such an idiot!!!

  • The class or interface 'mx.remoting.Service' could not be loaded.

    Flash 8 was reinstalled on a new machine upgrade. Application
    that uses flash remoting is unable to be updated after this new
    install error when trying to publish application is :
    The class or interface 'mx.remoting.Service' could not be
    loaded.
    is this because I do not have the "Flash Remoting for Flash 8
    ActionScript 2.0" extension installed?
    and if so do I have to re purchase this or can it be
    reinstalled from the old hard drive of the replaced machine? would
    it be a *.mpx file?
    The application works but I can't publish any new
    modifications without getting this error. and this just started
    since my machine was upgraded.. so I hope this is the problem...
    thanks in advance....
    chuck

    The flash remoting components are on adobes website for
    download
    here

Maybe you are looking for