How to create an interactive cursor that returns a numeric value.

Hello world

I am trying to create an interactive slider that the user can drag an icon from left to right, in order to select a numerical value. This numeric value will be output to a dynamic text box to capture the data. Please see the example at the link below...

http://www.carbontrust.co.UK/solutions/CarbonFootprinting/carbonfootprintindicator.htm

I welcome suggestions of action script to create a slider like that.

Thanks for your help

Just as an example, open a new file and add a movieclip on the stage... give it an instance name of "handle" and place it at x = 0, y = 100.  Then place this code in a layer of actons (code red, it's how the drag limits are set)

handle.addEventListener (MouseEvent.MOUSE_DOWN, mouseDown)

function mouseDown(event:MouseEvent):void {}
handle.startDrag (false, new Rectangle (0, handle.y, 200, 0));
}
handle.addEventListener (MouseEvent.MOUSE_UP, mouseReleased);

function mouseReleased(event:MouseEvent):void {}
handle.stopDrag ();
}

Tags: Adobe Animate

Similar Questions

  • How to execute a stored procedure that returns a cursor?

    How to execute a stored procedure that returns a cursor?

    Follow the code:

    CREATE OR REPLACE PROCEDURE stp_cashin_grupo
    (p_func in VARCHAR
    p_cod_grup in full
    p_des_grup in VARCHAR
    p_logi in VARCHAR
    p_curs_rset ON infoc.pck_cashin_grupo.curs_rset
    )
    IS
    BEGIN

    If p_func = "1" then
    OPEN FOR P_curs_rset
    Select
    cod_grup
    des_grup
    dat_manu_grup
    des_logi_manu
    of infoc.tbl_cashin_grupo
    order of des_grup;
    end if;
    END stp_cashin_grupo;


    and packaging:

    CREATE or REPLACE PACKAGE pck_cashin_grupo
    AS
    TYPE curs_rset IS REF CURSOR;
    END pck_cashin_grupo;

    My question is how to execute in sql plus?
    Stp_cashin_grupo EXEC ('1', 0, ", '465990', my doubt is how to move the cursor as return)


    Thank you

    It is described in the manual

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14357/CH5.htm#sthref1122

  • How to create an interactive map?

    How to create an interactive map using digital publishing suite in InDesign? Basically, it's a map of the amusement park and when you click on a button I want a page of description of a turn to show that has interactivity on him and then it can be closed and another button on the map can be clicked to view another page of description of a different turn. Is this possible?

    Use a multi state object. According to how many point of interest you want on this map, it can become quite involved.

  • How to create an action link that goes to a section that is 'hidden' in the same page

    Hello

    OBIEE 11, I have a dashboard page that has section 1 as a guest, 2 which shows an analysis that contains a chart and article 3 that shows the details of the graph. I have an action to link this graphic article 2 connection to the details in section 3. However, I would like my report to the do not appear in article 3 as long as you press the link of action. Is there a way to 'Hide section 3 until you press the link action?' Thank you!

    Hello

    Try to avoid the double-display: How to create an action link that goes to a section that is 'hidden' in the same page

    Felipe_Idalgo meets the other post (and he posted the best answer to your needs), in order to continue the other thread instead of opening another.

  • How to create an interactive chart in ScriptUI?

    It is a ScriptUI Panel, I want to know how to create the interactive chart?

    When I click on the point in the chart, it will be selected.

    imge.png

    For the CEP panels, better start reading here:

    CEP 6 Extension HTML Cookbook for 2015 CC · Adobe-CEP/CEP-resources Wiki · GitHub

  • How to create a Web site that users can connect to?

    Hey guys

    How to create a Web site that users can connect to?

    How to create a site that users can connect to with steam, facebook, twitter, etc...

    See this discussion where a similar topic was discussed.

    Login using Muse and British Colombia page

    Thank you

    Preran

  • How to create a gallery page that you can click on an image, expand it and move left or right to see more images?

    How to create a gallery page that you can click on an image, expand it and move left or right to see more images?

    @

    You can use the slideshow widget to do this. For more details: Adobe Muse Help | Working with slide show widgets

  • How to create the text field that accepts (only Alphabates no numbers or numbers)

    Hey guys,.

    I just want to know how to create a text field that accepts (only text without characters or numbers)?

    I want to insert validation that field only accepts the alphabates no number or numbers are allowed!


    Thanks in advance!

    In the designer, click the field that you need to validate and open the script window, together the menu show drop-down list to validate in the drop-down list and place the code in the script window. Make sure that the language is Javascript and run is defined on the Client. If you don't see the script window goto window-> Script Editor Menu item.

  • How to create crystallize effect like that?

    How to create crystallize effect like that?

    46e0c14de2e8c0b7db52a5123fef497b.jpg

    I know that this can be done with the "3D postcard" and make the settings (vertices, edges, lights).
    But how can I create crystallized texture even like that? Then, which would create "postal 3D map.

    But how can I create crystallized texture even like that?

    You can not. Not in PS. It is a Voronoi tesselation motif created by dividing a contour of mesh 3D accordingly. Of course the filter Crystalize product model, but like cards post 3d are based on uniform grid subdivision, you do not get the vertices and edges. There you go...

    Mylenium

  • How to create an Interactive Moving experience or object which reacts to the slider of the Viewer?

    Hello

    I started to create a site in muse and I try to create an object that will react to the slider of the Viewer.

    I have a fix Center, whole and other image that had to move with the movement of the cursor as in this tutorial: create a moving background/interactive object that reacts to the slider of the viewer

    I want to do of muse and do not know how to proceed,

    Thank you

    Hello

    It has no native function in Muse to achieve this. If you can get the code for this, you can add it to your site by using the function insert the HTML code.

    Kind regards

    Aish

  • How to create a Ref cursor table

    I have a proc that returns a Ref Cursor, what is the easiest way to create a table based on the return of the ref cursor?

    declare
    type rc is ref cursor;
    p_data rc;
    Start
    call_my_proc (p_data);
    : result: = p_data; ((- If I run this in TOAD I can see the data here, but I want to create a table based on it rather than showing)
    end;


    Thank you.


    Edit: sorry. typed this wrong, first time, should be right now

    I recommend you read this first... {: identifier of the thread = 886365}

    and then you'll have a better idea of how to make to create a table in your query.

  • Interactive report that returns 0 rows on the initial screen of forcing

    How can I get the initial display of my interactive to have 0 rows (and quickly) reports on the initial display, so that the user can determine the lines they want without having to wait for the report view without much in the way of the filters?

    My reports many lines of 50-100 k with several joins of tables: so they are slow and the initial default result set is not useful for them, until they start of construction interactive filters themselves.

    I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning the default #of ranks backward, THEN that wraps like a subselect and applies to the i / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...

    I'm experimenting also with a flag of pxx_firsttime, intiall value, and according to my report SQL NVL(:Pxx_FIRSTTIME,'Y') = n and (rest of joins of tables)...
    the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?

    Thank you

    Hello

    I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning back by default #of lines, THEN that wraps like a subselect and applies the > I / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...

    Yes, you are right.

    I assume that you already have using the paging Type as line from X to Y.

    the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?

    Whenever the user do something with 'Actions', APEX IR will get updated. Thus, to create a dynamic Action that will be triggered before the refreshment of your IR, update the session state from P1_FIRSTTIME_FLAG to "n".

    Kind regards
    Hari

  • How to create a camera profile that works with a JPG image with my color chart to check inside? [was: color Checker chart.] Really need help]

    I got a color chart to check. It came not with any software whatsoever. I shoot my images in JPG format. I know it's not really ideal but I'm on a tight budget and don't have the money for a digital SLR cameras that shoot raw. Is there anyway that I can always create a camera profile that works with a JPG image with my color chart to check inside? My table also includes RGB values below each color. Maybe I can match each color in the photo these values manually? If so how is this done?

    Thank you

    Bryce

    I've never seen software that does what you ask for JPGs, only RAWs.  The main problem is that any profile or adjustment is calculated according a JPG of a particular chart photo would apply to the other JPG photos with the same white balance.

    Jpg does not use "camera profiles" anyway in Lightroom, the profile is always integrated.

    There is a product that allows to calculate the HSL cursor offset values given a JPG photo their own table owner who looked like a color checker, but had two lines reversed so the software could not be used with a standard-checker color, unfortunately.  Now their table has twice as many patches (48), and looking at it on their site I'm not too sure that it does not always work with JPGs or if she's just raw files, now.

    The graphic and software are called SpyderCheckr of Datacolor.  There are various software that do different things, but none are using a ColorChecker, so having one is mainly a loss until you get a camera that can take raw photos, so keep a humidity and temperature controlled environment as much as possible until you have the right camera.  You can probably use the grey patches to adjust exposure, but that's all.

    Today you need not a digital SLR to have raw photos, well.  My phone Galaxy S6 with the last update of Marshmallow and the software of camera update will take photos in format raw DNG in Pro mode which I can create custom profiles camera to use a ColorChecker, although the camera is really good in itself, so when I found everything first he could make DNG I took a little but now, I usually just use the camera to make the jpg unless the shot is really important and the lighting is not too hard.  I think that S7 phone's camera is even better.

    What kind of camera do you have?  Sometimes, there are firmware hacks that allow the camera to shoot raw format even if the standard camera cannot.

  • How to create a REF CURSOR from the static values?

    We call for a program of power supply (from PL/SQL) that returns a string with data (separated by {}), lines like this:
    {packetId:236,packetName:ADSL-320K-1M-3G},
    {packetId:257,packetName:ADSL-1024K-1M-20G},
    {packetId:232,packetName:ADSL-INTERANET-UNLIMITED},
    {packetId:234,packetName:ADSL-512K-3M-16G},
    ..................
    .........
    .....
    Our PL/SQL procedure should exit a REF CURSOR with lines like this:
    236,  ADSL-320K-1M-3G
    257,  ADSL-1024K-1M-20G
    232,  ADSL-INTERANET-UNLIMITED
    234,  ADSL-512K-3M-16G
    .........
    ......
    How do this pls?

    Published by: Channa on May 18, 2012 02:30

    Hello

    Channa wrote:
    It's the first gives ORA-00942: table or view does not exist for the FROM t . When I can replace the t split_t , I get ORA-32031: illegal reference to a query with the term name.

    What is at stake here pls?

    Use the name of your real of the table where I used t.
    If you don't have a table, just a string, then select the double.

  • How to create an interactive PDF with variable data

    We basically have a "mail merge" to our list of customers with an interactive PDF file (including videos, menus, etc. - not only form fill and web links) to create a single PDF that contains several pieces of mail... one for each customer... with each total mail being customized for this customer.  Customizations would include different greetings (Bob dear, dear Dana, etc), as well as the different graphs based on unique data to the client, photographs, etc.

    I saw that InDesign and Acrobat Professional can be used to create an interactive PDF (such as http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  But I don't understand how I can insert data into a database, csv, excel etc. in the PDF file file so that each page, or each set of pages in the PDF file can be customized.

    Can someone tell me a tool to use for this?

    Thank you

    Bob Kendall

    I'm new on this and didn't know InDesign could do a data merge, thank you for pointing that out.

    However, we currently produce hundreds of thousands of personalized daily electronic documents, a PDF file or Web user interaction (no, this isn't spam or junk mail).  Our customers have asked us to focus on the generation of personalized interactive PDFs and I fear that the volume could overwhelm InDesign.  My other concern is that all of our work performed automatically (we run hundreds every day) and it is not possible to have a person to sit down, then run InDesign manually for each job.  Our standard operating system need a certain version of unix (AIX or linux), although we can perform tasks under windows if necessary.  It seems, as InDesign will fit in this environment?  If not, is there something else out there?

    Thank you for your time.

    -Bob

Maybe you are looking for

  • should make a new network if I replace my existing router

    I'm changing my router in an airport Time Capsule.  Should I make a new network name or can I just keep the existing one?

  • Satellite Pro A10 with XP SP2 works very slowly

    I have a Satellite Pro A10; 256 RAM with 18 GB of HARD drive. (In think it was sold as a nominal 20GB).It's not particularly loaded with the software, even if the HD is about 90% full and is used primarily for surfing the Internet and word processing

  • Why can't I convert my Windows Server 2012 R2 Core GUI

    Dear friend, I installed windows 2012 base r2 and later I wanted to convert the heart to GUI. For this I executed as a result of processes. # run cmd as administrator # powershell # Import - Module ServerManager # Installation - WindowsFeature Server

  • Update hangs when it tries to install in Windows 7

    just bought a new laptop from Sony with Windows 7 and immediately Windows wants to update with 35 updates.  Updated 17, system crashes, and it has been sitting there to install the update for 4 hours how to stop this and corredt problem.

  • Deposit of Windows Media Player

    When I RIP cd in WMP, why the information is entered in the box of the artist listed as artist to contribute NO album artist in properties? How can I change this, because it means that on my laptop these tracks on the album are all scattered, are not