Need help with custom control. Is this possible?

Okay, here is my problem. I have a picture of a human being (just outlined trace), that breaks the body into parts. (ie left arm, right arm, left lower back, right lower back). I need for each part to be a bolean control if that makes sense? I am trying to replicate a survey that was written for us in visual basic that we dont have the source for, and author is no where to be found. Any ideas?

You could make each of your body parts a separate custom boolean control. Add a series of booleans for each part to your front panel. Customize each control using the instructions here to add a decal to your boolean.
You do not need to save the custom control to a file unless you want to reuse it elsewhere. When all the booleans parts hava a decal, arrange the parts on your front panel.
The nice thing about a decal is that it becomes part of the clickable region for the boolean.
I've attached a crude example...
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness
Attachments:
Use Decals.vi ‏89 KB

Similar Messages

  • Need help with custom event from Main class to an unrelated class.

    Hey guys,
    I'm new to Flash and not great with OOP.  I've made it pretty far with google and lurking, but I've been pulling my hair out on this problem for a day and everything I try throws an error or simply doesn't hit the listener.
    I'm trying to get my Main class to send a custom event to an unrelated class called BigIcon.  The rest of the code works fine, it's just the addEventListener and dispatchEvent that isn't working.
    I've put in the relevant code in below.  Let me know if anything else is needed to troubleshoot.  Thank you!
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        public class Main extends MovieClip
            var iconLayer_mc:MovieClip = new MovieClip();
            public function Main()
                Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
                addChildAt(iconLayer_mc,0);
                placeIcons();
            function placeIcons():void
                var i:int;
                var j:int;
                for (i = 0; i < 4; i++)
                    for (j = 0; j < 5; j++)
                        //iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
                        var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i,j);
                        iconLayer_mc.addChild(placedIcon_mc);
            function fl_MouseClickHandler(event:MouseEvent):void
                dispatchEvent(new Event("twitchupEvent",true));
    BigIcon.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.utils.getDefinitionByName;
        public class BigIcon extends MovieClip
            private var iconImage_str:String;
            private var iconRow_int:int;
            private var iconColumn_int:int;
            public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
                iconImage_str = iconImage_arg;
                iconRow_int = iconRow_arg;
                iconColumn_int = iconColumn_arg;
                this.addEventListener(Event.ADDED_TO_STAGE, Setup);
            function Setup(e:Event)
                this.y = iconRow_int;
                this.x = iconColumn_int;
                var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
                var thisIcon_mc:MovieClip = new ClassReference;
                this.addChild(thisIcon_mc);
                addEventListener("twitchupEvent", twitchUp);
            function twitchUp(e:Event)
                this.y +=  10;

    Ned Murphy wrote:
    You should be getting an error for the Main.as class due to missing a line to import the Event class...
    import flash.events.Event;
    My apologies, I should attempt to compile my example code before I ask for help...
    Alright, this compiles, gives me no errors, shows my 'book' and 'flowers' icons perfectly when ran, and prints 'addEventListener' to the output window as expected.  I get no errors when I press the button, 'dispatchEvent' is output (good), but the 'twitchUp' function is never called and 'EventTriggered' is never output. 
    How do I get the 'twitchUp' event to trigger?
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import flash.events.*;
        public class Main extends MovieClip
            var iconLayer_mc:MovieClip = new MovieClip();
            var iconString_array:Array = new Array(2);
            public function Main()
                Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
                addChildAt(iconLayer_mc,0);
                buildStringArray();
                placeIcons();
            function buildStringArray():void
                var i:int;
                var j:int;
                for (i = 0; i < 2; i++)
                    iconString_array[i] = new Array(3);
                    for (j = 0; j < 3; j++)
                        if (Math.random() > .5)
                            //'flowers' is the name of an illustrator object that has been converted to a MovieClip and is in the library
                            iconString_array[i][j] = "flowers";
                        else
                            //'book' is the name of an illustrator object that has been converted to a MovieClip and is in the library
                            iconString_array[i][j] = "book";
            function placeIcons():void
                var i:int;
                var j:int;
                for (i = 0; i < 2; i++)
                    for (j = 0; j < 3; j++)
                        //iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
                        var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i*50,j*50);
                        iconLayer_mc.addChild(placedIcon_mc);
            function fl_MouseClickHandler(event:MouseEvent):void
                dispatchEvent(new Event("twitchupEvent",true));
                trace("dispatchEvent");
    BigIcon.as
    package
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.utils.getDefinitionByName;
        public class BigIcon extends MovieClip
            private var iconImage_str:String;
            private var iconRow_int:int;
            private var iconColumn_int:int;
            public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
                iconImage_str = iconImage_arg;
                iconRow_int = iconRow_arg;
                iconColumn_int = iconColumn_arg;
                this.addEventListener(Event.ADDED_TO_STAGE, Setup);
            function Setup(e:Event)
                this.y = iconRow_int;
                this.x = iconColumn_int;
                var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
                var thisIcon_mc:MovieClip = new ClassReference;
                this.addChild(thisIcon_mc);
                addEventListener("twitchupEvent", twitchUp);
                trace("addEventListener");
            function twitchUp(e:Event)
                this.y +=  10;
                trace("EventTriggered");
    Output:
    [SWF] Untitled-1.swf - 40457 bytes after decompression
    addEventListener
    addEventListener
    addEventListener
    addEventListener
    addEventListener
    addEventListener
    dispatchEvent
    [UnloadSWF] Untitled-1.swf
    Test Movie terminated.

  • I work with a child who is not able to move his neck.  to see the ipad, it has to be placed high above the table (eye level).  he needs access with a mouse - is this possible?

    I work with a child who has physical disability and cannot move his neck.  The ipad needs to be eyelevel in order for him to see it, but he also is not able to raise his hand and would need mouse access...  is this possible?

    I'm sorry but the iPad does not work with a mouse, there is no cursor on the iPad and the iPad was designed as a touch screen device so a mouse will not work.
    I really don't know what to suggest other than this new device, and it might be worth a look. I assume that the child can use his hands for a keyboard.
    http://www.thinkgeek.com/product/e722/

  • I need help with reporting as soon as possible!

    How can I do reporting in JDeveloper like in Crystal reports. Is there any extention or tool that can be of help.
    Thanks
    Edited by: Fenoch on Mar 12, 2010 6:34 AM
    Edited by: Fenoch on Mar 12, 2010 6:36 AM

    @Fenoch,
    I'm also new to the JDeveloper world and I haven't gotten into reporting yet, but a couple I've heard about are
    Oracle BI Publisher - http://www.oracle.com/technology/products/xml-publisher/index.html
    Jasper Reports - http://www.jaspersoft.com/
    BIRT - http://www.eclipse.org/birt/phoenix/ (more of an eclipse thing I think)
    I hope that helps, I'd like to hear what you find out about any of these.
    Don't let elitist responses run you out of the community.
    @John,
    John Stegeman wrote:
    If you need help as soon as possible, why didn't you try searching the forums?
    JDeveloper doesn't have reporting capability, per se, but there are a number of Java-based reporting tools out there, which you could find [url http://www.lmgtfy.com/?q=java+reports]here
    John
    Way to be an ass to a newbie. It is posts like this (from an Oracle "Ace" Director no less) that push people away from the platform.
    Maybe you could post a link to a reporting tool you know about, instead of sounding off like an elitists jerk and belittling a new guy. I'm sure you popped into the world full of knowledge and ego, never received any help or asked any "newb" questions.
    I also find it very interesting that your "helpful" search link sends us to GOOGLE and not on a search of these forums. Could it be that the forum search is unreliable and returns garbage results most of the time?
    You could have linked a forum search -
    http://forums.oracle.com/forums/search.jspa?objID=f83&q=java+reports (Typical unhelpful results set)
    http://forums.oracle.com/forums/search.jspa?objID=f83&q=reports (Slightly better, at least has a couple posts talking about Jasper)
    Re: Report Facility
    Or if you just gotta use google at least narrow it to the forum you are suggesting we search in -
    http://www.google.com/search?hl=en&as_q=java+reports&as_epq=&as_oq=&as_eq=&num=100&lr=&as_filetype=&ft=i&as_sitesearch=http%3A%2F%2Fforums.oracle.com%2Fforums%2Fforum.jspa%3FforumID%3D83&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
    It is actually the low quality of the forum search tool that forces people to re-post the same questions as others have. I know I do it all the time after I've attempted multiple searches.
    TL;DR version
    Be helpful or be silent.
    Bullying the new people pushes them away and hurts the community. No new people -> no more JDeveloper.

  • Beginner - need help with custom profiles

    I've got 30-day demo versions of both Aperture and Lightroom trying to work out which is best for printing using custom profiles I've had done for a selection of textured art papers for use on my Epson R2400. I've read the printing documentation for both products.
    In Aperture, I select print from the menu and open the print dialogue window. Then I open the printer settings window choosing the correct media and switching off Epson 'Color Adjustment' and saving the settings. Then I'm selecting my color profile from Aperture's 'ColorSync Profile' option in the print window and making sure 'Black Point Compensation' is selected. Then I'm pressing print.
    In Lightroom 2, I select print from the menu and scroll down to the 'Color Management' tab in the print module. Here I'm choosing my custom profile from the drop down list and setting rendering intent as 'Perceptual'. On clicking the print button the default print window opens and I'm switching off Epson 'Color Adjustment' and selecting my preferred paper type. Then I'm pressing print.
    Now I will admit that I'm new to printing with profiles and a complete newbie to Aperture and Lightroom. However, my prints from Lightroom are absolutely perfect, but colours are differing in Aperture prints. In particular, prints are slightly lighter and washed-out. I'm wondering if I might be missing a step somewhere in Aperture? It seems strange that both applications follow roughly the same print procedure yet I'm getting different results using the same profiles and images. I'd much rather use Aperture so I'm trying to seek an explanation for the change in colors.
    Any suggestions would be appreciated.

    A lot of people including me have had problems in this area. There may have been some problems but in my case I was so absorbed in trying different solutions it is hard to say what worked when.
    This works for me using an HP 9180:
    1. In the View drop down select Printing Profile and choose your paper. This step is not critical but can be helpful.
    2. select Print Image and we will work through the menu in sequence.
    3. Select your printer
    4. Click on Print settings
    Click on the Cover Page arrows and you will be given a number of other choices. Select Paper Type/Quality. Select your paper and possibly adjust the other values but generally I leave these alone unless i specifically want Borderless printing.
    Click save
    5. back on the print menu select paper size. I usually select best fit next.
    6. Select Colorsync Profile and again select your paper.
    7. Keep Black Point clicked on.
    8. I find that I need to set my Gamma between 1.10 and 1.20.
    9. I usually click on the Loupe and check to see if Sharpening is needed.
    10. Adjust scaling and width to your needs.
    11. I then Print as I have not found that Previewing helps me to improve my Workflow.
    It may all seem straightforward but this now works for me.
    When this all started there were many saying how important it was to calibrate the screen, many tried this but is still did not help solve the problem. From what i understand all the Canon printers are capable of giving excellent results with Aperture. i hope that you join the community of satosfied users. Good luck.

  • Need help with Referer Control 0.4.3 add-on

    Hello,
    I can't seem to make this add-on work as I expect, and I can't find any way to contact anyone, except maybe here. If there is a better place to get support for Referer Control 0.4.3, please let me know :-)
    It doesn't seem to work as I expect, although it's entirely possible that I don't clearly understand how it's supposed to work. Afaiu, it's supposed to change how the referer header is handled, when you click a link to go to another website. It puts a dropdown list on the toolbar, with several choices for what to do when you follow a link. So you can change it as needed, per website. It's default setting is "remove" which means (apparently) to remove the referer header before sending the request (which I guess they say makes it ready to go "out of the box").
    Before I found this add-on, I had changed network.http.send.RefererHeader from 2 to 0 (in about:config). The only website where I had trouble, is Launchpad.net. Without setting it to 2, all I can do is view the website. If I want to post a comment, or search the site, I would have to manually change the referer header control in about:config. So I thought this would be a good website to test the add-on. (When I would try to post a comment or search the site, I would get an error message about the referer header.)
    So when I found this add-on, I put it back to 2, assuming that the add-on is now going to block the referer header from being sent. I went to Launchpad.net (https://bugs.launchpad.net/inkscape) and with the new add-on's dropdown control list, set to "remove", I'm still able to do anything I want, without getting an error message about the referer header. So it seems like the add-on just doesn't work.
    Out of curiosity, I opened about:config so I could look at what happens to network.http.send.RefererHeader when I change the add-on settings. But apparently, it works in some other way, than altering about: config, because no matter which control option I choose, the referer header stays on 2.
    Well, I don't think that's exactly evidence that it doesn't work, because maybe the add-on works in some other way, than actually changing network.http.send.RefererHeader. But it does leave me to wonder how it does work, and why it's not working at Launchpad.net. Idk, or maybe this add-on really is a scam?
    Can anyone help me with this Referer Control 0.4.3 add-on?
    (https://addons.mozilla.org/en-US/firefox/addon/referrer-control/?src=ss)
    Thank you very much :-)

    Oh, thank you Moses. I could not find that profile page. I found a website, but is all in a traditional Asian language (pretty, but I can't read it).
    Thanks cor-el. I will try to search out some info about that. (I do understand, in general, what a cross site request/referer is.) The add-on under discussion probably does more than just prevent the cross site scripting, etc, assuming I can get it to work.
    Now that I've got an email address, hopefully I can get some questions answered.
    Thank you all very much.
    Off topic, but the marking of a particular message that solves the problem is really rather annoying, at least it is to me. Most of the time, there are several replies from different people, which together provide the solution. I just don't understand how this feature is helpful. But of course, I try my best to choose 1 reply ;-)

  • Need help with customizing standard reports in Fusion Applications

    Hi,
       I have requirement to customize 'Asset Transfer Report' in Oracle Fusion.
       This report is a BI Publisher report and Data Model lies in folder '/Share Folders/Financials/Fixed Assets/Tracking/Data Model' and report lies in folder '/Share Folders/Financials/Fixed Assets/Tracking'.
        Steps which i have completed
       I am trying to customize this report, i followed the below steps
    Step 1:- 
       Copied Data Model into '/Shared Folder/Custom/Financials/Fixed Assets/Tracking/Data Model' and report into '/Shared Folder/Custom/Financials/Fixed Assets/Tracking/'
    Step 2:-
       Opened task 'Manage Custom Enterprise Scheduler Jobs for Ledger and Related Applications' and created a job with the following details.
    Job Definition
    Field Name
    Value
    Display Name
    XX Asset Transfers Report
    Name
    XX_ASSET_TRANSFERS_REPORT
    Path
    /FA/
    Application
    Financials Common Module
    Description
    XX Asset Transfers Report
    Job Application Name
    FinancialsEss
    Enable Submission from Enterprise Manager
    Job Type
    BIPJobType
    Class Name
    oracle.xdo.service.client.scheduler.BIPJobExecutable
    Default Output Format
    Report ID
    /Custom/Financials/Fixed Assets/Tracking/Asset Transfers Report.xdo
    Priority
    Allow Multiple Pending Submissions
    False
    Enable Submission From Scheduled Processes
    Yes
    User Properties
    Field Name
    Value
    PDF
    .*\.pdf$
    jobDefinitionName
    FAS430
    XML
    .*\.xml$
    jobPackageName
    /oracle/apps/ess/financials/assets/tracking/transfers
    EXT_PortletContainerWebModule
    Ledger
    Since the standard report has the below parameter i have created same set of parameters for the Job which i have created, but i do not know how to assign the list of values to these parameters
    Parameter Prompt
    Data Type
    Page Element
    Default Value
    Required
    Book
    String
    Text box
    Yes
    Currency
    String
    Text box
    Yes
    Period
    String
    Text box
    Yes
    Batch
    String
    Text box
    No
    Step 4:-
       Now when i navigate to schedule process, when i click Schedule New Process Button in the list of values i can see the job which i created. When i submit the job is completing with error.
       When i open the xml file, file is blank and no data is available in the file.
       When i open the log file i see the below error
    dummy file is deleted
    ================ BIPJobExecutable Execution Started ============
    OutputFile : /u01/APPLTOP/instance/ess/rfd/67068/out/67068.xml
    Request ID: 67068 ClassLoader is weblogic.utils.classloaders.GenericClassLoader@1c85c3a finder: weblogic.utils.classloaders.CodeGenClassFinder@1c85cb3 annotation: FinancialsEssApp#V2.0@
    RequestId:67068
    ReportID : /Custom/Financials/Fixed Assets/Tracking/FLY FA Transfers Report.xdo
    Process : BIPDocGen
    The bipJobID : 6252
    bipJobID is updated to ESSRuntimeService
    BIP_STATUS_URL is added to ESSRuntimeService
    ================ BIPJobExecutable is running in async mode. ============
    ================ Please check the ess status for more detail info. ============
        Am i doing anything wrong while creating the job?
    Note :- I created another test data model and report with 'Select SYSDATE from dual' and am able to see the report completing successfully.
    Please kindly help, i am failing to meet my deadlines.
    Regards,
    Prasad R

    Hello Jani Rautiainen,
        Thanks a lot for replying my question.
        This is the first time i am working with the BI Publisher reports and fusion applications.
        My requirement is to add few columns to the standard report with out loosing the functionality.
        I was not aware that there is two ways of doing this, i was always copying data model and report to a new folder and trying to create a new job for the report.
        As mentioned in the document 7.2.1.4 Using the Customize Feature    , i clicked on the more button on my report but i do not see the customize option. Do i need to have any specific role for this to appear in the menu? Please kindly let me know.
        Also i see below limitations while customizing report
    Limitations
    Following are limitations of the Customize report option:
    The Customize option is only available through direct access to the BI Publisher server using the /xmlpserver URL (for example:http://hostname.com:7001/xmlpserver). The Customize option is not available through the /analytics URL used to access Oracle Business Intelligence Enterprise Edition.
    The Customize option is available only for reports. The Customize option is not available for data models, style templates, or sub templates.To customize data models, style templates or sub templates and insulate them from potential changes from patching: Make a copy of the data model, style template, or sub-template and either rename it or place it in a custom folder. Ensure that you update any reports to point to the customized data model, style template, or sub template.
        My requirement is to add few additional columns which needs Data Model to be modified, Can i copy the data model to the custom folder and do my modifications and point this data model in the report(as mentioned in the point 2 in the limitations)? In that case, will the original report submission works?
    Regards,
    Prasad R

  • I'm new to flash and need help with some controls

    I'm builidng a site that has a portfiolio of work to display.
    When the visitor arrives at the portfolio page he (or she) is
    faced with a split panel. The right panel displays a summary of a
    client and the work. The left panel displays the work examples
    attributed to that client. By clicking forward and backward arrows
    in the right panel, the visitor can call the summaries of the
    different clients. Landing on a client page 'opens' a separate swf,
    called using loader component, that contains the portfolio of that
    client's work into the left panel
    1. I want forward and backward arrows located on the main
    movie in the left panel to control the progress of the loaded swf,
    rather than using forward and backward arrows on the loaded swf.
    2. I want to prevent the forward and backward arrows in both
    panels from clicking beyond frames in the Portfolio area of the
    timeline.
    3. I want the backward arrow to be innactive on the first
    frame, and the forward arrow to be innactive on the last frame.
    I have no problems making the arrows work on the main movie
    controlling the client summaries. What I don't know how to do is
    make them control the movement of the loaded swf, or #2 and #3.
    Any help will be greatefully appreciated. Thanks in advance,
    Art

    "Art Lazaar" <[email protected]> wrote in
    message news:[email protected]...
    > Tralfaz,
    >
    > Thanks for your response. I must be missing something
    very simple here, but I
    > can't make this work no matter what I do. Let me see if
    I understand some of it:
    >
    > On my main movie I put the fwd_btn and rew_butn
    codes...do I put these on the
    > actual buttons, or in an actions time line? When I put
    them on the buttons, I
    > get an error report saying they need to be in an 'on'
    event handler. I thought
    > that's what 'onRelease' was.
    >
    > On my loaded movie, I place the 'one.swf' code. I'm not
    sure what you mean by
    > placing the code inside a loop, I don't seem to be able
    to find a reference to
    > using 'loop' anywhere. When I use an 'onEnterFrame', I
    presume I do that with
    > onEventClip(enterFrame). When I do that, if I run the
    'one.swf' by itself, i
    > get an error report saying onEeventClip is for movies
    only. But there's no
    > error report when it loads from the main movie. What
    happens tho' is it loops
    > continuously, even if there are stops() in it.
    >
    > Boy, am I confused ;)
    >
    > I am really baffled by this seemingly simple little
    task. Your help is
    > gratefully appreciated.
    >
    > Art
    >
    >
    >
    Hi Art,
    There are different coding methods, depending on where you
    put code..
    1) Frame code
    Click on a frame of the timeline to enter frame code
    2) Attached code for movieclips and buttons
    Click once on a movieclip or a button then enter attached
    code
    To make an onEnterFrame event for a movieclip, first chose
    either frame code or attached code method. I personally rarely ever
    use
    attached code because it hides code in places that can be
    hard to find. Almost all my coding is frame code, but it's a
    personal
    choice.
    Frame code method to make an onEnterFrame for the main
    timeline..
    // put this code into a frame on the main timeline
    this.onEnterFrame = function()
    // do something once per frame at the frame rate
    checkMyButtons(); // once per frame we will check on the
    button status
    OR
    Attached Code method to attach an onEnterFrame event to a
    movieclip
    // click once on the movieclip (don't dbl click it .. stay at
    the root timeline level)
    onClipEvent(enterFrame)
    // do something once per frame at the frame rate
    Those two types of code are not interchangeable. One type
    must be entered into a frame and the other style must be attached
    to a
    movieclip or you will get errors.
    Then there is the DOT syntax way to write frame code that is
    equivalent to attaching code..
    myMovieClip.onRelease = function()
    trace("release");
    myMovieClip.onPress = function()
    trace("press");
    myMovieClip.onDragOut = function()
    trace("drag out");
    tralfaz

  • Need help with custom column in BI Publisher

    Hi Guru's
    I have started working with BI Publisher Recently and need with below issue
    Can you please let me know how can i create a custom column like % based on two existing measures in the report
    I tried creating it in obiee report and used that SQL to create BI Publisher Report , but the result column in obiee is not working as expected in BI Publisher,
    can some one please help me with this
    Thanks a lot in advance.

    This column can be calculated in BIP RTF template. But if it is a column inside a FOR-loop
    then it may need to be calculated slightly different.
    Like I said, get the xml data and rtf then send it to me : [email protected]
    and will get it fixed for you.
    thanks
    Jorge

  • I need help with motion control. I am programming in Visual Basic. I will need help with what parts I need to purchase from NI, along with help on the code.

    I am using a Papst servo motor and I need to know where to start and what to purchase to get this motor to spin. I am using visual basic and in my program I calculate the direction and RPM's needed from the motor. It will spin anywhere from 1 to 10000 RPM's. It seems rather easy, but I have no idea on how to spin the motor at the specific RPM, and stop it with a command stop in the program. Please help.

    We really should know a little more about your intended uses for this system, but assuming you want to do relatively simple (or even not so simple!) motion, you'll need a few components...
    A motion controller, such as the PCI-7342, can take your VB commands and turn them into the commands needed to "run" the motor. Next you'll need a drive, such as the MID-7342. This includes the servo amplifier that actually powers the motor. It also has connections to "pass through" the encoder signals from the motor back to the motion controller.
    The above-named pieces assume one or two axes of motion. You'll also need a cable to connect the two (can't remember the model right now). You can use MAX to configure the motion controller, and there are just a few VB calls you
    'll need to make using NI-Motion functions to define the motion and get it going.
    Hope this helps!

  • Need help with 'Virtual Controll'

    I have a Document Class Called Main, Im not used to using classes and document classes ect. So im making a racing game for Ipad. So i need virtual controls so the user can operate the automobile.
    So within this class i have a function that controlls the player by key input.. (See code below)
    The problem is, i went on the internet and found a 'virtual controll' for the movement. But i am unsure as how to implement it - The link (http://blog.flashgen.com/gaming/general-gaming-articles/virtual-controllers-for-touch-base d-devices-pt-2/)
    The file comes with two things, a Fla, and a ThumbStick.as, the thumbstic as is a document class its self so i can't have two document classes. I really need this to work as the project is due soon. (I will attach the thumbstick.as code below aswell)
    HERE IS THE CODE THAT ALLOWS THE PLAYER TO MOVE.   
    // respond to key events
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyPressedDown);
    stage.addEventListener(KeyboardEvent.KEY_UP,keyPressedUp);
    // advance game
    addEventListener(Event.ENTER_FRAME, moveGame);
    // set arrow variables to true
    public function keyPressedDown(event:KeyboardEvent) {
    if (event.keyCode == 37) {
    leftArrow = true;
    } else if (event.keyCode == 39) {
    rightArrow = true;
    } else if (event.keyCode == 38) {
    upArrow = true;
    } else if (event.keyCode == 40) {
    downArrow = true;
    // set arrow variables to false
    public function keyPressedUp(event:KeyboardEvent) {
    if (event.keyCode == 37) {
    leftArrow = false;
    } else if (event.keyCode == 39) {
    rightArrow = false;
    } else if (event.keyCode == 38) {
    upArrow = false;
    } else if (event.keyCode == 40) {
    downArrow = false;
    // main game function
    public function moveGame(e) {
    // see if turning left or right
    var turn:Number = 0;
    if (leftArrow) {
    turn = .3;
    } else if (rightArrow) {
    turn = -.3;
    // if up arrow pressed, then accelerate, otherwise decelerate
    if (upArrow) {
    speed += .1;
    if (speed > 5) speed = 5; // limit
    } else {
    speed -= .05;
    if (speed < 0) speed = 0; // limit
    // if not on the road, then slow down
    if (!ground.road.hitTestPoint(275,350,true)) {
    speed *= .95;
    // if moving, then move and turn
    if (speed != 0) {
    movePlayer(-speed*10);
    turnPlayer(Math.min(2.0,speed)*turn);
    zSort();
    private function movePlayer(d) {
    // move player by moving terrain in opposite direction
    worldSprite.x += d*Math.cos(dir*2.0*Math.PI/360);
    worldSprite.z += d*Math.sin(dir*2.0*Math.PI/360);
    // move car opposite of terrain to keep in place
    car.x -= d*Math.cos(dir*2.0*Math.PI/360);
    car.y += d*Math.sin(dir*2.0*Math.PI/360);
    private function turnPlayer(d) {
    // change direction
    dir += d;
    // rotate world to change view
    viewSprite.rotationY = dir-90;
    // rotate all trees and car to face the eye
    for(var i:int=0;i<worldObjects.length;i++) {
    worldObjects[i].rotationZ -= d;
    // sort all objects so the closest ones are highest in the display list
    private function zSort() {
    var objectDist:Array = new Array();
    for(var i:int=0;i<worldObjects.length;i++) {
    var z:Number = worldObjects[i].transform.getRelativeMatrix3D(root).position.z;
    objectDist.push({z:z,n:i});
    objectDist.sortOn( "z", Array.NUMERIC | Array.DESCENDING );
    for(i=0;i<objectDist.length;i++) {
    worldSprite.addChild(worldObjects[objectDist[i].n]);
    HERE IS THE THUMBSTIC.AS CODE -
    package 
    import flash.display.Sprite;
    import flash.events.TouchEvent;
    import flash.system.Capabilities;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.ui.Multitouch;
    import flash.ui.MultitouchInputMode;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    public class ThumbStick extends Sprite
    private var _thumb :Sprite;
    private var _surround :Sprite;
    private var _boundary :Sprite;
    private var _degrees :Number;
    private var _radius :Number = 25;
    private var _primaryKeyCode :int;
    private var _secondaryKeyCode :int;
    private var _previousPrimaryKeyCode :int;
    private var _previousSecondaryKeyCode :int = 0;
    public function ThumbStick()
    _thumb = thumb;
    _surround = surround;
    _boundary = boundary;
    _boundary.width = 200;
    _boundary.height = 200;
    _boundary.alpha = 0;
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    if(Capabilities.cpuArchitecture == "ARM")
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    _thumb.addEventListener(TouchEvent.TOUCH_BEGIN, onThumbDown);
    _thumb.addEventListener(TouchEvent.TOUCH_END, onThumbUp);
    _surround.addEventListener(TouchEvent.TOUCH_END, onThumbUp);
    _boundary.addEventListener(TouchEvent.TOUCH_END, onThumbUp);
    else
    _thumb.addEventListener(MouseEvent.MOUSE_DOWN, onTestThumbDown);
    _thumb.addEventListener(MouseEvent.MOUSE_UP, onTestThumbUp);
    _surround.addEventListener(MouseEvent.MOUSE_UP, onTestThumbUp);
    _boundary.addEventListener(MouseEvent.MOUSE_UP, onTestThumbUp);
    protected function initDrag():void
    _thumb.startDrag();
    addEventListener(Event.ENTER_FRAME, onThumbDrag);
    protected function resetThumb():void
    removeEventListener(Event.ENTER_FRAME, onThumbDrag);
    killAllEvents();
    _thumb.stopDrag();
    _thumb.x = 0;
    _thumb.y = 0;
    protected function onThumbDrag(e:Event):void
    // Store the current x/y of the knob
    var _currentX :Number = _thumb.x;
    var _currentY :Number = _thumb.y;
    // Store the registration point of the surrounding 'joystick holder'
    var _registrationX :Number = _surround.x;
    var _registrationY :Number = _surround.y;
    // Subtract the two from each other to get the actual x/y
    var _actualX :Number = _currentX - _registrationX;
    var _actualY :Number =  _currentY - _registrationY;
    // Calculate the degrees for use when creating the zones.
    _degrees = Math.round(Math.atan2(_actualY, _actualX) * 180/Math.PI);
    // Calculate the radian value of the knobs current position
    var _angle :Number = _degrees * (Math.PI / 180);
    // As we want to lock the orbit of the knob we need to calculate x/y at the maximum distance
    var _maxX :Number = Math.round((_radius * Math.cos(_angle)) + _registrationX);
    var _maxY :Number = Math.round((_radius * Math.sin(_angle)) + _registrationY);
    // Check to make sure that the value is positive or negative
    if(_currentX > 0 && _currentX > _maxX || _currentX < 0 && _currentX < _maxX)
    _thumb.x = _maxX;
    if(_currentY > 0 && _currentY > _maxY || _currentY < 0 && _currentY < _maxY)
    _thumb.y = _maxY;
    dispatchKeyCombo();
    protected function dispatchKeyCombo():void
    _secondaryKeyCode = 0;
    // Thumb stick position - Right
    if(_degrees >= -22 && _degrees <= 22)
    _primaryKeyCode = Keyboard.RIGHT;
    // Thumb stick position - Down
    else if (_degrees >= 68 && _degrees <= 112)
    _primaryKeyCode = Keyboard.DOWN;
    // Thumb stick position - Left
    else if((_degrees >= 158 && _degrees <= 180) || (_degrees >= -179 && _degrees <= -158))
    _primaryKeyCode = Keyboard.LEFT;
    // Thumb stick position - Up
    else if(_degrees >= -112 && _degrees <= -68)
    _primaryKeyCode = Keyboard.UP;
    // Thumb stick position - Up/Left
    else if(_degrees >= -157 && _degrees <= -113)
    _primaryKeyCode = Keyboard.UP;
    _secondaryKeyCode = Keyboard.LEFT;
    // Thumb stick position - Down/Left
    else if(_degrees <= 157 && _degrees >= 113)
    _primaryKeyCode = Keyboard.DOWN;
    _secondaryKeyCode = Keyboard.LEFT;
    // Thumb stick position - Up/Right
    else if(_degrees >=-67 && _degrees <= -21)
    _primaryKeyCode = Keyboard.UP;
    _secondaryKeyCode = Keyboard.RIGHT;
    // Thumb stick position - Down/Right
    else if(_degrees >= 23 && _degrees <= 67)
    _primaryKeyCode = Keyboard.DOWN;
    _secondaryKeyCode = Keyboard.RIGHT;
    if(_primaryKeyCode != _previousPrimaryKeyCode)
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, _previousPrimaryKeyCode));
    _previousPrimaryKeyCode = _primaryKeyCode;
    if(_previousSecondaryKeyCode != _secondaryKeyCode)
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, _previousSecondaryKeyCode));
    _previousSecondaryKeyCode = _secondaryKeyCode;
    if(_secondaryKeyCode > 0)
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, _secondaryKeyCode));
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, _primaryKeyCode));
    protected function killAllEvents():void
    if(_primaryKeyCode)
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, _previousPrimaryKeyCode));
    if(_secondaryKeyCode > 0)
    dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, _previousSecondaryKeyCode));
    protected function onThumbDown(e:TouchEvent):void
    initDrag();
    protected function onThumbUp(e:TouchEvent):void
    resetThumb();
    protected function onTestThumbDown(e:MouseEvent):void
    initDrag();
    protected function onTestThumbUp(e:MouseEvent):void
    resetThumb();

    Edit, Thumbstick.as is not a document class it is a as file attahced to the actual graphic in the library. I guess the real problem (Besided adding it to my existing code) is adding it to the stage, as all my content for the game is added through code.

  • Need Help With Custom Calculation Script

    Hey everyone.  I'm using Acrobat Pro X and stumbling a bit on the syntax for the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3".  However,the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 & "Cell2".  For example: If the user enters "3" into "Cell3" I need the returned value to be 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" into "Cell3" I need the returned value for "Cell3" to be 9% of the sum of "Cell1 & Cell2" and the end result needs to be the sum of "Cell1+Cell2+Cell3".  In greater detail:
    If "Cell1" = $500, "Cell2" = $500 and "Cell3" = "3" then I need the returned value to be $1030.00.
    I hope this makes sense. Here's what I have so far but alas, it's not working.  Any help would be GREATLY appreciated.
    // Get first field value, as a number
    var v1 = +getField("Cell1").value;
    // Get second field value, as a number
    var v2 = +getField("Cell2").value;
    // Get processing field value, as a number
    //var v3 = +getField("Cell3"/100).value;
    // Calculate and set this field's value to the result
    event.value = v3+(v1+v2);
    Thanks,
    Solan

    I posted an answer but realized it wasn't what you wanted. There is some confusion about what you want for Cell3. On the one hand, you say you want the user to enter a vaule in the field, but them you say you want its value to be calculated based on what the user enters and two other field values. It seems to me Cell3 should be the field that the user enters the percentage and the calculated field's (Cell4) script could then be:
    // Get first field value, as a number
    var v1 = +getField("Cell1").value;
    // Get second field value, as a number
    var v2 = +getField("Cell2").value;// Get processing field value, as a number
    // Get the percentage
    var v3 = +getField("Cell3").value;
    // Calculate and set this field's value to the result
    event.value = (1 + v3 / 100) * (v1 + v2);

  • Need help with Customer Exit

    HI Guys,
          I am trying to create a Customer Exit in Bex on employee number (zempno) and the technical name of my Customer Exit is Zempnum.
    What i am trying do is, who ever logs in and executes the query, he should get his relavant data, meaning if the employee login he should get his own data, or if the supervisor logs in he should get all the employess under him.
    When i am trying to execute the query i am getting the below error.
    Error: Error for variable in customer enhancement ZEMPNUM
    Diagnosis:
    This internal error is a deliberate termination, since a program status has arisen, that is not allowed to occur.
    The error has arisen for variable ZEMPNUM in the customer enhancement .
    Procedure:
    Please check your customer enhancement.
    Procedure for System Administration
    Notification Number BRAIN 649
    Below is my code
    *& Include ZXRSRU01
    data : itab like /BIC/AZHRPE00100 occurs 0 with header line .
    data : zuid like /BIC/AZHRPE00100-/bic/zempno.
    data region type /BIC/OIZCDOTREG1.
    break-point.
    case I_VNAM.
    WHEN 'ZEMPNUM'.
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    IF I_STEP = 2. "before the popup
    DATA username(20) type c.
    username = sy-uname.
    break-point.
    select single /bic/zempno from /BIC/AZHRPE00100 INTO zuid where /bic/zuserid = username.
    if sy-subrc = 0 .
    select * from /bic/azhrpe00100 into table itab where /bic/zempno = zuid.
    endif.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = ZUID."low value, e.g.200001
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'eq'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDIF.
    ENDCASE.

    HI,
      This is the update code, but still i am getting the same error.
    *& Include ZXRSRU01
    DATA: L_S_RANGE TYPE RSR_S_RANGESID,
    LOC_VAR_RANGE LIKE RRRANGEEXIT. " This is Global
    data : itab like /BIC/AZHRPE00100 occurs 0 with header line.
    data : temp_zempno like /BIC/AZHRPE00100-/bic/zempno.
    *region type /BIC/OIZCDOTREG1,
    data : itab_empno like standard table of temp_zempno.
    *itab_empno like /BIC/AZHRPE00100-/bic/zempno.
    *break-point.
    case I_VNAM.
    WHEN 'ZEMPNUM'.
    IF I_STEP = 1. "After the popup
    *break-point.
    select single /bic/zempno from /BIC/AZHRPE00100 INTO temp_zempno
    where /bic/zuserid = sy-uname.
    Check if he is the supervisor for any other employees
    add them to the internal table
    Check the syntax below.
    if sy-subrc = 0 .
    if sy-subrc = 0 .
    select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspnm = temp_zempno.
    *select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspno = temp_zempno.
    endif.
    endif.
    *Add Own Employee number to the internal table
    *Check the syntax below
    Append temp_zempno to itab_empno.
    *By now, all the employee numbers are added
    to the internal tabe
    *now loop at itab_empno and return all the values.
    CLEAR L_S_RANGE.
    loop at itab_empno into temp_zempno.
    L_S_RANGE-LOW = temp_zempno.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    Thanks,
    kris

  • Need help with user ID for this forum

    I have problem that I can't seem to get resolved online which involves my Apple Support user ID... Sorry to post this here, but I don't know where to go for help.
    I have been a member of the apple community for a long time (since 2002) but my login ID and user ID seem to have been disconnected. Happened when I tried to sign in once and had all kinds of problems. Now I've created a new user ID but would like my old one back. I've tried several times to get my original user ID back, but there seems to be no way to get it back... If I sign up for the user ID, it tells me that it is taken (because its mine).
    Can you help me? Is there a real person I can contact who can help me?
    Thanks for any support.

    try calling Apple suport

  • Need Help with Custom Form Field Backgrounds

    I'm tryng to add a custom background image to a file upload
    field in a form and it is not displaying correctly in Firefox. Is
    there a way to do this? The background shows up fine in other
    fields just not in the field that I apply ( type="file" ) to.
    Here is a sample of the page:
    BroBraBlahBlah Test
    site

    Background images in form fields are not reliable....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "PieEyed" <[email protected]> wrote in
    message
    news:enefqt$80g$[email protected]..
    > I'm tryng to add a custom background image to a file
    upload field in a
    > form and
    > it is not displaying correctly in Firefox. Is there a
    way to do this? The
    > background shows up fine in other fields just not in the
    field that I
    > apply (
    > type="file" ) to.
    >
    >
    Here is a sample of the page:
    http://www.brobrablahblah.com/test
    >

Maybe you are looking for

  • Loading XML file using sql*loader (10g)

    Hi Everyone.... I have a major problem. I have a 10g database and I need to use sql loader to load a large XML file into the database. This file contains records for many, many customers. This will be done several times and the number of records will

  • How do you easily move the position of a photo in an album?

    Want to move a photo from the last position in an album to the first. Tried cut paste/tried drag/havent found the answer. Thanks, photogranny

  • Uninstall install parallels

    Having problems with Parallels so I decided to do an uninstall re-install, my problem is that after doing the uninstall I still have a lot (pics) of parallels in my system. I don't want to lose my vm hence my crazy question. Does anyone know if when

  • Insert Chinese Data(Character Set

    Can any Chinese DBA tell me how to store chinese data in Oracle 8.1.5.0.0 Database. I tried the combination of UTF8 database character set with UTF8 national character set and UTF8 database character set with ZHS16MACCGB231280 national character set.

  • My ipod is zoomed in, so the stuf is huge and i cant unlock it

    pleaseHELP!!!! my ipod is zoomed, frozed, and nothing will work!!!