How Do I create a Modular Function for use with Event Listeners

OK I'm very new to AS3 and I'm curious as to how to get
modular functions to work in AS3.
for instance if I have this code:
function snowfall(snowflake:MovieClip, movement:Number):void
snowflake.y = movement;
snowfall(snowflake1_mc, 10);
snowfall(snowflake2_mc, 20);
snowfall(snowflake3_mc, 30);
Now on the stage I place 3 instances of a snowflake movie
clip. Each time I call the "snowfall" function I refer to a new
instance of the snowflake movie clip and a different amount of
movement along the y axis.
This is great but what if I want to use a button to control
these snowflake movie clips and I want to maintain that modular
nature? I don't really get how to do this. I created a button with
an instance name of "myButton" and I've tried this code but it is
throwing an error I don't really understand:
myButton.addEventListener(MouseEvent.CLICK,
snowfall(snowflake3_mc, 30));
Can I not pass information to a function using an
EventListener?

Hi --
What you want to do on your button is this..
myButton.addEventListener(MouseEvent.CLICK,snowfall)
Then in the function you can check which button called the
function using
properties of the event..
function snowfall(event:MouseEvent) {
trace(event)
I am not sure off the top of my head of the data available in
the "event"
but the trace will show you all the variables you can access.
As far as the amount of movement -- how is this information
set? You can
keep this in a global variable and then read it from inside
the event
handler rather than needing to pass it to the event.
Rich
"HalcyonCollective" <[email protected]>
wrote in message
news:fl695r$l95$[email protected]..
> OK I'm very new to AS3 and I'm curious as to how to get
modular functions
> to
> work in AS3.
>
> for instance if I have this code:
>
>
function snowfall(snowflake:MovieClip, movement:Number):void
> {
> snowflake.y = movement;
> }
>
> snowfall(snowflake1_mc, 10);
> snowfall(snowflake2_mc, 20);
> snowfall(snowflake3_mc, 30);
>
> Now on the stage I place 3 instances of a snowflake
movie clip. Each time
> I
> call the "snowfall" function I refer to a new instance
of the snowflake
> movie
> clip and a different amount of movement along the y
axis.
>
> This is great but what if I want to use a button to
control these
> snowflake
> movie clips and I want to maintain that modular nature?
I don't really get
> how
> to do this. I created a button with an instance name of
"myButton" and
> I've
> tried this code but it is throwing an error I don't
really understand:
>
>
myButton.addEventListener(MouseEvent.CLICK,
snowfall(snowflake3_mc,
> 30));
>
> Can I not pass information to a function using an
EventListener?
>

Similar Messages

  • How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some

    Hi
    As my topic says
    How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some custom presets?
    Assume you have Flash Builder 4.5, CS Extension builder 2.0, Xcode 4.5.1 running under MacOS 10.8.

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • [svn] 2569: Adding [HostComponent] metadata functionality for use with Gumbonent skins to provide a

    Revision: 2569
    Author: [email protected]
    Date: 2008-07-22 13:55:02 -0700 (Tue, 22 Jul 2008)
    Log Message:
    Adding [HostComponent] metadata functionality for use with Gumbonent skins to provide a
    strongly typed reference (hostComponent) back to the owning component, automagically.
    Reviewer: Paul (Compiler), Ryan (SDK)
    QA: Yes
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4/.actionScriptProperties
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ApplicationSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/CheckBoxSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ItemsComponentSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ListSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/PanelSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/RadioButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarDownButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarLeftButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarRightButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarUpButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SelectorSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerDecrButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerIncrButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextAreaSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextInputSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ToggleButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderTrackSkin.mxml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/HostComponentEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/HostComponentExtension.java

    Try assigning a rollover to each conatiner mc as it is created...
    scrollerBase["imageHolder" + i].onRollOver = function(){
          trace("SUCCESS");

  • How do I create an apple Id for iTunes with out having a credit card?

    ow do I create an apple Id for iTunes with out having a credit card? I have this but it says when i use it on itunes I have to show payment information i dont have a credit card and I dont have a itunes card right now.

    Click here for information.
    (80251)

  • How do I create an accessible PDF for Thesaurus with many chapters, from InDesign CS 5.5 and Acrobat

    Hi folks,
    I have redesigned a Thesaurus (controlled vocabulary for an Agency's archives) in InDesign CS 5.5. I am now preparing an accessible PDF from the many files (using a Book created in InDesign). The front cover, front matter and back cover are not part of the Book, to keep the page numbering simple.
    The Book includes two main sections, an Alphabetical display and a Hierarchical display of terms and their relations. I created chapters per alphabet listings, i.e. Alphabetical Display A, B, C, etc. So there are over 50 chapters, including cover, front matter, etc.
    I've successfully made the front cover and front matter PDFs after viewing videos here: http://tv.adobe.com/watch/accessibility-adobe/preparing-indesign-files-for-accessibility/ and downloading and using this recommended Action for Acrobat: InDesign CS5_5 Accessibility Touchup.sequ
    Several questions specific to this project don't seem to be addressed in the videos, however.
    First, I'd like to know if I can create an accessible PDF using the Book function > Export Book to PDF. Or do I need to make a PDF per chapter? The book has over 50 chapters (by alphabet, twice), so creating them one by one will take a lot more time, but I'll do it if that's the best practice.
    After creating the PDFs, if I use (in Acrobat): Create > Combine Files into PDF to make one full PDF (over 600 pages BTW), will the final PDF retain accessibility settings? Do I need to run the Accessibility Report again for the combined PDF?
    I used InTools.com Power Headers plugin to add a page header that automatically shows the new first term used per page. So, one chapter (with Chapter Title as H1) will have a different page header (which will be H2) per page, however the text flows through the whole chapter. I don't see where to add the page headers to the Article Window in InDesign. Do I add in this order: H1, H2, text (for whole chapter), H2, H2, H2, etc. Will I need to work on the PDF in Acrobat, where pages will be shown, in order to get the correct H2 with the correct text on the page? Am I missing something?
    Will I have any issues with Bookmarks that requires a specific workflow?
    I think that's about it, though I might run into more questions as I progress through the project.
    Thanks, Marilyn

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • How to simultaneously create IT0128  subtype-02 for using PA70

    Hi,
    I can use the PA70 to create It0128 subtype-01 for multiple employees, but not for subtype-02.
    Appreciate any help asap!!
    Regards,
    Vaughan LO

    Hi
    HR_INFOTYPE_OPERATION -> calls -> HR_MAINTAIN_MASTERDATA -> this Func. Mod. then creates a batch and calls ->
    -> IF DIALOG_MODE EQ '0'.
    ->    CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
    ->         EXPORTING
    the SY-SUBRC value after this should be zero. But it isn't. Can anybody suggest something. Or have any idea as what could be going wrong ??
    Here is my program by which i am trying to create IT0128 subtype-02:
    REPORT  ZABTWTEST                                 .
    data: it0128 like p0128 occurs 0 with header line.
    data: return like BAPIRETURN1.
    it0128-pernr = '20123001'.
    it0128-subty = '2'.
    it0128-begda = '20090101'.
    it0128-endda = '20090131'.
    it0128-SPRSL = 'EN'.
    it0128-OBJCT = 'HRMESS'.
    it0128-TXTID = 'HR_P'.
    it0128-OBNAM = '<internally assigned name>'.
    append it0128.
    CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
      EXPORTING
        number              = '20123001'
        validitybegin       = '19000101'   .
    loop at it0128.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = '0128'
        number                 = '20123001'
        VALIDITYEND            = it0128-endda
        VALIDITYBEGIN          = it0128-begda
        record                 = it0128
        operation              = 'COP'
        TCLAS                  = 'A'
        NOCOMMIT               = 'X'
      IMPORTING
        RETURN                 = return   .
    endloop.
    CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
      EXPORTING
        number              = '20123001'
        validitybegin       = '19000101'   .
    write return.   .
    Kindly correct me if i am wrong anywhere.
    Regards,
    Abbasi

  • How can we create a common function for 2 or more java card applets?

    I have 2 java card applets. They use one common function. But i don't know how to set up it. Anybody knows it, please help me. Please show me step by step to do it. Thank you.

    When insert below line of code in the Test_Class_1.java and Test_Class_2, the Project will be failed:
    byte aP1 = Test_common_function.GetP1((byte)0x02);
    byte aP1 = Test_common_function.GetP1((byte)0x01);
    Here is the source code:
    Test_Class_2.java
    package Test_Class_2;
    import Test_common_function.Test_common_function;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    public class Test_Class_2 extends Applet
       public static void install(byte[] bArray, short bOffset, byte bLength)
          // GP-compliant JavaCard applet registration
          new Test_Class_2().register(bArray, (short) (bOffset + 1),
                bArray[bOffset]);
       public void process(APDU apdu)
          byte aP1 = Test_common_function.GetP1((byte)0x02);
    }Test_Class_1.java
    package Test_Class_1;
    import Test_common_function.Test_common_function;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    public class Test_Class_1 extends Applet
       public static void install(byte[] bArray, short bOffset, byte bLength)
          // GP-compliant JavaCard applet registration
          new Test_Class_1().register(bArray, (short) (bOffset + 1),
                bArray[bOffset]);
       public void process(APDU apdu)
          byte aP1 = Test_common_function.GetP1((byte)0x02);
    }Test_common_function.java
    package Test_common_function;
    import javacard.framework.APDU;
    import javacard.framework.ISO7816;
    import javacard.framework.Applet;
    import javacard.framework.ISOException;
    public class Test_common_function extends Applet
       public static void install(byte[] bArray, short bOffset, byte bLength)
          // GP-compliant JavaCard applet registration
          new Test_common_function().register(bArray,
                (short) (bOffset + 1), bArray[bOffset]);
       public void process(APDU apdu)
          // Good practice: Return 9000 on SELECT
          if (selectingApplet())
             return;
          byte[] buf = apdu.getBuffer();
          switch (buf[ISO7816.OFFSET_INS])
             case (byte) 0x00:
                break;
             default:
                // good practice: If you don't know the INStruction, say so:
                ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
       public static byte bP1_Class1 = (byte)0x90;
       public static byte bP1_Class2 = (byte)0x90;
       public static byte GetP1(byte idclass)
          return idclass == (byte)0x01? bP1_Class1:bP1_Class2;
    }and here is the trace log (in case of failure)
    cm>  /term "Remote|localhost:60351"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B F8 13 00 00 81 31 FE 45 4A 43 4F 50 76 32 34    ;.....1.EJCOPv24
        31 B7                                              1.
    IOCTL().
    ATR:
             T = 1                  
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (578768 nsec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 47 91 01 17 33 00 73 4A 06 07 2A    ...n.G...3.sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No Error
    cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 255
    => 80 50 00 00 08 37 0D D8 24 C9 C8 32 53 00          .P...7..$..2S.
    (1829 usec)
    <= 00 00 DE 81 34 18 39 B7 09 70 FF 02 00 00 3D 02    ....4.9..p....=.
        9C 31 C7 89 7A 8E 57 44 05 A7 67 C7 90 00          .1..z.WD..g...
    Status: No Error
    cm>  ext-auth plain
    => 84 82 00 00 10 D8 BE 91 A3 94 E8 34 18 42 28 F6    ...........4.B(.
        74 EE 50 06 29                                     t.P.)
    (1683 usec)
    <= 90 00                                              ..
    Status: No Error
    cm>  delete -r 01020304050102
    => 80 E4 00 80 09 4F 07 01 02 03 04 05 01 02 00       .....O.........
    (833593 nsec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  delete -r 01020304050103
    => 80 E4 00 80 09 4F 07 01 02 03 04 05 01 03 00       .....O.........
    (769014 nsec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  delete -r 010203040501
    => 80 E4 00 80 08 4F 06 01 02 03 04 05 01 00          .....O........
    (734456 nsec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  upload -c -d -b 250 "D:\WorkSpace\Test_Common_Funcation\bin\Test_common_function\javacard\Test_common_function.cap"
    => 80 E6 02 00 13 06 01 02 03 04 05 01 08 A0 00 00    ................
        00 03 00 00 00 00 00 00 00                         .........
    (1864 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Start loading Header.cap (44 byte)
    => 80 E8 00 00 2C C4 82 03 E3 01 00 25 DE CA FF ED    ....,......%....
        02 02 04 00 01 06 01 02 03 04 05 01 14 54 65 73    .............Tes
        74 5F 63 6F 6D 6D 6F 6E 5F 66 75 6E 63 74 69 6F    t_common_functio
        6E 00                                              n.
    (1607 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Header.cap loaded (44 byte)
    Start loading Directory.cap (36 byte)
    => 80 E8 00 01 24 02 00 21 00 25 00 21 00 0C 00 0B    ....$..!.%.!....
        00 26 00 0E 00 4C 00 0C 00 0D 00 00 00 6F 02 5D    .&...L.......o.]
        00 02 00 00 00 00 01 01 00 00                      ..........
    (1368 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Directory.cap loaded (36 byte)
    Start loading Import.cap (14 byte)
    => 80 E8 00 02 0E 04 00 0B 01 03 01 07 A0 00 00 00    ................
        62 01 01 00                                        b...
    (1096 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Import.cap loaded (14 byte)
    Start loading Applet.cap (15 byte)
    => 80 E8 00 03 0F 03 00 0C 01 08 01 02 03 04 05 01    ................
        01 01 00 08 00                                     .....
    (1188 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Applet.cap loaded (15 byte)
    Start loading Class.cap (17 byte)
    => 80 E8 00 04 11 06 00 0E 00 00 00 80 03 00 FF 00    ................
        07 01 00 00 00 1C 00                               .......
    (1457 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Class.cap loaded (17 byte)
    Start loading Method.cap (79 byte)
    => 80 E8 00 05 4F 07 00 4C 00 01 10 18 8C 00 02 7A    ....O..L.......z
        05 30 8F 00 08 3D 8C 00 00 18 1D 04 41 18 1D 25    .0...=......A..%
        8B 00 01 7A 02 21 18 8B 00 06 60 03 7A 19 8B 00    ...z.!....`.z...
        04 2D 1A 04 25 73 00 09 00 00 00 00 00 0F 11 6D    .-..%s.........m
        00 8D 00 07 7A 02 10 1C 04 6B 07 7C 00 03 70 05    ....z....k.|..p.
        7C 00 05 78 00                                     |..x.
    (1101 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Method.cap loaded (79 byte)
    Start loading StaticField.cap (15 byte)
    => 80 E8 00 06 0F 08 00 0C 00 02 00 00 00 00 00 00    ................
        00 02 90 90 00                                     .....
    (1069 usec)
    <= 00 90 00                                           ...
    Status: No Error
    StaticField.cap loaded (15 byte)
    Start loading ConstantPool.cap (41 byte)
    => 80 E8 00 07 29 05 00 26 00 09 06 00 00 01 03 80    ....)..&........
        03 02 06 80 03 00 05 00 00 00 03 80 0A 01 05 00    ................
        00 01 03 80 03 03 06 80 07 01 01 00 02 00 00       ...............
    (3134 usec)
    <= 00 90 00                                           ...
    Status: No Error
    ConstantPool.cap loaded (41 byte)
    Start loading RefLocation.cap (16 byte)
    => 80 E8 00 08 10 09 00 0D 00 00 00 09 05 06 04 0A    ................
        07 07 13 0A 05 00                                  ......
    (2067 usec)
    <= 00 90 00                                           ...
    Status: No Error
    RefLocation.cap loaded (16 byte)
    Start loading Descriptor.cap (114 byte)
    => 80 E8 00 09 72 0B 00 6F 01 00 01 00 02 00 00 02    ....r..o........
        00 04 00 09 00 00 00 80 03 01 09 00 00 01 80 03    ................
        00 81 00 01 00 14 00 05 00 00 00 00 01 09 00 08    ................
        00 16 00 12 00 00 00 00 07 01 00 1C 00 19 00 1F    ................
        00 00 00 00 02 09 00 3D 00 1D 00 0D 00 00 00 00    .......=........
        00 09 00 14 00 16 00 14 00 1F 00 21 00 1F 00 23    ...........!...#
        00 25 FF FF 01 10 04 B4 31 06 68 00 A1 02 33 01    .%......1.h...3.
        30 01 B0 01 20 02 41 00                            0... .A.
    (1344 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Descriptor.cap loaded (114 byte)
    Start loading Debug.cap (608 byte)
    => 80 E8 00 0A FA 0C 02 5D 00 1A 00 29 54 65 73 74    .......]...)Test
        5F 63 6F 6D 6D 6F 6E 5F 66 75 6E 63 74 69 6F 6E    _common_function
        2F 54 65 73 74 5F 63 6F 6D 6D 6F 6E 5F 66 75 6E    /Test_common_fun
        63 74 69 6F 6E 00 19 6A 61 76 61 63 61 72 64 2F    ction..javacard/
        66 72 61 6D 65 77 6F 72 6B 2F 41 70 70 6C 65 74    framework/Applet
        00 19 54 65 73 74 5F 63 6F 6D 6D 6F 6E 5F 66 75    ..Test_common_fu
        6E 63 74 69 6F 6E 2E 6A 61 76 61 00 0A 62 50 31    nction.java..bP1
        5F 43 6C 61 73 73 31 00 01 42 00 0A 62 50 31 5F    _Class1..B..bP1_
        43 6C 61 73 73 32 00 06 3C 69 6E 69 74 3E 00 03    Class2..<init>..
        28 29 56 00 04 74 68 69 73 00 2B 4C 54 65 73 74    ()V..this.+LTest
        5F 63 6F 6D 6D 6F 6E 5F 66 75 6E 63 74 69 6F 6E    _common_function
        2F 54 65 73 74 5F 63 6F 6D 6D 6F 6E 5F 66 75 6E    /Test_common_fun
        63 74 69 6F 6E 3B 00 07 69 6E 73 74 61 6C 6C 00    ction;..install.
        07 28 5B 42 53 42 29 56 00 06 62 41 72 72 61 79    .([BSB)V..bArray
        00 02 5B 42 00 07 62 4F 66 66 73 65 74 00 01 53    ..[B..bOffset..S
        00 07 62 4C 65 6E 67 74 68 00 07 70 72 6F 63 00    ..bLength..proc.
    (937268 nsec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 0B FA 65 73 73 00 1C 28 4C 6A 61 76 61    .....ess..(Ljava
        63 61 72 64 2F 66 72 61 6D 65 77 6F 72 6B 2F 41    card/framework/A
        50 44 55 3B 29 56 00 04 61 70 64 75 00 19 4C 6A    PDU;)V..apdu..Lj
        61 76 61 63 61 72 64 2F 66 72 61 6D 65 77 6F 72    avacard/framewor
        6B 2F 41 50 44 55 3B 00 03 62 75 66 00 05 47 65    k/APDU;..buf..Ge
        74 50 31 00 04 28 42 29 42 00 07 69 64 63 6C 61    tP1..(B)B..idcla
        73 73 00 14 54 65 73 74 5F 63 6F 6D 6D 6F 6E 5F    ss..Test_common_
        66 75 6E 63 74 69 6F 6E 00 19 00 01 00 00 00 01    function........
        00 02 00 01 00 02 00 00 02 00 04 00 03 00 04 00    ................
        09 00 00 00 00 00 05 00 04 00 09 00 00 00 01 00    ................
        06 00 07 00 01 00 01 02 00 05 00 01 00 01 00 00    ................
        08 00 09 00 00 00 05 00 00 00 04 00 0F 00 0A 00    ................
        0B 00 09 00 08 02 00 12 00 03 00 04 00 00 0C 00    ................
        0D 00 00 00 12 01 00 0E 00 0F 00 00 00 12 02 00    ................
        10 00 04 00 00 00 12 00 00 00 07 00 14 00 08 00    ................
        0D 00 15 00 0E 00 10 00 14 00 11 00 11 00 16 00    ................
    (785421 nsec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 80 0C 6C 00 11 00 12 00 01 00 1C 02 00 1F    ....l...........
        00 03 00 06 00 00 08 00 09 00 00 00 1F 01 00 13    ................
        00 14 00 00 00 1F 02 00 15 00 0D 00 0C 00 13 00    ................
        00 00 05 00 1B 00 06 00 06 00 1D 00 07 00 0B 00    ................
        20 00 0C 00 17 00 21 00 18 00 1D 00 27 00 1E 00     .....!.....'...
        1E 00 29 00 16 00 17 00 09 00 3D 02 00 0D 00 01    ..).......=.....
        00 01 00 00 18 00 04 00 00 00 0D 00 00 00 0C 00    ................
        2F 00                                              /.
    (1986 usec)
    <= 00 90 00                                           ...
    Status: No Error
    Debug.cap loaded (608 byte)
    Load report:
      999 bytes loaded in 0.0 seconds
      effective code size on card:
          + package AID       6
          + applet AIDs       15
          + classes           17
          + methods           79
          + statics           2
          + exports           0
            overall           119  bytes
    cm>  install -i 0102030405010101  -q C9#() 010203040501 0102030405010101
    => 80 E6 0C 00 1F 06 01 02 03 04 05 01 08 01 02 03    ................
        04 05 01 01 01 08 01 02 03 04 05 01 01 01 01 00    ................
        02 C9 00 00 00                                     .....
    (2346 usec)
    <= 00 90 00                                           ...
    Status: No Error
    cm>  upload -c -d -b 250 "D:\WorkSpace\Test_Common_Funcation\bin\Test_Class_2\javacard\Test_Class_2.cap"
    jcshell: Cannot read <D:\WorkSpace\Test_Common_Funcation\bin\Test_Class_2\javacard\Test_Class_2.cap>: java.io.FileNotFoundException: D:\WorkSpace\Test_Common_Funcation\bin\Test_Class_2\javacard\Test_Class_2.cap (The system cannot find the path specified)
    cm>  install -i 0102030405010303  -q C9#() 01020304050103 0102030405010303
    => 80 E6 0C 00 20 07 01 02 03 04 05 01 03 08 01 02    .... ...........
        03 04 05 01 03 03 08 01 02 03 04 05 01 03 03 01    ................
        00 02 C9 00 00 00                                  ......
    (1231 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Unexpected error; aborting executionThank very much!
    Edited by: WhoKnows on Apr 20, 2012 9:32 PM

  • How do I create a thresholding function for a 2-D waveform, little to no experience is driving me crazy?

    Hello All,
    I could really use some help here. I have very little experience with LabView and I am trying to create a threshold detector that outputs a boolean value once the threshold is crossed. I am getting a 2-d waveform in from my daq, that part was easy, I am trying to do this in real time and point by point. Ultimately once the threshold is crossed I need a true to go to a while loop which will then perform another operation. I am running LabView 8.0 and could really use the help to get this threshold figured out. Thank you very much, if any further information is required please feel free to let me know.
    I really appreciate it,
    Clambake

    Pictures are easier than words....  (On a Sunday evening )
    There are many ways of detecting thresholds.  Below are a few examples.  Remember that the data to the graph is often an array of numerics (doubles - usually).  So simply make use of array functions or comparison functions.  Many math functions are polymorphic and work very well with arrays.  So do boolean functions.
    Have a look at the three examples below.  Hopefully they will help.
    RayR
    Message Edited by JoeLabView on 11-18-2007 09:54 PM
    Attachments:
    arraysFun1.PNG ‏10 KB
    arraysFun2.PNG ‏18 KB

  • How do I create a print button for use in Interactive PDF?

    I have a document created in InDesign CS4 which I will be converting into an interactive PDF (which has various links added on a master page so they appear on every page), one of which I would like to be a "Print" button.
    I know how to do this in Acrobat Pro, but I don't want to have to create a button in Acrobat and then copy/paste it onto all pages in my document. Surely there must be a way to create a button of this type in InDesign CS4. Any help would be greatly appreciated.

    Sorry, no. Print button functionality must be added in Acrobat.

  • How do I create an outside stroke for photo with square corners?

    I'm creating a collage with lots of photos, and need an efficient way to add a thick, square-cornered stroke to all of them in Photoshop CC.
    I've googled till my face is blue and can't find the answer...anybody?  Thanks!

    To my knowledge that's not possible outside the vector based apps like Illustrator and InDesign.
    I'd just make an action using Canvas Size, and if you do it a lot assign an F-key to it.
    Edit: oops, missed the collage part, so that's obviously not an option...

  • How do I convert Word 2004 files for use with Mavericks?

    I have recently upgraded to Mavericks and now find that my old Word files (2004) can't be opened. (I can still open my Word 2008 files.) I have been a maths teacher for decades and have many old files which are still very useful but they contain more than just text; they contain diagrams, MathType expressions etc. etc. I need to be able to convert these files to files that can be opened with Mavericks. Can anyone tell me how I can do this?

    Helen M. K. wrote:
    I am still using Office 2008! (I know I should have upgraded but haven't yet.)
    Office 2008 should function in Mavericks and it willl open Office 2004 files:
    http://roaringapps.com/app/microsoft-office-2008
    Hence, you do not need to partition and install Snow Leopard into a new partition.  I gave you my previous advice before you indicated you are now using Office 2008.
    Helen M. K. wrote:
    I am still using Office 2008! (I know I should have upgraded but haven't yet.)

  • How to make a fill in template for use with ipad

    If I have a custom made excel spreadsheet, that I use for fill in information, what app do i need to open, fill in and save the template for printing and sharing

    As an update for the actual table, the scenario is a bit different from this example: there is a form filled in with information.  Some is correct, some incorrect. I am trying to simulate a supervisor reviewing the form and finding and fixing the incorrect information. And yes, it has to be accessible.
    I used two methods.  First, I split up the table into individual quiz questions using T/F and Fill-In-The-Blank.  The T/F asks the learner if all of the information for the day is correct. Then they use Fill-In-The-Blank to correct wrong answers.  It worked, kinda, but the graded quizzes in Cp6 do not indicate specifically what was right and wrong (just the correct or incorrect feedback text boxes appear), so it is not as useful to the learner.
    I am now working another tactic: The table is imported as an image.  I plan to hand-type the contents into the Accessibility tab.  Since the info is only meant to be read horizontally (by day), I am hoping that that works.  Each data cell is overlayed with a transparent smartshape, named, and has its own variable. On clicking, the variable increments by 1. That is how the learner can indicate which cells contain wrong information. 
    There are advanced actions for each cell to indicate whether they clicked correctly or not.  Now my issue is that I have one "Submit" button and want to launch 10 advanced actions at one time. Is there any way to trigger that?

  • Creating a Dynamic Playlist for use with Amazon Cloudfront

    I am working on a soultion for my website to deploy Falsh encoded videos from the Amazon Cloudfront using Flash Streaming Video Server 3.5 and the JW Falsh Player (www.longtailvideo.com).
    I am NOT a code person but here is what I am trying to accomplish. I hope I am in the correct forum! If not, I apologize.
    I have several videos a week that I edit and can save in different kbps versions for Dynamic Bitrate streaming through the JW Player. My problem is creating the XML or SMIL playlist to initiate the bitrate switching. I would like to find an authoring tool or someway to generate the required file in a fairly easy manner as I am more videographer/editor that code warrior.
    I would also like to have a playlist of other available videos associated with any given video that could be delivered with the Dynamic Bitrate Switching feature. Example: a lawyer that specializes in several different fields of law and would like to have 5 videos, one for each area of specialization, delivered to clients with high bandwidth and clients on mobile devices and everyone in between!
    Thanks in advance for your time and consideration.
    Lindsey

    I'm looking for the answer to this question too.  If you don't have the answer, or if you don't care to link to the answer, or to recommend a knowledgable expert, please remain silent.

  • How do I set up Aperture 3 for use with wide gamut monitor?

    I use a NEC 2690wuxi attached to a macbook pro for my main screen when i do retouching on photos. Right now the images come up a bit neon on the NEC and look fine on the laptop screen. Is there a way to adjust this?...
    I have no problem with this when working in Photoshop CS3 or Lightroom 2.6.
    thanks...

    I have the same problem using my macbook Pro and a EIZO CG241W monitor.
    I calibrate both the macbook screen and the EIZO and set the colorsync profile to make the EIZO the default profile. If I have aperture on the macbook screen all appears ok including the picture I open in Photoshop to compare. If I have the preview on the external monitor the colors are overly saturated in Aperture and no where close to the picture opened in photoshop. Strangely enough the thumbnail previews seem to show the proper color.It is the large preview as well as the mirrored screen (option+M) that show the wrong colors. I also notice that if I click on an image opened in Photoshop CS4 and drag it to the external monitor that as long as I hold it clicked the colors match those in the preview but as soon as I let go the colors change back to what I think is the proper colors. This means that Aperture is still using the macbook monitor profile even though the EIZO monitor has been set as default in the colorsync program. I have had the same issue with aperture2.
    Photoshop, bridge,lightroom 2 and Phaseone Capture 1 Pro versions 3 through 5 all handle the profiles correctly. I have been doing pre press for european catalogues for years this way. I also reverted to OS X 10.5.8 after having installed snow leopard as snow leopard also had colorsync problems while using dual monitors on a Macbook Pro. I don't think anyone here in the forums will have a solution to this problem ,I can only hope enough people have complained to apple directly so that the software engineers will be put to work to fix this problem. Aperture 3 is absolutely impossible for me to use like this and I am very disappointed to have spent money on professional software that obviously does not work correctly on a dual monitor set up. And no.. I can not do proper color correction on my MAcbook Pro Screen!!
    Should anyone have an idea how to solve the problem outside of the obvious answers I am all ears,
    as of now I will copy this and send it to apple support!

  • How do I import an AVI file for use with FInal Cut Express

    How do I import or use an AVI file with Final Cut Express?
    Thank you. Do I need to convert my AVI file and what is the
    easiest way to do that? Thank you.

    You should convert the media to QuickTime. Without knowing any specifics most likely the simplest way is to use MPEG Streamclip.

Maybe you are looking for

  • Can I upgrade from Creative Suite 3 to Photoshop CS6?

    Hello, I have a licence of the full Creative Suite 3 on my PC. Am I able to upgrade the Photoshop part of this suite to Photoshop CS6 only? I don't need the complete package in CS6, so this would be the best way for me. And my second question: Can I

  • TCP/IP bluetooth nightmare!!

    Hello all, I seem to be having a bit of nightmare of a time figuring out how to do the following in bluetooth: Scan for bluetooth devices - This i can do. Connected to a bluetooth device - This i can do. Send TCP packets over the internet via the blu

  • How to delete items in transport request

    How to delete items in transport request.  I have quite a lot data to be deleted. I click on TR5001. Then click to drill down to Table contents    C001              Data A1             Data A2             Data B1             Data B2 Placed my cursor

  • Menu button that won't work

    In Muse I have one menu button of many that simply won't work. I have deleted and recreated several times...NOTHING

  • I got my new iPhone 4s today and every time I try to open my Picture file the screen goes black?

    I also can't see the file through clicking on a picture in the camera app just after taking it? please help! how do I fix this?