Basic example on Check-boxes using AS3.0 in flash
Hi all,
I need a basic example containing 3 or 5 check-boxes and
should display the names of check-boxes which are
selected in a text-box.
Thanx a lot...
Go to the help subject "CheckBox class" and click "view
examples": The example is an exact answer to your question :-)
Similar Messages
-
DTP-extraction-tab:Check-box 'use aggregates' what does it mean?
Hello BW experts
Can someone explain in simple words, what das it mean the check box 'use aggregates' in the data transfer process (Tab extraction).
The F1-help gives the following explanation -however I don't understand the info-:
'Should aggregates be used? This also means that an additional selection condition is automatically inserted that restricts to rolled up data requests.'
Best regards and thank you to help to understand
Christian
PS: We are loading data from cube to cube
Edited by: Christian Baumann on Jan 9, 2009 9:24 AM
Edited by: Christian Baumann on Jan 9, 2009 9:26 AM
Edited by: Christian Baumann on Jan 9, 2009 9:27 AMHi Christian,
I have never tried it myself , but I guess, it would mean if aggregates are built on the cube from which the DTP was extracting data you could choose to extract data from the aggregates instead.
The aggregates are the same as a cube, but with fewer characteristics and would hold data at a summarized level.
If this summarized level is sufficient for load to downstream infoproviders you could choose to extract from the aggregates.
This would mean lesser data is read during extraction and extraction would be faster.
SAP excerpt
With InfoCubes as the source: Use extraction from aggregates
With InfoCube extraction, the data is read in the standard setting from the fact table (F table) and the table of compressed data (E table). To improve performance here, you can use aggregates for the extraction.
Select data transfer process Use Aggregates on the Extraction tab in the DTP maintenance transaction. The system then compares the outgoing quantity from the transformation with the aggregates. If all InfoObjects from the outgoing quantity are used in aggregates, the data is read from the aggregates during extraction instead of from the InfoCube tables.
Regards,
Sunmit. -
How to enable a check box using the table LVC_S_FCAT
hi,
I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.Hi Preethi,
try to set default the check-box with the
value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
'-' field is not shown, ' ' and 'X' is normal)
and see the differences.
Hope it helps.
Regards, Dieter
Sorry, i thought you meen enable not editable.
Message was edited by: Dieter Gröhn -
How to enable the check box using cl_salv_table?
Hi Experts,
what code will change for to enable the check box in the following Report program?
REPORT ZMA_ALV_OOPS2.
TABLES:MARA.
TYPES:BEGIN OF T_MARA,
SEL TYPE C,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
LGORT TYPE MARD-LGORT,
LABST TYPE MARD-LABST,
END OF T_MARA.
DATA:TB_MARA TYPE STANDARD TABLE OF T_MARA,
WA_MARA TYPE T_MARA.
DATA: GR_TABLE TYPE REF TO CL_SALV_TABLE.
DATA: GR_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS.
DATA: GR_DISPLAY TYPE REF TO CL_SALV_DISPLAY_SETTINGS.
DATA: GR_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TABLE.
DATA: GR_COLUMN TYPE REF TO CL_SALV_COLUMN_TABLE.
DATA: GR_SORTS TYPE REF TO CL_SALV_SORTS.
DATA: GR_AGG TYPE REF TO CL_SALV_AGGREGATIONS.
DATA: GR_FILTER TYPE REF TO CL_SALV_FILTERS.
DATA: GR_LAYOUT TYPE REF TO CL_SALV_LAYOUT.
DATA: GR_PRINT TYPE REF TO CL_SALV_PRINT.
DATA: GR_SELE TYPE REF TO CL_SALV_SELECTIONS.
DATA: GC_TRUE TYPE SAP_BOOL VALUE 'X'.
DATA: GR_ITEM TYPE REF TO CL_SALV_ITEM.
DATA: COLUMNNAME TYPE REF TO LVC_FNAME.
top of list for CCL
DATA: GR_CONTENT_CCL TYPE REF TO CL_SALV_FORM_ELEMENT.
DATA: GR_COL TYPE REF TO CL_SALV_COLUMN.
DATA: LT_SORT TYPE SALV_T_SORT_REF,
LS_SORT TYPE SALV_S_SORT_REF,
L_SEQUENCE TYPE SALV_DE_SORT_SEQUENCE,
T_SORT TYPE REF TO SALV_T_SORT_REF.
DATA: KEY TYPE SALV_S_LAYOUT_KEY.
DATA: COLOR TYPE LVC_S_COLO.
DATA: GR_EVENTS TYPE REF TO CL_SALV_EVENTS_TABLE.
DATA: GR_SELECTIONS TYPE REF TO CL_SALV_SELECTIONS.
**--Selection screen
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT MATNR WERKS LGORT LABST
FROM MARD
INTO CORRESPONDING FIELDS OF TABLE TB_MARA
WHERE MATNR IN S_MATNR.
TRY.
CALL METHOD CL_SALV_TABLE=>FACTORY
IMPORTING
R_SALV_TABLE = GR_TABLE
CHANGING
T_TABLE = TB_MARA.
CATCH CX_SALV_MSG.
ENDTRY.
GR_TABLE->SET_SCREEN_STATUS(
PFSTATUS = 'SALV_TABLE_STANDARD'
REPORT = SY-REPID
SET_FUNCTIONS = GR_TABLE->C_FUNCTIONS_ALL ).
GR_FUNCTIONS = GR_TABLE->GET_FUNCTIONS( ).
GR_FUNCTIONS->SET_ALL( ABAP_TRUE ).
GR_DISPLAY = GR_TABLE->GET_DISPLAY_SETTINGS( ).
GR_SELE = GR_TABLE->GET_SELECTIONS( ).
GR_SELE->SET_SELECTION_MODE( ).
GR_TABLE->SET_TOP_OF_LIST( GR_CONTENT_CCL ).
*--- To change the column headings
GR_COLUMNS = GR_TABLE->GET_COLUMNS( ).
GR_COLUMNS->SET_OPTIMIZE( GC_TRUE ).
GR_SORTS = GR_TABLE->GET_SORTS( ).
TRY.
GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'SEL' ) .
GR_COLUMN->SET_CELL_TYPE( IF_SALV_C_CELL_TYPE=>CHECKBOX ).
GR_COLUMN->SET_LONG_TEXT( 'CHECKBOX' ).
CATCH CX_SALV_NOT_FOUND.
ENDTRY.
GR_COLUMN->SET_CELL_TYPE( 6 ).
GR_COLUMN->SET_SHORT_TEXT( 'Check Box' ).
GR_COLUMN->SET_LONG_TEXT( 'Check Box' ).
******Check box edit
TRY.
GR_SORTS->ADD_SORT( COLUMNNAME = 'MATNR' SEQUENCE =
IF_SALV_C_SORT=>SORT_UP ).
CATCH CX_SALV_DATA_ERROR
CX_SALV_NOT_FOUND
CX_SALV_EXISTING.
ENDTRY.
GR_LAYOUT = GR_TABLE->GET_LAYOUT( ).
KEY-REPORT = SY-REPID.
GR_LAYOUT->SET_KEY( KEY ).
GR_LAYOUT->SET_SAVE_RESTRICTION( CL_SALV_LAYOUT=>RESTRICT_NONE ).
TRY.
GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'MATNR' ).
CATCH CX_SALV_NOT_FOUND.
ENDTRY.
COLOR-COL = '8'.
COLOR-INT = '0'.
COLOR-INV = '1'.
GR_COLUMN->SET_COLOR( COLOR ).
GR_TABLE->DISPLAY( ).
Thanks,
Mahesh.Hi,
You can use the method set_selection_mode to automatically show the checkbox for each row..and use the method get_selected_rows to get the rows selected..
Check this sample report..
TYPES: BEGIN OF type_output,
matnr TYPE matnr,
END OF type_output.
DATA:lt_output TYPE STANDARD TABLE OF type_output,
lwa_rows TYPE int4,
lwa_output TYPE type_output,
lt_rows TYPE salv_t_row.
* Local declarations.
DATA: lr_table TYPE REF TO cl_salv_table,
lr_selections TYPE REF TO cl_salv_selections.
DATA: lr_columns TYPE REF TO cl_salv_columns_table.
START-OF-SELECTION.
* Prepare data.
lwa_output-matnr = 'TEST1'.APPEND lwa_output TO lt_output.
lwa_output-matnr = 'TEST2'.APPEND lwa_output TO lt_output.
lwa_output-matnr = 'TEST3'.APPEND lwa_output TO lt_output.
* Call the factory method
TRY.
cl_salv_table=>factory(
EXPORTING
list_display = 'X'
IMPORTING
r_salv_table = lr_table
CHANGING
t_table = lt_output ).
CATCH cx_salv_msg. "#EC NO_HANDLER
ENDTRY.
* Column selection
lr_selections = lr_table->get_selections( ).
lr_selections->set_selection_mode( if_salv_c_selection_mode=>row_column ).
lr_columns = lr_table->get_columns( ).
lr_columns->set_optimize( abap_true ).
* Display
lr_table->display( ).
* Get the selected rows.
lt_rows = lr_selections->get_selected_rows( ).
* Display the selected rows.
LOOP AT lt_rows INTO lwa_rows.
READ TABLE lt_output INTO lwa_output INDEX lwa_rows.
WRITE: / lwa_output-matnr.
ENDLOOP.
Thanks
Naren -
Check the check-box using script
Hi
I have a requirement where from script i need to check the check box.
Based on if a condition is true , when i execute the script , the check box field needs to be auto-checked .
Appreciate the helpHi,
Access the field and set it to true. If it is a standard field it should have its getter and setter, you should use that. In case of an extension field do this :
doc.getExtensionField("FIELD_NAME").set(true);
Thanks
Devesh -
Oracle Form : example of check box usage
Hi,
My form has colums A,B and C then a check box against each record like the following:
record 1: a b c checkbox
reocrd2: e f g checkbox
record 1o: x y x checkbox
AND I have 2 buttons on the form, they are 'Update selected record(s)' and 'Update all recors' respectively. Couls you tell me what is the best way to implement this? Any example codes?
Many Tnanks
MichaelHi Manu,
Could I ask you a couple queston about the following codes you provided?
1. This form has two date fields start-date and end_date, user needs to enter 2 field in query mode and then excute the query.
Only reocrds which meet start date<:block.expiry_date< end date conditions returned
So where is the best place to put this condition? pre_query/pre-select/on-select?
2. After records displayed on the screen, user then select the ones they want to change the expiry_date and clicked "
the updated selected" button. Then the following codes need to be put in pre-update trigger to make it happen. Couuld you confirm that?
DECLARE
Num_Total_Records NUMBER;
Num_Loop_I NUMBER;
BEGIN
GO_BLOCK(<BLOCK_NAME>);
FIRST_RECORD;
LAST_RECORD;
Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
FIRST_RECORD;
FOR Num_Loop_I IN 1..Num_Total_Records LOOP
IF <CHECKBOX> = 1 THEN
:block.expiry_date :=sysdate + 365;
END IF;
NEXT_RECORD;
END LOOP;
END;
Many Thanks
Michael -
How to create a new check box using form personalization.
Hi Frs,
I have a requirement to create a new check box in AP form using form personalization.
Pls help me in achieving this.
Note: we have to use only form personalization not custom.pll.
Thanks
RajeshPl see ML Doc 420518.1(Limitations of Forms Personalization) for a list of things you cannot do with personalization - among them is creating new form objects such as checkboxes.
HTH
Srini -
How to create a tree structure with check boxs using Windows Activex Control?
Hi,
I am very new to LabVIEW. I am trying to create a tree structure with Check Boxes like the below. It would be great if someone would show me a right direction to go forward.
The aim is to select the item and one by one i have to get the Path and give as an input to by application VI.
Thanks and Best Regards
PrathapHi Andy,
Sorry i pasted the Picture.. Pls find the attached picture.
Following are my requirement:
1) I need to populate a tree given a root directory, listing all the Folders and file of cetain pattern(*.pjt... ther will be only one *.pjt in every subfolders).
2) I need a check box for every *.pjt to select the its path. The list of pjt files selected are used for my automation test suit.
Pls let me know if you need more info.
Best Regards
Prathap
Attachments:
tree.JPG 73 KB -
Create check box using pdfmark in postscript
Dear all,
We are creating check box in pdf file using pdfmark [via postscript to pdf conversion]
We placed the below tag into the postscript and then created the pdf file.
The check box working in acrobat professional but not working in adobe reader even after enabling the extend features in Adobe Reader.
[ /Rect [6254 9972 6814 9480]
/T (CB4)
/FT /Btn
/F 4 /H /O
/BS << /W 1 /S /S >>
/DA (/ZaDb 10 Tf 1 0 0 rg)
/Subtype /Widget
/ANN pdfmark
Please help me on this to solve the issue.
Regards,
jkrishnanvenkatRegarding: "...but not working in adobe reader..."
Does the check box appear on the page in the right place and looks the same as it does in Acrobat Pro 9?
Does "not working" mean that you cannot "check" and "uncheck" the check box by clicking it?
Are you running Acrobat Pro 9 and Adobe Reader X on the same machine, and if not, have you confirmed that the font for the check symbol is installed/available on both machines? -
ALV GRID-how to select all the check boxes using push button
Hai All,
I displayed ALV grid & every record contains one check box as first column.
If user clicks on one push button all the check boxes needs to selected.
Could any one tell me how to do this?
Regards,
BhaskarHi Bhaskar,
Try this code :
*" Table declarations...................................................
TABLES :
spfli. " Flight Schedule
*" Data declarations...................................................
Work variables *
DATA :
w_checkbox TYPE c, " Check Box
w_checkbox1 TYPE c, " Check Box
w_lineno LIKE sy-lilli, " Current Line No
w_lines TYPE i. " No. Of Records in Int.Table
Internal table to hold Flight Schedule data *
DATA :
t_spfli LIKE
STANDARD TABLE
OF spfli.
Structure to hold Function Codes *
DATA :
fs_fcode LIKE LINE OF t_fcode.
TOP-OF-PAGE EVENT *
TOP-OF-PAGE.
PERFORM top_of_page.
START-OF-SELECTION EVENT *
START-OF-SELECTION.
PERFORM fetch_spfli_data.
SET PF-STATUS 'YMENU1'.
DESCRIBE TABLE t_spfli LINES w_lines.
fs_fcode = 'EXIT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'SELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'DESELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'RETRIEVE'.
APPEND fs_fcode TO t_fcode.
AT USER-COMMAND EVENT *
AT USER-COMMAND.
PERFORM user_command.
FORM top_of_page .
WRITE :/50 'Flight Schedule Information'(008).
ULINE.
FORMAT COLOR 1.
WRITE :/10 'Carrier ID'(001),
25 'Connection ID'(002) ,
43 'Airport From'(003),
59 'Airport To'(004),
74 'Departure Time'(007),
93 'Arrival Time'(011),
106 space.
ENDFORM. " FORM TOP_OF_PAGE
FORM fetch_spfli_data .
SELECT carrid " Carrier ID
connid " Connection ID
airpfrom " Airport From
airpto " Airport To
deptime " Departure Time
arrtime " Arrival Time
FROM spfli
INTO CORRESPONDING FIELDS OF
TABLE t_spfli.
IF sy-subrc EQ 0.
PERFORM display_spfli_data.
ENDIF. " IF SY-SUBRC EQ 0
ENDFORM. " FORM FETCH_SPFLI_DATA
FORM display_spfli_data .
SORT t_spfli BY carrid ASCENDING.
LOOP AT t_spfli INTO spfli.
FORMAT COLOR 2.
WRITE :/2 w_checkbox AS CHECKBOX,
spfli-carrid UNDER text-001,
spfli-connid UNDER text-002,
spfli-airpfrom UNDER text-003,
spfli-airpto UNDER text-004,
spfli-deptime UNDER text-007,
spfli-arrtime UNDER text-011.
ENDLOOP. " LOOP AT T_SPFLI...
ENDFORM. " FORM DISPLAY_SPFLI_DATA
FORM user_command .
CASE sy-ucomm.
WHEN 'SELECT'.
w_checkbox1 = 'X'.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'DESELECT'.
w_checkbox1 = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'RETRIEVE'.
w_checkbox = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox.
IF w_checkbox = 'X'.
PERFORM fetch_sflight_data.
PERFORM display_sflight_data.
ENDIF. " IF W_CHECKBOX = 'X'
ENDDO. " DO W_LINES TIMES.
ENDCASE. " CASE SY-UCOMM
ENDFORM. " FORM USER_COMMAND
This report gives you the SPFLI Data and places a check box in front of each record. When u click on select all button it will select all the records. And if you click on deselect all it will deselect all the records. When you are trying this maintain the pf-status 'YMENU1' and give the function codes as in the code.
Regards,
Swapna. -
How to Play/Pause All for Adobe Air Application using AS3 in Flash CS4?
I am new to Flash and I'm creating an educational application in AS3 in Flash CS4 for Adobe Air. I want to use buttons to play and pause all content (movieclips AND sound).
I have created play and pause buttons that worked by switching the frame rate between 0 and 20, unfortunately I've realised that it's never really 0fps but rather 0.01fps and so it continues playing, albeit very very slowly. Also this doesn't affect the audio; I have set sound files to Stream which are synced to movieclips on their timelines, but even when the application is set to 0fps the audio continues.
Since I have various levels with numerous movieclips each with synced audio, what i'd like is to be able to do is pause absolutely everything within each movieclip with one button and to be able to resume from the same place using another button. Is this possible? If not, is there a global function to pause/resume the entire application/program?
Thanks in advance for your help!Its possible but you would need to tell each movieclip and audioclip to play/pause. You can create a for loop inside your mouse event function to find each movieclip and pause/play its timeline and a separate for loop for audio clips. Also instead of setting fame rate to 0 for pause just use a stop() command.
-
Set user inherit permissions check box using powershell
Hi All,
How can I set the the "include inherit permissions from this objects parent" propertiy in Active Directory user object to a list of users using powershell.
This option is not checked for some of my users and I'll like to set it using a powershell script.
Thanks
Simon
MCSA, MCSE, MCITP:SA, MCITP:EA, MCITP:Enterprise Messaging Administrator 2010, CCNAdownload Quest Active Directory:
Get-QADUser -SizeLimit 0 | ? {$_.DirectoryEntry.ObjectSecurity.AreAccessRulesProtected} | Set-QADObjectSecurity -UnLockInheritance
or
Get-QADUser -SizeLimit 0 | ? {$_.security.PermissionInheritanceLocked} | Set-QADObjectSecurity -UnlockInheritance
or
$user = [ADSI]"LDAP://cn=kazun,ou=test,dc=contoso,dc=com"
$acl = $ouser.objectSecurity
$isProtected = $false # allows inheritance
$preserveInheritance = $true # preserve inherited rules
$acl.SetAccessRuleProtection($isProtected, $preserveInheritance)
$user.commitchanges()
I had this issue and using both of Kazun's methods worked. A mod should mark this as the answer.Paul Frankovich -
Checking for a check box using if and statement
I am trying to have an alert pop up when "funded by grant" box is check AND ("journey based program" OR "BFF series") boxes are not checked. I can do very simple scripts, but I cannot get a grasp on if I am even on the right path. Any ideas?
if ((getField("funded by grant").value === "Yes")
&& ((("journey based program").value === "No") || (("BFF series).value === "No")));app.alert("Contact finance",2));
Thanks for your help!You're close. The value of a checkbox when it's not selected is equal to the string "Off", so the code could be:
if (getField("funded by grant").value === "Yes" && (getField("journey based program").value === "Off" || getField("BFF series).value ===
"Off")) {
app.alert("Please contact finance.", 2); -
How to use as3 in flash cs3 to add dynamic text from a text file into a flash file
let me start out by saying today is my first day of scripting
in flash.
I have a text file text.txt
it contains
text1=hello world
can someone please show me how to display this text in a
flash file
i have been searching for this for hours and there are
solutions with flash mx and actionscript 2.0 but i would like to
see how to do this in as3.
just a simple frame that loads that file and displays it when
you test run the program
much apreciated
RCI'm not up on AS3 yet, but many things are still similar. You
need to use the LoadVars class to accomplish this, You can find
information this in Flahs Help>Actionscript>Actionscript
Language Reference>Actionscript classes.
rem: the text.txt file and the text.fla file must be in the
same directory.
The code will look something like this: -
Examples of web sites using Motion in Flash or QT?
I'd love to see some web sites using Flash or QT - created by the Motion experts who post here - showing off what someone who really knows Motion can do.
First of all, Thank you, Todd.
Now, seriously NOT tooting my horn here - also check out the Visual Effects here:
http://pistolerapost.com/reels/reels.html
Many of them were created in Motion - The cloned girl, the polar bears, the infinite number of dump trucks, and others. The rest were either FCP or Shake or Combustion.
Patrick
Maybe you are looking for
-
Finder: Changing from thumbnail view to column view takes me back to the root folder.
Hi, I was hoping someone could help me with this as it's getting a bit tedious having to re-navigate back to the folder I was in. This problem is only occuring when I am working from an external NAS Drive. I need to switch between thumbnail view and
-
Preview Icons Missing after Drag and Drop from Cumulous/Mediadex
When using Cumulous to drag images from the catalogue to a folder, the image icon reverts to the generic .eps. or tiff or jpg. Let me add this this is inconsistent. Some images from the folder retain their icon identity, while others don't. Further,
-
Property Mapping in remote Profile source vs. User Porfile Mgr
I am confused about Property to user info mapping. I have mapped the user properties that I need to the user info attricutes in the user profile manager. However, if I go to setup the profile source, I am prompted to setup the mapping again. It does
-
Router or ISP Connectivity Issue
I am trying to figure out if the problem I am experiencing is a router or ISP issue. Whenever I upload a videos or photos to Snapfish or just view movie trailers on Apple's Website the connection just freezes. I do notice that I can still send and re
-
HT203301 can the compass app in iphone display GPS as degrees and decimal degrees?
Can the compass app in iphone be set to display GPS as degrees.decimal degrees?