Recreating a program interface with the drawing API?

Hey there all!
I've been out of the developing arena for awhile, so please
bear with me.
I'm currently doing a road trainer gig, and it would help me
out tremendously to have a Flash version of the software I'm
providing training on. Can someone point me in the right direction
to find the ActionScript for drawing a specific programs interface?
I'm going to be needing databaseing info too, but that's
another question :-) .
Thanx in advance!
TeeCee

i don't know why you would draw an interface, but the flash
drawing api can be found under the movieclip methods: lineStyle,
moveTo, lineTo, curveTo, beginFill etc.

Similar Messages

  • Interface with device driver (API or DLL files)

    I want to make my C++ program interface with an instrument which has a device driver available at the OEM's website. It's a DLL file (not a .cpp file), but I don't know how to call DLL file from C++. I am using Measurement Studio for Visual C++ and Microsoft Visual C++ compiler. Do you have a C++ example code or tutorial about calling DLL (or API) from C++ ?

    Irene,
    Measurement Studio is simply a plug-in for Visual Studio C++. Calling a DLL is general to C/C++. It usually amounts to #including the .h file that comes with the library, like this:
    #include "MyDLL.h"
    I found the following website through Google, which is pretty thorough on calling DLLs:
    http://www.codeproject.com/dll/XDllPt1.asp
    I hope that helps.
    Matt P.
    NI

  • Can I create a cert with the Java API only?

    I'm building a client/server app that will use SSL and client certs for authenticating the client to the server. I'd like for each user to be able to create a keypair and an associated self-signed cert that they can provide to the server through some other means, to be included in the server's trust store.
    I know how to generate a key pair with an associated self-signed cert via keytool, but I'd prefer to do it directly with the Java APIs. From looking at the Javadocs, I can see how to generate a keypair and how to generate a cert object using an encoded representation of the cert ( e.g. java.security.cert.CertificateFactory.generateCertififcate() ).
    But how can I create this encoded representation of the certificate that I need to provide to generateCertificate()? I could do it with keytool and export the cert to a file, but is there no Java API that can accomplish the same thing?
    I want to avoid having the user use keytool. Perhaps I can execute the appropriate keytool command from the java code, using Runtime.exec(), but again a pure java API approach would be better. Is there a way to do this all with Java? If not, is executing keytool via Runtime.exec() the best approach?

    There is no solution available with the JDK. It's rather deficient wrt certificate management, as java.security.cert.CertificateFactory is a factory that only deals in re-treads. That is, it doesn't really create certs. Rather it converts a DER encoded byte stream into a Java Certificate object.
    I found two ways to create a certificate from scratch. The first one is an all Java implementation of what keytool does. The second is to use Runtime.exec(), which you don't want to do.
    1. Use BouncyCastle, a free open source cryptography library that you can find here: http://www.bouncycastle.org/ There are examples in the documentation that show you how to do just about anything you want to do. I chose not to use it, because my need was satisfied with a lighter approach, and I didn't want to add a dependency unnecessarily. Also Bouncy Castle requires you to use a distinct version with each version of the JDK. So if I wanted my app to work with JDK 1.4 or later, I would have to actually create three different versions, each bundled with the version of BouncyCastle that matches the version of the target JDK.
    2. I created my cert by using Runtime.exec() to invoke the keytool program, which you say you don't want to do. This seemed like a hack to me, so I tried to avoid it; but actually I think it was the better choice for me, and I've been happy with how it works. It may have some backward compatibility issues. I tested it on Windows XP and Mac 10.4.9 with JDK 1.6. Some keytool arguments changed with JDK versions, but I think they maintained backward compatibility. I haven't checked it, and I don't know if I'm using the later or earlier version of the keytool arguments.
    Here's my code.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.KeyStore;
    import java.security.KeyStoreException;
    import java.security.NoSuchAlgorithmException;
    import java.security.cert.CertificateException;
    import javax.security.auth.x500.X500Principal;
    import javax.swing.JOptionPane;
    public class CreateCertDemo {
         private static void createKey() throws IOException,
          KeyStoreException, NoSuchAlgorithmException, CertificateException{
         X500Principal principal;
         String storeName = ".keystore";
         String alias = "keyAlias";
         principal = PrincipalInfo.getInstance().getPrincipal();
         String validity = "10000";
         String[] cmd = new String[]{ "keytool", "-genKey", "-alias", alias, "-keyalg", "RSA",
            "-sigalg", "SHA256WithRSA", "-dname", principal.getName(), "-validity",
            validity, "-keypass", "keyPassword", "-keystore",
            storeName, "-storepass", "storePassword"};
         int result = doExecCommand(cmd);
         if (result != 0){
              String msg = "An error occured while trying to generate\n" +
                                  "the private key. The error code returned by\n" +
                                  "the keytool command was " + result + ".";
              JOptionPane.showMessageDialog(null, msg, "Key Generation Error", JOptionPane.WARNING_MESSAGE);
         KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
         ks.load(new FileInputStream(storeName), "storePassword".toCharArray());
            //return ks from the method if needed
    public static int doExecCommand(String[] cmd) throws IOException{
              Runtime r = Runtime.getRuntime();
              Process p = null;
              p = r.exec(cmd);
              FileOutputStream outFos = null;
              FileOutputStream errFos = null;
              File out = new File("keytool_exe.out");
              out.createNewFile();
              File err = new File("keytool_exe.err");
              err.createNewFile();
              outFos = new FileOutputStream(out);
              errFos = new FileOutputStream(err);
              StreamSink outSink = new StreamSink(p.getInputStream(),"Output", outFos );
              StreamSink errSink = new StreamSink(p.getErrorStream(),"Error", errFos );
              outSink.start();
              errSink.start();
              int exitVal = 0;;
              try {
                   exitVal = p.waitFor();
              } catch (InterruptedException e) {
                   return -100;
              System.out.println (exitVal==0 ?  "certificate created" :
                   "A problem occured during certificate creation");
              outFos.flush();
              outFos.close();
              errFos.flush();
              errFos.close();
              out.delete();
              err.delete();
              return exitVal;
         public static void main (String[] args) throws
              KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException{
              createKey();
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    //Adapted from Mike Daconta's StreamGobbler at
    //http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
    public class StreamSink extends Thread
        InputStream is;
        String type;
        OutputStream os;
        public StreamSink(InputStream is, String type)
            this(is, type, null);
        public StreamSink(InputStream is, String type, OutputStream redirect)
            this.is = is;
            this.type = type;
            this.os = redirect;
        public void run()
            try
                PrintWriter pw = null;
                if (os != null)
                    pw = new PrintWriter(os);
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    if (pw != null)
                        pw.println(line);
                    System.out.println(type + ">" + line);   
                if (pw != null)
                    pw.flush();
            } catch (IOException ioe)
                ioe.printStackTrace(); 
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.security.auth.x500.X500Principal;
    public class PrincipalInfo {
         private static String defInfoString = "CN=Name, O=Organization";
         //make it a singleton.
         private static class PrincipalInfoHolder{
              private static PrincipalInfo instance = new PrincipalInfo();
         public static PrincipalInfo getInstance(){
              return PrincipalInfoHolder.instance;
         private PrincipalInfo(){
         public X500Principal getPrincipal(){
              String fileName = "principal.der";
              File file = new File(fileName);
              if (file.exists()){
                   try {
                        return new X500Principal(new FileInputStream(file));
                   } catch (FileNotFoundException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        return null;
              }else{
                   return new X500Principal(defInfoString);
         public void savePrincipal(X500Principal p) throws IOException{
              FileOutputStream fos = new FileOutputStream("principal.der");
              fos.write(p.getEncoded());
              fos.close();
    }Message was edited by:
    MidnightJava
    Message was edited by:
    MidnightJava

  • I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program not installed or can be damaged".

    I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program is not installed or can be damaged". Then aborts the installation.
    It`s right, the program is not istalld, it is  what i`m trying to do. And there is no problem whit the DVD. Any suggestions?

    "Error 1303: Installer has insufficient privileges" or "Error 1304: Error writing to file" | Install | CS3, CS4, CS5 pro…
    this link FIXED MY PROBLEM! i did the steps to the programdata\adobe folder and it installed FINE!

  • Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud? I find iCal to be poorly designed and not very efficient.

    Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud so it works on the iPhone and the Macbook? I find iCal to be poorly designed and not very efficient. I waste a lot of time entering information because you can't go to a specific day and enter information, nor can you navigate between months and add information on a specific date by clicking on the date. You can't easily scroll month-to-month and once you do by scrolling through nine months to get to where you want to be, you cannot enter information by clicking on a specific day in the month and entering information. I just called Apple and they verified that this is the way it works. You cannot go to a date and enter information, you keep getting thrown back to today and then you have to go into the calendar and change it manually on the screen. It is just not efficient.

    APC, CyberPower are reliable.
    Look for 1500VA. As example:
    APC
    http://www.amazon.co.uk/APC-Back-UPS-Pro-1500-Connector/dp/B0041MP81Y/
    Cyperpower:
    http://www.amazon.co.uk/Dell-CyberPower-Intelligent-LCD-1500VA/dp/B005DL5L50/

  • Create a Navigational Hierarchy for filtering with the Table API

    Hello,
    I've built a WAD report acourding to the how to document: "Create a Navigational Hierarchy for filtering with the Table API".
    It works great but i dont know How to make the hirarchey to show the key and the text.
    Please Advice.
    David

    Hi Kenneth,
    please have a look in the source of the executed Web Application. What is inside of the <div> with the id filter?
    You should also find a td tag with id hier_xyz with xyz the filter inside of the <div>-Tag with id filter.
    Also check whether you have a javascript error.
    Have a look on the Javascript function set_style. Perhaps you can paste it here, than I can have a look.
    Heike

  • Program associated with the creation of a virtual instrument of Lab View. Please help me

    I have a question with program associated with the creation of a virtual instrument of Lab View. 1.Create of virtual instrument based on the NI 9401 module fitted to the chassis NI Compaq DAQ (Ni-cDAQ-9172). Creating a virtual tool needed to implement the following counting impulses in impulse series, visualization of data through a digital indicator, comparing the number of impusite with pre-set value, that value can be assigned by the user. Indicator light when reaching in reaching the set number of pulses, the opportunity to reset the meter of a button on the front panel. Switch to digital output in reaching the set number. I hope someone can help me.
    Solved!
    Go to Solution.

    What is your question? You've described what the program is supposed to do, but it's not clear what you're asking about. Do you need help getting started? If so, have you gone through the LabVIEW tutorials? You and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free. Have you looked through the many examples that ship with LabVIEW for data acquisition?

  • I need to open programs made with the old Appleworks v6. Is there a program i can obtain to open them?

    I need to open programs made with the old Appleworks v6. Is there a program i can obtain to open them?

    Hello Ian Shaw,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    AppleWorks: Document Recovery Techniques
    http://support.apple.com/kb/TA22029?viewlocale=en_US
    Best of luck,
    Mario

  • Have a question to ask ... I bought, at the time, the update of Adobe Audition CS6, being already in possession of the CS5.5 version. Since I had to redo the operating system (windows 7 professional 64-bit), reistallando program CS6, with the correspondi

    have a question to ask ... I bought, at the time, the update of Adobe Audition CS6, being already in possession of the CS5.5 version. Since I had to redo the operating system (windows 7 professional 64-bit), reistallando program CS6, with the corresponding serial number in my possession, I noticed a malfunction that is:
    importing a musical motif and starting the program, clicking on play, I do not play any pattern or song despite being in operation.
    I reinstalled the program, but without any result. What do I do? Thanks.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • How to view what are all programs maped with the event....

    I am new to this events concept - could you please say
    in SM64 we can give Event....
    <b>How to view what are all programs maped with the event..</b>
    Thanks in advance.

    Hi Sam,
    See these links:
    How-to trigger a process chain using ABAP?
    Re: scheduling process chain 3 specific times a day
    NOTE: If you want to trigger the process chain from R/3, there are many examples in this forum. However, since the search function is not working now, I suggest you look at OSS Note 135637. This will show you how to do it also.
    Hope this helps.
    concerning to sm64 ..
    Triggering events manually ...
    Events let you start background jobs when particular changes in the R/3 System take place. When an event occurs, the background processing system starts all jobs that were scheduled to wait for that event.
    example : JOB_OPEN to create a background job..
    When scheduling a background job, you can specify it to start "after event".
    If you do so, you'll have to create an event in SM62.
    If a job is scheduled after event event and you trigger the event with SM64, the job will start.
    Events can be raised by external systems in SAP by sending a command to a SAP application server. You can also raise event in any program using function mosule BP_EVENT_RAISE.
    Reward if helpful.
    Regards,
    Harini.S

  • Does Adobe have a Home Use Program agreement with the U.S. Air Force so I can convert files from home?

    Does Adobe have a Home Use Program agreement with the U.S. Air Force so I can convert files from home?

    This may be helpful: Spanish PDF to Word in English

  • [svn:osmf:] 13228: Updating ExamplePlayer to work with the latest API changes.

    Revision: 13228
    Revision: 13228
    Author:   [email protected]
    Date:     2009-12-30 04:33:34 -0800 (Wed, 30 Dec 2009)
    Log Message:
    Updating ExamplePlayer to work with the latest API changes.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/chromeless/ChromelessPl ayerElement.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextElement.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/traceproxy/TraceListene rProxyElement.as
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextDisplayObjectT rait.as
    Removed Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextViewTrait.as

    Revision: 13228
    Revision: 13228
    Author:   [email protected]
    Date:     2009-12-30 04:33:34 -0800 (Wed, 30 Dec 2009)
    Log Message:
    Updating ExamplePlayer to work with the latest API changes.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/chromeless/ChromelessPl ayerElement.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextElement.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/traceproxy/TraceListene rProxyElement.as
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextDisplayObjectT rait.as
    Removed Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/text/TextViewTrait.as

  • [SOLVED] no interfaces with the new iproute2

    I get no interfaces with the 'ip a' command except for the 'lo' interface when I upgraded to iproute2-3.5.1-1. Anyone know a workaround?
    Last edited by mikkie (2012-08-21 20:05:30)

    That only lists interfaces that are currently up.  Are you connected through eth0 or wlan0 when you run that command?
    I'm not sure if it's the "right" way, but `ip maddress` shows all my interfaces, while `ip address` shows only those that are currently connected.
    edit: `ip link` is probably the right command to list all interfaces. or `ip link show` according to the man page, but I believe the show is assumed in the shorter form - or even with just `ip l`.
    Last edited by Trilby (2012-08-21 19:50:16)

  • Formatted Search defined on an item added with the UI API

    Hello,
    I have added an Edit Text with the UI API on the Sales Orders form. It is visible and enable.
    I have linked a Formatted Search to this Edit Text.I have indicated to refresh the value on Supplier Name changed.
    I have linked the same formatted search to the Remarks field with the same conditions of launching.
    When I change the BP name, the formatted search on theremarks field is launched, but the formatted search on the Edit Text is not launched.
    Why the formatted search on the Edit Text is not launched when the condition for refresh is true?
    Thanks for your help.
    Best regards,

    Hi,
    This is a simple Edit Text which is not bound.
    I can launch manually the formatted search, but it is not launch automatically!
    It seems that SBO can't launch automatically FS on user forms and user items.
    I have tried to define a FS on the Fixed Asset master data form and you can only launch the Formatted search manually.

  • PB with the Scorm API

    Hi,
    I am facing a problem with the lms API in the standard scorm
    html file included in captivate 1.
    most of the scos I have created with Captivate 1 for one of
    my courses contain several animations.
    so I have modified the scorm.html template in order so that
    each animation is able to call a javascript which will replace the
    object tag. The javascript gives the name of the captivate movie
    that has to be loaded and displayed.
    the first movie runs well, and sends the usual api commands
    to the lms. at the end of the movie, a javascript is called, with
    the name of the next animation to be run.
    that works perfectly, but from that moment, the animations
    are not able to send api commands to the lms.
    of course, I intercept the LMSCommit and LMSFinish commands
    and the cmi.core.lesson_status is set to incomplete.
    but still the problem and I don't understand why.
    does anyone have a solution to solve this issue ?
    thanks for help
    oldJaypee

    Is there any debugging mode you can use in the LMS to see
    what's happening?
    Perhaps your second animation is re-initiating the
    LMS_initialize
    function, which could be throwing it off?
    Really hard to say if you can't see what's going on 'behind
    the scenes'.
    Erik
    oldJayPee wrote:
    > the first movie runs well, and sends the usual api
    commands to the lms. at the
    > end of the movie, a javascript is called, with the name
    of the next animation
    > to be run.
    > that works perfectly, but from that moment, the
    animations are not able to
    > send api commands to the lms.
    > of course, I intercept the LMSCommit and LMSFinish
    commands and the
    > cmi.core.lesson_status is set to incomplete.
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

Maybe you are looking for

  • Unable to Purchase: "APP" could not be purchased at this time. Please try again later.

    Everytime I've tried to purchase an app since downloading IOS 7 (don't get me started on the oh-so-many things that don't work with this new operating system, although this one really ticks me off) I can't download a single app from the app store. Th

  • Problem with a/c entries while GRN..

    Dear All, I have a different problem in GR/IR For example my PO no is 123 and qty are 2 kgs and value is 2 Rupees (i.e. - 1rupee per kg) Now i have removed GR based invoice verification and did the invoice posting first with wrong qty but correct val

  • Can't open Word or Excell attachments

    Hi,    I am suddenly unable to open any Word or exell attachments!   PDF's are all ok. I am using the latest Chrome brower   Windows 7  Offfice 10  64bit processor.  I have a bt.com email. The docs open ok in my iphone. when I try to open a Word atta

  • Low quality Graphics when using 3G net

    Hi. I set up my internet connection from my nokia using bluetooth, it has vadafone network. The problem is that all the graphics looks really low resolution. I asked vodafone if by any chance this is their fault but they told me it shouldnt be like t

  • Installing flash player on mac with safari 5.0.6

    I can not install flash player on My Mac with safari 5.0.6, after uninstalling the one I had before?