Delete one sentence at a time and keep the rest

Hi all

I wonder how can I do this in the jargon

I have an XML file that contains 4 sentences. I load these phrases in Director and I would like to allow my users to delete words from the NCB at a time and keep the rest. For example

Phrase1
Statement2
Phrase3
Phrase4

If the user selects a 2,3,4 must remain in the display area. If 2, 1,3,4 must remain in the area of the display and so on. The process must continue until there is only one sentence in the window (one of the 4) where the user must open a window of message (game over).

Do you have any idea how to do that?

This behavior removes a line when clicked and displays the
message when there is a single line on the left. You can easily modify it to display
the message when there are 2 lines to the left, 3, or whatever. It also records the
complete original list and restores the Member on sprite end.

Of course, you have to fix induced unintentional line breaks
your browser/player news.

property spriteNum, pPhrasesLeftForCompletetion, pPhrases

on beginSprite me
pPhrases = sprite (spriteNum) member.text.
end

on endSprite me
Sprite (spriteNum).member.text = pPhrases
end

on mouseDown me
If sprite (spriteNum).member.line.count > pPhrasesLeftForCompletetion then
lineNumClicked = sprite (spriteNum) .pointToLine (the mouseLoc)
Sprite (spriteNum). Member.Line [lineNumClicked]. Delete()
numChars = sprite (spriteNum).member.char.count
If sprite (spriteNum).member.char [numChars... numChars] = BACK then
Sprite (spriteNum). Member.Char [numChars]. Delete()

If sprite (spriteNum).member.line.count =
pPhrasesLeftForCompletetion then
updateStage
Alert ("complete game")
end if
end if
end

