Flash Sprite Convert #BitmapData Wrong Type Error

When using a flash sprite to convert an image to #BitmapData I get a "Wrong Type" error. Does this only work with specific image types? Any ideas on what might cause this error? The image I am trying to convert is from a bitmap member.
ie.
bmp_data = flash_sprite.convert( #BitmapData, member( "some bmp" ).image )

Try a little error checking:
im = member("some bmp").image
put im
put flash_sprite
bmp_data = flash_sprite.convert( #BitmapData, im )
put bmp_data

Similar Messages

  • Exception --- Value can not be converted to requested type.Error Code: 0

    Inside my query, I try to use function,like
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    sometimes query works fine and sometimes got following exception, can anyone here help me out..
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at com.cad.report.data.DocumentReturnedDataGenImpl.loadData(DocumentReturnedDataGenImpl.java:130)
         at com.cad.report.data.AbstractDataGen.getReport(AbstractDataGen.java:96)
         at com.cad.report.command.ProcessReportRequestOnMessage.run(ProcessReportRequestOnMessage.java:74)
         at com.cad.registration.command.AbstractCommand.execute(AbstractCommand.java:106)
         at com.cad.flow.core.Run.run(Unknown Source)
         at com.cad.flow.core.WorkflowComponent.run(Unknown Source)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:238)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:135)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl.execute(WorkflowManager_uh667k_EOImpl.java:132)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_1001_WLStub.execute(Unknown Source)
         at com.cad.util.WorkflowProxy.runWorkflow(WorkflowProxy.java:128)
         at com.cad.kbd.messenger.listener.mdb.ReportRequestMDB.onMessage(ReportRequestMDB.java:84)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:988)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:780)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:562)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:791)
         at oracle.toplink.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:518)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:965)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:878)
         at com.cad.persistence.toplink.TopLinkPersistenceBrokerImpl.executeQuery(TopLinkPersistenceBrokerImpl.java:420)
         at com.cad.report.data.DocumentSys.getSummitedDocumentNumber(DocumentSys.java:332)
         at com.cad.report.data.DocumentSys.loadData(DocumentSys.java:110)
         ... 24 more
    Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BaseData.getTimestamp(Unknown Source)
         at weblogic.jdbc.base.BaseResultSet.getTimestamp(Unknown Source)
         at weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet.getTimestamp(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:1038)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:942)
         ... 45 more

    Here is my code
    ExpressionBuilder builder = new ExpressionBuilder();
    ReportQuery query = new ReportQuery(RegistrationDetailImpl.class, builder);
    query.addArgument("startTime");
    query.addArgument("endTime");
    query.addArgument("lro");
    Expression lroCol = builder.get("lro");
    Expression regDateCol = builder.get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_NUMBER_COL).get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_DATE_COL);
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    Expression timeExp = regDateCol.between(builder.getParameter("startTime"), builder
    .getParameter("endTime"));
    Expression lroExp = lroCol.equal(builder.getParameter("lro"));
    query.setSelectionCriteria(timeExp.and(lroExp));
    query.addCount();
    query.addAttribute("regDate", formattedRegDateCol);
    query.addGrouping(formattedRegDateCol);
    query.addOrdering(formattedRegDateCol.ascending());
    descriptor.getDescriptorQueryManager().addQuery("testquery", query);

  • FCP project - wrong type error

    I have a major problem..
    my disk crashed and fortunately I was able to recover all data.. BUT
    when I try to open any FCP projects it would not open just reply with *File error: Wrong type*
    when I try to open it from FCP it would not even hi-light the files for possible selection..
    please save my a..

    Search is your friend:
    http://discussions.apple.com/thread.jspa?threadID=1129775&tstart=15

  • VerifyError: Error #1033 Cpool entry 1 is wrong type - Java Server

    Hello, there!
    I need some help if someone else has already face this problem.
    I have a Java server that process the bytes of a SWF File stored in the server and ouptut it to the user through a Servlet. The file was decompressed and re-compressed using the java.util.zip package.
    Everything works fine on Windows Server 2008 server. But now we need migrate the server to Linux. The problem is that when I test the website now, the Flash Player throws this error: VerifyError: Error #1033 Cpool entry 1 is wrong type.
    Nothing has changed on client side, not even on the SWF.
    The documentation is too generic/vague about this error, only saying that this means that the SWF is corrupted. But everything runs normal on Windows Server configuration, when changed to Linux, this messages appears... what could possible be the cause?
    My Windows Server is:
         . Windows Server 2008 (6.0 - x86)
         . Apache 2.2.11
         . Tomcat 6.0.16.0
         . Java JDK 1.6.0_12-b04
    My CentOS Server is
         . CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
         . Apache 2.2.3
         . Tomcat 6.0.16.0
         . Java JDK 1.6.0_12-b04
    Please, if someone could give me a lead, I would appreciate very much!
    Thank you all in advance,
    CaioToOn!

    Thank you, Taylor!
    You were right! The problem isn't about Flash.
    The problem was about encoding, with the clue of Neil Coffey I could figure out the problem. It can be checked here for anyone who interest.
    Thank you again,
    CaioToOn!

  • FCP File Error: Wrong Type

    A EXT HD w/ 1TB worth of FCP Projects and it's media died on me. (no, none of it was backed up, please save me the lecture!)
    Anyway, we sent it to one of the Drive Recovery places and they were able to retrieve about 95% of the files.
    When I got back the new drive w/ the rescued files It seemed like it was all there until I tried to open one of the .fcp files and encountered this:
    FCP File Error: Wrong Type
    I checked the file's info to see if it was associated w/ FCP. It was...
    I checked the Capture Scratch files and found that all of the Quicktimes did not have their ".mov" extensions. I added ".mov" after one of them and it opened successfully in the Quicktime Player. I tried moving this same file to FCP and encountered this:
    File Error: Unknown File
    As an experiment I took the same quicktime (which BTW is an HDV 1080i60 Quicktime) and dropped it into Compressor. I converted it to the same setting (HDV 1080i60) After the conversion I was able to pop it into FCP normally.
    So what do you guys think? Is there anyway I can get these .fcp files to open? Am I totally screwed?
    Thanks,
    -B

    Yes, a .fcp extension means it's a FCP project file. I'm not dragging/importing .fcp's into FCP, just trying to open them normally w/ no luck. It's the QT's I've been dragging/importing into FCP.
    I've tried a few Resource Editors to change the way the .fcp project files are handled/read w/ no luck
    Well, at least my QT's are intact...
    -B

  • Receiving an export file error: wrong type

    I have created a movie several times in FCP and then exported the movie to QT without any problems. Now all of a sudden, I can't get the movie to export correctly. After the 2 hour export, I'll check on FCP to find that the program has shut down without an "Unexpected Shut Down" message. I check for the exported movie which I find in the saved folder. I click to open and verify the completed job, but find that I get an error instead : "Error: Wrong Type".
    The last successful movie I created was September 14th, prior to the QT 7.5.5 upgrade. I thought it was the upgrade, as I found out that FCP does not do well with the new QT version, so I reverted to QT 7.5, but I am still experiencing the same problem with FCP quitting and the movie not being able to read.
    What is going on? Can anyone help?

    Francois:
    This is a crazy solution, but this happened to me last week and this solution enabled me to open my files again -- they were all greyed out and I thought I'd lost them. I took my drive in to an Apple Store Genius Bar without resolution and spend 2 hours online with ProApps (FCE/FCP) tech support, also with no resolution.
    This fix is based on the fact that FCP when it is started, it automatically opens the project that was open when it was closed. First, in FCP save the current project (this can be any project -- I created a placeholder project -- to a dummy name -- I used "save me". Close FCP and delete the dummy name ("save me") project. Now rename the project that is greyed out and provides the File Error: Wrong Type message that you would like to open to the dummy name, so that it's now called "save me". Now open FCP again. Now save the recuperated file using the original name.
    Maarten
    Here's what you do.

  • BAdI error : type of EXIT_REF1 cannot be converted to the type of EXIT_REF

    Hi all,
    The below was the posted earlier for BAdI. Ihave followed all the steps. And i have written the below code. Syntactically it is not showing any errors, but when i am activating i am getting error
    like " The type of EXIT_REF1 cannot be converted to the type of EXIT_REF". where i am doing the mistake..??
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.   "" The type of EXIT_REF1 cannot be converted to the type of EXIT_REF"
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    Thanks in advance
    krupali.

    Hi,
    Both are of different types
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    Assiging one type another type is not allowed.
    Rhea.

  • Wrong type of file error message PSE 7

    Error message in PSE & when I try to open images I saved.  Wrong type of file, cannot be opened.  Tried to remove the read-only in properties but still cannot open .jpg images.  Can anyone help?  Photo attached.

    I do not see any attachment.
    -garry

  • When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, even jpeg files. This is a NEW frustration.

    When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, evne jpeg files. This is a NEW frustration.

    Nikon raw files would open up in Adobe Camera Raw and so should jpegs.
    If you select one in Bridge and give the command "Ctrl r" (Windows), what happens?
    Also what is the version of ACR in the title bar?
    Gene
    Note: unmark your question as "answered". the green balloon next to the subject shows it as "solved".

  • Run time error 4706 column has wrong type to be key

    Hi,
    I am getting error after installing Bex BI 7 version , I have installed .net fromework 2.0 and BI7 version when i m trying to open the bex analyser i am getting the following visual basic
    error .
    Run time error 4706
    column has wrong type to be key

    please help any help in this regard will be appreceated

  • Error message using Flash Video Converter

    When trying to encode a simple mpeg file using Flash 8 Video
    Converter I get an error message - as simple as that, no
    explanation, just a "Encoding is not possible because an error
    occurred".
    I've also tried importing the mpg onto Flash's stage and
    going through the steps of the "Progressive download from a web
    server" - again, nothing happened, just an error message.
    Any ideas, help, advice?
    Thanks, Raf.

    ram66 wrote:
    > When trying to encode a simple mpeg file using Flash 8
    Video Converter I get an
    > error message - as simple as that, no explanation, just
    a "Encoding is not
    > possible because an error occurred".
    >
    > I've also tried importing the mpg onto Flash's stage and
    going through the
    > steps of the "Progressive download from a web server" -
    again, nothing
    > happened, just an error message.
    >
    > Any ideas, help, advice?
    >
    meaning the file is not flash compatible.
    Try to resample or another format.
    Not all mpegs are compatible, they come with very large
    variety
    of compressions for video and audio while flash has very
    particular
    range, specified in help files.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Trying to upload elements 13.  getting  error message "wrong type of file"

    After downloading the new Elements 13, I try to run it and it tries to open in Elements 11.  I get an error message that it can't open because it is the wrong type of file. I using window 8.1 (64-bit).  Has anyone had a similar problem?  How can I resolve the issue?

    Jeff,
    When I purchased my Dell laptop a year ago it came loaded with Adobe Photoshop Premiere Elements 11 with photo editor and video editor. Since I really have only begun to learn to use the programs, and since I kept getting a message to upgrade now!, I decided to upgrade and learn to use edition 13 from the get-go. What I ordered was Photoshop Elements 13..order nbr AD014688152.
    What is happening is that it downloads okay but when it tries to open in Elements 11 I get the error message that it can't load, wrong type of file.
    My computer op system is Microsoft Windows 8.1 (64-bit). I know I downloaded the 64-bit and not 32-bit. 
    Perhaps I ordered the wrong upgrade?
    I appreciate your help . Let me know if you need additional info.
    Fred Hoerauf
    Sent from my iPad

  • FCP Files Will Not Open (File Error: Wrong Type)

    I have put together a few pieces using FCP and then unfortunately my LaCie HD got wiped. I was however able to recover all of my files (thank God) but when I go to open any previous FCP files, I get the error message "File Error: Wrong Type" once FCP is opened. I am wondering if there is any way to open these files somehow so I don't lose my work. Thank you.

    If they'll open in QuickTime, you could re export them, and thus rebuild them that way.
    Otherwise... recapture them. I'm not sure they couldn't be fixed, but more than likely the recovery process messed up the resource forks of these files. Might search in the QuickTime forum here for a fix for that??
    Jerry

  • File Error: wrong type   can't open media file

    After capturing my film using Final Cut Pro,"Capture Now" I can't open the film file. It seems the film was caputured onto my Mac notebook in a file format Final Cut Pro doesn't recognize or can't open. When I try to open the file the following error message pops up: "File Error: Wrong Type".
    It seems the format of this media file is AV or avi (the name of the media file is "Untitled - AV". It's not a .fcp file.
    I tried to open it with Quicktime or other programs, but without success, no program can open it.
    I appreciate your help!

    I followed the instructions in the article AppleCare Technical Support emailed: http://docs.info.apple.com/article.html?artnum=302337 . It helped to delete the User Preferences and to remove receipts and to reinstall the entire Final Cut Pro Studio software. I think what really helped was to update the latest software versions (Final Cut Pro 5.1.4).
    Thank you very much!
    John Well-Off-Man

  • File Error: Wrong type

    Hi,
    I have been archiving some old finished videos (as self-contained QTs) on a server that is PC based. I have a feeling that this may be a problem. I'm right, right?
    On a related note, I now have some QTs that will not open, with error messages like
    'File Error: Wrong type.' (FCP)
    and
    'Error opening movie
    The movie could not be opened.' (QT)
    The fun part is that I cannot remember exactly which had been moved over there (I had a couple LaCies die on me and in a rush transfered a bunch of stuff back and forth trying to stay ahead of the crash), but now they're back on Mac based externals. But won't open.
    Any advice is tremendously appreciated.
    Thanks,
    Ariel.
    Dual 1.8 GHz PowerPC G5   Mac OS X (10.3.9)   1 LaCie Big Disk Extreme, 1 Maxtor 500Gb, FCPHD 4.5, QT Pro 7.1.3

    Okay, thanks for the help. I'm pretty swamped right now, but by next Monday I will have gone through all of them. I will post back then with any info that may be of interest.
    So, for the future, I should either stay away from non Mac OS formatted drives for my media, or zip them before sending them over. (by control clicking and archiving)
    (sigh) Thanks, guys. I'm still just trying to figure out the cheapest, quickest way to archive my old stuff. I guess tape is the best way to go.
    - Ariel.

Maybe you are looking for