Coded animmation HELP PLEASE

I am having a hard time figuring out why the lines that are
crossing each other get jerky after you watch it for a little
while, and why there becomes a big space once the green lines
start. I think it has something to do with the lines not deleting
after they get to the end, so it is just taking up a lot of virtual
memory. Any help would be much appreciated. Here is the code I am
using and the link is to the .swf so you can see what I am talking
about. BEWARE, once you leave the .swf open too long it may freeze
up your internet browser.
i = 0;
{_x:193, _y:119});
function tweenBall() {
attachMovie("Line_mc", "Line"+i+"_mc",
this.getNextHighestDepth(), {_x:193, _y:119});
//trace("in function")
easeType = mx.transitions.easing.None.easeNone;
var begin = this["Line"+i+"_mc"]._x;
var end = 327;
var begin2 = this["Line"+i+"_mc"]._y;
var end2 = 270;
var time = 1.5;
var mc = this["Line"+i+"_mc"];
ballTween = new mx.transitions.Tween(mc, "_x", easeType,
begin, end, time, true);
ballTween2 = new mx.transitions.Tween(mc, "_y", easeType,
begin2, end2, time, true);
i++;
trace(i);
tweenBall();
function removeclip() {
for (j=0; j<i-1; j++) {
if (this["Line"+j+"_mc"]._x == 327) {
removeMovieClip("Line"+j+"_mc");
k = 0;
{_x:193, _y:119});
function tweenBall2() {
attachMovie("Line2_mc", "Line2"+k+"_mc",
this.getNextHighestDepth(), {_x:335, _y:277});
// trace("in function");
easeType = mx.transitions.easing.None.easeNone;
var begin1 = this["Line2"+k+"_mc"]._x;
var end1 = 200;
var begin3 = this["Line2"+k+"_mc"]._y;
var end3 = 132;
var time1 = 1.5;
var mc1 = this["Line2"+k+"_mc"];
ballTween1 = new mx.transitions.Tween(mc1, "_x", easeType,
begin1, end1, time1, true);
ballTween3 = new mx.transitions.Tween(mc1, "_y", easeType,
begin3, end3, time1, true);
k++;
//tweenBall2();
function removeclip1() {
for (l=0; l<k-1; l++) {
if (this["Line2"+l+"_mc"]._x == 200) {
removeMovieClip("Line2"+l+"_mc");
http://www.wisc-online.com/objects/code/code.fla

For the keychaing problem start with
Resetting your keychain in Mac OS X: http://support.apple.com/kb/ts1544
For other problems please be more specific.

Similar Messages

  • Is it possible to do conforence call by coding any help please

    Hi,
    can we convert incoming or out going call as a cofirence call by coding
    Thanks,
    Sandeep,

    means if i get a call, by selecting my app,call should go for few more people and make confirence  call with them

  • Problem capturing video . JMF help please!!

    I have heard  from somewhere that 'Captfoss' is mesiah in video-capturing problems.
    So if it is like that then please help me.
    Moreover 'T.B.M', I followed your style of coding so you please help me out.
    Thanks in advance.I have written this following code for capturing video file. I am not getting any errors, but when I click the start button it throws Exception.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.IOException;
    import javax.media.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import java.net.URL;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.media.ControllerListener;
    import javax.media.format.*;
    import javax.media.protocol.FileTypeDescriptor;
    import javax.media.protocol.DataSource;
    import javax.media.control.StreamWriterControl;
    public class CaptureAgain extends Frame implements ActionListener, ControllerListener
         Panel cPanel;
         Button startCapture;                         // AWT variables
         Button stopCapture;
         private Closer handler;                         // Adaptor object
         Format format[] = new Format[1];
         Vector deviceList = null;
         MediaLocator outputType = null;   // JMF variables
         Processor player = null;
         DataSink filewriter = null;
         Boolean realized;
         CaptureAgain()
              setVisible(true);
              setTitle("J-Solve Monitoring System");
              setSize(300,200);
              setLayout(new BorderLayout());
              cPanel = new Panel();
              startCapture = new Button("Start");
              stopCapture = new Button("Stop");
              startCapture.setEnabled(false);     //Start button is disabled till it gets realized
              startCapture.addActionListener(this);
              stopCapture.addActionListener(this);
              cPanel.add(startCapture);
              cPanel.add(stopCapture);
              add("South",cPanel);
              handler = new Closer();
              addWindowListener(handler);
              deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
              //format[0] = new VideoFormat(VideoFormat.YUV);
              outputType =((CaptureDeviceInfo)deviceList.firstElement()).getLocator();
              try
                   player = Manager.createProcessor(outputType);
                   System.out.println("Processor created");
                   //System.exit(0);
              catch (IOException e)
                   System.err.println("IO exception caught" +e);
              catch (NoProcessorException e)
                   System.err.println("NoProcessor exception caught" +e);
              player.addControllerListener(this);
              player.configure();
              try
                   Thread.sleep(500);
              catch(InterruptedException e)
                   System.err.println("Interrupted Exception caught :"+e);
              player.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO));
              //outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              player.realize();
              System.out.println("Player realizing");
              try
                   Thread.sleep(1000);
              catch(InterruptedException e)
                   System.err.println("Interrupted Exception caught :"+e);
         public synchronized void controllerUpdate(ControllerEvent event)
                   //validate();
                   try
                        if (event instanceof RealizeCompleteEvent)
                             Component comp;
                             try
                                  filewriter = Manager.createDataSink(player.getDataOutput(),new MediaLocator("file:/e:/Captured.avi") );
                             catch (NoDataSinkException e)
                                  System.err.println("No data sink exception caught" +e);
                             catch (SecurityException e)
                                  System.err.println("Security exception caught" +e);
                             System.out.println("Realized");
                             startCapture.setEnabled(true);
                             if ((comp = player.getVisualComponent()) != null)
                                  add (BorderLayout.CENTER, comp);
                             else
                                  System.out.println("No visual component");
                             if ((comp = player.getControlPanelComponent()) != null)
                                  add (BorderLayout.NORTH, comp);
                             validate();
                             System.out.println("Updated");
                   catch(Exception e)
                        System.out.println("Exception rasied "+e);
         public void actionPerformed(ActionEvent ae)
              String command = ae.getActionCommand();
                   if(command.equals("Start"));
                        try
                             filewriter.open();
                             System.out.println("Data Sink opened");
                             filewriter.start();
                             System.out.println("Data Sink started");
                        catch (IOException e)
                             System.err.println("IO exception caught" +e);
                        player.start();
                        System.out.println("Processor started");
                        // Starting processor
                   //     g.drawString("Started",10,10);
                   if(command.equals("Stop"));
                        player.stop();
                        player.close();
                        System.out.println("Processor stopped");
                        try
                             wait(100);
                        catch(InterruptedException e)
                             System.err.println("Interrupted exception caught :"+e);
                        // Closing DataSink
                        try
                             filewriter.stop();
                        catch(IOException e)
                             System.err.println("IO exception caught "+e);
                        filewriter.close();     
                        System.out.println("Data Sink CLosed");
              //     g.drawString("Stopped",10,10);
         public static void main(String args[])
              CaptureAgain ca = new CaptureAgain();
              Image icon = Toolkit.getDefaultToolkit().getImage("logo.jpg");
              ca.setIconImage(icon);
              ca.setVisible(true);
    class Closer extends WindowAdapter
         public void windowClosing(WindowEvent we)
              System.exit(0);
    }And When I run it works.
    But as soon as I click Start it shows following
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.sun.media.multiplexer.video.AVIMux.writeFooter(AVIMux.java:827)
        at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
        at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
        at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
        at com.sun.media.BasicController.close(BasicController.java:261)
        at CaptureAgain.actionPerformed(CaptureAgain.java:182)
        at java.awt.Button.processActionEvent(Button.java:392)
        at java.awt.Button.processEvent(Button.java:360)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Acoording to the program during execution(runtime) I am able to get this things up till start button is clicked.
    Processor created
    Player realizing
    Realized
    No visual component
    Updated
    Data Sink opened
    Data Sink started
    Processor startedWhich means I am able to even start the Processor, then how come it is showing this error.

    Now I changed my code to following
    import java.awt.*;
    import java.net.*;
    import javax.media.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import javax.media.control.*;
    import java.util.*;
    public class CaptureAgain extends Frame implements ActionListener, ControllerListener
         Panel cPanel;
         Button startCapture;                         // AWT variables
         Button stopCapture;
         private Closer handler;                         // Adaptor object
         Processor player=null;
         MediaLocator outputType;
         Vector deviceList ;
         DataSink filewriter ;
         Boolean realized;
         CaptureAgain()
              setVisible(true);
              setTitle("J-Solve Monitoring System");
              setSize(300,200);
              setLayout(new BorderLayout());
              cPanel = new Panel();
              startCapture = new Button("Start");
              stopCapture = new Button("Stop");
              startCapture.setEnabled(false);     //Start button is disabled till it gets realized
              startCapture.addActionListener(this);
              stopCapture.addActionListener(this);
              cPanel.add(startCapture);
              cPanel.add(stopCapture);
              add("South",cPanel);
              handler = new Closer();
              addWindowListener(handler);
              try
                   deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
                   //format[0] = new VideoFormat(VideoFormat.YUV);
                   outputType =((CaptureDeviceInfo)deviceList.firstElement()).getLocator();
                   player = Manager.createProcessor(outputType);
                   System.out.println("Processor created");
                   player.addControllerListener(this);
                   player.configure();
                   Thread.sleep(500);
                   player.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO));
                   //outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
                   player.realize();
                   System.out.println("Player realizing");
                   Thread.sleep(1000);
              catch(Exception e)
                   System.err.println("Exception caught :"+e);
         public synchronized void controllerUpdate(ControllerEvent event)
                   //validate();
                   try
                        if (event instanceof RealizeCompleteEvent)
                             Component comp;
                             System.out.println("Realized");
                             filewriter = Manager.createDataSink(player.getDataOutput(), new MediaLocator("file:/e:/Captured.avi"));
                             startCapture.setEnabled(true);
                             if ((comp = player.getVisualComponent()) != null)
                                  add (BorderLayout.CENTER, comp);
                             else
                                  System.out.println("No visual component");
                             if ((comp = player.getControlPanelComponent()) != null)
                                  add (BorderLayout.NORTH, comp);
                             validate();
                             System.out.println("Updated");
                   catch(Exception e)
                        System.out.println("Exception rasied "+e);
         public void actionPerformed(ActionEvent ae)
              try
                   String command = ae.getActionCommand();
                   if(command.equals("Start"));
                        filewriter.open();
                        System.out.println("Data Sink opened");
                        filewriter.start();
                        System.out.println("Data Sink started" + filewriter);
                        player.start();
                        System.out.println("Processor started" + player);
                        // Starting processor
                   //     g.drawString("Started",10,10);
                   if(command.equals("Stop"));
                        player.stop();
                        player.close();
                        // Closing DataSink
                        filewriter.stop();
                        filewriter.close();     
                        System.out.println("Data Sink CLosed");
                   //     g.drawString("Stopped",10,10);
              catch(Exception e)
                   System.out.println("Exception : "+e);
         public static void main(String args[])
              CaptureAgain ca = new CaptureAgain();
              Image icon = Toolkit.getDefaultToolkit().getImage("logo.jpg");
              ca.setIconImage(icon);
              //ca.setVisible(true);
    class Closer extends WindowAdapter
         public void windowClosing(WindowEvent we)
              System.exit(0);
    }OK .
    now I am not getting previous errors.
    But now I am getting null pointer exception on clicking the Start button.
    Even the file is created.(56 kb)
    On your advice I displayed the player and filewriter and got following things
    (after clicking start and same even when created in the constructor)
    Data Sink started com.sun.media.datasink.file.Handler@1fdc96c
    Processor started com.sun.media.processor.unknown.Handler@186d4c1If you find something please let me know.
    Thanks in advance.
    This shows that processor is having some problem and cant render. While file is created and the println statement shows Data sink object is working fine.

  • Help please! Going mad with CSS in JEditorPane

    Hi gurus,
    For more then two days now i am trying to get css working with html in my jeditorpane.
    This is the stylesheet:
    .toc1
    font-size:12.0pt;
    font-family:Arial;
    font-weight:bold;
    margin-bottom: 0px;
    .toc2
    font-size:11.0pt;
    font-family:"Times New Roman";
    margin-left: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
    .plannerhyperlink
    color:green;
    text-decoration:italic;
    SIMPLE isn't it?
    In my JEditorPane constructor I do this
    StyleSheet styleSheet = new StyleSheet();
    //StyleSheet styleSheet = kit.getStyleSheet();
    FileReader reader = new FileReader("/programs/eclipse/workspace/Planner/src/nl/renepetersconsultancy/planner/gui/HTMLHelp/test.css");
    styleSheet.loadRules(reader, new URL("file:/programs/eclipse/workspace/Planner/src/nl/renepetersconsultancy/planner/gui/HTMLHelp/test.css"));
    kit.setStyleSheet(styleSheet);
    setEditorKit(kit);
    setPage(url);
    I know that the rules are loaded: I printed them to check that. But nothing happens!!!! Almost all layout is gone. If I use the original stylesheet and load my rules on top of them, I can see I have all of them, but everything is layout with the original default style and again my layout is ignored.
    HELP Please, anyone. I am desperate (deadline + demo is tomorrow) :-(
    Rene'

    GL is far easier to do simple CSS than DW, but once you get through the awkward DW interface, it can become clearer. I can only easily see how CSS is created in DW by exporting a GL site that has some already in it. Still not as easy as GL, but we're now stuck with it.
    DW still does not handle full fledged CSS unless you have coding experience.
    DW has always been more for the programmer than designer (just try asking a question on the DW forum :-)
    CS4 seems to be an improvement, but not there yet.

  • I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    There are no updates to either OS 10.5.8 or Safari 5.0.6.
    If you need a later version of Safari you must first upgrade your operating system to a later version of OS X.

  • At the end of my IMovie I want to write some text: as in" Happy Birthday Mandy we had a great time with you. etc..  How do I go about this? Which icon in IMovie lets me have a place to write text?? help please

    Please see my ? above: Im making an IMovie and need the last frame to just be text (can be on a color). I don't know how to go about doing this.  Ive already done all my photos and captions. Need to have it ready for TOMORROW: Friday May 23rd. Help please!
    Thanks

    You can choose a background for the text from Maps and Backgrounds.  Just drag a background to the end of the timeline, adjust to desired duration then drag title above it.
    Geoff.

  • I have just updated my PC with version11.14. I can no longer connect to my Bose 30 soundtouch via media player Can anyone help please

    I have a Bose soundtouch system .Until today I could play my iTunes music through it via air  player . .I have just uploaded the latest upgrade from iTunes and now I am unable to connect to the Bose system . Can anyone help please? I can connect via my iPad and by using the Bose app so it is not the Bose at fault

    @puebloryan, I realize this thread is a bit old, but I have encountered a similr problem and wondered if you had found a solution. I've been using home sharing from itines on my PCs for years, but two days ago, it suddenly stopped. I can share from my Macs, but not from the ONE PC library where I keep all my tunes. I tried all the usual trouble-shooting measures.
    After turning home sharing off on the PC's iTunes, turning it back on and turning some other settings off and on, my Macs and Apple TV could briefly "see" the PC library, but as soon as I try to connect -- the wheel spins for a bit and then the connection vanishes. It's as if they try and then give up.
    Since this sounds so similar to your problem, I was hoping you finally found a solution. I am also starting a new thread. Thanks!

  • My iMac 24 can no longer be paired with the keyboard; it doesn't recognise any keyboard at boot up, even the one it is paired with. Can anyone help, please?

    My iMac 24 can no longer be paired with the keyboard; it doesn't recognise any keyboard at boot up, even the one it is paired with. Can anyone help, please?
    Thank. Simon

    Brian - The batteries are fine and there has only every been one keyboard paired with it. We have tried my MacPro keyboard as well, and it will not even recognise that there is a discoverable keyboard nearby.
    Thanks, Simon

  • Photoshop Elements 6 on Mac help please !!!!!

    Hi there,
              I need help please !!!!!
    I have PSE 6 for my imac and bought myself a NIKON D60 so far so good. I have installed PSE 6 which comes with ADOBE Bridge CS3
    I have bought a book as well as I am new to photoshop and in fact DSLR cameras.
    I have got my photos into Bridge OK by the way they are JPEG format. According to the book I can open the JPEG in camera RAW by either selecting the JPEG and then pressing cmd+R or by selecting the JPEG and select open with and camera RAW should be available to selct.
    I cannot get of the options to work any ideas please
    Secondly I have taken some photos in RAW format and put then into Bridge again I cannot get the camera RAW interface to open with these neff images.
    If I try to open the image PSE 6 opens and gives me an error that the file format is not supported by PSE 6
    Am I missing something here as I have been trying for a week now !!!!!
    Sorry if this comes across a stupid question but it is new to me
    Chris      UK

    There's no "theory" about it. You should be able to open a raw file from bridge by double-clicking it, but it will open in ACR in PSE. You can't just use ACR within bridge in PSE, if that's what you're trying to do. To open a JPEG in ACR, go to file>Open in PSE and choose Camera raw as the format after you select the file but before you click Open.
    If you've correctly updated ACR, bridge should show you thumbnails of your raw files. If it doesn't try emptying the Bridge cache.

  • Photoshop CS2. Help please.

    Approx 8 years ago I purchased Photoshop CS2 online from Adobe. This past weekend I had to buy a new computer (Windows 8.1), and when I logged into my Adobe account just now to obtain my serial number and enter it after I attempted to download CS2, it said invalid serial number. Help please.
    Both tech support and the online chat person were not able to help me.

    The Activation Servers for CS2 and prior have been taken down. See the link below for an explanation and solution. Be sure to follow all directions, including using the new download serial number supplied on the page.
    CS2 and prior
    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l
    --OB

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • Creative live cam voice help please

    Help please,
    We are using the "live cam voice" model, with our computer (Vista 32bit), that appears to work OK, but after a few minutes we get the BSOD! We have tried un installing and re-installing drivers without any effect.Has anyone had this problem and if so how did you fix it.
    Regards,
    Arthur

    Thanks for your response. I have tried 3 ports so far, all with the same outcome. One of my sons had it happen to him on another computer (XP SP2) using this webcam . As to programmes open at the same time, I am not computer literate and have no idea what programmes were running on each occasion.We use the webcam for Skype and apart from that I may also have IE open and perhaps Outlook Express. Over and above those CS4 sometimes.
    If I cannot resolve this, can any one suggest another webcam please.
    Regards,
    Arthur

  • I get error message "unknown error" When trying to log on to itunes via pc, help please!

    I get error message "unknown error" When trying to log on to itunes via pc, help please!

    Hello, trolle56.
    Thank you for the question.  You may find these articles helpful in troubleshooting the error received with the iTunes Store. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/ts3297
    Cheers,
    Jason H. 

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Will My Purchased Songs On My iPod Be affected if i sync my itunes library to my iPod?Help Please!

    A Song that i purchased on my iPod Wasnt able to get into my itunes library somehow ,and i want to sync my itunes library to my iPod because i recently Got a store brought CD and i want to insert it ,but im afraid my songs will get deleted ,especially my purchased ones...can someone help please ?

    Just sync. You can alway redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for