Code error always..help needed

Dear friends...im using my nokia e72 for the last 18 months...3 days before i reinstalled phone's FW 081.003.From that day onwards my phone is asking me lock code... And always showing lock code error...
I already used the lock code option for restarting phone.I changed the default 12345 to 543215 and the feature is working smoothly until 3 days before..
Now what happened is that phone is not allowing any of the codes.. I try 543215, 12345, 0000 everything I knew.But in vein...
So guys IM totally screwed.I cannot use my phone anymore..Anybody plz help me. what I can do..???
Help me plzz...

i went to nokia care and solved the problem..password again changed to 12345..but its not all over there...
When i reached home i reset my phone with *#7870# and then when my phone was on i clicked the phone lock facility... Just for checking...but then onwards the problem starts..
Fon asked me password and i typed 12345...immediatly phone got locked and asked for PUK... I called customer care from another cell and got the code and entered it..nd evrythng got solved and the phon locking featur was turned off...
Now what is happening is that, phone is asking me password at whatever time it wants..fon is asking me password always..when i enter 12345 , it shows pass code error, but then that window got closed and the phone is working as always...after sometime again phone is asking me password which i dont know..
what to do?? What can i do?? Y my fon s behaving lyk dis??
No memory card encryption...

Similar Messages

  • Error messages help need asap!!!!

    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly ended

    Hi,
    Welcome to the forum!
    Don't say things like "urgent" or "asap" (as in your title, "error messages help need asap!!!!"). It's rude.
    971848 wrote:
    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly endedIt looks like you're missing a semicolon at the end of line 13; that's why the statement beginning at line 8 can't be understood.
    Also, you store a number in my_val, but never use that number, and you have a variable called tasktotal that's never defined. Should my_val and tasktotal be the same variable?
    Perhaps this is what you want:
    CREATE OR REPLACE FUNCTION
           no_of_task_types (x NUMBER)
    RETURN NUMBER IS
        tasktotal   NUMBER;
    BEGIN
        SELECT  COUNT(distinct t.task_type_no)
        INTO    tasktotal
        FROM    employee e, assignment a, task t
        WHERE   e.employee_id = x
        AND     e.employee_no = a.employee_no
        AND     t.task_id        = a.task_id;          -- ; at end is important
        RETURN tasktotal;
    END;
    /This question doesn't have anything to do with SQL*Plus, so maybe the SQL*Plus forum isn't the best place for it. This is strictly a PL/SQL problem; in the future, post questions like this in the PL/SQL. The FAQ page for that forum, {message:id=9360002} , can really help you.

  • Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...

    Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
    Hey,
    I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
    This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
    1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
    2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
    3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
    I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
    4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
    IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks Soo Much,
    Robert__________

    U said in another post u've tried all my solutions = =?
    On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
    Are u sure u tried all my solutions?
    have u tried this?:
    /discussions/board/message?board.id=messaging&message.id=7926#M7926
    Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
    This is from NOkia, sometimes does work depending on ur situation:
    Memory low
    Q: What can I do if my device memory is low?
    A: You can delete the following items regularly to avoid
    memory getting low:
    • Messages from Inbox, Drafts, and Sent folders in Messaging
    • Retrieved e-mail messages from the device memory
    • Saved browser pages
    • Images and photos in Gallery
    To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
    use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
    to maybe let me see what u got on ur phone (by saving/exporting report).
    Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
    Message Edited by goldnebula on 20-May-2008 02:05 PM

  • HT1976 Hello my is working very slow and iCloud is asking me a code that has send to me I write down the and he said code error?help me fix it thank you

    Hello iPhone is working very slow and the code error and also iTunes very slow!!pls fix it .thank you

    To get rid of "pop-up ads and other crap on my computer when I am on the internet", click on Safari in the Menu bar, and select Preferences. Next select Extensions. Delete all of them. Restart Safari.
    The first step in addressing the black screen is an SMC reset.
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    Excerpt from
    http://support.apple.com/kb/ht39

  • XML Parsing error: not well-formed (invalid token) (error code 4) --- Urgent Help Needed!

    Hi all, what im doing now is im trying to create a database connection my my MS SQL 2005 database. I created a data source and went to my Adobe Lifecycle Designer 7.1, i created a new data connection, selected OLEDB and created the connection string using the build function.
    Ok, now the problem is, after creating the new data connection and i click on the preview tab, i will receive the error stated above.
    'XML Parsing error: not well-formed (invalid token) (error code 4), line 444, column 1 of file'
    Does anyone know why am i receiving this error and how do i go about solving this?
    I need this database connection to pre-fill my form when the user downloads the form =(

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • TS1292 ITUNES GIFT CODE ERROR/CANNOT REDEEM NEED HELP! PLS

    My friend gave me a $30 itunes gift card from australia and i tried redeeming it but it said you have to redeem it on an Australian account. can someone tell me how to fix this please?

    You won't be able to use it in Canada. If you give it back to your friend and tell them that you can't use it, or give/sell it to somebody else in Australia - I doubt that Apple will exchange it, but you could try a site such as eBay to sell it.

  • ABAP Error. Help needed ASAP

    Hi Gurus,
    I am trying to write an ABAP statement for the below requirement.
    Function has two import parameters. 1. key and 2. date.
                                Export parameter: export_rec like TAB.
    Req:  I need to select a record from a table where key = input parameter and input date lies between the from and to date fields in the table. (since table is time dependent).
    EXPORT_REC like TAB,
    I_T_TAB like TAB OCCURS 0 WITH HEADER LINE.
    SELECT  SINGLE * FROM I_T_TAB INTO EXPORT_REC WHERE KEY = IMPORT_ PARAMETER AND IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
    But, I am getting errors. It says the I_T_TAB is not defined in the Abap dictionary as table, view or projection.
    I defined it as an internal table. But, even then I am getting this error.
    Can anyone please help me out with this issue,
    Thanks,
    Regards,
    aarthi
    [email protected]

    Hi
    From you code i understand that I_T_TAB is the internal table that fetch data from the SAP table TAB.
    So, the reason for the error statement is because of the Select statement.
    The select statement is used to fetch data from SAP table TAB.
    So your select statement should look like this...
    SELECT SINGLE * FROM TAB INTO I_T_TAB
    WHERE key = import_ PARAMETER
    AND import_param_date BETWEEN from_date AND to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
    ENDIF.
    If you are trying to fetch data from the internal table I_T_TAB &
    append the export parameter EXPORT_REC then you should use the READ statement.
    READ TABLE i_t_tab WITH KEY key = import_ parameter
    and import_param_date between from_date and to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
      APPEND export_rec.
    ENDIF.
    Hope this helps!
    best regards,
    Thangesh

  • Undefined Error Preloader Help Needed

    My AS 1.0 preloader code was set to work just fine using
    Flash 6 in AS 1.0 and now I'm using the same code with a few slight
    updates I've added for AS 2.0 in Flash 8 and still having problems
    with an "undefined" error. I'm obviously missing something with
    variables.., yes?
    Thanks to anyone who can shed some light on this problem!

    Simon,
    Thanks for your help, but it looks like my code is working
    fine as I had it after some additional testing. Please note that
    while I appreciated your intention to help... I need to warn others
    that the link you've used in there has a sample display with
    inappropriate material.
    TO OTHERS: Please replace the following line: loadContent("
    http://www.designbyclouds.com/pics/banksy_paris.jpg");
    with your own link.

  • Error #2099 - Help Needed

    Hello All,
    This is my first post here at Adobe.com and I hope that I am posting in the right place.
    I have been attending college and have been working out of a book "Adobe Flash CS5: The Professional Portfolio" by Against the Clock amd I seem to be running into trouble. Im on Project 8, which has a main "website" page and a "UILoader" that calls swf files from a directory within the project.
    ALSO I am using CS5.5 Web Premium Programs.
    Well this is the error:
    Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
        at flash.display::LoaderInfo/get loader()
        at fl.display::ProLoader/get realLoader()
        at fl.display::ProLoaderInfo()
        at fl.display::ProLoader()
        at fl.containers::UILoader/initLoader()
        at fl.containers::UILoader/load()
        at fl.containers::UILoader/set source()
        at seabreeze_fla::MainTimeline/__setProp_homeContent_Scene1_PageContents_0()
        at seabreeze_fla::MainTimeline/frame1()
    and this is the main page UILoader Pointing to the Directory
    import flash.events.MouseEvent;
    stop();
    home_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    passes_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    plan_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    attractions_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    group_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    about_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    guests_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    join_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    contact_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    new_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    specials_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    calendar_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    group2_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    passes2_btn.addEventListener(MouseEvent.MOUSE_UP, browse);
    function browse(event:MouseEvent):void {
        switch (event.target.name) {
            case "home_btn" : gotoAndStop("home");
            break;
            case "passes_btn" : gotoAndStop("passes");
            PageHead.text = "Buy Passes Online";
            break;
            case "plan_btn" : gotoAndStop("plan");
            PageHead.text = "Plan Your Visit";
            break;
            case "attractions_btn" : gotoAndStop("attractions");
            PageHead.text = "Attractions";
            break;
            case "group_btn" : gotoAndStop("group");
            PageHead.text = "Group Sales";
            break;
            case "about_btn" : gotoAndStop("about");
            PageHead.text = "About the Park";
            break;
            case "guests_btn" : gotoAndStop("guests");
            PageHead.text = "Our Guests Say...";
            break;
            case "join_btn" : gotoAndStop("join");
            PageHead.text = "Join Club Seabreeze";
            break;
            case "contact_btn" : gotoAndStop("contact");
            PageHead.text = "Contact Us";
            break;
            case "new_btn" : gotoAndStop("new");
            PageHead.text = "What's New";
            break;
            case "specials_btn" : gotoAndStop("specials");
            PageHead.text = "Special Offers";
            break;
            case "calendar_btn" : gotoAndStop("calendar");
            PageHead.text = "Park Calendar";
            break;
            case "group2_btn" : gotoAndStop("group");
            PageHead.text = "Group Sales";
            break;
            case "passes2_btn" : gotoAndStop("passes");
            PageHead.text = "Buy Passes Online";
            break;
    The Main Code^ was working and still is, but the UILoader seems to not be gathering the nessesary files.
    --->>>>
    This is where the main "seabreeze" file is located and the Children Folder that I am Calling files from.
    I hope that I am not going over board with this, and I have recieved a good grade for this even with this error, but I would like to actully "understand" what is going on here.
    Thanks in advance,
    Aaron W.

    Ned Murphy wrote:
    I don't normally use components so I haven't much to offer in the way of helping when they seem to go bad.  What you might try instead of using the UILoader is to use the Loader class and have your content added via using code.
    // frame 1 code
    var ldr:Loader = new Loader();   // used "ldr", but could have named it whatever
    ldr.x = ?;                             // use the x location of the current UILoader for the ?
    ldr.y = ?;                             // use the y location of the current UILoader for the ?
    addChild(ldr);
    ldr.load(new URLRequest("Children/home.swf"));
    next section...
    // frame 5 code
    ldr.load(new URLRequest("Children/passes.swf"));
    etc...
    Wow, what a BIG help Mr. Murphy! I was thrilled to at least see the content on the Home page of the website. The only problem that I am having now is that the new Loader is not defined by a Width or a Height in AS3, so the flash file gathered is not resized down to the content area. I am guessing that I will just need to resize the *.swf files in the Children folder, BUT is there a way to define the .w and .h of the Loader? I have tried ldr.w and ldr.h but was not successful.
    Although this is not the solution for the UILoader, the Loader AS3 is a great alternative to display content from a local directory. Thanks for the very Helpful Awnser and the code works like a charm, just need legenth and width parameters.

  • Ipod wont restore says uknown error 1418 [[HELP NEEDED]]

    my ipod use to work then it stopped working one day
    then i got it to work again somehow.
    now it wont work again
    i need help please. i have tried everything and done everything to try to fix my problem.
    I'm in need of a genious

    Yesterday I was getting the blinking green/amber lights with my shuffle (512Mb).
    After I couldn't get it to reset (with 5 sec. on/off) I plugged it into the computer. Saw that iTunes 6.x wouldn't see it and tried to run the updater. No luck.
    Figured it was as good a time as any to update to iTunes 7. Still no luck. It sees the iPod but says it needs to be restored. When I try, I get the error 1418.
    So, I figured I'd attempt to see if I can find out what's going on. I boot up a Linux live CD and take a look at the drive partition tables. (Figuring I may just reformat the thing and either fix it, or at least end up with a 512Mb flash drive).
    gParted sees the device (interestingly as 1019.75Mb - wondering if they all were the same, but just partitioned differently).
    When I try to repartition, it fails when attempting to assign a drive label.
    I then plugged an old 128Mb flash drive into another usb port and attempted to do a brute force copy:
    dd if=/dev/sda of=/dev/sdb
    where /dev/sda was the 128Mb drive and /dev/sdb was the shuffle.
    It failed with an Input/Output error at 0 bytes.
    I found some others who seem to have had the same problem (drive just going bad out of nowhere) when I googled for "repartition ipod shuffle" (no quotes). Seems the flash drive can just go bad just sitting there. I'll keep trying, but I don't have my hopes up.
    The new shuffle looks nice, but I can't say this leaves me very impressed. Mine was only about 15 months old (of course past warranty) and pretty gently used.
    Shuffle 512   Windows XP Pro  

  • Jacob.jar Help/Webutil Error-Urgent Help Needed

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Thanks for quick response.
    But my question is do we need to config jacob lib even we dn't need it.I am asking this because with this release of WEBUTIL,jacob is a seperate lic. product and its not a part of WEBUTIL pack.
    Thanks

  • SIGABRT error - PLEASE HELP - NEEDED URGENTLY

    Hello guys pls hep me out, i am new to ios sdk
    i am getting a sigabrt error
    This is how my app goes:
    $ A story board app
    $ 1 view controller embedded in a navigation controller
    $ 1 TableViewController And 1 more UIViewController
    $ When a user clicks button in the first viewcontroller he is pushed to the table view controller
    $ 3 Class files (h and m)
    $ 1 class file is an object
    $2nd class file is table view controller
    $ 3rd is UIVIewController
    now the problem is that when i click the button in the first viewcontoller i get a sigbrt error telling me that the cell text labeling is wrong and that sigabrt error with a green highlight stays on the code..
    I HAVE HIGHLIGHTED THE CODES THAT SHOWS SIGABRT ERROR
    My codes:
    URL.h
    #import <Foundation/Foundation.h>
    @interface url : NSObject
    @property (nonatomic, strong) NSString *urlstring;
    @property (nonatomic, strong) NSString *ns;
    @end
    url.m:
    #import "url.h"
    @implementation url
    @synthesize urlstring, ns;
    @end
    load.h;
    #import <UIKit/UIKit.h>
    #import "url.h"
    @interface load : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webview;
    @property (strong, nonatomic) url *currenturl;
    @property (strong, nonatomic) NSString *path;
    @property (strong, nonatomic) NSString *finalpath;
    @property (strong, nonatomic) NSString *value;
    @end
    load.m:
    #import "load.h"
    @interface load ()
    @end
    @implementation load
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        NSURL *ul = [NSURL URLWithString:[_currenturl urlstring]];
        [self.webview loadRequest:[NSURLRequest requestWithURL:ul]];
        [super viewDidLoad];
        // Do any additional setup after loading the view.
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    @end
    wwp.h ( wizards of waverly place i am trying to create an app that shows all the episodes)
    #import <UIKit/UIKit.h>
    #import "url.h"
    #import "load.h"
    @interface wwp : UITableViewController <UITableViewDelegate, UITableViewDataSource>
    @property (nonatomic, strong) NSDictionary *seasons;
    @property (nonatomic, strong) NSArray *keyseasons;
    @property (strong, nonatomic) NSString *path;
    @property (strong, nonatomic) NSString *finalpath;
    @property (strong, nonatomic) NSString *value;
    @end
    wwp.m
    #import "wwp.h"
    #import "url.h"
    @interface wwp ()
    @end
    @implementation wwp
    @synthesize seasons, keyseasons;
    NSMutableArray *urls;
    -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        if ([segue.identifier isEqualToString:@"showurl"]) {
            load *dvc = [segue destinationViewController];
            NSIndexPath *path = [self.tableView indexPathForSelectedRow];
            url * c = [urls objectAtIndex:path.row];
            [dvc setCurrenturl:c];
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        urls = [[NSMutableArray alloc] init];
        url *link = [[url alloc] init];
        [link setUrlstring:@"E1 Crazy Ten Minute Sale"];
        [link setNs:@"E1 Crazy Ten Minute Sale"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E2 First Kiss"];
        [link setNs:@"E2 First Kiss"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [link setNs:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E4 New Employee"];
        [link setNs:@"E4 New Employee"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E5 Disenchanted Evening"];
        [link setNs:@"E5 Disenchanted Evening"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E6 You Can't Always Get What You Carpet"];
        [link setNs:@"E6 You Can't Always Get What You Carpet"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E7 Alex's Choice"];
        [link setNs:@"E7 Alex's Choice"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E8 Curb Your Dragon"];
        [link setNs:@"E8 Curb Your Dragon"];
        [urls addObject:link];
        NSString *myfile = [[NSBundle mainBundle] pathForResource:@"SeasonWowp" ofType:@"plist"];
        seasons = [[NSDictionary alloc] initWithContentsOfFile:myfile];
        keyseasons = [seasons allKeys];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [seasons count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (nil == cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        url *current = [urls objectAtIndex:indexPath.row];
        [cell.textLabel setText:[current ns]];
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Navigation logic may go here. Create and push another view controller.
         <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end

    Sorry my mistake,
    i didnt intend to highlight it all... happened by mistake... before publishing the post i had the actuall thing highlighted and now its not any ways this the code that shows the error: ( the one which is Bolded,Italiced ,Underlined)
    wwp:
    #import "wwp.h"
    #import "url.h"
    @interface wwp ()
    @end
    @implementation wwp
    @synthesize seasons, keyseasons;
    NSMutableArray *urls;
    -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        if ([segue.identifier isEqualToString:@"showurl"]) {
            load *dvc = [segue destinationViewController];
            NSIndexPath *path = [self.tableView indexPathForSelectedRow];
            url * c = [urls objectAtIndex:path.row];
            [dvc setCurrenturl:c];
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        urls = [[NSMutableArray alloc] init];
        url *link = [[url alloc] init];
        [link setUrlstring:@"E1 Crazy Ten Minute Sale"];
        [link setNs:@"E1 Crazy Ten Minute Sale"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E2 First Kiss"];
        [link setNs:@"E2 First Kiss"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [link setNs:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E4 New Employee"];
        [link setNs:@"E4 New Employee"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E5 Disenchanted Evening"];
        [link setNs:@"E5 Disenchanted Evening"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E6 You Can't Always Get What You Carpet"];
        [link setNs:@"E6 You Can't Always Get What You Carpet"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E7 Alex's Choice"];
        [link setNs:@"E7 Alex's Choice"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E8 Curb Your Dragon"];
        [link setNs:@"E8 Curb Your Dragon"];
        [urls addObject:link];
        NSString *myfile = [[NSBundle mainBundle] pathForResource:@"SeasonWowp" ofType:@"plist"];
        seasons = [[NSDictionary alloc] initWithContentsOfFile:myfile];
        keyseasons = [seasons allKeys];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [seasons count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (nil == cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        url *current = [urls objectAtIndex:indexPath.row];
        [cell.textLabel setText:[current ns]];
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Navigation logic may go here. Create and push another view controller.
         <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end

  • DiskSpace Report Alert Error - Urgently Help Needed

    Hell All
    I have been take the scripts from https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65
    Which is working fine , but my end of scripts out Auto Disclaimer is added and the output has little bit collapsed
    Disclaimer HAS BEEN added to the waring and critical Table which is mentioned on this script which is underlined now. and how avoid this 
    Urgent help is needed
    #  Check disk space and send an HTML report as the body of an email.        #
    #  Reports only disks on computers that have low disk space.                #
    #  Author: Mike Carmody                                                     #
    #  Some ideas extracted from Thiyagu's Exchange DiskspaceHTMLReport module. #
    #  Date: 8/10/2011                                                          #
    #  I have not added any error checking into this script yet.                #
    # Continue even if there are errors
    $ErrorActionPreference = "Continue";
    # Items to change to make it work for you.
    # EMAIL PROPERTIES
    #  - the $users that this report will be sent to.
    #  - near the end of the script the smtpserver, From and Subject.
    # REPORT PROPERTIES
    #  - you can edit the report path and report name of the html file that is the report. 
    # Set your warning and critical thresholds
    $percentWarning = 15;
    $percentCritcal = 10;
    # EMAIL PROPERTIES
    # Set the recipients of the report.
    $users = "[email protected]"
      #$users = "[email protected]" # I use this for testing by uing my email address.
    #$users = "[email protected]", "[email protected]", "[email protected]";  # can be sent to individuals.
    # REPORT PROPERTIES
    # Path to the report
    $reportPath = "D:\Jobs\DiskSpaceQuery\Reports\";
    # Report name
    $reportName = "DiskSpaceRpt_$(get-date -format ddMMyyyy).html";
    # Path and Report name together
    $diskReport = $reportPath + $reportName
    #Set colors for table cell backgrounds
    $redColor = "#FF0000"
    $orangeColor = "#FBB917"
    $whiteColor = "#FFFFFF"
    # Count if any computers have low disk space.  Do not send report if less than 1.
    $i = 0;
    # Get computer list to check disk space
    $computers = Get-Content "servers_c.txt";
    $datetime = Get-Date -Format "MM-dd-yyyy_HHmmss";
    # Remove the report if it has already been run today so it does not append to the existing report
    If (Test-Path $diskReport)
            Remove-Item $diskReport
    # Cleanup old files..
    $Daysback = "-7"
    $CurrentDate = Get-Date;
    $DateToDelete = $CurrentDate.AddDays($Daysback);
    Get-ChildItem $reportPath | Where-Object { $_.LastWriteTime -lt $DatetoDelete } | Remove-Item;
    # Create and write HTML Header of report
    $titleDate = get-date -uformat "%m-%d-%Y - %A"
    $header = "
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <title>DiskSpace Report</title>
    <STYLE TYPE='text/css'>
    <!--
    td {
    font-family: Tahoma;
    font-size: 11px;
    border-
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    border-
    padding-
    padding-right: 0px;
    padding-bottom: 0px;
    padding-
    body {
    margin-
    margin-
    margin-right: 0px;
    margin-bottom: 10px;
    table {
    border: thin solid #000000;
    -->
    </style>
    </head>
    <body>
    <table width='100%'>
    <tr bgcolor='#CCCCCC'>
    <td colspan='7' height='25' align='center'>
    <font face='tahoma' color='#003399' size='4'><strong>AEM Environment DiskSpace Report for $titledate</strong></font>
    </td>
    </tr>
    </table>
     Add-Content $diskReport $header
    # Create and write Table header for report
     $tableHeader = "
     <table width='100%'><tbody>
    <tr bgcolor=#CCCCCC>
        <td width='10%' align='center'>Server</td>
    <td width='5%' align='center'>Drive</td>
    <td width='15%' align='center'>Drive Label</td>
    <td width='10%' align='center'>Total Capacity(GB)</td>
    <td width='10%' align='center'>Used Capacity(GB)</td>
    <td width='10%' align='center'>Free Space(GB)</td>
    <td width='5%' align='center'>Freespace %</td>
    </tr>
    Add-Content $diskReport $tableHeader
    # Start processing disk space reports against a list of servers
      foreach($computer in $computers)
    $disks = Get-WmiObject -ComputerName $computer -Class Win32_LogicalDisk -Filter "DriveType = 3"
    $computer = $computer.toupper()
    foreach($disk in $disks)
    $deviceID = $disk.DeviceID;
            $volName = $disk.VolumeName;
    [float]$size = $disk.Size;
    [float]$freespace = $disk.FreeSpace; 
    $percentFree = [Math]::Round(($freespace / $size) * 100, 2);
    $sizeGB = [Math]::Round($size / 1073741824, 2);
    $freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
            $usedSpaceGB = $sizeGB - $freeSpaceGB;
            $color = $whiteColor;
    # Set background color to Orange if just a warning
    if($percentFree -lt $percentWarning)      
      $color = $orangeColor
    # Set background color to Orange if space is Critical
          if($percentFree -lt $percentCritcal)
            $color = $redColor
     # Create table data rows 
        $dataRow = "
    <tr>
            <td width='10%'>$computer</td>
    <td width='5%' align='center'>$deviceID</td>
    <td width='15%' >$volName</td>
    <td width='10%' align='center'>$sizeGB</td>
    <td width='10%' align='center'>$usedSpaceGB</td>
    <td width='10%' align='center'>$freeSpaceGB</td>
    <td width='5%' bgcolor=`'$color`' align='center'>$percentFree</td>
    </tr>
    Add-Content $diskReport $dataRow;
    Write-Host -ForegroundColor DarkYellow "$computer $deviceID percentage free space = $percentFree";
        $i++
    # Create table at end of report showing legend of colors for the critical and warning
     $tableDescription = "
     </table><br><table width='20%'>
    <tr bgcolor='White'>
        <td width='10%' align='center' bgcolor='#FBB917'>Warning less than 15% free space</td>
    <td width='10%' align='center' bgcolor='#FF0000'>Critical less than 10% free space</td>
    </tr>
      Add-Content $diskReport $tableDescription
    Add-Content $diskReport "</body></html>"
    # Send Notification if alert $i is greater then 0
    if ($i -gt 0)
        foreach ($user in $users)
            Write-Host "Sending Email notification to $user"
    $smtpServer = "MySMTPServer"
    $smtp = New-Object Net.Mail.SmtpClient($smtpServer)
    $msg = New-Object Net.Mail.MailMessage
    $msg.To.Add($user)
            $msg.From = "[email protected]"
    $msg.Subject = "Environment DiskSpace Report for $titledate"
            $msg.IsBodyHTML = $true
            $msg.Body = get-content $diskReport
    $smtp.Send($msg)
            $body = ""
    https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65

    Hi,
    I want to double confirm which version are you used, please also refer to scripting center for the similar scripts:
    Disk Space Monitoring - HTML EMAIL Report
    http://gallery.technet.microsoft.com/scriptcenter/6e935887-6b30-4654-b977-6f5d289f3a63
    Monitor Free Disk Space Information on a Computer
    http://gallery.technet.microsoft.com/scriptcenter/04c29c84-5ecc-4bf6-8dd4-2940db63d9f3
    List Available Disk Space
    http://gallery.technet.microsoft.com/scriptcenter/7fa38863-ad6f-4f46-ac91-9b7d4a30f52b
    Disk Space monitoring
    http://gallery.technet.microsoft.com/scriptcenter/fd4f5235-1a80-41ed-87e2-189278fd376c
    If you encounter any difficulties when customizing the scripts, you may submit a new question in
    The Official Scripting Guys Forum! which is a best resource for scripting related issues.
    Best Regards,
    Allen Wang

  • MAC OS-X Lion and Error 51 - Help Needed ASAP Please

    Greetings,
    I have been using the Cisco VPN Client (4.9.01) for Mac under Snow Leopard (10.6.x) without any issues.
    Since upgrading to Lion earlier today I am now receiving an Error 51 - unable to communicate with the subsystem.
    I found a thread that suggested restarting the system while holding down Opt/3/2 keys to force a 32-Bit restart and the Client will indeed run. However, this is a bandaid patch.
    Has Cisco addressed this issue? Is there a better workaround at this time?
    Thank you,
    Lyman

    Hello Robert,
    In Windows 7 you would need to use the Cisco IPsec client which operates the same way as it does in XP with regards to the pcf.  So I am not sure why you are having trouble with Win7, if you are still having trouble with Win7 using the Cisco IPsec client please start a new thread for that specific issue as it is separate and distinct from Mac OS X and using the Mac OS X built in client.
    Did you follow this guide:
    http://anders.com/guides/native-cisco-vpn-on-mac-os-x/
    Thanks tomas.truchly.
    I have not heard of an issue with the Mac OS X Built-in client when properly configured and when the head-end has the security levels necessary.
    Also, since this thread has been Answered, to help ensure you get the help you need it might be best to open a new thread.
    -Craig

  • Error #1009: Help needed

    Hello everyone,
    I'm looking for some help with an error I'm getting:
    Error #1009: Cannot access a property or method of a null object reference
    Now, I know approximately what it means, I just can't find where exactly the problem is or how to fix it.
    I must warn tho, my code is a bit chaotic, had a rough start and now I'm just trying to finish before the deadline, and with my time left I'm gonna clean up the code.
    I think it's best if I send the entire flash project in a zip so if you are willing to help just let me know how to reach you
    Thanks in advance.
    Davey

    I fixed the errors, not getting any anymore, think the problem was adding an event listener to a button on stage in the subclass constructor. Seeing as I first call the function and then pass the button from main class to sub class, the button wasn't set yet ( I think ). However, the errors are gone, but my event listeners don't seem to be doing anything. I'll paste all my code
    Main.as, the classes used for this are:addClasses(), removeEvents(), addEvents(), addButtonEvents(), menuKeuzeNext(it just calls addClasses when input control is finished)
    [AS]
    package
        import flash.display.MovieClip;
        import flash.display.Shape;
        import flash.display.DisplayObject;
        import flash.geom.ColorTransform;
        import flash.events.MouseEvent;
        import flash.events.Event;
        import flash.display.*;
          import flash.net.*;
        public class Main extends MovieClip
           //XML wordt ingeladen en geprocessed in aparte klasse
           //private var xmlLoad = new XMLLoad;
            //Variabelen om XML in te laden
                private static var url:String = "drawings.xml";
                private var contentXML:XML;
                private var contentXMLURL:URLRequest;
                private var contentXMLLoader:URLLoader;
            //Arrays om data van XML in op te slaan
                private var titles:Array = new Array;
                private var authors:Array = new Array;
                private var locations:Array = new Array;
                private var currentChoice:uint = 0;
                public var naam:String = new String;
                public var bedragString:String = new String;
                public var bedrag:uint = new uint;
            //swf loader variabelen
                private var drawRequest:URLRequest;
                private var drawLoader:Loader = new Loader();
            //Alle objecten die in de movieclip inputMenu zitten beschikbaar maken
                private var naamInput:TextField;
                private var bedragInput:TextField;
                private var naamLeegmc:MovieClip
                private var naamLeeg:TextField;
                private var bedragLeegmc:MovieClip;
                private var bedragLeeg:TextField;
            //Klassen voor draw en erase laden in frame 2
                public var eraserClass:Eraser;
                public var spraycanClass:Spraycan;
            //Welke tool is momenteel actief?
                public static var activeEvents:Array;
            public function Main():void
                stop();
                /*Event listeners worden toegevoegd in de Action layer, per frame.
                Als je ze niet inlaadt bij de bijbehorende frame krijg je errors
                   omdat de buttons waar je de event listener aan hangt, zogezegt nog niet bestaat)*/
                //addEventListeners();
                XMLLoad();
            private function addClasses():void
                eraserClass = new Eraser();
                eraserClass.setDrawBoard(drawBoard);
                eraserClass.setButton(eraser);
                eraserClass.setDrawSize(drawSize);
                trace("if");
                spraycanClass = new Spraycan();
                spraycanClass.setDrawBoard(drawBoard);
                spraycanClass.setButton(spraycan);
                spraycanClass.setDrawSize(drawSize);
                spraycanClass.setColorsMC(colors);
                spraycanClass.setSizePanel(sizePanel);
                addButtonEvents();
            //removeEventListeners voor van actieve tool te wisselen
            public static function removeEvents():void
                if(activeEvents != null)
                    for(var i = 0; i < activeEvents.length; i++)
                        if(activeEvents[i].movieclip.hasEventListener(activeEvents[i].type))
                        activeEvents[i].movieclip.removeEventListener(activeEvents[i].type, activeEvents[i].listener);
                    activeEvents = new Array();
                    trace("niet leeg");
                } else {
                    trace("leeg");
            //addEventListeners voor actieve tool te starten
            public static function addEvents(movieclip:MovieClip,type:String, listener:Function):void
                activeEvents = new Array();
                movieclip.addEventListener(type,listener);
                activeEvents.push({movieclip:movieclip, type:type, listener:listener});
            public function addButtonEvents():void
                eraser.addEventListener(MouseEvent.MOUSE_DOWN, eraserClass.eraserTool);
                spraycan.addEventListener(MouseEvent.MOUSE_UP, spraycanClass.spraycanTool);
                colors.addEventListener(MouseEvent.MOUSE_UP, spraycanClass.chooseColor);
                sizePanel.addEventListener(MouseEvent.MOUSE_UP, spraycanClass.changeDrawSize);
            private function menuKeuzeBack(event:MouseEvent):void
                inputMenu.visible = false;
            public function callMenu(event:MouseEvent):void
                inputMenu.visible = true;
                MovieClip(inputMenu).keuzeStart.addEventListener(MouseEvent.MOUSE_UP, menuKeuzeNext);
                MovieClip(inputMenu).keuzeAnnuleer.addEventListener(MouseEvent.MOUSE_UP, menuKeuzeBack);
                hideAlerts();
            private function hideAlerts():void
                MovieClip(inputMenu).naamLeegmc.visible = false;
                MovieClip(inputMenu).naamLeeg.visible = false;
                MovieClip(inputMenu).bedragLeegmc.visible = false;
                MovieClip(inputMenu).bedragLeeg.visible = false;
            private function menuKeuzeNext(event:MouseEvent):void
                hideAlerts();
                naam = MovieClip(inputMenu).naamInput1.text;
                bedragString = MovieClip(inputMenu).bedragInput1.text;
                bedrag = int(bedragString);
                //alle invoer alerts terug op onzichtbaar zetten voor als men bv naam verbeterd heeft maar bedrag nog steeds incorrect is, anders blijft alert van naam ook staan.
                //invoercontrole
                if(naam == "")
                    showAlert("leeg", "naam")
                } else if(naam.length > 30)
                    showAlert("te lang", "naam");
                if(bedrag == 0)
                    showAlert("Bedrag is leeg", "bedrag");
                } else if(bedrag < 2.5)
                    showAlert("Bedrag moet minstens 2,5 euro zijn", "bedrag");
                if(naam.length < 30 && bedrag > 2.5 && naam !="")
                    gotoAndStop(2);
                    inputMenu.visible = false;
                    newImageMC.visible = false;
                    addClasses();
            private function showAlert(error, input):void
                if (input=="naam")
                    MovieClip(inputMenu).naamLeeg.text = "Naam is " + error;
                    MovieClip(inputMenu).naamLeegmc.visible = true;
                    MovieClip(inputMenu).naamLeeg.visible = true;
                if (input=="bedrag")
                    MovieClip(inputMenu).bedragLeeg.text = error;
                    MovieClip(inputMenu).bedragLeegmc.visible = true;
                    MovieClip(inputMenu).bedragLeeg.visible = true;
            private function prevDrawing(event:MouseEvent):void
                //Als je bij de eerste foto bent en je drukt op vorige afbeelding kom je op de laatste, anders ga je eentje terug
                if(currentChoice == 0)
                    currentChoice = titles.length-1;
                } else {
                    currentChoice -= 1;
                processXML();
            private function nxtDrawing(event:MouseEvent):void
                //Als je bij de laatste foto bent en je drukt op volgende afbeelding kom je op de eerste, anders ga je eentje vooruit
                if(currentChoice == titles.length-1)
                    currentChoice = 0;
                } else {
                    currentChoice += 1;
                processXML();
            private function newUserF(event:MouseEvent):void
                newImageMC.visible=true;
                MovieClip(inputMenu).naamInput1.text = "";
                MovieClip(inputMenu).bedragInput1.text = "";
                MovieClip(newImageMC).newImageB.addEventListener(MouseEvent.MOUSE_UP, newImage);
                MovieClip(newImageMC).currentImageB.addEventListener(MouseEvent.MOUSE_UP,currentImage);
            private function newImage(event:MouseEvent):void
                gotoAndStop(1);
                //addEventListeners();
                processXML();
            private function currentImage(event:MouseEvent):void
                MovieClip(newImageMC).newImageB.removeEventListener(MouseEvent.MOUSE_UP, newImage);
                MovieClip(newImageMC).currentImageB.removeEventListener(MouseEvent.MOUSE_UP,currentImage) ;
                newImageMC.visible = false;
                inputMenu.visible = true;
            public function XMLLoad():void
                //XML inladen en naar functie xmlLoaded gaan wanneer deze ingeladen is
                contentXMLURL = new URLRequest(url);
                contentXMLLoader = new URLLoader(contentXMLURL);
                contentXMLLoader.addEventListener(Event.COMPLETE, xmlLoaded);
            private function xmlLoaded(event:Event):void {
                //XML in variabele steken
                contentXML = new XML(event.target.data);
                contentXML.ignoreWhite = true;
                for (var i = 0; i < contentXML.DRAWING.length(); i++)
                    titles[i] = contentXML.DRAWING[i].TITLE;
                    authors[i] = contentXML.DRAWING[i].AUTHOR;
                    locations[i] = contentXML.DRAWING[i].LOCATION;
                processXML();
            private function processXML():void
                titleText.text = titles[currentChoice];
                authorText.text = authors[currentChoice];
                if (drawLoader.stage)
                    choiceBoard.removeChild(drawLoader);
                if (currentChoice == 0)
                } else {
                    drawRequest = new URLRequest(locations[currentChoice]);
                    drawLoader.load(drawRequest);
                    drawLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
            private function loadComplete(event:Event):void
                choiceBoard.addChild(drawLoader);
                drawLoader.x= -421/2;
                drawLoader.y= -297/2;
                drawLoader.content.height = 297;
                drawLoader.content.width = 421;
    [/AS]
    Spraycan.as, class for drawing
    [AS]
    package
        import flash.display.MovieClip;
        import flash.display.Shape;
        import flash.display.DisplayObject;
        import flash.display.BitmapData;
        import flash.events.MouseEvent;
        public class Spraycan extends MovieClip
            private var sprayCan:Shape;
            private var spraycan:MovieClip;
            //Ik gebruik de bitmapdata om de RGB waarde te krijgen
            private var colorsBmd:BitmapData;
            //Vars voor kleur te kiezen.
            private var pixelValue:uint;
            private var activeColor:uint = 0x663399;
            private var drawSize:MovieClip;
            private var colors:MovieClip;
            private var sizePanel:MovieClip;
            private var drawBoardmc:MovieClip;
            public function Spraycan():void
            /*public function eventLists():void
                spraycan.addEventListener(MouseEvent.MOUSE_UP, spraycanTool);
                colors.addEventListener(MouseEvent.MOUSE_UP, chooseColor);
                sizePanel.addEventListener(MouseEvent.MOUSE_UP, changeDrawSize);
                Main.addButtonEvents(spraycan, MouseEvent.MOUSE_DOWN, spraycanTool);
                Main.addButtonEvents(colors, MouseEvent.MOUSE_DOWN, chooseColor);
                Main.addButtonEvents(sizePanel
            public function spraycanTool(e:MouseEvent):void
                //convert movieclip 'colors' naar bitmapdata
                convertToBMD();
                //Actieve tool stoppen
                Main.removeEvents();
                //Listeners toevoegen aan het 'board' MovieClip, om er in te tekenen
                Main.addEvents(drawBoardmc, MouseEvent.MOUSE_DOWN, startSpraycan);
                Main.addEvents(drawBoardmc, MouseEvent.MOUSE_DOWN, stopSpraycan);
            private function startSpraycan(e:MouseEvent):void
                sprayCan = new Shape(); // nieuwe shape zodat die altyd vanboven ligt (in geval van vorige tekenen, ...)
                drawBoardmc.addChild(sprayCan); // shape toevoegen aan het 'board' movieclip
                sprayCan.graphics.moveTo(mouseX, mouseY); //verplaatst de tekenpositie naar de muis positie
                sprayCan.graphics.lineStyle(drawSize.width, activeColor); // zet de dikte van het penseel naar de lijndikte van de shapeSize movieclip
                drawBoardmc.addEventListener(MouseEvent.MOUSE_MOVE, drawSpraycan); // voegt een listener toe aan de volgende functie
            private function drawSpraycan(e:MouseEvent):void
                sprayCan.graphics.lineTo(mouseX,mouseY); //tekent een lijn van de huidige muis positie naar de verplaatste muispositie
            private function stopSpraycan(e:MouseEvent):void
                drawBoardmc.removeEventListener(MouseEvent.MOUSE_MOVE, drawSpraycan); //stopt het tekenen
            private function convertToBMD():void
                colorsBmd = new BitmapData(colors.width, colors.height);
                colorsBmd.draw(colors);
            public function chooseColor(e:MouseEvent):void
                pixelValue = colorsBmd.getPixel(colors.mouseX, colors.mouseY); //slaagt de geklikte RGB waarde op in de variabele pixelValue
                activeColor = pixelValue
            public function changeDrawSize(e:MouseEvent):void
                if (drawSize.width >=50)
                    drawSize.width = 1;
                    drawSize.height = 1;
                else
                    drawSize.width += 5;
                    drawSize.height = drawSize.width;
            public function setDrawBoard(board):void
                drawBoardmc = board;
            public function setButton(toolButton):void
                spraycan = toolButton;
            /*public function setActive(activeTool):void
                active = activeTool;
            public function setDrawSize(drawsize):void
                drawSize = drawsize;
            public function setColorsMC(colorsmc):void
                colors = colorsmc;
            public function setSizePanel(sizepanel):void
                sizePanel = sizepanel;
    [/AS]
    Eraser.as, class to erase
    [AS]
    package
        import flash.display.MovieClip;
        import flash.display.Shape;
        import flash.display.DisplayObject;
        import flash.display.BitmapData;
        import flash.events.MouseEvent;
        public class Eraser extends MovieClip
            private var eraser:Shape;
            private var drawBoardmc:MovieClip;
            private var eraserB:MovieClip;
            //private var active:String;
            private var drawSize:MovieClip;
            //private var spraycan:Spraycan;
            public function Eraser():void
            /*public function eventLists():void
                eraserB.addEventListener(MouseEvent.MOUSE_UP, eraserTool);
                eraserB.addEventListener(MouseEvent.MOUSE_OVER, function(){gotoAndStop(2);}) ;
                eraserB.addEventListener(MouseEvent.MOUSE_OUT, function(){gotoAndStop(1);});
            public function eraserTool(e:MouseEvent):void
                //actieve tool afsluiten
                Main.removeEvents();
                //eraserB.addEventListener(MouseEvent.MOUSE_UP, function(){gotoAndStop(2);});
                //listeners
                Main.addEvents(drawBoardmc, MouseEvent.MOUSE_DOWN, startEraser);
                Main.addEvents(drawBoardmc, MouseEvent.MOUSE_DOWN, stopEraser);
            private function startEraser(e:MouseEvent):void
                eraser = new Shape();
                drawBoardmc.addChild(eraser);
                eraser.graphics.moveTo(mouseX, mouseY);
                eraser.graphics.lineStyle(drawSize.width, 0x000000);
                drawBoardmc.addEventListener(MouseEvent.MOUSE_MOVE, drawEraser);
            private function drawEraser(e:MouseEvent):void
                //if (board.width > mouseX && board.height > mouseY) {
                eraser.graphics.lineTo(mouseX, mouseY);
            function stopEraser(e:MouseEvent):void
                drawBoardmc.removeEventListener(MouseEvent.MOUSE_MOVE, drawEraser);
            /*private function quitActiveTool():void
                switch (active)
                    case "Spraycan" :
                        drawBoardmc.removeEventListener(MouseEvent.MOUSE_DOWN, spraycan.startSpraycan);
                        drawBoardmc.removeEventListener(MouseEvent.MOUSE_UP, spraycan.stopSpraycan);
                    case "Eraser" :
                        drawBoardmc.removeEventListener(MouseEvent.MOUSE_DOWN, startEraser);
                        drawBoardmc.removeEventListener(MouseEvent.MOUSE_UP, stopEraser);
                    default:
            public function setDrawBoard(board):void
                drawBoardmc = board;
            public function setButton(toolButton):void
                eraserB = toolButton;
            /*public function setActive(activeTool):void
                active = activeTool;
            public function setDrawSize(drawsize):void
                drawSize = drawsize;
    [/AS]

Maybe you are looking for