Highlighting an editable text sprite

I have a bunch of form type of pages on my stage. User enters
text,
jumps to a new screen, edits more text. Typically, the cursor
will be
blinking at the sprite in the lowest channel, which would
ebbe my top
item on the page. Sometimes, I may have form1 that has the
same text
member as form 2. If, in form1, you clicked text2, then go to
form2,
which also has that text in slot 2, the cursor shows there
instead of
the top text sprite (slot1). How would I fix that? And what
if I wanted
text 3 to have the cursor ? How would I get the cursor to be
set to a
specific text sprite and how would I get it to be highlighted
like if
you selected all the text in that member?
Hope that was clear.
Thanks.

Mike Blaustein wrote:
> You can set the placement of the cursor using the
keyboardFocusSprite....
>
> the keyboardFocusSprite=3
Hi Mike,
Want to help debug something I'm doing in this area. I'm also
using 'the
keyboardFocusSprite' but with a variable. Variable can keep
increasing
(when you click a button, a new item is added and the next
editable text
should become active). The first time I click the 'add'
button, it works
OK, but subsequent times, it does not work.
Here's a sample of my code for the add button:
gWelcomeNamesList.add([#name : "New Name", #image : ""])
s = gWelcomeNamesList.count
put s
repeat while s > 8 -- there are 8 items on my list
s = s - 8
end repeat
put s
spriteFocus = 9 + (s * 7) -- formula based on where editable
sprites are
in Score
put spriteFocus
the keyboardFocusSprite = spriteFocus
put the keyboardFocusSprite
In my Message window, I can see the list count gets bigger
each time I
click (first s)
Gets the position of the sequence of 8 correct (second s)
get the spriteFocus value correct
'the keyboardFocusSprite = spriteFocus' -- works the first
time
second time 'the keyboardFocusSprite = spriteFocus' doesn't
seem to be
activated. The last line 'put the keyboardFocusSprite' still
shows the
focus to be the prior sprite, not the new one which is now
accurately
defined by 'spirteFocus'.
That make sense? Any ideas?
regards
Dean
Director Lecturer / Consultant
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au

Similar Messages

  • Frame rate goes crazy with editable text sprite

    This one is annoying - I have a lot of things that depend on
    a steady,
    predictable frame rate. But whenever you have the mouse
    button held down on
    an editable text sprite, the frame rate goes through the
    roof. I don't know
    what the numbers are exactly, but everything runs MUCH faster
    than it
    should. This can result in some major timing mis-syncs for
    other events
    happening on the stage. It looks like the OS is taking over
    or something
    when you're selecting text on a text sprite. Is there any
    easy way around
    this? Or should I just try and keep editable text sprites
    from being used
    on the same frame as time-sensitive code? I'm thinking I
    could maybe get
    around it by making the sprite non-editable and changing the
    text manually
    based on keypresses, but that sounds like a lot of work to
    basically
    reinvent the wheel here for something that should just work,
    you know?

    > Bad idea.
    >
    > The Tempo channel sets the Maximum frame rate, but it
    could be much less
    > and
    > throw things out of sync. Depends on what you are doing.
    >
    > You can use Timeout objects to do time-based animations
    and completely
    > forget
    > about what the frame rate is. This is a far more robust
    solution across
    > varying
    > computer systems.
    >
    > Personally I have not used an "enterframe" or
    "exitframe" in over half a
    > decade other than a single obligatory "go the frame"
    behavior.
    Well, what I do is something like:
    global timeBase
    on exitFrame
    if the ticks - timeBase > 2 then
    repeat while the ticks - timeBase > 2
    timeBase = timeBase + 2
    gameLoop()
    end repeat
    end if
    end
    So, even if the movie is lagging behind, the gameLoop()
    executes at regular
    intervals. If more than 2 ticks have passed between this
    frame and the
    previous, it will execute the gameLoop() script multiple
    times in order to
    catch up. All the important time-dependant stuff runs in
    gameLoop().
    This is not what the problem is, however. Most of my
    animations on screen
    are being shown as Film Loop sprites or in some cases
    animated GIFs, and
    these are what depend on the steady frameRate. If you click
    on an editable
    text object, the animations all suddenly speed up until you
    release the
    mouse button. I guess it's really more of an aesthetic thing
    than anything
    else, but it just looks really silly when everything suddenly
    runs
    super-fast just because you clicked on a text sprite.

  • Editing text in elements 12

    I am unable to highlight or edit text.

    Click the choose button under the section for additional external editor and navigate to:
    C:\Program Files (x86)\Adobe\Photoshop Elements 12
    Then select the application (click image below)

  • Make simultaneously or sequentially moveable and editable fields or text sprites in movie.

    I am having a bit of a problem with creating field or text sprites that are both editable and moveable. I want a user to be able to enter text into the sprites and move them around on the stage to serve as labels for schematics they are making. I can easily make them moveable or editable, but when trying to do both one property interferes with the other. I have been using various combinations of the properties on the mouseenter, mouseleave, and mousedown handlers. One version of my non-workable efforts are below. Seems I can move a sprite but once editable gets focus can't move it anymore.  Any ideas?
    rod
    property spritenum
    on mouseenter me
      sprite(spritenum).moveablesprite = true
    sprite(spritenum).editable = false
    end
    on mouseleave me
      sprite(spritenum).editable = false
      sprite(spritenum).moveablesprite = false
    end 
    on mousedown me
      sprite(spritenum).moveablesprite = true
      sprite(spritenum).editable = false
    end
    on mouseup me
      sprite(spritenum).moveablesprite = false
      sprite(spritenum).editable = true
    end

    Just set your text properties in the property inspector and attach a drag sprite behavior.
    --  Drag sprite
    property  sp  -- this sprite
    property  pStartLoc  --  sprite location upon mouseDown
    property  pMouseStart  -- mouse location upon mouseDown
    property  pMoving  -- flag for enterFrame. True/False
    on beginSprite me
      sp = sprite(me.spriteNum)
      pMoving = false
    end beginSprite
    on mouseDown me
      pStartLoc = sp.loc
      pMouseStart = _mouse.mouseLoc
      pMoving = true
    end mouseDown
    on mouseUp me
      pMoving = false
    end
    on mouseUpoutside me
      pMoving = false
    end
    on enterFrame me
      if not pMoving then exit
      deltaMouse = _mouse.mouseLoc - pMouseStart
      sp.loc = pStartLoc + deltaMouse
    end enterFrame

  • Since upgrading to Firefox 18.0.1 on my Mac Pro, I often can't edit text, instead getting dreaded 'chirping'.

    This is the wierdest thing - when I click in a text box the first time, it usually works. As long as I only use arrows to move text, it seems OK. When I try to click in a text field to edit text, or try to highlight text, both inside and outside text field, I get the dreaded chirping sound and can't edit, copy etc. After clicking a few times on the page outside the text field, I can again access and edit the text field. Does anyone else have this problem? It only happens in Firefox and only in the latest upgrade. I don't have this problem with Safari or Google Chrome.

    Hi,
    I'm encountering exactly the same issue as described by redcat01.
    Hope someone could help :-)
    Thanks in advance, and best regards.

  • Problems editing text in pdf file

    I have a user that is using Adobe Acrobat 8 Standard and is wanting to edit a pdf form that someone sent him.  When we open it and I use the Touchup Text Tool to try and delete some of the text it throws off the entire layout of the document.  Is this because this document wasn't originally set up as a pdf? I don't understand why my edits throw everything off.  For example when I highlight the white text in the reddish colored header and start typing new text, the new text appears down below the header next to the "For daily and terminal cleaning" text.  I tried resaving the file and even tried exporting it to Word etc, and then reopening in Adobe Acrobat 8 Standard but none of that helped.  Am I completely missing something easy in this program?  I thought this would be a simple task.
    Thanks for any help.

    Hi Bill,
    I have used the Text Touchup Tool to jump around through the document.  The document is broken up into sections that are editable, but any editing of the very top part throws everything way off.  I don't know anything about Designer.  Do you think it's possible this document was created in something like Word and was scanned in as a pdf and that is why I am having a hard time editing it?
    Thanks, malaize

  • Photoshop cs6 won't allow me to highlight my existing text layers. Does anyone have experience with this problem?

    Photoshop cs6 won't allow me to highlight my existing text layers. I select the text tool and the text layer I want to edit, hover over text and each time I attempto to edit a new layer is created. Does anyone have experience with this problem?

    Be sure you go to Adobe's Web Site and make sure there are no Updates for CS6
    http://www.adobe.com
    Remember if you have trouble with a software issue it is the software and not caused by the Mac you are using
    Many users simply don't remember when you upgrade software you normally have to go to 3rd party web sites and update software as well.
    Cheers
    Don

  • Can't select or edit text fields in LiveCycle Designer

    Greetings!
    I can't seem to figure out what I'm doing wrong. I need to edit the header text in this PDF, so I tried to do that in Acrobat PRO, which said: "This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form." I got a trial version of LiveCycle to see if I could edit it. But when I open the PDF in LiveCycle, I can only edit the input fields. All of the labels, all the text, headers is uneditable. I can't select it, I don't see it in the PDF Hierarchy either. Half of the Edit Menu is grayed out. Can't copy or anything else. Please help me figure out why this happens. If you need the original PDF, let me know, I can send it to you. Thank you.

    jasotastic81 wrote:
    What happens when you try to edit the header? From Acrobat, when you open the "Tools" sidebar, is "Edit Document Text" grayed out/disabled? If you highlight some of the text, then right-click and select "Repace Text", do you get a popup warning about the form being interactive and having special features?
    In LiveCycle, I can't even select the text. The select box just goes right over it, and if it goes over buttons or input boxes, it does select them, but not the text or even the labels for the input forms.
    In Acrobat, I can click on "Edit Text & Images", but it tells me I need to go to LiveCycle. I don't see a "Replace Text" on right-click. There's "Edit Text", but it just tells me to take it to LiveCycle.

  • Editing text in adobe reader

    i am having trouble editing text in adobe reader. the tool that used to show up doesnt now. I can highlight the text, but am unable to edit it. any suggestions please?

    The free Reader has never been capable of editing PDF files. Perhaps you used to have Acrobat?

  • Need to edit text in pdf file created in Illustrator CS6

    I need for someone else to be able to edit text in a pdf I created from Illustrator. They have full acrobat and should be able to edit it. I have tried it myself to test before sending it but it's not working. The original file was created in Illustrator CS6 and saved as a pdf (text has not been created outlines). I opened the file in acrobat and saved it out as an extended file to be able to edit the text but no luck. Need to be able to highlight existing text and change it. I have tried edit text tool but instead of a selection box around each line of text, it puts a selection box around all of the text. I can highlight the text and delete it but am unable to change it. Each individual text line needs to be editable. Is there something I need to do differently in Illustrator to get it to work correctly in Acrobat?
    If it helps- the file is a calendar and they need to be able to change the dates and events that are already there.

    This really isn't a suitable use of Acrobat. You should all be using the same editing tool (i.e. Illustrator).
    Extending files reduces the amount of editing Acrobat can do, it does not increase it.
    The tool to edit text from Illustrator would be Edit Document Text. There is no guarantee it will break up nicely into lines, it's trying to help by making paragraph text.
    Conceivably you could use a form for this (fill in the blank for dates) but really, you should be using the same tool. Not necessarily Illustrator, more Excel or specialist Calendar software.

  • Can't Edit Text in Card

    I did a search but couldn't find any info. I'm trying to create a card in iPhoto, which I've done before but its not letting me edit the text in the card. I can highlight the standard text thats already there but when I type, it doesn't do anything. If I cut the text thats already there, it goes away, and then if I copy and paste text from something else, it'll show up in the card... but I can't type directly into the card.
    Any help?

    Ok it seems like it's caused by not closing a div element within an editable region.  In order to give each page a unique ID I have the following in my templates: <!-- TemplateBeginEditable name="wrapID" --><div class="wrap"><!-- TemplateEndEditable -->
    If i close the div off before <!-- TemplateEndEditable --> live view text edit works but then obviously my page is not wrapped in the div with the unique ID so it's no good.
    Is there a way around this - I need to be able to wrap pages in unique ID's for CSS styling of individual pages but also need to use templates to keep the basic layout elements locked.

  • Acrobat renders edited text invisible

    When making manual edits in a pdf (missing source files), we find that randomly the edited text will render invisible, and we don't have a method for bringing it back. If I highlight and copy to another program, the entire word will come appear. If I convert the text in a pdf to another font, and back again, it will appear correctly. However, it's difficult to run over multiple edits and make that kind of massive correction. Is this common, and is there a fix?

    Hi RisingMoonBT,
    Please check out this post in the Acrobat Users forum. Is it possible that the current font color is white? Typewriter text disappears (Edit PDF)
    Best,
    Sara

  • Exporting editable text PDF

    I've seen this question posed but never saw a fit answer. I'm designing a document (price tags) for a client that needs to be client editable. For the full story, see below.
    I've done the layout for the price tags in InDesign CS3 and am wanting to export a PDF that has pre-formatted text that can be edited by the client. I want the client to be able to enter in new information while maintaining the original design so as to be able to print endless new price tags on demand (and without my further involvement). I've tested several exports in Acrobat Pro and while I can highlight and copy the text, I cannot edit. I'm using the Acrobat presets export menu (press quality) in ID and have been unable to figure out how to set editable text.
    I'm REALLY wanting to avoid using Word for this.

    The controls for type size/style/color are unintuitive (IMO) in acrobat forms, but they are in there.
    Open the PDF in Acrobat Professional (my example uses 7, so newer may be slightly different).
    Select
    Tools > Advanced Editing > Text Field Tool and draw a field on the PDF page. This SHOULD open the Text Field Properties dialog.
    Under Appearance tab you can set the following:
    (text field) Border, (text field) Fill, Font, Font Size, color.
    Under Options tab, you can set horizontal alignment, character limit, single or multi-line, scrolling, rich text formats, etc.
    Under format you can set what kind of data is in the field, such as numbers only, percentage, etc.
    Under Calculate you can set whether the field is calculated using the values of other fields, etc.
    So, you can set up one field and duplicate is as needed.
    HTH
    -mt

  • IMac desktop using OS X Lion How can I highlight a selected text in an email?

    iMac desktop using OS X Lion
    How can I highlight a selected text in an email? 

    Send the table as an attachment, either a spreadsheet (if the recipient needs to be able to edit it) or a PDF.

  • How can I highlight areas of text that I've downloaded?

    This has just got to be easy . . . am I missing something obvious?
    If I've downloaded a document from the internet for my own reference, and I want to highlight areas of text, how can I do that without buying an app>
    MacBook Air
    Version 10.8.2
    Safari
    Version 6.0.1

    A .pdf document.
    Let me give you an example . . . an article that I'd like to share with a family member and call attention to (highlight) a few words of the text.
    Message was edited by: ApostrapheS

Maybe you are looking for

  • Download to excel - long text in single row using gui_download

    Hi Experts, I want to download the long text (read_text) (500-600 characters) to excel in single row. the column width should be 60. i am using the gui_download FM as in my report i m using one gui_download for header data and 2nd one for details usi

  • How to do this**oracle experts**

    can anyone tell me how to get the modem com port by using oracle or by using and other programming lan .i whant to use it in oracel if i used another lan like c++ i what to get the modem port and to put it in avar and the var goes to oracle can we do

  • ACS 5.4 with 4.x deployment

    Hi guys. Need to solve the further task: I have a large deployment of independent ACS 4.x servers (every server has his own zone of responsibility). And there is a need to deploy two central ACS servers with the whole database from every independent

  • Determining size of pattern tiles in cc 2014

    In previous versions of Photoshop, I could hover my cursor over the small tile window of a pattern and receive the specific size of any given pattern tile. In CC 2014, it doesn't happen. How can I determine the size of a seamless pattern tile I'm usi

  • Beginners( Forms 9i Rel 2)

    Hi all, Can you please suggest me some books or sites where I can find materials to start with Forms coming with 9iDeveloperSuite