Errors in Code

OK so here is my
component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="200" height="130" backgroundColor="#000000" color="#ff0000"
fontSize="20">
<mx:Script source="../asa/clock.as" />
</mx:Canvas>
My AS file
package
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.utils.Timer;
public class ShortTimer extends Sprite
public function ShortTimer()
// creates a new five-minute Timer
var minuteTimer:Timer = new Timer(1000, 300);
// designates listeners for the interval and completion
events
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMP LETE,
onTimerComplete);
// starts the timer ticking
minuteTimer.start();
public function onTick(evt:TimerEvent):void
// displays the tick count so far
// The target of this event is the Timer instance itself.
trace("tick " + evt.target.currentCount);
public function onTimerComplete(evt:TimerEvent):void
refresh();
and my application file
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" viewSourceURL="srcview/index.html"
height="100%"
xmlns:c="Com_Board.*">
<mx:Style source="source.css"/>
<mx:Image source="images/title.jpg" width="210"
height="65" top="4" left="15"/>
<mx:Image source="images/title1.jpg" id="image1"
horizontalAlign="right" verticalAlign="top" width="784" height="58"
y="3" right="0"/>
<mx:XML id="tempXML" source="
http://something.net/interface.php?username=admin&amp;password=pass&amp
;customer=63&amp;action=showopen&amp;operation=def
ects&amp;format=xml&amp;critcal=both" />
<c:Red_co x="627" y="69" width="394" height="32"
color="#ff0000" fontSize="25"/>
<mx:XMLListCollection id="defectXMLList"
source="{tempXML.defect}" />
<mx:TileList
dataProvider="{tempXML.defect.asset}"
horizontalCenter="0" bottom="56" top="72" width="100%"
backgroundColor="#000000" color="#ff0000" fontSize="27"
borderColor="#000000" columnWidth="300" rowHeight="50"
themeColor="#808080" fontWeight="bold"
allowMultipleSelection="true"/>
</mx:Application>
All this and I still get the error
1037: Packages cannot be nested

