Clear() doesn't work?

Why doesn't my clear function work?
I've tried everything but just can't seem to reference the newly drawn line....
var score:Number = 0;
var startX:Number;
var startY:Number;
var startLineX:Number;
var startLineY:Number;
setup(circleMc);
setup(squreMc);
setup(errowMc);
setup(polygonMc);
//add function for submitBtn button
submitBtn.addEventListener(MouseEvent.MOUSE_DOWN, checkScore);
//function for checking whats right and wrong
function checkScore(event:MouseEvent):void {
     if (circleMc.placedCorrectly == undefined) {
          //if the object is anywhere except where it should be clear the line
                circleMc.graphics.clear();
          circleMc.x = 114;
          circleMc.y = 135;
     if (squreMc.placedCorrectly == undefined) {
          //if the object is anywhere except where it should be clear the line
                squreMc.graphics.clear()
             squreMc.x = 114;          squreMc.y = 205;
     if (errowMc.placedCorrectly == undefined) {
          //if the object is anywhere except where it should be clear the line
          errowMc.x = 114;
          errowMc.y = 275;
     if (polygonMc.placedCorrectly == undefined) {
          //if the object is anywhere except where it should be clear the line
          polygonMc.x = 114;
          polygonMc.y = 354;
function setup(shape:MovieClip):void {
     shape.addEventListener(MouseEvent.MOUSE_DOWN, dragThis);
     shape.addEventListener(MouseEvent.MOUSE_UP, dropThis);
     shape.addChildAt(new Sprite(), 1);
     shape.startX = shape.x;
     shape.startY = shape.y;
     shape.mouseChildren = false;
function dragThis(event:MouseEvent):void {
     event.currentTarget.startDrag(true);
     stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
function onMove(m:MouseEvent):void {
     drawLine(MovieClip(m.target));
function drawLine(item:MovieClip):void {
     var line:Sprite = Sprite(item.getChildAt(1));
     var localStart:Point = item.globalToLocal(new Point(item.startX, item.startY));
     var localItem:Point = line.globalToLocal(new Point(item.x, item.y));
     with (line.graphics) {
          clear();
          moveTo(localStart.x, localStart.y);
          lineStyle(2, 0);
          lineTo(localItem.x, localItem.y);
function dropThis(event:MouseEvent):void {
     //stop dragging
     event.target.stopDrag();
     //stop drawing the line
     stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
     //the target MC is named the same as the drag object with the addition of the below prefix
     var myTargetName:String = "target_" + event.currentTarget.name;
     //get dragged object name
     var myTarget:DisplayObject = getChildByName(myTargetName);
     //if you've done it right
     if (event.currentTarget.dropTarget != null && event.currentTarget.dropTarget.parent == myTarget) {
          event.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, dragThis);
          event.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, dropThis);
          event.currentTarget.placedCorrectly = true;
          event.currentTarget.buttonMode = false;
          event.currentTarget.x = myTarget.x;
          event.currentTarget.y = myTarget.y;
     } else {
          //change result text
          resultTxt.text = "Try Again !";
          //these two command below put the object back where it started at
          //event.currentTarget.x = event.target.startX;
          //event.currentTarget.y = event.target.startY;
          //remove line
          //event.currentTarget.getChildAt(1).graphics.clear();
circleMc.buttonMode = true;
squreMc.buttonMode = true;
errowMc.buttonMode = true;
polygonMc.buttonMode = true;

Sorry for the delay...
You're right.
Forget this post.
I posted the wrong script (a tryout one) and since then, I found my mistake and everything is okay now.
Is there a way to delete this post?

Similar Messages

  • Shared Objects: clear() doesn't work!

    Hi there!
    With reference to thread:
    http://forums.adobe.com/message/4923159
    It doesn't work anymore!
    i.e. it's impossible to delete and get rid of the identifiers which were previously written on disk...
    Name of the file hasn't changed.
    Directory where the file is hasn't changed either.
    I haven't wrote any statement in my .fla which could interfere with the instructions below.
    I still use:
    var so:SharedObject = SharedObject(credentials).getLocal("identifiers", "/");
    so.clear();
    I have a CheckBox and a Listener attached to it:
    memorizeCbx.selected;
    var memorizeCbxListener:Object = {};
    memorizeCbxListener.click = function() {
        if (!memorizeCbx.selected) {
            var so:SharedObject = SharedObject(credentials).getLocal("identifiers", "/");
            so.clear();
        else {
            SharedObject(credentials).data.userName.flush;
            SharedObject(credentials).data.userPass.flush;
    memorizeCbx.addEventListener("click",memorizeCbxListener);
    Does anybody has an idea about what's going wrong?
    I thank you all in advance for any solution.

    Sorry for the delay...
    You're right.
    Forget this post.
    I posted the wrong script (a tryout one) and since then, I found my mistake and everything is okay now.
    Is there a way to delete this post?

  • ECC6 Automatic clearing doesn't work while cancelation of SD billing

    Hi guys
    In ECC 6,  a billing doc is generated, so a FI doc also.
    Then the same billing doc is been cancelled, so another FI is been generated.
    the pb is that these 2  FI docs don't be cleared automatically.
    I've tried to search for the customizing concerned but failed.
    Anyone of you knows how to deal with it?
    Many thanks!
    Bingjie

    Hi,
        Whether the document is cleared or not depends on which procedure is used in the cancellation of the invoice.
        Check Note 1259505 and 339928 for details.
    Kind regards

  • Server Cleanup 3.0 doesn't work with SL

    I used to use a program called Server Cleanup 3.0. It was easy to use for the non techie like me. Now that we have upgraded our server to SL I can't get it to work. Does anyone know if it is supposed to or if there is something out there that did similar tasks? I get a prompt that says
    Applescript Error Can't get <<class datS>> "users". (-1728)
    Would love to get it back or something similar. I am not good with terminal.
    Thanks

    As for your immediate course and issue with this tool, please talk to whomever provided the package. (I don't use it, and it clearly doesn't work here.)
    If I were constrained in terms of my available time or my knowledge or both (and I've definitely been there, as has most anybody), I'd likely not mess with this stuff. (What happens if this tool should run off the rails and delete something critical, for instance? I'd tend to dedicate available time to sequences such as periodic (reliable) disk archives; to ensuring I had backups of key data.)
    There can certain be reasons to mess with the settings and caches and trash stuff, such as (insufficient) available storage. But then I might choose to toss more disk space at the problem.
    You can get at most any of the client-based system settings via WGM and MCX, and either via the settings and preferences, or via the login and [logout|http://discussions.apple.com/thread.jspa?messageID=11006617&tstart=0] scripts. (I don't know of a good and complete set of documentation for the knobs that MCX can tweak, but +dscl . -mcxhelp+ will give you some idea of what it can do, and definitely have a look at the [client management whitepaper|http://images.apple.com/education/docs/Apple-ClientManagementWhitePa per.pdf], and periodic-based options such as [this|http://macosx.com/forums/mac-os-x-server/222003-auto-dump-user-trash.html ].)
    Or have a chat with the software provider; you're basically running a script there...

  • "Zoom Resizes Windows" doesn't work in CS4

    I have the "Zoom Resizes Windows" option checked in Preferences. However, when I use the scroll wheel on my mouse (which is assigned to zoom in the Photoshop software), it only zooms in/out on the image within the window. WHY do they put the option in there when it CLEARLY doesn't work???
    I have my image document windows "undockable", so that I have the flexibility to move them around and zoom in/out as I please when I have more than one. But the zoom does NOT zoom the document window. It keeps it the same size while moving the image within it. This "Zoom Resizes Windows" option is NOT working.
    Is this a joke, or am I missing something? Any info is appreciated. Thanks!

    I too am having the same issue as Whintersby. I find that it is not pixel related as much as it is the physical size of the resized window.
    Note the lower right corner. Once the resize dragger disappears the window will no-longer resize up using the CTRL ++. Unless you first physically drag the corner with the mouse a little. At that point the functionality returns. As Whintersby  has said it is quite frustrating and quite disruptive to a solid work flow.
    If anyone has found a solution to this it would be quite helpful.
    For any Adobe techs that might be here, I am on Win7 (64).
    While this may possibly be a moot point as I intend to upgrade to CS5, I want to make sure that it gets resolved and does not simply continue into CS5.

  • Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro

    Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro when plugged in with a dvi to mini dvi cable. Any ideas what to do to make it work? I lugged the 23" 2500 miles into the wilderness and I need help

    Okay, here's an update: the DVI to ADC adapter does work with the Apple displays that I have tried, but it won't work with the Formac. I have tried multiple time to contact them, but to no avail... they don't even respond to threats of posting my opinion of them, which is this:
    DON'T BUY ANYTHING FROM FORMAC! They make quality products, but their customer service is a big time joke! They won't take care of you.

  • I pay for upgrading ifindyou and it doesn't work!!!! it clearly says that it tracks only your mobile in the lite version, after you ask the upgrade for all the mobile... can we call this a fraud????

    i pay for upgrading ifindyou and it doesn't work!!!! it clearly says that it tracks only your mobile in the lite version, after you ask the upgrade for all the mobile... can we call this a fraud????

    Hi,
    "A day after the name change became official my built in skydrive app stopped working"
    Did you point that SkyDrive changed to OneDrive?
    Did you move your OneDrive to another location or change its name?
    Please login OneDrive with web-based to check if you could access it successfully.
    Please refer to the following article to try the troubleshooter and check the service status:
    SkyDrive: FAQ
    http://windows.microsoft.com/en-in/windows-8/skydrive-app-faq
    Karen Hu
    TechNet Community Support

  • Calculator "clear" button doesn't work

    Suddenly, the "clear" button (labeled as "C" on the calculator) on the general calculator application for Tiger doesn't work. I can make calculations, but I cannot clear the information. Thanks.
    Jtsastre

    Try deleting the calculator .plist in user>Library>Preferences>com.apple.calculator.plist. then restart, the .plist will regenerate.
    Please post back with results,

  • 5.0.2 Lollipop equalizer & clear audio+ doesn't work anymore (except in walkman)

    In 5.0.2 Lollipop update equalizer & clear audio+ doesn't work anymore (except in walkman). In 4.4.4 equalizer works without problem! Sony please fix, because I can't listen other content without adjusted equalizer.
    xperia tablet Z2 wifi

    Solution by Rickard
    "I have got some more information about this and it's up to the app if the equalizer is used or not. It's not on by default for all apps, the developer of an app must state that they want to use it in their code."
    Android team turn this features off in default. Pffff why?? ))
    And now we have to wait that all application developers have added this feature, Facepalm.

  • Help! Divs extend beyond parent container! Clearing doesn't seem to work!

    My "mainContent" div extends beyond the "Container" div. It seems that I've tried everything--clearing doesn't seem to work.
    Help!
    Here is my css:
    @charset "UTF-8";
    /* CSS Document */
    body  {
         margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
         padding: 0;
         text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
         color: #000000;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 100%;
         background-color: #FFF;
    .twoColFixRtHdr #container {
         width: 960px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
         background: #FFFFFF;
         text-align: left; /* this overrides the text-align: center on the body element. */
         font-family: Arial, Helvetica, sans-serif;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
         top: 10px;
         padding-top: 10px;
         clear: both;
    .twoColFixRtHdr #header {
         height: 180px;
         padding-top: 10px;
         padding-right: 0px;
         padding-bottom: 5px;
         padding-left: 0px;
         border-top-width: 1px;
         border-right-width: 0px;
         border-bottom-width: 5px;
         border-left-width: 0px;
         border-top-style: solid;
         border-bottom-style: solid;
         border-top-color: #999;
         border-bottom-color: #000;
         margin-top: 5px;
         margin-bottom: 0px;
    .twoColFixRtHdr #container #sidebar1 img {
         padding-top: 10px;
         border-bottom-width: 1px;
         border-bottom-style: solid;
         border-bottom-color: #999;
         margin-bottom: 0px;
         padding-bottom: 10px;
         padding-left: 10px;
    .twoColFixRtHdr #header h1 {
         margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
         padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixRtHdr #sidebar1 {
         width: 315px;
         padding: 0px;
         top: 200px;
         float: right;
    .twoColFixRtHdr #mainContent {
         width: 643px;
         padding-top: 10px;
         border-right-width: 1px;
         border-right-style: solid;
         border-right-color: #999;
         overflow: hidden;
         top: 230px;
         position: absolute;
         clear: right;
    .twoColFixRtHdr #footer {
         background:#DDDDDD;
         top: 50px;
         clear: both;
         padding-top: 0;
         padding-right: 10px;
         padding-bottom: 0;
         padding-left: 20px;
    .twoColFixRtHdr #footer p {
         margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
         padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
         clear:both;
         height:0;
         font-size: 0px;
         line-height: 0px;
    .spacer { 
         clear: both; 
    .twoColFixRtHdr #container #mainContent #article_main_head {
         font-family: Arial, Helvetica, sans-serif;
         top: 10px;
         width: 635px;
         float: left;
    .twoColFixRtHdr #container #mainContent #article_img {
         width: 630px;
         float: left;
         margin-top: 10px;
         clear: both;
    .twoColFixRtHdr #container #mainContent #article_main_txt {
         float: right;
         width: 450px;
         clear: both;
         padding-top: 10px;
         height: 500px;
    .twoColFixRtHdr #container #mainContent #article_main_pq {
         clear: both;
         float: left;
         width: 180px;
         margin-top: 100px;
    Here is my html:
                                                                   Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero. 
    Loading news. please wait...                                   
    Loading news. please wait...                    
    Loading news. please wait...            
          Footer 

    This CSS sends up a red flag:
    .twoColFixRtHdr #mainContent {
         width: 643px;
         padding-top: 10px;
         border-right-width: 1px;
         border-right-style: solid;
         border-right-color: #999;
         overflow: hidden;
    /******DELETE THE FOLLOWING*****/
         top: 230px;
         position: absolute;
         clear: right;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Mobile data doesn't work and I can't access the front camera.

    Hi, I received my new Xperia Z3 Compact in white just over a week ago and unfortunately I have few unresolved issued with it which kind of spoils the experience of owning a new phone.
    I  just switched from a number of Iphones and Xperia was the handset that really impressed me.
    I couldn't see the point of getting an overpriced Iphone with a limited storage capability.
    Unfortunately my Xperia Z3c has some issues;
    - I can't get the front camera work
    - I can get my internet only through Wi-Fi and my unlimited 3G data doesn't work at all (T-Mobile U.K)
    - Three Swipe Gesture doesn’t appear to be working as it should on any Android device (I'm told).
    So I am not a very happy user at the moment and slowly starting to miss the Iphone.

    Hi casson50ml,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Sorry to hear about these issues, I would first suggest clearing the data for the camera.
    Menu > settings > Apps > All > Camera > Clear Data
    Once done try using the device.
    In regards to the Internet, try performing an Internet settings download.
    Menu > Settings > More > Internet Settings > Accept Disclaimer > Choose Network.
    Now try using the network data on the handset.
    Can you explain more about the 3 Finger Gesture issue?
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Com.sap.portal.appintegrator.sap doesn't work

    Hi all,
    I needed to change the file 'WinGuiRenderLayer.properties'
    I found the par under 3 locations:
    d:\usr\sap\SPD\jc00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap
    d:\usr\sap\SPD\jc00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd
    d:\usr\sap\SPD\jc00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\temp
    I changed the file in those locations (I removed the bak extension and restarted the server).
    Also, I made sure that the pars/directory contains the jar files.
    After I restarted the server the application integrator iviews doesn't work (Web Dynpro, Transaction...).
    Before I did the changes, I backed up the original pars/directory.
    Copying the original pars didn't help.
    How can I solve this?
    Portal is EP6.16
    Attched exception details:
    Date : 10/25/2007
    Time : 13:56:51:765
    Message : [PortalNode.fireEventOnNode.toEventListener] event=onNodeReadyEvent, target=com.company.Orders, operation failed
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : com.sap.portal.appintegrator.sap.WebDynpro
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
         at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:238)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:356)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:178)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:391)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:234)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:576)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:725)
         at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:685)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent of Portal Component com.sap.portal.appintegrator.sap.WebDynpro because: Linkage error while loading implementation class
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:234)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
         at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
         ... 41 more
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/appintegrator/AbstractIntegratorComponent
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@72f155]
    Parent loader name: [sap.com/com.sap.portal.appintegrator.sap]
    References:
       not registered!
    Resources:
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\classes
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\lib\com.sap.portal.appintegrator.sap_core.jar
    The error occurred while trying to load "com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent".
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:389)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 45 more
    Severity : Warning
    Category : /System/Server
    Location : com.sap.portal.portal
    Application : sap.com/irj
    Thread : SAPEngine_Application_Thread[impl:3]_27
    Datasource : 6397450:D:\usr\sap\SPD\JC00\j2ee\cluster\server0\log\defaultTrace.trc
    Message ID : 000E7F3049DE005C0000002100001C4000043D4FEE02FB46
    Source Name : com.sap.portal.portal
    Argument Objs : com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : com.sap.portal.appintegrator.sap.WebDynpro
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
         at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:238)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:356)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:178)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:391)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:234)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:576)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:725)
         at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:685)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent of Portal Component com.sap.portal.appintegrator.sap.WebDynpro because: Linkage error while loading implementation class
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:234)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
         at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
         ... 41 more
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/appintegrator/AbstractIntegratorComponent
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@72f155]
    Parent loader name: [sap.com/com.sap.portal.appintegrator.sap]
    References:
       not registered!
    Resources:
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\classes
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\lib\com.sap.portal.appintegrator.sap_core.jar
    The error occurred while trying to load "com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent".
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:389)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 45 more
    Arguments : com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : com.sap.portal.appintegrator.sap.WebDynpro
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
         at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:238)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:356)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:178)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:391)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:234)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:576)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:725)
         at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:685)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent of Portal Component com.sap.portal.appintegrator.sap.WebDynpro because: Linkage error while loading implementation class
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:234)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
         at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
         ... 41 more
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/appintegrator/AbstractIntegratorComponent
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@72f155]
    Parent loader name: [sap.com/com.sap.portal.appintegrator.sap]
    References:
       not registered!
    Resources:
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\classes
       D:\usr\sap\SPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator.sap\private\lib\com.sap.portal.appintegrator.sap_core.jar
    The error occurred while trying to load "com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent".
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:389)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 45 more
    Dsr Component : <Server Name>
    Dsr Transaction : 5a4c6ec082f111dccf17000e7f3049de
    Dsr User : <User>
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 1
    Relatives : /System/Server
    Resource Bundlename :
    Session : 44
    Source : com.sap.portal.portal
    ThreadObject : SAPEngine_Application_Thread[impl:3]_27
    Transaction :
    User : <User>
    Thanks,
    Omri

    Solved it.
    This is what I did:
    1) Took par from my production environment (same SP level)
    2) Clear the par (by using 'Archive Remover')
    3) Clear the pcd cache
    4) Upload the par (redploy)\
    5) Restart the portal
    Thanks,
    Omri

  • My new iPhone 4 doesn't work at all

    You are definitely not alone with your issues. I'm on my second iPhone 4 unit, and am still having the same problems. I've had proximity sensor insanity, battery draining after 8 hours of stand-by (NO USE, just sleeping) to the point that my phone goes into a coma and has to be plugged in to be revived, the grip of death dropping calls....
    But the single most irritating and infuriating problem is the signal strength/reception fluctuation. I share a house with two iPhone 3Gs users, and I had an original silverback iphone until July 2010. They all work fantastically well with no issues when I'm at home (where I am just about 24/7, since I work from home). *_My new iPhone 4 doesn't work at all.*_. Signal strength is all over the place. I did a test where I sat watching the bars showing signal strength for five minutes. In that time, I saw it switch from E (edge?) with full bars to 3G with full bars to 3G with 1 bar to 2 bars to 4 bars to 1 bar to "Searching." Then back to 3G, with degradation of bars from 3 to none, then E network appears again, this time with full strength. This all with the phone sitting on a table, not being touched by human hands.
    It seems that my iPhone is constantly switching actual physical networks, and as a result signal strength is all over the place from one 30 second period of time to the next. This drains the battery like crazy, and means that all incoming calls go to voicemail--usually without my phone ever ringing.
    The 3G phones in my house work great. The 1st G iPhone I have had since the week it came out worked great (though its battery doesn't hold much of a charge anymore, after three years). On my new IP4, games are awesome. The videos and photos are amazingly clear and high quality, and editing on the phone is out of sight. iPhone Apps rule. MobileMe syncs my contacts quickly and easy. The only thing I love more than the iP4 features is my iPad--it rocks.
    Everything works on my IP4 at home BUT THE ACTUAL TELEPHONE FUNCTIONS. This is unacceptable. In late August, after two weeks in which I had 4 minutes of phone use, the nice folks at the Apple store switched me to a new phone, no questions asked. The phone worked so much better, I could send texts and place calls most of the time (this was now the first part of September)...except that now that I was using my IP4 to make phone calls, I started having a problem with the proximity sensor during those calls. I'd be talking and my cheek would mute the phone, turn on speaker, open contacts and edit info (with gobbledygook), and of course, hang up on people.
    So around Sept. 18 I was told by Apple phone support to update to iOS 4.2, restore as new, and do two complete power up and drain down cycles. This would fix the proximity sensor and any other issues.
    Well, I would love to see if iOS 4.2 actually did fix the PS, but I can't get the signal strength to stabilize long enough to have an actual phone conversation. I'm back to watching the signal strength go up and down at random (with me touching/holding it carefully to avoid grip of death, and also when I leave phone on the table with screen lock off --no touching). It is back to switching between E network and 3G and varying strengths of wi-fi from my home network. This eats up battery from 100% to low enough to turn off in under 10 hours of standby (usually 6-7). Essentially, my IP4 is back to being unusable as a phone.
    So I did another long, involved call to Apple tech support on 9/18. They tell me that I have to turn off wi-fi, turn off 3G, turn off push/fetch and notifications, shut all apps (no multi-tasking) and do everything but switch my phone to airplane mode--and see if the battery holds up for 24 hours in standby. If that didn't work, I should restore from new, but not load any contacts or network or data or anything--just leave it as it would be out of the box new.
    As a test, I turned everything off as advised: 3G, wi-fi, push, etc. Now my battery life is back to normal, where I can have the IP4 on stand-by for up to two full days before needing a recharge. Fabulous. BUT IT'S NOT A SMART PHONE if I have to turn off 3G, turn off wireless, and not use email push and so forth.
    I'm so frustrated I could scream. I'm quickly coming to the conclusion that there is a significant flaw in the new iPhone. Or perhaps it is just an issue for iPhone 4 users in areas where the signal strength is marginal, or where there are two types of overlapping network coverage (E and 3G in my case). I know that the networks themselves are in good condition--though I'm in a semi-rural area, the state capital is 4 miles away, and I know they have a new tower and good coverage for the politicians and power brokers around town. The phone coverage area I live in has Edge network in the south part of the network area and 3G in the north part, which is the state capital. I'm right in between. Could this be the problem? AT&T says no, it's Apple's fault.
    Message was edited by: HighSierra

    So what to do besides complain? Troubleshoot?
    I just wonder if all of us who have had chronic signal strength and "Searching for network" issues that totally drain the battery might have something in common, despite being all over the world? I'm using wi-fi 95% of the time, and live in a semi-rural area with overlapping networks run by same carrier. Apple folks hinted that maybe in my area the network usage is nearing capacity (resulting in getting kicked off of 3G and down to E as new calls are placed that strain capacity). They also hinted there could be interference from mountains or other objects. But here's the thing--3G phones work fine, and my IP4 works fine when I'm away from home, usually in the capital city on strong 3G network. (When I say "works fine I mean the signal is good and calls go through, I haven't tested battery drain away from home yet).
    I have to conclude that the problem is the IP4 itself--something about the hardware or the software (namely, the way it connects to the phone network) is horribly wrong. Other folks who live in urban areas or with strong networks that (likely) aren't over-utilized don't seem to have this issue. After reading through these pages, it also seems the wi-fi may be a major culprit in draining the battery and in varying signal strength (this is from Apple phone support, which said that varying signal strength and the constant pinging off the home wi-fi is creating a "power struggle" and keeping the phone constantly looking for the best connection option). Mind you, 3G iphones on the same home network have no problems whatsoever.
    So while I'm not a technical expert, it seems like the problem HAS to lie in the differences in the way the IP4 connects to the cellular and/or wi-fi network. And since the connection/signal strength problem was "resolved" on my replacement phone, but then "broken" again by the software update of iOS 4.2, I'm leaning toward this being a software issue. I've offered to help Apple troubleshoot, and I'm trying to be patient--because the IP4 is a work of art and I've never had an issue with an Apple product before. But all they want me to do is restore, restore, reload, restore, and then drive 1 hour to the nearest Apple store (in Reno, NV) and get a new phone...and start the whole process over again. I don't have time for this, I need my phone back.
    I'm this close to trading in my beautiful but flawed IP4 for a 3G. Maybe I should just get a new battery for my original iPhone from 2007?
    I understand that Apple can't test for every possible variable of use all over the world, but they don't even seem to acknowledge that they have a problem with the IP4 that will not be resolved by replacing it with a new unit. They want me to believe it's a fluke, or it's just me...but I've been combing these threads and see a lot of people reporting the same issues I am--battery drain and wildly fluctuating signal strength issues, wi-fi problems, and dropped calls. Can't someone get on this? Because otherwise Apple is going to have to admit that their IP4 is not a good solution for people who live in areas of less than perfect signal strength or use wifi or whatever demonic combo I have in my home/work setting.
    Or people will have to do what I have done--if you who want the cool IP4 non-phone features, you will have to dumb down your IP4 in order to have it be even moderately useful as *a phone.* For $599 I expected better.
    My (temporary) workaround?
    To spare the battery:
    *Turn off wi-fi (which *****, because now I have to burn minutes when I'm at work using the email, downloads, safari, etc--and it's E network, so it's SLLOOOOOOOW)
    *turn off push and fetch, have mail get new messages manually
    *turn off data roaming
    To keep the signal somewhat stable (making it easier to complete calls and spare battery)
    *Turn off 3G (this leaves me on E network--fabulous, I had that with my 3 year old iPhone)
    *grip IP4 between two fingers placed at the top of the phone, away from death zone. Tough for us lefty phone users.
    *pray the free bumper will a) come soon and b) help. I'm not optimistic.
    To keep proximity sensor from going nuts and dropping calls, muting, turning on speaker etc:
    *use headset or bluetooth (unless you are also having one of the known bluetooth issues!)
    *keep phone pressed to one ear and don't move it a millimeter. Don't shift sides, don't hold phone with your shoulder, just keep it to one ear and talk fast).
    I'm about out of patience. I understand that lots of folks have and love their IP4s. I'd love to be one of those people. I'm open to suggestions and have spent many hours on phone with tech support, restoring my phone, reloading data and apps--there has to be a better way.
    Sorry for the thread-jacking, but someone from Apple has got to be following these threads--help us!
    null

  • Swf previews in browser and doesn't work on server after upgrade from cs3 to cs5

         I have upgraded from CS3 to CS5. My site uses a template created in dreamweaver 8.  When I edit a page and embed a .swf file created in flash cs5, it doesn't work on my server, but works on my computer when I 'test in browser'.  I have uploaded all the files in the 'scripts' directory.  I am streaming video.  I have tried using both actionscript 2.0 and 3.0 and streaming .flv and .f4v.  None work.
    I have a big site and do not wan't to redo my template unless I absolutely have to.
    Here is the link:
    http://retinavitreous.com/educationalvideo2010/clips/intro_eyesees.html
    Here is the code on my page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/mainnopop.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>video vitrectomy for macular hole re-operation ilm peel</title>
    <!-- InstanceEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    td img {display: block;}body {
    background-color: #0000FF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    a:link {
    color: #FFFF00;
    a:visited {
    color: #00FFFF;
    a:hover {
    color: #FFFFFF;
    a:active {
    color: #99CC00;
    #main {
    position:absolute;
    width:579px;
    height:815px;
    z-index:1;
    left: 168px;
    top: 96px;
    #right {
    position:absolute;
    width:238px;
    height:817px;
    z-index:2;
    left: 792px;
    top: 98px;
    </style>
    <!--Fireworks 8 Dreamweaver 8 target.  Created Tue May 26 14:59:01 GMT-0400 (Eastern Daylight Time) 2009-->
    <script language="JavaScript1.2" type="text/javascript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    <!-- InstanceBeginEditable name="head" -->
    <script src="../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script src="../../Scripts/swfobject_modified.js" type="text/javascript"></script>
    <!-- InstanceEndEditable -->
    <link href="../../css/yellowblue.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body,td,th {
    color: #FFFBF0;
    -->
    </style></head>
    <body bgcolor="#ffffff" onload="MM_preloadImages('../../Templates/tempanimation/temp_animation_r1_c1_f2.gif','../ ../Templates/tempanimation/tempanimation_r1_c1_f2.gif','../../Templates/tempanimation/temp _animation_r1_c2_f2.gif','../../Templates/tempanimation/tempanimation_r1_c2_f2.gif','../.. /Templates/tempanimation/temp_animation_r1_c4_f2.gif','../../Templates/tempanimation/tempa nimation_r1_c4_f2.gif','../../Templates/tempanimation/temp_animation_r1_c5_f2.gif','../../ Templates/tempanimation/tempanimation_r1_c5_f2.gif','../../Templates/tempanimation/temp_an imation_r1_c7_f2.gif','../../Templates/tempanimation/tempanimation_r1_c7_f2.gif','../../Te mplates/tempanimation/temp_animation_r1_c8_f2.gif','../../Templates/tempanimation/tempanim ation_r1_c8_f2.gif','../../Templates/tempanimation/temp_animation_r2_c6_f2.gif','../../Tem plates/tempanimation/tempanimation_r2_c6_f2.gif','../../Templates/tempanimation/temp_anima tion_r4_c1_f2.gif','../../Templates/tempanimation/tempanimation_r4_c1_f2.gif','../../Templ ates/tempanimation/temp_animation_r5_c1_f2.gif','../../Templates/tempanimation/tempanimati on_r5_c1_f2.gif','../../Templates/tempanimation/temp_animation_r6_c1_f2.gif','../../Templa tes/tempanimation/tempanimation_r6_c1_f2.gif','../../Templates/tempanimation/temp_animatio n_r7_c1_f2.gif','../../Templates/tempanimation/tempanimation_r7_c1_f2.gif','../../Template s/tempanimation/temp_animation_r8_c1_f2.gif','../../Templates/tempanimation/tempanimation_ r8_c1_f2.gif','../../Templates/tempanimation/temp_animation_r9_c1_f2.gif','../../Templates /tempanimation/tempanimation_r9_c1_f2.gif','../../Templates/tempanimation/temp_animation_r 11_c1_f2.gif','../../Templates/tempanimation/tempanimation_r11_c1_f2.gif')">
    <table border="0" cellpadding="0" cellspacing="0" width="1440">
    <!-- fwtable fwsrc="tempanimation.png" fwbase="tempanimation.gif" fwstyle="Dreamweaver" fwdocid = "41244840" fwnested="0" -->
      <tr>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="99" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="68" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="14" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="85" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="121" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="114" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="160" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="163" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="616" height="1" border="0" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="1" border="0" alt="" /></td>
      </tr>
      <tr>
       <td rowspan="2"><a href="../../index.php" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c1','','../../Templates/tempanimation/temp_an imation_r1_c1_f2.gif','tempanimation_r1_c1','','../../Templates/tempanimation/tempanimatio n_r1_c1_f2.gif',1)"><img name="tempanimation_r1_c1" src="../../Templates/tempanimation/tempanimation_r1_c1.gif" width="99" height="24" border="0" id="tempanimation_r1_c1" alt="" /></a></td>
       <td rowspan="2" colspan="2"><a href="../../ouroffices/alloffices.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c2','','../../Templates/tempanimation/temp_an imation_r1_c2_f2.gif','tempanimation_r1_c2','','../../Templates/tempanimation/tempanimatio n_r1_c2_f2.gif',1)"><img name="tempanimation_r1_c2" src="../../Templates/tempanimation/tempanimation_r1_c2.gif" width="82" height="24" border="0" id="tempanimation_r1_c2" alt="" /></a></td>
       <td rowspan="2"><a href="../../patientinfo/forms.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c4','','../../Templates/tempanimation/temp_an imation_r1_c4_f2.gif','tempanimation_r1_c4','','../../Templates/tempanimation/tempanimatio n_r1_c4_f2.gif',1)"><img name="tempanimation_r1_c4" src="../../Templates/tempanimation/tempanimation_r1_c4.gif" width="85" height="24" border="0" id="tempanimation_r1_c4" alt="" /></a></td>
       <td rowspan="2"><a href="../../treatments/overviewtreatments.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c5','','../../Templates/tempanimation/temp_an imation_r1_c5_f2.gif','tempanimation_r1_c5','','../../Templates/tempanimation/tempanimatio n_r1_c5_f2.gif',1)"><img name="tempanimation_r1_c5" src="../../Templates/tempanimation/tempanimation_r1_c5.gif" width="121" height="24" border="0" id="tempanimation_r1_c5" alt="" /></a></td>
       <td><img name="tempanimation_r1_c6" src="../../Templates/tempanimation/tempanimation_r1_c6.gif" width="114" height="1" border="0" id="tempanimation_r1_c6" alt="" /></td>
       <td rowspan="2"><a href="../../video files/videostart.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c7','','../../Templates/tempanimation/temp_an imation_r1_c7_f2.gif','tempanimation_r1_c7','','../../Templates/tempanimation/tempanimatio n_r1_c7_f2.gif',1)"><img name="tempanimation_r1_c7" src="../../Templates/tempanimation/tempanimation_r1_c7.gif" width="160" height="24" border="0" id="tempanimation_r1_c7" alt="" /></a></td>
       <td rowspan="2"><a href="../../flash/animations/overview_animations.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r1_c8','','../../Templates/tempanimation/temp_an imation_r1_c8_f2.gif','tempanimation_r1_c8','','../../Templates/tempanimation/tempanimatio n_r1_c8_f2.gif',1)"><img name="tempanimation_r1_c8" src="../../Templates/tempanimation/tempanimation_r1_c8.gif" width="163" height="24" border="0" id="tempanimation_r1_c8" alt="" /></a></td>
       <td><img name="tempanimation_r1_c9" src="../../Templates/tempanimation/tempanimation_r1_c9.gif" width="616" height="1" border="0" id="tempanimation_r1_c9" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="1" border="0" alt="" /></td>
      </tr>
      <tr>
       <td><a href="../../patientinfo/insurancepar.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r2_c6','','../../Templates/tempanimation/temp_an imation_r2_c6_f2.gif','tempanimation_r2_c6','','../../Templates/tempanimation/tempanimatio n_r2_c6_f2.gif',1)"><img name="tempanimation_r2_c6" src="../../Templates/tempanimation/tempanimation_r2_c6.gif" width="114" height="23" border="0" id="tempanimation_r2_c6" alt="" /></a></td>
       <td><img name="tempanimation_r2_c9" src="../../Templates/tempanimation/tempanimation_r2_c9.gif" width="616" height="23" border="0" id="tempanimation_r2_c9" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="23" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="9"><img name="tempanimation_r3_c1" src="../../Templates/tempanimation/tempanimation_r3_c1.gif" width="1440" height="69" border="0" id="tempanimation_r3_c1" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="69" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../patientinfo/overview_patientinfo.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r4_c1','','../../Templates/tempanimation/temp_an imation_r4_c1_f2.gif','tempanimation_r4_c1','','../../Templates/tempanimation/tempanimatio n_r4_c1_f2.gif',1)"><img name="tempanimation_r4_c1" src="../../Templates/tempanimation/tempanimation_r4_c1.gif" width="167" height="30" border="0" id="tempanimation_r4_c1" alt="" /></a></td>
       <td rowspan="9" colspan="7"                  ><div id="main"><!-- InstanceBeginEditable name="main" -->
         <h2 align="center">How the Eye Sees Animation
         </h2>
         <p align="center">
           <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="874" height="520" id="FlashID" title="eye sees">
             <param name="movie" value="eyeseesas2.swf" />
             <param name="quality" value="high" />
             <param name="wmode" value="opaque" />
             <param name="swfversion" value="6.0.65.0" />
             <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
             <param name="expressinstall" value="../../Scripts/expressInstall.swf" />
             <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
             <!--[if !IE]>-->
             <object type="application/x-shockwave-flash" data="eyeseesas2.swf" width="874" height="520">
               <!--<![endif]-->
               <param name="quality" value="high" />
               <param name="wmode" value="opaque" />
               <param name="swfversion" value="6.0.65.0" />
               <param name="expressinstall" value="../../Scripts/expressInstall.swf" />
               <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
               <div>
                 <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                 <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
               </div>
               <!--[if !IE]>-->
             </object>
             <!--<![endif]-->
           </object>
         </p>
       <!-- InstanceEndEditable --></div>
        <div id="right"><!-- InstanceBeginEditable name="right" -->
          <p> </p>
          <script type="text/javascript">
    swfobject.registerObject("FlashID");
          </script>
        <!-- InstanceEndEditable --></div></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="30" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../diseases/overview_diseases.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r5_c1','','../../Templates/tempanimation/temp_an imation_r5_c1_f2.gif','tempanimation_r5_c1','','../../Templates/tempanimation/tempanimatio n_r5_c1_f2.gif',1)"><img name="tempanimation_r5_c1" src="../../Templates/tempanimation/tempanimation_r5_c1.gif" width="167" height="33" border="0" id="tempanimation_r5_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="33" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../refdoc/overview_refdoc.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r6_c1','','../../Templates/tempanimation/temp_an imation_r6_c1_f2.gif','tempanimation_r6_c1','','../../Templates/tempanimation/tempanimatio n_r6_c1_f2.gif',1)"><img name="tempanimation_r6_c1" src="../../Templates/tempanimation/tempanimation_r6_c1.gif" width="167" height="32" border="0" id="tempanimation_r6_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="32" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../ourdocs/alldocs.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r7_c1','','../../Templates/tempanimation/temp_an imation_r7_c1_f2.gif','tempanimation_r7_c1','','../../Templates/tempanimation/tempanimatio n_r7_c1_f2.gif',1)"><img name="tempanimation_r7_c1" src="../../Templates/tempanimation/tempanimation_r7_c1.gif" width="167" height="31" border="0" id="tempanimation_r7_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="31" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../ouroffices/alloffices.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r8_c1','','../../Templates/tempanimation/temp_an imation_r8_c1_f2.gif','tempanimation_r8_c1','','../../Templates/tempanimation/tempanimatio n_r8_c1_f2.gif',1)"><img name="tempanimation_r8_c1" src="../../Templates/tempanimation/tempanimation_r8_c1.gif" width="167" height="31" border="0" id="tempanimation_r8_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="31" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../contactus/contacthome.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r9_c1','','../../Templates/tempanimation/temp_an imation_r9_c1_f2.gif','tempanimation_r9_c1','','../../Templates/tempanimation/tempanimatio n_r9_c1_f2.gif',1)"><img name="tempanimation_r9_c1" src="../../Templates/tempanimation/tempanimation_r9_c1.gif" width="167" height="32" border="0" id="tempanimation_r9_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="32" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><img name="tempanimation_r10_c1" src="../../Templates/tempanimation/tempanimation_r10_c1.gif" width="167" height="13" border="0" id="tempanimation_r10_c1" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="13" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><a href="../../lowvision/lowvisionhome.html" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('tempanimation_r11_c1','','../../Templates/tempanimation/temp_a nimation_r11_c1_f2.gif','tempanimation_r11_c1','','../../Templates/tempanimation/tempanima tion_r11_c1_f2.gif',1)"><img name="tempanimation_r11_c1" src="../../Templates/tempanimation/tempanimation_r11_c1.gif" width="167" height="102" border="0" id="tempanimation_r11_c1" alt="" /></a></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="102" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><img name="tempanimation_r12_c1" src="../../Templates/tempanimation/tempanimation_r12_c1.gif" width="167" height="503" border="0" id="tempanimation_r12_c1" alt="" /></td>
       <td><img src="../../Templates/tempanimation/spacer.gif" width="1" height="503" border="0" alt="" /></td>
      </tr>
    </table>
    </body>
    <!-- InstanceEnd --></html>

    It's not 100% clear from your post, but you should be aware that CS5 plugins should not work in CS5.5. Because of a CS5.5 bug, CS5 plugins will load in InDesign 7.5.0, but that is fixed in 7.5.1 so they will not load.
    You should lean a bit harder on Virginia Systems. They should be able to tell you how to get them the stack trace from the crash which they should be able to look at and tell you which plugin (if any) is responsible for the crash. I could do it for Mac OS X but I don't know how under Windows. You could start by looking at the Event Viewer, though. That may have some helpful information about the crashes and the faulting module.

  • What to do when your program doesn't work.

    A huge number of posts here seem to relate to code that has been written (one presumes by the poster), but which doesn't work.
    I get the impression that people don't know what to do next.
    It's really not that difficult. When you're writing your program you constantly have in mind what you expect will happen as a result of each bit of code that you put.
    If at the end of the day, the program as a whole doesn't behave as you expected, then somewhere in there there must be a point at which the program starts doing something that doesn't correspond to what you anticipated. So, you add some System.err.println statements to test your beliefs.
    Consider this program that tests whether a number is prime.
    public class Test
        public static void main(String args[])
            // Get the number to test.
            int number = Integer.parseInt(args[0]);
            // Try each possible factor.
            int factor;
            for(factor = 2; factor < number; factor++)
                // See whether it is really a factor.
                if(number / factor == 0)
                    break;
            if(factor == number)
                System.out.println("Number is not prime.");
            else
                System.out.println("Number is prime.");
    }Straight forward enough, but it doesn't actually work :( It seems to say that every number is not prime. (Actually, not quite true, but I didn't test it that carefully, since it didn't work).
    Now, I could scrutinise it for errors, and then, having failed to find the problem, I could post it here. But let's suppose I'm too proud for that.
    What might be going wrong. Well, how sure am I that I'm even managing to capture the number of interest, number. Let's put in a System.err.println() to test that.
    Is the program in fact trying the factors I expect? Put in System.err.println() for that.
    Is the program correctly determining whether a number is a factor? Need another System.err.prinln (or two) for that.
    public class Test
        public static void main(String args[])
            // Get the number to test.
            int number = Integer.parseInt(args[0]);
            System.err.println("Number to check is " + number);
            // Try each possible factor.
            int factor;
            for(factor = 2; factor < number; factor++)
                System.err.println("Trying factor " + factor);
                // See whether it is really a factor.
                if(number / factor == 0)
                    System.err.println(factor + " is a factor.");
                    break;
                System.err.println(factor + " is not a factor.");
            if(factor == number)
                System.out.println("Number is not prime.");
            else
                System.out.println("Number is prime.");
    }Let's try with on the number 6.
    The output is:
    Number to check is 6
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is not a factor.
    Trying factor 4
    4 is not a factor.
    Trying factor 5
    5 is not a factor.
    Number is not prime.
    Whoah! That's not right. Clearly, the problem is that it's not correctly deciding whether a number is a factor. Well, we know exactly where that test is done. It's this statement:
                if(number / factor == 0)Hmm.... let's try 6 / 3, 'cos 3 is a factor.
    6 / 3 = 2.
    But that's not zero. What the.... Oh - I see, it should have been number % factor.
    Ok - let's fix that, and run it again.
    Now the output is:
    Number to check is 6
    Trying factor 2
    2 is a factor.
    Number is prime.
    Not the right answer, but at least it's now figured out that 2 is a factor of 6. Let's try a different number.
    Number to check is 9
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is a factor.
    Number is prime.
    Again, got the right factor, but still the wrong answer. Let's try a prime:
    Number to check is 7
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is not a factor.
    Trying factor 4
    4 is not a factor.
    Trying factor 5
    5 is not a factor.
    Trying factor 6
    6 is not a factor.
    Number is not prime.
    Aagh! Obvious - the final test is the wrong way round. Just fix that, remove that System.err.println()s and we're done.
    Sylvia.

    Consider this program that tests whether a number is
    prime.
    [attempt to divide by each integer from 2 to n-1]At risk of lowering the signal to noise ratio, I
    should point out that the algorithm given is just
    about the worst possible.
    I know that the point was to illustrate debugging
    and not good prime test algorithms, and I disagree
    with the correspondent who thought the post was
    condescending.
    Anyway, the java libraries have good prime testing
    methods based on advanced number theory research that the
    non-specialist is unlikely to know. Looking at the java
    libraries first is always a good idea.
    Even with the naive approach, dramatic improvements
    are possible.
    First, only try putative divisors up to the square root
    of the number. For 999997 this is about 1000 times faster.
    Next only try dividing by prime numbers. This is about
    7 times faster again. The snag, of course, is to find the
    prime numbers up to 1000, so there might not be much
    advantage unless you already have such a list. The sieve
    of Erastosthenes could be used. This involves 31 passes
    through an array of 1000 booleans and might allow an
    improvement in speed at the expense of space.
    Sorry if I've added too much noise :-)

Maybe you are looking for