How to get the number of the sprite in a KeyUp script?
I have an application with a series of text entry fields. Users enter numeric values in each field. I want to have the keyboard focus to the next field when the user clicks on the Enter key. So far I've been able to do this by hard coding the following sprite as follows number...
-----
box (_Key.keycode) of
36:-Enter key
_movie.keyboardFocusSprite = 64 - this is the value hardcoded the following sprite
numString = member("ALA_CFTHolder").text
otherwise:-manages the regular entries
...
cases of termination
-----
I want to find a way to move to the next sprite without hard-code the value. I tried to read the _movie.keyboardFocusSprite but he is always-1. There must be a way to do this.
Thank you.
See if this code will help you. Any sprite channel, the fields are in, but the focus order is determined by the order in which the sprites appear on the partition. If this isn't what you want, it will take a different approach.
---------------------------------------------------------------------
property spriteNum, pEntrySpriteList
on beginSprite me
pEntrySpriteList =]
sendAllSprites (#updateEntrySpriteList, spriteNum)
end
on updateEntrySpriteList me, senderSpriteNum
pEntrySpriteList.add (senderSpriteNum)
If spriteNum <> senderSpriteNum then (senderSpriteNum) sprite (spriteNum).pEntrySpriteList.add
end
on keyDown me
case (keycode)
36:-Enter key
myIndex = pEntrySpriteList.findPos (spriteNum)
If myIndex = pEntrySpriteList.count then
the keyboardFocusSprite = pEntrySpriteList [1]
on the other
the keyboardFocusSprite = pEntrySpriteList [myIndex + 1]
end if
otherwise:-manages the regular entries
Pass
cases of termination
end
Tags: Director
Similar Questions
-
How to get the variable 'dn' in a script
Hello
I have a problem, get the variable "dn" of the script is not a "public" variable, but I'm able to see in the log file. I bet it's in an object java somewhere - I don't know how to access it. No one knows how to get it. I have attached some of the newspaper:)
CN = 8485 [5-6] XX, dn = 8485601 = 9812 cgn, ani = null, dnis = null, clid = null, atype = FORWARD_ALL lrd = 9817, ocn = 9817,
I have a similar problem but I did not find the repo. package... Where?
Thank you
-
How to get the number of line of a multi-line string
It seems that this Panel of string does not provide the tool to get the chain line number,
Does anyone have the same experience?
so...
How to get the line number of a variable string?
Number of lines
-
How to get the number of fonts online
Hi all
can you give me solution to the following:
How to get the number of fonts on a line.
Ex
BlackBerry Support 'Community' is supported for my career
in this line, I want to ITALIC for the word 'Community '.
Font.GetDefault (). Derive from wil give for total line...
RichTextField does not?
See this KB article
http://supportforums.BlackBerry.com/T5/Java-development/format-text-in-a-RichTextField/Ta-p/445038
-
How to get the maximum number of days in a month?
How to get the maximum number of days in a month?
I use a dateField. where I can get the month. Now, I want to get the maximum number of days in a month.
How can I get it?
Please help me. and thanks in advance... []
NET. RIM. Device.API.util
Class DateTimeUtilitiesgetNumberOfDaysInMonth (int month, int year)
Returns the number of days in the specified monthIt took me like 10 seconds to find it in the API, I guess you spent more time writing the post...
-
How to get the number and the name of the contacts selector
Hi all
I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.
There are attributes that I can put like contactId.value () to retrieve or there is another way?
Thanks in advance.
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; } } ] } Label { id: result text: "You chose contact: " }
Hello
You can get the contact name and phone number as this,
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; // call a cpp method to get the details
app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
the CPP code:
void ContactDetails(ContactId id) { Contact contact_info = m_contactService->contactDetails(id); QString firstName = contact_info.firstName(); QString lastname = contact_info.lastName(); QList
phoneno_list = contact_info.phoneNumbers(); QStringList no_s; foreach(ContactAttribute attr, phoneno_list) { no_s << attr.value(); } } You can get details like this.
Kind regards
Naresh Kodumuri.
-
How to get the number of entries in the navigation menu?
How to get the number of entries in the navigation menu? Check the image. What it shows 8 number of customers and 10 products and 10 orders in the list. How to get it?
--
Thank you
Hello
Create items of the request saying, "CUSTOMERS", "PRODUCTS" and "ORDERS".
Create the application process that defines these items when loading the page for example
C1 in select count (*) NTC (of customer_table)
loop
: CUSTOMERS: = c1.cnt;
end loop;
C1 in select count (*) NTC (of products_table)
loop
PRODUCTS: = c1.cnt;
end loop;
C1 in select count (*) NTC (of orders_table)
loop
: ORDERS: = c1.cnt;
end loop;
Components shared Open-> Navigation bar and change:
In the entry list Label-> customers & CLIENTS.]
-
How to get the frame number current timeline using jsx?
How to get the frame number current timeline using jsx?
Thanks for the link!
Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.
function getCurrentFrame() {}
try {}
Var ref = new ActionReference();
ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));
ref.putClass (stringIDToTypeID ('timeline'));
var / / desc = new ActionDescriptor();
desc.putReference (charIDToTypeID ('null'), ref);
var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);
Return TC.getInteger (stringIDToTypeID ('currentFrame'));
} catch (e) {return null ;}
};
-
Win version first elements 14 rather than Mac version you downloaded. Serial number does not work. How to get the right serial number?
It is unclear what problem you are facing... the wrong version or the wrong serial number. The serial number is likely for the other version. You don't want the serial number of Windows or the Mac version?
One of the following conditions may be useful...
You can exchange languages/platforms for a newer version product if you follow the instructions on the following link:
l http://helpx.adobe.com/x-productkb/Policy-Pricing/Order-Product-Platform-Language-swap.htm
To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.Serial number and activation support (non - CC) chat
https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp -
I can't find my serial number for Photoshop Elements version 8. It came with a HP computer I bought in 2010. I recently had to do a recovery, it has been uninstalled. I moved since then and don't know how to get the serial number.
Please explain how I can get the serial number?
James, if it came with the machine and you are not registered, then you can't get it from the dealer where you purchased the machine. PSE 8 is now end of life and we have limited resources for the same thing, make sure you check the system requirements | Adobe Photoshop Elements if you try to install it on a new machine.
If you want to upgrade to the latest version, you can check: photo editor, change the images. Adobe Photoshop Elements 13
Atul_Saini
-
How to get the original serial number to reload the program on the new computer?
How to get the original serial number to reload the program on the new computer?
Hi rehe,
Please check the KB: quickly find your serial number to find your serial number.
You can contact our support chat to help retrieve your serial number: serial number and activation support
Kind regards
Rave
-
How to get the 'DAY' based on the territory of current account held a number between
Hi all
Looks like I'm at the end of my intelligence here but how to get the 'DAY' based on the territory of current account with a number between 1 and 7? Oracle has functions to extract the day of the week, but I can't find the other way around.
I need a way to know that the number '3' on the database with NLS_TERRITORY = AMERICA means a 'Tuesday' or the number '2' on a database with NLS_TERRITORY = GERMANY means "Tuesday" as well.SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production SQL> alter session set nls_territory=AMERICA; Session altered. SQL> select to_char (sysdate, 'D') from dual; T - 3 SQL> alter session set nls_territory=GERMANY; Session altered. SQL> select to_char (sysdate, 'D') from dual; T - 2
Hope I am clear enough.
And wish you all a happy new year :)
Kind regards
SmailUse the format "IW" to get the date of Monday and the format "DAY" to get the "first day of the week. Then compare dates to see if they are identical.
ALTER SESSION SET NLS_TERRITORY = 'AMERICA'; SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday", TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week", MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON" FROM DUAL CONNECT BY LEVEL <= 7; Monday NLS First day of week 1 if day 1 = SUN, 0 if MON --------- --------------------- -------------------------- 31-DEC-12 30-DEC-12 1 24-DEC-12 30-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 alter session set nls_territory = 'FRANCE'; SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday", TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week", MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON" FROM DUAL CONNECT BY LEVEL <= 7; Monday NLS First day of week 1 if day 1 = SUN, 0 if MON -------- --------------------- -------------------------- 31/12/12 31/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0
Or it could be simpler:
ALTER SESSION SET NLS_TERRITORY = 'AMERICA'; WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7) SELECT INPUT_DAY, TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label" from data; INPUT_DAY Day label --------- ------------------------------------ 1 SUNDAY 2 MONDAY 3 TUESDAY 4 WEDNESDAY 5 THURSDAY 6 FRIDAY 7 SATURDAY alter session set nls_territory = 'FRANCE'; WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7) SELECT INPUT_DAY, TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label" from data; INPUT_DAY Day label --------- ------------------------------------ 1 MONDAY 2 TUESDAY 3 WEDNESDAY 4 THURSDAY 5 FRIDAY 6 SATURDAY 7 SUNDAY
-
How to get the maximum number of iterations in the property of TS
I was put the loopType from one step to the count of success/failure. For example "stop after 1 iterations pass or a maximum of 3 iterations. The maximum iteration is 3. What my qustion is how to get the maximum iteration of TS property by codes of trial during the race. Thank you very much!
Corey Chen
The OPPO test developer
Hello
It may be a hack, but RunState.Step.LoopWhileExpression has information. It will return a string like: "RunState.LoopIndex."< 69="" &&="" runstate.loopnumpassed=""><>
-
How to get the total number of pages
Is there anyone know how to get the total page after generate us the pdf file. I use the remainder method and create an external process. ?
In the workbench, I use a SetValue
Until you assemble the document that you need to build the DDX string and specify the xml information.
Concat (/process_data/@ddxHeadStr, "
AFTER mounting
Use SetValue that set your xmlinfo variable (xml type)
xmlInfo/process_data/game FOR
/ process_data/assemblerResult/Object/documents[@id]
[ ='doc_info.xml']
Then get your pages from the XMLinfo
=
/ process_data/xmlInfo/docinfo/NUMPAGES
I hope this helps. Send an e-mail if it is not explicit. I had to fight over there recently and feel that the documentation really lacks.
-
How to get the name of sbRIO programmatically
How to get the 'name' and 'Comment' by sbRIO I write to sbRIO-9602 Max in the box of Identification (model, serial number, MAC address, name)?
Use RT Information.vi of target is located under the range of public services under LabVIEW Realtime.
Christian
Maybe you are looking for
-
Satellite P300 - problems with the buttons of enlightenment
First of all, I would like to apologize for my bad English, I'm French actually. Hi, I bought a laptop Satellite P300, a couple of days, and already I have a problem with tactile keys (one on top of the keyboard). Actually, the only one of the left,
-
where windows stores these custom folder icons?
Can you help me? I use windows 7. When I create a new folder, I wish to customize its icon by clicking on the original yellow to the "icons of width Properties\Customize\Folder" and then clicking on the button 'change icon '. My question is: I like t
-
How to load the video in Html5 Canvas?
How to load external video in canvas CC animate using createJs?
-
can I block access overseas?
I have several people access my site from outside the United States. My site can be configured to only allow people access to the United States?I only do business on-siteThank youDwlynn
-
Optimization, so or several function calls?
Which one would be best? This is the code that must decide what to do with each increase in decimal, 10/100/1000... up to 1 m. 'value' increases by 1 whenever an event occurs, if it's important to decide who is most optimalI think that the first wo