Question: How to create a text that scrolls on touch imputs

I'm realy new to anything dealing with flash. I'm trying to make an app that contains alot of information under several different sub catagories. i dont want a simple page app where you do the ( next ) page button. I want the app to scroll the text up and down based on touch gestures. The problem is with my lack of experience with flash I don't know the codes that i should use to achieve this concept.
if some one could show me a code that would work for this i would be greatly appriciative.
Again I'm looking for a code that I can apply to a text box that will allow for it to be scrolled up and down using a touch gesture. The action snipets that i have been using for most everyting els dosn't seem to have a touch gesture that is complete enough for me to use in this way.

var m,b:Number;
paramF(10,0,tf.height-10,tf.maxScrollV);
tf.addEventListener(MouseEvent.MOUSE_DOWN, downF);
tf.addEventListener(MouseEvent.MOUSE_UP, upF);
function downF(e:MouseEvent):void{
    this.addEventListener(Event.ENTER_FRAME,tfF);
function upF(e:MouseEvent):void{
    this.removeEventListener(Event.ENTER_FRAME,tfF);
function tfF(e:Event):void{
    tf.scrollV = Math.min(tf.maxScrollV,Math.max(0,Math.round(m*tf.mouseY+b)));
function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void{
    m = (y1-y2)/(x1-x2);
    b = y1-m*x1;

Similar Messages

  • How to create a text tag that shows up in a file but not on the sceen.

    I need some help, I'm a newbie with enough skill to be dangerous.  If someone can point me in the right direction has to how to use the F keys to apply the tagging mentioned below and the direction of how to do the tagging and make the tag invisible
    in a text editor but not the text file.  That would be great.  If you wish to show some code examples that's OK, but if not I can stumble through and learn while doing it from your directions on how to get it done.
    I will start with an example of what I'm trying to do; using the old desktop pub program Ventura.  They had (what I'm calling a tag) tags in from of ASCII text in a file to tell the program what it was and what to do with it, I. E.; "Title@this
    is the title text" the next line could be "Body@this is body text".  When loaded the "Title@" would not be there on the screen.
    I'm trying to create some text that uses a similar concept but not for formatting of text like Ventura. 
    I want to be able to highlight some text in an editor and then have it place some sort of tag for the highlighted text so that I could use it to do something upon that text and only that text; in concept the text "Bob Brush was a painter." I would
    highlight Bob Brush and somehow assign a tag that would be "name" and then highlight "painter" and be tagged with "job".
    The text file would then have something in it to distinguish "Bob Brush" and "painter" as what each is name and job.  (as a note I'm not trying to make a database or form just using this simplified concept to get my idea across
    because I get to wordy).
    Thanks in advance BK
    blk

    Hi bik,
    >> how to use the F keys to apply the tagging mentioned below and the direction of how to do the tagging and make the tag invisible in a text editor but not the text file. 
    It is unclear to me. Like you mentioned F keys, how does it work for?  And Could you show us some code with a simple sample or a capture? It could be better to help us understand more.
    In addition, I found a related thread
    Tag editing in a WPF TextBox. Not sure if it is useful for you. Thanks.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a text box in ascreen painter?

    HI friends can anyone tell me how to create a text box in a screen painter?
    And attachment BROWSER like what we attach for any documents in over mail.
    Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
    Thks

    To get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
    Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
    Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Jonathan

  • How to Create a Text Variable

    Hi Experts...
    Can you please explain me how to create a Text variable...
    In my Cube i had 3 different date fields....
    and as per my requirment i need to create a rolling report for which will display data for 6 months rolling.
    As the date field which i need to use is not mapped to Time Char's (Cal Year,Cal Month...etc)
    For that reason i created below customer exit variable and used offset variables to achieve the rolling 6 months report
    Code used for Customer Exit VAriable:
    WHEN 'ZC_Cmonth1'. " Current Cal Month Car Expiry
    IF i_step = 2.
          CLEAR l_s_range.
    determine date
        LV_SYDAT     =  SY-DATUM.
        LV_YEAR_ACT  =  SY-DATUM+0(4).
        LV_MONTH_ACT =  SY-DATUM+4(2).
    Set begin date of intervall
    CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '01' INTO LV_DATE_LOW.
    Set end date of intervall
    CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '31' INTO LV_DATE_HIGH.
    Fill ranges-tab with: include all values between beginning of year
    and actual date
      CLEAR E_T_RANGE.
      CLEAR L_S_RANGE.
      L_S_RANGE-SIGN = 'I'.
      L_S_RANGE-OPT  = 'BT'.
      L_S_RANGE-LOW  = LV_DATE_LOW.
      L_S_RANGE-HIGH = LV_DATE_HIGH.
      APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    Now i need to create TEXT VARIABLE that will display the Month Name in the column name
    Please update in detail step how to create a Text Variable

    In your specific requirement select the which ever the keyfigure you want  to analyse, go to edit mode of keyfigure propeties there select the newvariable type and create the Text variable by maintaining the proper offset start and length and also maintain the in whcih format u want see the month name in column headers. Maintain the Text format or key format. it totally depends on u r requirement.
    Hope it will help ful for u.
    Bye,
    Chandu.

  • Wondering how to create a text box with variables...

    Hi everyone,
    I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
    I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
    I hope I've worded this okay!

    This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button  to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
    This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters.

  • How to create a form that will allow the applicant to upload their photo

    I have Adobe Acrobat 9 Pro Extended and I know how to create forms that require text input.
    How to create a form that will allow the applicant to upload their photo? I alo wish to know how to upload a photograph so that I can test the form I created.
    Thank you
    Adrian Watts

    test@ORA10G> with x as (
      2    select '234-1111' as customer, to_date('2-Jan-2008','dd-Mon-yyyy') as call_date, 'Order product' as reason from dual union all
      3    select '234-1132', to_date('3-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      4    select '231-1154', to_date('4-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      5    select '234-1111', to_date('2-Nov-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      6    select '234-1132', to_date('9-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      7    select '231-1154', to_date('9-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      8    select '234-1111', to_date('5-Dec-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      9    select '234-1131', to_date('7-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    10    select '231-1154', to_date('1-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    11    select '234-1111', to_date('8-Jan-2008','dd-Mon-yyyy'), 'Order product' from dual union all
    12    select '234-1131', to_date('3-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    13    select '231-1154', to_date('4-Nov-2007','dd-Mon-yyyy'), 'Forward to Sales' from dual)
    14  --
    15  select customer,max(call_date), reason
    16  from x
    17  where reason = 'Request info'
    18  group by customer, reason;
    CUSTOMER MAX(CALL_ REASON
    231-1154 09-SEP-07 Request info
    234-1131 07-DEC-07 Request info
    234-1132 09-JAN-08 Request info
    test@ORA10G>
    test@ORA10G>pratz

  • Trying to create a text that is on fire or more like a hot branding iron

    Trying to create a text that is on fire or more like a hot branding iron

    Something like this?
    That was from a project I did a few months ago.  Sounds similar to what you want.  I did that in After Effects.
    Basically all I did was add a glow effect to the text and messed around with the glow parameters.  The black smoke is animated and moves on the actual video and is basically some pre keyed smoke footage that I had.  The smoke was originally gray but black looked cooler.
    I'd say it's pretty close to your hot branding iron thing.

  • How do you edit text that is in a text box?

    How do you edit text that is in a text box?  I just want to change the font color of the text.  Solution in the Help files recommends selecting the text and then selecting Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    This is what the help files recommend
    (Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    When I try the above solution I don't have a  "Options" in the "Properties" toolbar.
    Why would they change a process that was so simple in previous editions to such a hidden awkward process?

    Try with a Brightness/Contrast adjustment layer and/or changing the blending mode.
    If the effect is too much for the rest of the bulb, you may be able to mask it out.
    It would help if you post a representative picture here on the forum page for us to look at.

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • How to create an applet that shows a pdf as non-editable.

    Hi friends,
    Does any one know how to create an applet that shows a pdf document (should make that pdf a non-editable one) while clicking a link.Its urgent for me as I have to complete this one tomorrow itself...please help me...
    I am able to view the pdf document but that cannot be make a non-editable one.
    Can anyone gave me the code for that one....please I am not very much good in Java.

    PDF is a proprietary format and Java doesn't support it by default. Are you using a 3rd party tool to create the PDF? If so, you need to review the developer docs to see how to make the document non-editable. Frankly, I don't see why you're using an Applet to view a PDF in the first place. What exactly are you trying to do. I'm confused.

  • How to create a text item dynamically

    Greetings to All Expert,
    Could anyone please tell me how i create a text item with code.The scenario is like this....
    Suppose there is a text item corresponding to department_id=10 and i dont know how many employees r there in this department.Now if the query returns 10 employee then how do i display these 10 employees name.....it may be 20 employees also...i dont know the actual number before executing the query..
    Regards,
    Wel
    Edited by: 787312 on Aug 15, 2010 1:03 AM
    Edited by: 787312 on Aug 15, 2010 4:19 AM

    Hi,
    You can create two blocks for this. One is an unbound block which consist of a text box with a command button. Other block is a bound block from your table(multiple rows block). In hierarchical, unbound block should above above bound block, which makes the focus control goes first to the text box. When the user type the dept code and click on the button it goes to bound block and execute the query.
    you can write code in the command block as below
    set_block_property('<boundblockname>',default_where,'deptno = '||:ti_DEPTNO);
    go_block('<boundblockname>');
    execute_query;Best Regards
    MP

  • How to Create a text frame?

    Hai
    i'm senthil....
    i'm just now started working with Adobe Indesign plugin's..
    Can anyone tell me how to create a text frame...
    wat r the steps for creating a text frame?
    what are the Interface pointers used for creating a text frame...
    plzz reply me who knows...
    bye.

    See SDKLayoutHelper::CreateTextFrame.
    You can also look at SnpCreateFrame::CreateTextFrame in SnippetRunner.
    Regards,
    Narayan

  • How to Create header text in Quotations?

    Helli Experts,
    Can anybody of you tell me how to create Header text for Quotations in SD?
    I want to fetch it into Layout Set. I want to hardcode it.
    Harish

    Hi,
    Use the SAVE_TEXT and READ_TEXT Function module to create a header text through program.
    Prabhudas

  • How to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out

    how to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out.
    I'm working with Labview 6.1
    Running with Labview 6.1
    Fieldpoint hardware

    Hi,
    You should be more specific, what kind of hardware you are using ???
    Which kind of pulse you are measuring ?? You are saying that you want to count a number of pulses and then when you get to a limit (which will be between 3 and 10) you want to output a pulse ?
    Andre Oliveira

  • How to create a program that will accept a series of strings of 0 and 1 onl

    how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.

    Isn't one thread enough for your homework?
    http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155

Maybe you are looking for

  • WebLogic JMS high memory usage and frequent full GCs

    Hi Team,             We have below set up in production (and all the lower environment). 1. WLS: 10.3.6 (64 bit) 2. Java: HP JDK 1.7.0.06 (64 bit) 3. Two Manage server instances in cluster with one Migratable target 4. one JMS server with Persistence

  • How much is it to get my 3g ipod charging piece fixed?

    The charging piece on my ipod broke when I used a portable charger & then proceeded to fall out. What would be the best solution having a small budget?

  • Double vendor for invoicing

    Dear SAP Expert, I have a little question about SAP. Here is the root case : My client (Z) have a contract with vendor X while several service in contract was perform by vendor Y. In Contact paper documentation, it was writen. But in SAP data, contra

  • BUG: Binding Variables, Position being reset to 0

    IDE: Studio Edition Version 10.1.3.0.4 (SU4) Build JDEVADF_10.1.3_NT_060125.0900.3673 DB: 10g R2 (We have to be able to run our queries against MS SQL and Oracle. Using Oracle Binding is not an option) SQL Flavor: SQL92 Data Type: Java Scenario: Work

  • HDD Re-Order-Partition organization in a new T410

    Recently bought a T410, and though already BackUp'd the hidden partition labeled Q: Drive on DVDs, where the Recovery System resides, (and I intend to leave it that way). How can I add another partition bigger (to be labeled D: Drive) within the very