on getPropertyDescriptionList
Description = [[:]
description of the addProp, #pPhrasesLeftForCompletetion, [#default: 1]
[#format: #integer, #comment: "how many phrases on the left indicate full"]
return description
end

Tags: Director

Similar Questions

  • Replace an abbreviation in the non-consecutive fields and keep the rest of the text

    I need to replace an abbreviation that is no longer used in the office with a new text. I need to keep the rest of the information in the field. Length fields vary, and the new text is longer than the former. I use Oracle 8i. This is what I have for now but does not work.

    UPDATE OF ICA
    the value of LIC. DETAL = substr ('ALPHA BET' |) DETAL, 4, length (detal)-3);
    where UPPER (substr (DETAL, 1, 3)) = 'AB-';

    Hello

    Whenever you have a problem, please post a small example of data (CREATE TABLE and INSERT statements) and also publish outcomes from these data.

    user8647598 wrote:
    I tried this:

    update of ICA
    the value of LIC. DETAL = replace (lic.detal, '- HO', ' HOME OCC' |) Trim (detal));

    but I got an error saying that it was too big.

    ERROR on line 1:
    ORA-01401: inserted value too large for column

    Published by: user8647598 on January 13, 2011 07:32

    It is one of thopse error messages that acually means what he says. After replacing the text, the chain grew more time, and it will fit is no longer in the column.

    Are you sure you are doing what you want?

    REPLACE ( lic.detail
         , 'HO-'
         , 'HOME OCC' || TRIM (lic.detal)
         )
    

    Means "where detal contains the 3 - character substring"HO -"replace it with the 8 'HOME OCC" string * followed by the original text of the detal.»
    So if detal
    {code}
    HO-1 XYZ
    {code}
    then REPLACE them back:
    {code}
    XYZ OCCXYZ HO-1 HOUSE
    {code}

    That is what you want, or do you want something like that?
    {code}
    REPLACE (lic.detail
    "HO -"
    , 'HOME OCC-' or maybe 'HOME OCC", with a space at the end
    )
    {code}
    You can use the expression above as an argument for the TOPPING.

    When you want to write an UPDATE statement, you can test it in the first place, like this:
    {code}
    SELECT detal
    TRIM (REPLACE (detal
    "HO -"
    , 'HOME OCC '.
    )
    )
    ICA
    WHERE detal LIKE ('% HO %')
    AND ROWNUM<=>
    ;
    {code}

  • How can I work offline on an address and keep the rest online

    I need to temporarily disable an email address while keeping the other two online - is this possible or should I delete the account and recreate at a later date?

    Thunderbird always keeps the mail for offline access.

    You can move the files to a local folder access, after the removal of the identification of email.

  • Trying to delete a page in a spread and renumber the rest of the document.

    I need help deleting a page of a spread. After I deleted the page of the spread, the page disappeared but I need the next page to take the place of the deleted page and have all of the other pages to renumber accordingly. I use Indesign CS6.

    For example, I am editing a book and I need to delete the page 7. After you remove the 7 page, I need page 8 to page 7 and all the other pages to renumber accordingly. I think it will be very simple to make; However, I do not know how to do it.

    Thank you for helping in advance. God bless you!

    If you delete the page viii, pages ix, x, xi, and xii if mve, a post left and renumber, but you have a new section starting on the 1 page after the current page xii, and this will not change. By default, ID use conventions and maintains the odd-numbered pages on the right, and to overcome that you have to reject the mixer page at least a spread and manually, drag a page to the other side of the spine, which would be a big mistake, in my opinion. Readers are used to pages being numbered according to tradition.

    This doesn't seem to be the only white page in the preliminary pages section. Perhaps you should consider removing two thugs he and adding at the end of the doc to keep the number of pages.

  • How to set the content on one layer at a time and not the whole picture - photoshop cs6

    Hello

    I create something photo in photoshop cs6 and I have a mountain behind a layer that is visible and in total I have about 6 layers and when I try to change something on the 6 layer (therefore somehting like the saturation and hue) she change what is on the 5 layer, at the same time, so how can I do so I just adjust the content on the layer 6?

    Thank you

    mrredrunner100

    PS thought that it might help

    https://drive.Google.com/file/d/0B1KO1zQcxYLWazZNRDh1Q3ZaMmc/edit?USP=sharing

    Hello...

    While on the adjustment layer, the properties panel displays a button that looks like at this:

    If you select the setting apply only on the layer below and the adjustment layer will look as follows.

    hope that helps.

  • How to transfer pictures from iphone to PC and keep the date, time and place

    How to transfer pictures from iphone to PC and keep the date, time and place

    Hello Grumpelfuerer,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to import your photos from your iPhone 6 s, as well as for your Windows PC. I would like to save my photos on my computer as well. There are two ways to do this. You can use the iCloud photo library allowing to synchronize photos between your devices or import your photos to your PC using Windows Photo Gallery. This article will provide you with the steps that you can use for both options:

    Import photos and videos from your iPhone, iPad or iPod touch

    Best regards

  • How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    Menu, file == > export - check boxes to include metadata and location- export to iPhoto

    LN

  • How move photos in a Collection of Smart and keep the structure folders?

    I am on a test of Lightroom and love it so far.  A seemingly simple task that I would try to move all my RAW files (which are all mixed with jpg and PSD to a new location and keep the current folder structure.)

    Currently I have strcutured files like this: < drive >------< year >------< month >------< Filename > .cr2 and I would like to move these < another disk >-< year >------< month >------< Filename > .cr2

    The export features look as if they will put them all in a big file?  Any ideas?

    Thanks in advance.

    There are several approaches to this problem. You can do this through Control Panel files in LR. You can do just about anything in the files Panel, you can do in Explorer or Finder. Just create folder and drag / move.

    Another way is to do it outside the use of LR Explorer (Windows) or the FInder (Mac). After you're done then go back into LR and tell LR where to find the moved files. Depending on how much you have, this could be a bit tedious.

    Another method is to choose the files you want, then export it in a catalog. When you do this, remember to include the option to export the negatives. Point the new catalogue to you another drive. It will recreate the folder structure when exporting. Delete the images of your current catalog. Do not drive delete just delete. Now import the catalog and choose the newly exported catalog. This time, choose the option Add files without moving them. If you are sure that everything is back and is very well, you can use the Explorer or Finder to go into your original file structure and delete files that have been moved to the new drive.  Be sure to choose only the moved files. If you are separating the RAWs this should be relatively easy.

    I hope that helps!

  • I just picked up a 12 inch I have pad PRO and bought a keyboard provided by Apple, however I find that the base remains unstable and keeps the hustle when you type, the seller it says it's a design flaw. Can someone tell me if this is the case?

    I just picked up a 12 inch I have pad PRO and bought a keyboard provided by Apple, however I find that the base remains unstable and keeps the hustle when you type, the seller it says it's a design flaw. Can someone tell me if this is the case?

    find it hard to imagine that Apple could sell these defective products.

    If the seller is an authorized Apple reseller, an independent company,

    You may need to ask you if you could see & try a different product sample

    because you might be looking at something that has a defect.

    {According to the related help page, Type position should be more

    stable to use. However if the keyboard is not flat, this sounds like default.}

    Sounds as if you're not at the official Apple Store (apple retailer)

    but, on the contrary, are somewhere else. Could you give more information?

    Some keyboard accessories are made by third party companies; so

    If the product has an Apple product model number, we note here.

    When considering the purchase of an accessory, it's a good idea to test

    and check in the store before you buy. An official Apple Store has

    a different return policy as an independent reseller of Apple.

    Don't know if I can be useful; These chat rooms are usually Apple

    users of products such as yourself, who have taken their unpaid time

    to see if they can help the other users of the product.

    Good luck...!

  • 910219. how to download and keep the Windows Update files?

    Hello

    What is the ideal way to update Windows? now, Windows downloads the selected updates. where? I do not know! and after their installation, it removes the packages for installation on my computer. This causes the downloaded updates are lost, and I can't use them to similar machines that need to install the same updates. for these machines, I have to download updates again! This causes my internet to be charged again while it is not really necessary.

    the ideal way, in my view, is that I can specify a folder for the Windows Update service. It can use a default folder for that also. After selecting the updates, I want to install in my system, it checks to see if the update is already existing in the folder. only if NOT it downloads. then after downloading it maintains the package in the same folder after installing. installation should be done automatically as it is done now. Then I can move the folder to another machine. in the second machine, I also choose the update I want to be installed which are mostly the same as the first machine. for example, Windows Update only consumes my internet traffic for updates that are not yet downloaded. I wonder why Windows Update doesn't currently work the same way?

    by this method, I can at least use the consumption of traffic and I can access the latest updates with the easier and faster way. I I would like to choose a memory flash for this purpose and keep the folder inside.

    is there a way to achieve this?

    THX

    Security updates are available on image files CD ISO-9660 starting from Microsoft Download Center

    http://support.Microsoft.com/kb/913086>

    You can also download individual updates from the catalog and save to be installed later.

    http://v4.windowsupdate.Microsoft.com/catalog/en/default.asp>

    You can also download individual updates from the catalog and save to be installed later.

    http://catalog.update.Microsoft.com/v7/site/home.aspx>

    Click the Add button for each update you want to download. Once you have what you want, click on the link "go to download basket. Type or browse to the location where you want the saved updates to and then click on the button "Download Now".

    Once downloaded, you can then burn to CD or Flash...

    How to download drivers and updates from the Windows Update Catalog or the Microsoft Update Catalog

    http://support.Microsoft.com/kb/323166>

    Other links that may be useful:

    Search for a download

    http://www.Microsoft.com/downloads/search.aspx?displaylang=en>

    How to install multiple Windows updates or hotfixes with only one reboot

    http://support.Microsoft.com/?kbid=296861>

    For security and other fixes published for a given month:

    http://www.Microsoft.com/technet/security/bulletin/Ms#-* .mspx >

    Replace # with two-digit year

    Replace * with the three-character month abbreviation

    There are reported for that month, you will see the list of 'critical' patches 'important' for this month

    Check the 2nd Tuesday of each month - later in the day.

    For just the list:

    http://www.Microsoft.com/technet/security/current.aspx>

    Courtesy of MVP Harold Horne

    UTC/GMT is 12:58 on Wednesday, May 9, 2012

  • I deleted my windows vista administrator account and lost the password.

    I deleted my windows vista administrator account and lost the password. Now I can't get the email or download anything because the user controls pop up window ask again me an administrator password, which I don't have. I need to create another administrator account and the password, but I can't do anything without a password?

    Hello

    If it is not applicaple, you need to reinstall the operating system.

    "What to do if you forget your Windows password"

    http://Windows.Microsoft.com/is-is/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    "If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • B &amp; W converstion and keep the original color image?

    What is the best way to convert an original, a color in b & W image and keep the color image?

    Your original color image is never changed... Lightroom never changes the portion of the image of your original photos. So you can always go back to the color version if you want.

    One way to do is to create a virtual copy of the color image (select the image, then ctrl + apostrophe), and then convert the virtual copy to B & W, although you can also use a snapshot, or even to convert to B & W theoriginal, knowing that you can always go back to the color image.

  • Cannot download apps - constantly says that cc has lost functionality I have re installed several times and used the cc cleaning tool - HELP please not very impressed with not be able to use a new customer applications!

    Hi all

    New customer to CC, cc said constantly that he lost the functionality and to re - install, I have done this several times and used the CC cleaning tool. What's the point of having CC if you cannot use this?

    Thanks for your reply, but I spent some time with support online yesterday which has managed to make me sort, I do not have a UPDATER AAM file, I could not delete the contents of the OOBE folder either, I had to rename the folder creative cloud. I was sent then the application manager - who was then updated to the new until I'm able to get apps. Long-term, but it worked. I tried the procedure you have above, just not all the steps worked for me. Thanks to the Member of the support staff who helped me, I have been literally pulling my hair out!

  • How can I import a folder picture of mac to ipad and keep the subfolders as is?

    I want to import a file and KEEP the subfolders just how they are.  I don't want to re - fills to date, which is what makes the photos.  I tried to use itunes to import the folder and its subfolders.  There not just a way to drop the folder on the ipad via wifi?

    Response of old Toad

    Import the Photos and albums app records

  • Firefox crashes because as his tent to update the last website I went to have uninstalled and reinstalled several times and always the case. How can I erase this site so it seems not for her? Also happens in safe mode.

    Firefox crashes because as his tent to update the last website I went to have uninstalled and reinstalled several times and always the case. How can I erase this site so it seems not for her? Also happens in safe mode.

    Follow the suggestions mentioned in the following article:

Maybe you are looking for