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!!!

Similar Messages

  • 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

  • Import flash.geom.Rectangle could not be loaded?

    Hello everyone,
    I currently have a .fla file in folder a/. I have a .as
    called CollisionDetection file under a/com/gskinner/sprites/.
    In the .fla, I am importing the .as like this:
    import com.gskinner.sprites.CollisionDetection;
    In my .as file, I have these four lines of code in the
    beginning:
    import flash.display.BitmapData;
    import flash.geom.ColorTransform;
    import flash.geom.Matrix;
    import flash.geom.Rectangle;
    However, for each of them, it tells me that
    "The class or interface 'flash.geom.BitmapData' could not be
    loaded."
    Any ideas of why this is happening?
    Thanks,
    iloveisrael.

    Hello,
    I figured out what my error was: I was using Flash Player 7
    instead of Flash Player 8.
    Stupid mistake, but it made everything work perfectly.
    Thanks,
    iloveisrael.

  • Adobe Premiere Pro CS3 "The editing mode used by this project could not be loaded."

    Hello-
    I am encountering an issue with my Adobe Premier Pro CS3. I am trying to open up a project that another person has created on a different editing system. When I try to open, it comes up with the error "The editing mode used by this project could not be loaded. The project will be opened in Desktop mode." The next window is a Windows Explorer screen, that wants me to choose a file to open. If I cancel that, it brings up a blank looking project with no timeline or anything?
    A quick comparison of systems:
    Mine:
    HP dc7700s desktop
    Windows XP OS
    Adobe Master Collection CS3
    Hers:
    IBM compatible laptop
    Microsoft Vista
    Adobe Premiere Pro CS3
    Adobe Photoshop CS3
    I have googled the error message, but have not found anything to fix this. I have also verified from Help - About that we have the exact same versions of Adobe Premiere Pro CS3 installed.
    I need to be able to view this project on either computer. Any advice would be greatly appreciated!!!
    Thank you!

    >project will be opened in Desktop mode
    I have never used any non-standard files, but from reading here, desktop mode is used when the video files are not standard... in one way or another, but usually pixel dimensions
    What is the codec and properties of the files in that project?
    Are you sure they are 100% standard?

  • CDD-23564: The file "c:\orant\BIN\cfg61.dll" could not be loaded or does not exist.

    Hi
    When I try and generate a form from Designer 6i i get the following error message :-
    CDD-23564: The file "c:\orant\BIN\cfg61.dll" could not be loaded or does not exist. However the file does exist in the specified location. I've looked thru the on-line documentation and checked the registry but can't see anything obvious. I've got the following configuration on my machine :-
    Oracle 8i (version 8.1.6) - Windows NT 4
    Designer 6i (version 6.5.52.1.0)
    Any advice would be welcome.
    Thanks
    null

    I think you would install the ORACLE FORMS 6i.

  • Definition flash.utils:Trace could not be found

    Hi,
    I've just tried creating a simple test actionscript 3
    project, but it doesn't seem to recognise the path to trace;
    package {
    import flash.utils.trace;
    import flash.display.MovieClip;
    public class Test extends MovieClip
    public function Test()
    trace("hello");
    Any ideas?

    In Beta3 "the trace method to the unnamed package so no
    import is required"
    see
    What's
    changed in Beta3?

  • 1172: Definition flash.filesystem:File could not be found.

    I get the error 1172: Definition flash.filesystem:File could not be found. when i attempt to import File class or any other class from the package flash.filesystem. I already installed Adobe AIR but it still doesn't work.

    you're welcome.
    (been there and done that, too.)

  • XMII WebService shows error as - SOAP Service could not be loaded: null

    Dear Friends,
       I'm doing the xMII <-> XI <-> RFC scenario with the reference of the blog: https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8703. [original link is broken] [original link is broken] [original link is broken] I just create an asyncronous scenario. Sender with SOAP adapter and receiver with RFC adapter. After creating the WSDL file from the scenario, I stored it in the xMII server path D:XISendere10099xMII_integration_1_Outbound_MI.wsdl. Then in the WebService action block of xMII BLT, I gave the URL as this file path, user name and password of XI server and click Next. Then I got the error message as SOAP Service could not be loaded: null.
       Please give the solution for this issue.
    Regards,
    Jagan.

    Dear Selvam,
       Actually I checked those things already. Everything is fine. I executed already HTTP <-> XI <-> xMII scenario and it was working fine. I checked with SendSMS.wsdl file now. That is also working fine. I am attaching the WSDL file, which I am using, for reference. This file is working fine in SOAPSonar and data posted in SAP R/3 table. But it is showing the error in xMII as "SOAP Service could not be loaded: null".
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="xMII_integration_1_Outbound_MI" targetNamespace="http://www.xxx.com/XIBatch3/10099/xMII_Integration_1" xmlns:p1="http://www.xxx.com/XIBatch3/10099/xMII_Integration_1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><xsd:schema targetNamespace="http://www.xxx.com/XIBatch3/10099/xMII_Integration_1" xmlns="http://www.xxx.com/XIBatch3/10099/xMII_Integration_1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="xMII_integration_1_Outbound_MT" type="xMII_Integration_1_Out_DT" /><xsd:complexType name="xMII_Integration_1_Out_DT"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">750324e0438311ddad100019bb528b1e</xsd:appinfo></xsd:annotation><xsd:sequence><xsd:element name="Vendor" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d01b6611dd8de7001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Name" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d11b6611dd8b8e001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Street" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d21b6611ddcc29001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="City" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d31b6611dd8303001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Dist" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d41b6611ddcd00001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Country" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">b24fc7d51b6611dd9fa5001320eb83c5</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType></xsd:schema></wsdl:types><wsdl:message name="xMII_integration_1_Outbound_MT"><wsdl:part name="xMII_integration_1_Outbound_MT" element="p1:xMII_integration_1_Outbound_MT" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /></wsdl:message><wsdl:portType name="xMII_integration_1_Outbound_MI"><wsdl:operation name="xMII_integration_1_Outbound_MI"><wsdl:input message="p1:xMII_integration_1_Outbound_MT" /></wsdl:operation></wsdl:portType><wsdl:binding name="xMII_integration_1_Outbound_MIBinding" type="p1:xMII_integration_1_Outbound_MI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /><wsdl:operation name="xMII_integration_1_Outbound_MI"><soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /><wsdl:input><soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:service name="xMII_integration_1_Outbound_MIService"><wsdl:port name="xMII_integration_1_Outbound_MIPort" binding="p1:xMII_integration_1_Outbound_MIBinding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><soap:address location="http://aprins07:8010/XISOAPAdapter/MessageServlet?channel=:A_Test:xMII_Integration_1_xMII_Sender_CC&version=3.0&Sender.Service=A_Test&Interface=http%3A%2F%2Fwww.xxx.com%2FXIBatch3%2F10099%2FxMII_Integration_1%5ExMII_integration_1_Outbound_MI" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /></wsdl:port></wsdl:service></wsdl:definitions>
    Regards,
    Jagan.

  • Error Could not pre-load servlet: MessageBrokerServlet

    I get the following errors during LCDS startup:
    error Could not pre-load servlet: MessageBrokerServlet
    [1]java.lang.UnsupportedClassVersionError: flexdev/FundciteAssembler (Unsupported major.minor version 50.0)
    [Flex] Error instantiating application scoped instance of type 'flexdev.FundciteAssembler' for destination 'fundcite'.
    java.lang.UnsupportedClassVersionError: flexdev/FundciteAssembler (Unsupported major.minor version 50.0)
    I have a MySQL server running and I am trying to connect to it through java. Any idea what this error means?

    "Unsupported major.minor version" means you are using a JVM version that is not supported.
    List of supported JVMs can be found here:
    http://www.adobe.com/products/livecycle/systemreqs.html#item-02

  • SQORA32 driver could not be loaded. System error 1114: A dynamic link library (DLL) initialization routine failed

    I have an MS Access 2013 application that opens a connection to an Oracle database via an Oracle client.
    On occasion the application returns the following error when the ODBC connection is opened:
    Specified driver could not be loaded due to system error 
    1114: A dynamic link library (DLL) initialization routine failed. (Oracle in OraClient11g_home1, C:\oracle\product\11.2.0\client_1\SQORA32.DLL).
    This is an intermittent problem that is reproducible on several workstations (all running Windows 7 x64 with 32-bit version of Office 2013 and 32-bit Oracle client 11.2.0).
    Many times the ODBC connection is established without a problem
    Other times the connection can be established by closing then re-opening the application once
    Other times closing the re-opening the application several times does not help
    The same application is being run on several workstations and not every user experience the problem at the same time. The problem may be chronic for one user whereas another user experiences no problem whatsoever.
    All of the posts I have seen concerning this issue are for a persistent problem opening a connection and not an intermittent one. I am at a loss of how to diagnose this problem and would appreciate some direction.

    Hi Ross,
    This error message is Microsoft Data Link Error, this error occurs on windows when attempting to start a service or load a system driver but the DLL you loaded or one of its dependencies returned FALSE. It typically point to a system DLL file which is located
    in system32 and can be fixed by using the System File Checker tool. In your case, I suspect that it occurs due to a calling failure connecting to ODBC driver and it pointed to an error link C:\oracle\product\11.2.0\client_1\SQORA32.DLL which is hosted by oracle.
    If they are analogous, a “repair” seems to be helpful, However since we are not expert about oracle program I‘d suggest you check if C:\app\Oracle\BIN\SQORA32.DLL file exists on your machine and contact with Oracle first, I think there you can get more effective
    suggestion by other experts who familiar with design of Oracle database. Your understanding is highly appreciated.
    By the way, I searched for you and seems like you are not alone about this issue.
    https://community.oracle.com/thread/2301119
    https://communities.sas.com/message/118002
    http://forums.networkautomation.com/forum/messageview.cfm?catid=50&threadid=11611
    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • 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

  • 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.

  • 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.

  • My air app gives VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

    Hi,
    I'm devlopping an air application, MacOSX 10.6.8, flex4.5.1 and air 2.6, suddenly the application will not start anymore, giving the following error:
    VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.
              at spark.automation.delegates.components.supportClasses::SparkSkinnableTextBaseAutomationImp l$/init()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates \components\supportClasses\SparkSkinnableTextBaseAutomationImpl.as:73]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2821]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \preloaders\Preloader.as:542]
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    A colleague with the same setup has no problems. Also when i create a new air project in flashbuilder it will not start either, but not throwing the error.
    Anyone with the same problems? Or anyone who knows what might be the cause?
    kind regards,
    Arjen Veneman

    Found the solution.  We had to add swf-version=11 in our flex config.  Odd that we should have to start doing that now all of a sudden (we weren't setting that explicitly before).  Seems like a bug in the SDK.

Maybe you are looking for