All functions getting called upon start up.

I'm experiencing a really annoying problem, it appears that
upon start up of my Flex application, all of the functions in the
script tags are getting called, even the ones that have nothing
calling them. For example: if I add the function:
private function foo():void
and set a break point in the first line of the function. The
break point gets hit every time on start up. This is annoying as it
is causing many problems with my webservice.
If anyone has any ideas, please let me know.
Thanks

This is causing problems with the webservice because I have a
method that calls the webservice which is getting called when the
application initializes and before the webservice has time to load.
This scenario happens even when the web service is taken out
entirely. I actually believe this has something to do with a Model
that I'm binding an xml file to. I have a custom xml configuration
file for my application which is the source of a Model. Different
parameters in that configuration are bound in different places.
When I debug on one of these methods, I notice that the
configuration model is near the top. I think this is causing my
problem, but I can't be certain at this point. Does this sound
right? Would the Model binding have anything to do with this
problem of all the methods getting called?

Similar Messages

  • Printing function gets called twice..!

    The following is my class that prints a string array which sometimes goes into multiple pages.. The code in which i create the multiple pages is below this class.. the problem is each time i append a new page to the book the print function in the class PaintC is called twice.. so if I write some additional code inside the print function to edit the strings .. it ends up running twice and the formatting i try to do gets messed up.. !! do you guys know why this is happening..? Please help.. ive been trying to find out since a very long time..!!
    The code in which i call this function is also shown below
    CLASS FOR PRINTING
    class PaintC
        implements Printable {
      String ad[];
      public PaintC(String ac[]) {
        System.out.println("Print Class Called 1");
        this.ad = ac;
      public int print(Graphics g, PageFormat pf, int pageIndex) throws
          PrinterException {
        System.out.println("Print Function Called 1");
        Graphics2D g2 = (Graphics2D) g;
        g.setFont(new java.awt.Font("Trebuchet MS", Font.PLAIN, 8));
        int xo = 60;
        int yo = 36;
        for (int y = 0; y < 76; y++) {
          try {
            g2.drawString(ad[y], xo, yo);
            yo += 9;
          catch (Exception r) {
            y = 76;
        return Printable.PAGE_EXISTS;
    CODE FOR CREATING MULTIPLE PAGES USING ABOVE CLASS
    void dotheprint() {
        PrinterJob printerJob = PrinterJob.getPrinterJob();
        PageFormat format = new PageFormat();
        Printable painter1;
        format = printerJob.defaultPage(format);
        Paper paper = format.getPaper();
        paper.setImageableArea(60, 36, 500, 756);
        format.setPaper(paper);
        // try storing in a string array each line
        Book bk = new Book();
        String ab = jTATRRep.getText();
        int i, j, lc = jTATRRep.getLineCount();
        String ac[] = new String[lc + 3];
        String ad[] = new String[78];
        ac = ab.split("\n");
        //System.out.println("Number of Lines = " + lc);
        //setting up pages as string arrays..
        // setting up first page
        //Assuming 76 lines per page
        for (i = 0; i < 76 && i < lc; i++) {
          try {
            ad[i] = ac;
    catch (Exception ex) {
    bk.append(new PaintC(ad), format);
    ad = null;
    // setting up second page if neccessary
    // //System.out.println("Number of Lines /76= "+lc/76);
    int pagec = lc / 76;
    int modul = lc % 76;
    int k;
    if (modul > 0) {
    pagec++;
    // //System.out.println("Number of pages : "+pagec);
    j = 76;
    while (pagec > 1) {
    ad = new String[76];
    k = 0;
    for (i = j; i < (lc - 1) && k < 76; i++) {
    // //System.out.println("ac[i]= "+ac[i]);
    ad[k] = ac[i];
    k++;
    bk.append(new PaintC(ad), format);
    ad = null;
    j += 76;
    pagec--;
    printerJob.setPageable(bk);
    boolean doPrint = printerJob.printDialog();
    if (doPrint) {
    try {
    System.out.println("Print Called 1");
    printerJob.print();
    System.out.println("Print Called 2");
    catch (PrinterException exception) {
    System.err.println("Printing error: " + exception);
    CODE IN WHICH THE PRINT FUNCTION IS CALLED
    void jBPrint_actionPerformed(ActionEvent e) {
        dotheprint();
    class ContactManager_jBPrint_actionAdapter
        implements java.awt.event.ActionListener {
      ContactManager adaptee;
      ContactManager_jBPrint_actionAdapter(ContactManager adaptee) {
        this.adaptee = adaptee;
      public void actionPerformed(ActionEvent e) {
        adaptee.jBPrint_actionPerformed(e);

    You might want to check out the [url http://forum.java.sun.com/thread.jsp?forum=57&thread=500687&tstart=0&trange=15]crosspost in the swing forum before spending your time answering this question.

  • Planning function getting called in ABAP

    dear all,
    I have a requirement to call the reposting planning function from some other ABAP program and then suqsequently take the same data and update one more real time cube.
    I have the repost function well working in IP. Need to embed it into my custom abap code.
    In BPS, there used to be a function module for executing planning function.
    How ab the IP in this case?
    thanks,

    hi bindu,
    Thanks.
    How about the variables? My planning function has variables for manual input. Now these values will be supplied from ABAP code. Is variable variants to be used here?
    Also, how about copying the data into another cube?  Should RSDRI_CUBE_WRITE_PACKAGE be used?
    Regards.

  • All text getting fat upon publishing

    when i publish to .mac, all the text gets fatter, like it was set to bold somewhere in process (except for text that actually is bold, which is now double-bold).
    i'm viewing the page with safari on my own computer.

    I have also experianced this problem on my site's main page (http://www.wmuthetatau.com). I think this might be more of a Safari bug then anything. I'm viewing my site right now from a Windows XP computer using Firefox and I'm not having the same problem. Try viewing your site with Firefox and see if your problem persists.

  • Downloaded upgrade to Google Earth and when I attempt to open, all I get is the "Start-Up Tip".  With previous version, I the earth would come up in background.  Now only the tip.  When I close the tip screen, nothing.?

    Had Goggle Earth (GE) on the Mac since new last year.  Worked fine.  Tried upgrading GE this week and only the tip window opens.  Before, the earth would be in the background and the tip in the foreground.  Now, only the tip.  When I close the tip, nothing.  No earth, no GE but the Mac says the GE is running.  Any idea what is going wrong?

    Had Goggle Earth (GE) on the Mac since new last year.  Worked fine.  Tried upgrading GE this week and only the tip window opens.  Before, the earth would be in the background and the tip in the foreground.  Now, only the tip.  When I close the tip, nothing.  No earth, no GE but the Mac says the GE is running.  Any idea what is going wrong?

  • How do I get a clean start for catalog to start all over again?

    Running PSE5 on Win XP w/SP3
    I have not been able to get any information about how to recover a catalog from files that have been copied as a backup, so it looks like I'm forced to start all over again.  There are about 17000 images in the C: drive.  The images all seem to be OK.  A few days ago there was a properly operating catalog file (and all the others) there, too.
    Since then, I have tried to learn how to make the former catalog file operative, but no luck.  Since then, I have read that just uninstalling and reinstalling PSE5 will do nothing to give me a clean start - that is, all the old (now problematical) catalog file trouble will still be there.
    To start all over again seems like such a waste of time, since I have copies of all the catalog files as they were properly operating in March, but it seems that something important is missing and none of this stuff is useful in any way.  I'm not the PSE5 user, so I didn't know about the external catalog backup that can be done from within PSE5 - so the possibility to use that technique does not exist.  All I have is a straight copy of everything in the Documents and Settings.. ...Application Data\Adobe folder.  I've tried replacing the whole Adobe folder with the backup files, starting PSE5 and looking at the catalog, but that didn't work either. I just get the same old empty catalog.
    So, the 'start all over' option seems like the only way out.  Anyone who has lost the catalog knows how much work is in the catalog, so any help with either making the old catalog file work through reconstruction somehow, or starting all over again, will be very helpful.  Someday, I'd like to learn how this happened.  Until then I'll be backing up the catalog file from within PSE5 to an external location...  Everytime there's a new entry in the catalog information.  That method seems simple enough that even I could do it.
    Thanks,
    Al
    (K3PXR)

    I tried to open the resident 'My Catalog.psa' file.  PSE5 dutifully did that and the catalog information, such as tags and other information that would normally be present when looking at the Organizer is blank, as if nothing has ever been entered in the catalog.
    The 'My Catalog.psa' file is about 600K (according to windows explorer) and resides in the 'Catalogs' folder.  Also there are:
    My Catalog-2.psa  about 3252K
    My Catalog-2.psa about 5380K
    In the folder: 'Catalog Folders' were the folders:
    My Catalog
    My Catalog-1
    In the folder My Catalog are the files:
      backupCt.dat  1K
      collstatus.dat  1K
      tagstatus.dat  1K
      thumb.5.cache  10K
    In the folder My Catalog-1 is the file:
      tn.4.cache  32394 K
    Above I say 'In the folder, Catalog Folders, were the folders My Catalog and My Catalog-1' because last night when shutting down, I didn't know what was in those folders.  I was too tired to check.
    I did copy everything that was in the Adobe folder and all associated sub folders, including the folders above, to an SD flash card before I started to do anything else.  Becasue of this, I should be able to get back to the way it was before I started to do anything, then I opened the catalog file My Catalog-1.psa.  It said that it was made from an earlier version, asked to convert it and contained the 2002 to 2004 catalog information.  To the best of my knowledge, those photos were never entered in PSE5, and probably were from an earlier version of PS Album. 
    So, where is the information that was once in the PSE5 catalog?  Which files should contain that information?  Why can't the files simply be copied from the backup copies back on to the C:\ drive in the proper folders and then upon starting PSE5 see at least the catalog that was present when the copies of the files in the folders above were made?  What dumb mistakes could have been made to overwrite the information in the catalog and make the catalog appear empty?  If I don't learn this, I'll not be able to prevent it from happening again.
    I'm not on the machine with the trouble at the moment, and since it is not my machine, I sometimes have trouble getting to it during normal waking hours.  I don't know the exact clicks and keystrokes that got the catalog from its normal function to appearing and functioning as if it is empty..
    What exactly are the symptoms of "PSE5 doesn't like..."?  The catalog appears and functions as if it is empty - as if nothing ever has been or ever was entered into it.  PSE5 Organizer is operating normally as far as I can tell.  I cannot seem to locate the former catalog information and it has not loaded the former catalog file information.  A new test catalog was made and it opens and shows the thumbnails of its four images.  I hope that the test catalog I made didn't overwrite anything that would prevent going back to the original catalog information.  The copies of the files can be restored as they were a few months ago, though, because there is a copy of them on an SD card.
    Thanks,
    Al
    (K3PXR)

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • On start up my Mac Book Pro shows a white screen with a spinning wheel. I have tried starting up with the Snow Leopard disk - all I get is a blue screen. I guess that this is a major repair job??????

    On start up my Mac Book Pro shows a white screen with a spinning wheel. I have tried starting up with the Snow Leopard disk - all I get is a blue screen. I guess that this is a major repair job??????

    If you have the exact same problem - take the computer to an Apple store or an AASP.  Whichever is more convenient for you.  If you have AppleCare call them!

  • D/L Greys seaon 10 epis 24 - and all I get is volumn no picture - how come?  How do i fix this or who do i call?

    I paid and d/l Greys anatomy sea 10 epis 24 and all i get is volume - for some reason i dont have a picture - I have not changed anything on my puter.  The video is there - there just is no pic - how do i fix this or who do i call to fix it?

    Your iTunes is up-to-date, you've tried closing and re-opening iTunes, and other TV programmes or films play ok ?
    Depending upon what country that you are in (TV programmes can't be re-downloaded in all countries) then try deleting that episode from your iTunes library and redownload it via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes
    If you aren't in a country where you can re-download TV programmes or if the redownloaded version also doesn't give you a picture then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Need help how do I get rid of a exe warning upon start up on my pc from apple

    I get this warning upon start up on my pc of course it was after I updated apple Itunes please help it reads
    The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link librarySQLite3.dill.

    On your PC, open up Computer and navigate to C:\Program Files\Common Files\Apple\Apple Application Support.  Inside of this folder should be a file called SQLite3.dll.  Copy this file by right->clicking on it and choosing Copy.
    Then go back one folder so that you are again in the Apple folder.  Look for the Mobile Device Support folder.  Open it up and paste the file inside of it.
    B-rock

  • Installed Firefox 4 on my Mac; getting error messages upon start up and when opening photos (i.e. ebay)

    I updated to Firefox 4 and now continuously receive error messages. One example is when I'm in Ebay and click on a photo to enlarge I get the following error message.
    (JavaScript Application)
    can't create mcafee plug-in object: TypeError:
    Components.classes(cid) is undefined
    Another example is upon start up of Firefox I receive an error message but I can't make it out since its half hidden on my desktop but I have to click "ok" in order to open up Firefox.
    I'm barely learning how to use this Mac (a task in its self), but now I have these error messages? Can I just go back to my older version of Firefox to make these error messages go away?
    Thanks, JR.

    Thank you very, very much. This was my very first time trying to solve a technical issue on my Mac... your advice worked great. I disabled all the add-on apps and it solved my issue. Don't know if I should have disabled all but it seemed to work... Thanks again for the advice.

  • What does it mean when starting up, all you get is an envelope with a question mark in it?

    what does it mean when starting up, all you get is an envelope with a question mark in it?

    You should reinstall OS X. See the following for reinstalling instructions for Lion/Mountain Lion or Snow Leopard:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Cancelled service in May, returned ALL my equipment. Getting calls from ERS!!

    I cancelled my services on May 29th, 2015. I returned my equipment on May 31st, 2015 at 11am to the San Jose, CA office on 10th street. Within a couple days I started getting calls, first that none of my equipment was returned. Then I started calls from ERS that 3 items were missing. I have contacted Comcast many times in the last month trying to resolve this. I would like the credit on my account refunded to me. I was told that it would be refunded on June 26th!!! That was 2 weeks ago. I can still log into my account which so my internet service is still up and running....HOW is this possible!!??? I returned all the equipment on the same day at the same time. I switched to Direct TV and I have no need for comcast equipment. I don't know what else to do.

    acinomcr97 wrote:
    I cancelled my services on May 29th, 2015. I returned my equipment on May 31st, 2015 at 11am to the San Jose, CA office on 10th street. Within a couple days I started getting calls, first that none of my equipment was returned. Then I started calls from ERS that 3 items were missing. I have contacted Comcast many times in the last month trying to resolve this. I would like the credit on my account refunded to me. I was told that it would be refunded on June 26th!!! That was 2 weeks ago. I can still log into my account which so my internet service is still up and running....HOW is this possible!!??? I returned all the equipment on the same day at the same time. I switched to Direct TV and I have no need for comcast equipment. I don't know what else to do.Send an email to:
    [email protected]
    Include all of your information, full name, service address, phone numbers where you can be reached easily, as well as the phone number associated with your account, your account number, and details about all the issues you have been having. Also include a link to this post.

  • HT5055 Just updated to lion and my cctv access has stopped functioning all I get is a white screen in the middle of the control panel where the camera shots should be.  I think it is caused by JAVA but am confused as when i view on snow leopard it works 

    Just updated to lion and my cctv access has stopped functioning all I get is a white screen in the middle of the control panel where the camera shots should be.  I think it is caused by JAVA but am confused as when i view on snow leopard it works  can you help

    Open "Java Preferences" either from spotlight or your utilities folder...it's probably going to say you need to install a java runtime. Then just click install!

  • I have a mac pro, and today i turned it on and all i get is the white power light come s on and starts flashing, my computer does not boot up can anybody help?

    why doesn t my mac pro boot up, i turned it on today and all i get is the white power light on the front of the computer starts flashing, does any body know about this problem?

    Which model of Mac Pro do you own?
    Check Crucial.com for their opinion, but there are cheaper ways to go.

Maybe you are looking for

  • "The scratch disks are write protected or unavailable" on NEW project on PrE

    I am running PrE 10 on Windows 7 64 bit.  My computer has two internal hard drives (C and E).  I want to put my projects and all scratch disks on E, the non-OS drive.  When I try to create a NEW project and designate a directory I have already create

  • Songs not playing in iTunes9 and no sound on computer in general

    After doing the ITunes 9 upgrade when I click on a song it will not play. There is no movement in the progress bar for each song. Also when trying to get media files to play on VLC or Quicktime there is no sound either. Some help would be great. Much

  • What are material movements

    hi,      i am from BI.. and i am creating a reports on production volumes.. in that i am nt able to get waht is material movements.. we have material movementa like 131/132...261/262....701/702...643/644...351/352...101/102...etc.. can u explain the

  • ORA-01427 error configuring ORDS 3.0.0.65.09.31

    I got the error below when trying to configure ORDS 3.0.0.65.09.31 using the parameter file method.  I left all the defaults in exept for ords_params.properties, setting just db.hostname, db.port and db.servicename. Any ideas? Thanks, John C:\oracle\

  • Automatic mail sending freezes outlook 2013

    I have a brand new laptop with fresh installation of Office Home and Business 2013, and there is a problem i can't wrap my head around it. User takes his laptop home, writes 10+ mails and sends them, they lay down in outbox till tomorrow, where he co