Hello
I am having same trouble using  CS4 and ActionScript 3. Let me illustrate using ShapleExample.as file that is a package.
package {
    import flash.display.DisplayObject;
    import flash.display.Graphics;
    import flash.display.JointStyle;
    import flash.display.LineScaleMode;
    import flash.display.Shape;
    import flash.display.Sprite;
    public class ShapeExample extends Sprite {
        private var size:uint           = 80;
        private var bgColor:uint       = 0xFFCC00;
        private var borderColor:uint  = 0x666666;
        private var borderSize:uint   = 0;
        private var cornerRadius:uint = 9;
        private var gutter:uint       = 5;
        private function refreshLayout():void {
            var ln:uint = numChildren;
            var child:DisplayObject;
            var lastChild:DisplayObject = getChildAt(0);
            lastChild.x = gutter;
            lastChild.y = gutter;
            for (var i:uint = 1; i < ln; i++) {
                child = getChildAt(i);
                child.x = gutter + lastChild.x + lastChild.width;
                child.y = gutter;
                lastChild = child;
        private function doDrawCircle():void {
            var child:Shape = new Shape();
            var halfSize:uint = Math.round(size/2);
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawCircle(halfSize, halfSize, halfSize);
            child.graphics.endFill();
            addChild(child);
        private function doDrawRoundRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
            child.graphics.endFill();
            addChild(child);
        private function doDrawRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRect(0, 0, size, size);
            child.graphics.endFill();
            addChild(child);
******End Code ShapeExample.as*******
Then I create mycode.fla file
and in frame one layer one I type the following code
import class ShapeEample();
          doDrawCircle();
            doDrawRoundRect();
            doDrawRect();
            refreshLayout();
****END MYCODE.FLA***
i SHOULD GET ONE CIRCLE AND TWO SQUARES** INSTEAD i GET ERROR CODE 1037

Similar Messages

  • Error in code generation for deleting table BUT000_TD

    Hi,
    Did anyone encounter this error while working on EEWB ?
    I created the project extension via EEWB and completed the wizard setting with the package (dev. class) value as $temp as I wanted to test it locally.
    One of the errors, that I got is:
    Error in code generation for deleting table BUT000_TD
        Message no. DA464
    Diagnosis
        This error message indicates that internal inconsistencies exist.
    Procedure
        Please consult SAP.

    Hi,
    As I mentioned in my previous post kindly check the consistency of the structure BUT000_TD.
    Regards,
    Sudheer.

  • "Error Result code = -43" AND "Audio file not found"

    In Garageband I was trying to  click Join, but kept getting "Error Result code = -43"
    What does this mean?
    Also, I thought saving the file and restarting Garageband would help, but upon re-opening the program BIG problem: the file (just this one, others are opening fine) has this error message upon opening "Audio file “07 I See the Light.aif” not found!"

    mcgregorsgal wrote:
    so do I have to basically start over?
    for that one recording, it looks like it.
    the error -43 is a system level error, so i HIGHLY doubt this will help, however you can ctrl-click the project file, choose Show Package Contents, open the media folder and preview any audio files in there to see if the missing file is there, but in all likelihood, you will need to re-record it

  • Error : COmpany code does not exist or has not been fully maintained

    Hi ,
    I tried creating a material with industry sector : mechanical , material type : raw material.
    i selected basic data 1 and 2 view or MRP 1 view for views , i gave plant as SUJA and storage location value S001 ( plant and stor loc i have created in the company code 2001)
    but i get this error COmpany code 2001 does not exist or has not been fully maintained..
    I created COMPANY CODE using SPRO - Entreprise structure --definition -  financial accounting --define , copy , check , delete company code..
    kindly suggest me the solution for this error..

    Hi,
    Your company code not activated for material management. Few pre-requisites to create material and one is to activate company code for material management
    Please activate in T.code: OMSY,
    [For example: For Fiscal year variant K4]
    In OMSY steps, u have to enteru2026u2026u2026..
    Company Code (enter your company code name 2001)u2026u2026u2026u2026u2026.
    Company Name..
    Fiscal Year of Current Period 2009
    Current period (posting period) 03( )
    Fiscal year of previous period 2008( will come automatic)
    Month of previous period 02( will come automatic)
    Fiscal year of last period of previous year 2008
    Last month of previous year 12
    Allow Posting to Previous Period (Back posting)
    Disallow back posting after a change of period
    Now create material with T.code; MM01
    Regards,
    Biju K

  • Can you Ignore Error Response Code in HttpUrlConnection?

    I have a problem with a HttpUrlConnection object throwing an IOException when it gets an HTTP Error Response code. Especially when there is an actual response from the server sent back that has more details in it that are actually helpful.
    I would like to just tell the HttpUrlConnection ot ignore HTTP error responses and just pass along the page or data that was returned instead. I need to handle this myself.
    The reason if it matters, is I am sending SOAP Envelopes, and if the Web Service doesn't like it, it will send an HTTP 500 Response Code, but it also sends a response SOAP Envelope that tells me exactly what is wrong.
    Right now to get this response I have to use a Sniffer, or worse since it is HTTPS (ssl) i have to use the jvm's SSL debug mode, and pull the response out of the hex code.
    I couldn't find anything about this, so I am afraid I am SOL, just hoping that there might be an obscure "feature" or "property" that can deal with this, that I can't find.
    ** 10 Duke Dollars to first person to provide a solution that works **

    Just call the getErrorStream() method to read the error response. Eg.
    HttpURLConnection conn = null;
    try {
      conn = (HttpURLConnection)
        new URL("http://www.google.com/givemea404").openConnection();
    } catch (Exception e) {
      InputStream in = conn.getErrorStream();
      int i = in.read();
      while (i != -1) {
        System.out.print((char) i);
        i = in.read();
    }

  • Error- "Tax code B0 country IN does not exist in procedure TAXINN"

    Hi to All,
    I'm working on a Import PO. While doing MIRO for planned delivery cost, I'm getting an error "Tax code B0 country IN does not exist in procedure TAXINN"
    I've assigned the Tax code to company code, but still I'm not able to solve this problem. Could anybody tell me the areas in which I may have made the mistake?
    Thanks & Regards,
    Piyush

    Hi Piyush
    You assign your tax code to company code at IMG--> Logis General --> Tax on Goods Movemnt --> Basic Settings --> Calculation of excise duty -> Condition type excise determination --> Maintain Tax code to country code
    If still problem is not resolved you maintain the all rates to 0 in FTXP of this Tax code.
    Regard
    Vivek
    -- Reward if helpful !!

  • "ink system failure" error with code oxc19e0023 on a HP Photosmart Premium All-in-One Printer - C309

    "ink system failure" error with code oxc19e0023 on have a HP Photosmart Premium All-in-One Printer - C309g  - Have done all the resets and reseated the ink also tried replacing ink with new HP carts..getting frustrated please help
    This question was solved.
    View Solution.

    Have you tried the steps outlined in this article:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03081973&cc=us&dlc=en&lc=en
    If not give the steps a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Error: Tax cod OI country IN does not exist in procedure TAXINN

    Hi all,
    while posting invoice, i am facing an error
    "Tax code OI country IN does not exist in procedure TAXINN"
    I defined the tax code OI and assigned it to my company code XXX. I created Tax procedure TAXINN with three basic condition types (BASB, MWAS, MVBS). I assigned my tax procedure to the country IN.
    I think i missed some thing in the configuration part. Please guide me.
    Thanks!
    Pavan

    Hi,
    1. If tax is deducable in nature means if you are using CIN then assigm Tax code
    SPRO --> logisctic General --> tax on goods movements --> india --> bacis setting --> determine of excise condition --> defaults excise conidtion
    here assign tax code with company code .
    2. If while doing miro you are getting Tax Code" VN" Instead of OI
    then please check condition in FV11 for material/plant/vendor combination, may be this tax code system is fetching from there or some other combination you are maintaining.
    You can use data base tables also for your Tax code if you know tax conditions used there
    T Code : SE16
    Table : A363
    A358 Country/Plant/Ctrl code/Material
    A357 Country/Plant/Ctrl code
    A362 Country/NBM-NCM Code
    A971 Tax Code
    A359 Plant/Matl group
    Hope Help u !
    Regards,
    Pardeep Malik

  • Error "Jurisdiction code could not be determined" in so create bapi

    I am using the bapi "SO_NEW_DOCUMENT_ATT_SEND_API1" for creating the sales order,
    it gives the error "Jurisdiction code could not be determined" Sometimes there are two juridiction code maintained in the system .
    1) During the ship to party address change at sales order , city , country and postal code fields determine the Juridiction codes. Sometimes there are two juridiction code maintained in the system for one city and in such cases BAPI fails to create an order.
    2)When the ship to party is foreign country then we do not need Juridiction code in sales order. In such cases also the BAPI fails to create sales orders and writes an error log , saying juridition code could not be determined.
    Proposed Soltuion.
    We have to modify the BAPI to force the values of ship to address as it is from the text file without exiting the sales order creation.
    Thank You,
    Ganesh

    hi ,
      u need to give the right postal address. If it is then it won't give the warning message.
    Regards,
    Rose.

  • EMac optical drive: Reads but ceased writing.  I get "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR.  Drive is Pioneer DVD-RW DVR-127D.

    eMac optical drive: reads fine but has ceased writing.  One day it's working fine, burning DVDs, then after repeated attempts stops copying and gives the following error message:  "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR".  Drive is Pioneer DVD-RW DVR-127D.  Is this a software issue or is the drive half dead?  Get the same result with either Popcorn or Toast 10.

    Are you using Roxio Toast? That error seems to be discussed a lot in the Roxio forums. Scroll down this thread:
    http://forums.support.roxio.com/topic/1686-the-drive-reported-an-error-sense-key medium-error-etc/
    and you'll find a step-by-step troubleshooting scheme.

  • INSTALLATION ERROR: Exit Code: 6

    When installing PS CS6 on PC with Windows 7 Ultimate Svc Pack1, 18 GB RAM, Intel i7CPU, received INSTALLATION ERROR: Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DF012, DW050 ... WARNING: DF029, DF054 ...
    ------------- Summary ------
    - 0 fatal error(s), 3 error(s), 2 warning(s)
    ----- Payload: {CFA46C39-C539-4BE9-9364-495003C714AD} Adobe SwitchBoard 2.0 2.0.0.0 ------
    WARNING: DF029: ARKServiceControl::StartService: Service not started/stopped SwitchBoard. Current State: 0 Exit Code: 0 Service Specific Exit Code: 0(Seq 1)
    ---- Payload: {9B78FAB0-AC6B-11E0-8EF3-00215AEA26C9} Microsoft Visual C++ 2008 Redistributable Package (x64) 9.0.30729.4148 -----------
    ERROR: Failed to install Microsoft Visual C++ 2008 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\****\Downloads\CS6
    Photoshop_13_LS16\Adobe CS6\payloads\Microsoft VC 2008 Redist (x64)\vcredist_x64.exe", 
    >>>>>>Did that. Ran AV and registry clean software then re-ran vcredist_x64.exe with NO antiviral software running (repeated in safe boot and clean boot) and got through the install, with this message:
    ..........Microsoft Visual C++ 2008 Redistributable Setup...................
    Error 1935.An error ocurred during the installation of assembly
    'Microsoft.VC90.ATL,version="9.0.30729.4148",publicKeyToken="1fc8b3b9a1e18e3b",processorAr chitecture="amd64",type="win32". Please refer to Help and Support for more information. HRESULT: 0x80070422...........
    or download and install the latest Microsoft Visual C++ 2008 Redistributable Package (x64) from Microsoft website - www.microsoft.com
    ----------- Payload: {DE7C6FA1-AF75-48A8-B495-CFAD529BCC3D} Recommended Common Fonts Installation 2.0.0.0 -----------
    WARNING: DF054: Unable to read Adobe file version for file path 'C:\Windows\Fonts\NuevaStd-BoldCond.otf'(Seq 58)
    ERROR: DF012: Unable to find file(Seq 58)
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Microsoft Visual C++ 2008 Redistributable Package (x64): Install failed
    +++++++++++++++++++++++
    PS32bit opens/works just fine.
    PS64bit opens with error message (need to cancel them 6-22 times) Runtime error R6034 but otherwise seems to run normally.
    From Microsoft, downloaded file vcredist_x64.exe and ran it. Got error message that there was no free space on my CD drive...Really?!
    Any other ideas?
    Thanks, Joan

    Please start with running the Adobe Support Advisor - http://www.adobe.com/support/loganalyzer/ to automatically review your installation logs and attempt to locate a solution.
    Alternately you can follow the steps listed at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html to manually review your installation log.

  • Select query gives error in Code inspector and extended program check

    Hi,
    I have a query .
    SELECT pernr
      FROM pa9100
      INTO TABLE t_nca_tab
      WHERE endda EQ c_date AND
      z_nca_required EQ c_yes.
    This query gives me an error in Code inspector like :
    Large table pa0001: No first field of table index in WHERE  condition
    I have one more query that gives error in extended program check
    SELECT SINGLE stell ename
          INTO (g_stell, g_name)
          FROM pa0001
          WHERE pernr EQ wa_nca_tab-pernr AND
                endda EQ c_date.
    The warning says:
    *In "SELECT SINGLE ...", the WHERE condition for the key field "SEQNR" does not
    test for equality. Therefore, the single record in question may not be unique.*
    Its too urgent.
    Please reply.
    Regards,
    Binay.

    The first field is PERNR .. so if UR not giving pernr it will fetch
    all the data from the said table and between the given dates ..
    Check if this is your requirement ...
    write the select as ...
    where r_pernr is a range ...
    SELECT pernr
    FROM pa9100
    INTO TABLE t_nca_tab
    WHERE pernr in r_pernr  <----
                 endda EQ c_date AND
                 z_nca_required EQ c_yes.
    As UR using select single it's expecting to use all the key
    fields in the where condition ...
    U can ignore this warning message

  • Error in code page mapping for Source system whil loading the data from ECC

    HI Gurus,
    I am working in a implementation project, Recently our BI sand box is up, when i am doing my load from 0comp_code_attr it is throwing an error "Error in code page mapping for source system"(This is my first load from ECC).
    In details tab it is showing as the data is sent from the source system but the data is not reaching to the PSA.
    Please let me know if there are any settings needs to be made.
    Many thanks in Advance
    Jagadeesh

    HI V,
    Thanks for your quick response. I did it but it didn't resolve the issue. since the system id which i am having is 3 digits(LEC) but there it is taking only 2 digits, so i clicked on the button called Propose system ids, it has praposed LE, but the issue is stil there.
    Do we need to do any settings in LBWE??
    Thanks and Regards
    Jagadeesh

  • Error in code page mapping for Source System

    Hi All,
    We are Loading data into BI system from MDM System.
    It was loading fine but Yesterday we got an error " Error in code page mapping for Source System"
    Message Class: RSDS_ACCESS 13.
    We alreday tried to Search any IDOCs with error/unprocessed , but there isn't any.
    Any pointers for this error will be Helpful.
    Regards,
    Mayank

    Our SP currently SAPKW70019 , the SAP note mentioned above required to apply SP for 13, which we already beyond that...unfortunately we still face the same problem .. almost every day ..
    any advice.. ?
    Edited by: Edi Erwan  Abu Talib on Jun 22, 2009 8:22 AM

  • Adobe Muse CC will not install, Get Error "Exit Code: 7"

    Need a fix to above problem fast.  Workiing on a website for work.  Using Windows 8 and uninstalled previous version.
    Thanks much!

    See the following help document:
    Exit Code: 6, Exit Code: 7 Installation Errors -
    http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

  • Download error Exit Code: 6 -deleted file msvcr110.dll

    I have Photoshop CS4. I joined the Cloud today. When I went to download Photoshop CV it gave me these errors:
    Exit Code: 6
    Please see specific errors below for troubleshooting. For example,  ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 8 error(s)
    ----------- Payload: Microsoft Visual C++ 2010 Redistributable Package (x64) 10.0.40219.325 {54B0C34F-18F9-11E2-BC1D-00215AEA26C9} -----------
    ERROR: Third party payload installer vcredist_x64.exe failed with exit code: 1603
    ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\gyork\AppData\Local\Temp\{A1DCE3E8-850D-4131-836A-E00EFCFCE3B0}\Photoshop_15_LS 20_win64\Adobe CC 2014\payloads\Microsoft VC 2010 Redist (x64)\vcredist_x64.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x64) from Microsoft website - www.microsoft.com
    ----------- Payload: Microsoft Visual C++ 2010 Redistributable Package (x86) 10.0.40219.325 {55B82130-18F9-11E2-8D43-00215AEA26C9} -----------
    ERROR: Third party payload installer vcredist_x86.exe failed with exit code: 1603
    ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\gyork\AppData\Local\Temp\{A1DCE3E8-850D-4131-836A-E00EFCFCE3B0}\Photoshop_15_LS 20_win64\Adobe CC 2014\payloads\Microsoft VC 2010 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x86) from Microsoft website - www.microsoft.com
    ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x64) 11.0.61030.0 {3E272A93-C06B-4206-AD02-0EBE02535E20} -----------
    ERROR: Third party payload installer vcredist_x64.exe failed with exit code: -2147023293
    ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\gyork\AppData\Local\Temp\{A1DCE3E8-850D-4131-836A-E00EFCFCE3B0}\Photoshop_15_LS 20_win64\Adobe CC 2014\payloads\Microsoft VC 2012 Redist (x64)\vcredist_x64.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x64) from Microsoft website - www.microsoft.com
    ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x86) 11.0.61030.0 {873BE68F-480F-49A6-9649-F98CAB056AFC} -----------
    ERROR: Third party payload installer vcredist_x86.exe failed with exit code: -2147023293
    ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\gyork\AppData\Local\Temp\{A1DCE3E8-850D-4131-836A-E00EFCFCE3B0}\Photoshop_15_LS 20_win64\Adobe CC 2014\payloads\Microsoft VC 2012 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x86) from Microsoft website - www.microsoft.com
    When I tried to do the first thing it said to do, it deleted the msvcr110.dll file.
    Photoshop CV won't open without it.
    So of course, I don't want to do anything else it says to do.
    I have gone online and tried everything I see to get it back and nothing works. I tried downloading it from Microsoft, but it won't run.
    I tried reinstalling CS4 and that didn't work. So I uninstalled CS4 and tried to reinstall it, but now it won't install.
    It goes through the whole process then says to call Adobe.
    When I try to install Illustrator (which I didn't have before, but bought the complete special offer) it has similar errors.
    Any ideas?
    Thanks

    Hi jessmom3,
    You may also refer to the help document:
    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Regards,
    Sheena

Maybe you are looking for

  • TWO Internal Tables Access

    Hi, I have 2 internal tables with different struc: 1 itab1                                          2. itab2 CID,                                                 CID CEID,                                               CEID Month                      

  • No class found error in ESR Interface mapping ?

    Hi all , I am trying to add a java validation in my Interface mapping . When i am compiling it in eclipse it is working fine.But when i am exporting and using it in my IM it is giving error as TEst_210/test/validation/OldFileJava6; details: java.lang

  • VBAP-SERNR is not provided in BILLING REQUEST as it is in the DEFAULT ORDER

    Dear SD Sales and Delivery experts, i would appreciate your support very much!!! We want the system to transfer the maintained field VBAP-SERNR from the document DEFAULT ORDER (Program: SAPMV45A / Table control: TCTRL_U_ERF_AUFTRAG) to the succeeding

  • Tilde and single tick doesn't work??

    windows 7 home x200 7454rh2 how do i type the tilde and single tick???? nvm i figured it out

  • Problem installing archlinux on macbook pro retina

    Currently i don't have ethernet cable but i would like to install archlinux on my macbook machine. I face a problem that i will need to install broadcom-wl or broadcom-wl-dkms,  on either case i will need linux-headers for that kernel which seems mis