How to put multiple classes in a single file?
Hello,
I'd like to put mutliple classes in a single file. (This
would be useful for grouping children that are minor extensions of
parent classes or helper classes that are used by one class only).
When I tried to put two classes in one file, I got this error
message:
5006: An ActionScript file can not have more than one
externally visible definition: Notation.editField,
Notation.labelField1
This is the structure I used. Thanks in advance for your
help.
You can declare multiple classes in a single file, but only
one can be
within the package declaration. All class declarations
outside the package
are invisible to code outside the file.
package sample
public class SampleClass
class SampleClassHelper
class SampleClassHelper2
Similar Messages
-
usually i need to create many watermarked datasheets for different customers using a single base pdf. currently i run individual actions for individual customers on the same file which means i have to runs 10s of individual actions every time i have new source file. can i make a single action or a script which will take a single source file, run multiple actions(~15-20) for watermarks and save these files separately? basically what i need is instead of running many individual actions i run a single action/script to make it automatic. if yes, how to do so?
Hi Monte,
You can achieve this by assigning a secondary extension to another button, but this might not be what you want, so if you can elaborate a little further as to what you want exactly I can help you with putting together a solution
Cheers,
David Trad.
**When you rate a persons post, you are indicating a thank you or that it helped, but at the same time you are also helping to maintain the community spirit - You don't have to rate posts and you wont be looked down upon :) ** -
How to manage multiple formats in a single file ,
hi ,
I 'm getting multiple format files from my source..
how to tackle this scenario in ODI ,
Plz reply me and thanks in advance.RECORD CODES in column definition are used to differentiate between different record types that are put in a same file.
The premise here is that the file contains records of different record types and a field in the file identifies the record type. eg. A file contains 2 record types with different formats.
A,101,'CMP', 'IDV
A,102,'CMP', 'IDV
B,1001,'GFRV_OCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
A,101,'CMP', 'IDV
B,2001,'FRV_OGCCD', 'GFRV_ID', 'IDVA, 121 ,'CMP', 'IDV'
A,101,'CMP', 'IDVHere the first field identifies the record type - A or B. So, in the ODI data store, you use A or B in the record code field of the column definition of the data-store.
ODI automatically, gets the records matching the record code specified in the definition of the data-store.
So, you will create 2 data-stores, one with record code = A (4 columns) and other with record code = B (8 columns)
Hope that helps. -
Urgent ! How to add multiple JToolBars in a single JFrame
How to implement multiple JToolBars in a single JFrame
or what is the concept behind floating toolBars.If anybody can help me ,Thisis very urgentIf you insist on multiple toolbars, use the following code:
JToolBar tb1 = new JToolBar();
//add stuff
JToolBar tb2 = new JToolBar();
//add stuff
//put the toolbars on the top of the window
JPanel toolbars = new JPanel(new BorderLayout());
toolbars.add(tb1, BorderLayout.NORTH);
toolbars.add(tb2, BorderLayout.CENTER);
getContentPane().add(toolbars, BorderLayout.NORTH);Stephen -
How to set multiple styles on a single component in flex ?
Hi ,
I would like to know how to set multiple styles on a single component in flex.
Can anyone give me an example as to how to set multiple styles for a single component ?
Thanks ,
Regards,
AjanthaHi tuliptaurus,
You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
btn.setStyle("styleName","blendButtonSkinOther");
You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
blendButtonSkin {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
blendButtonSkinOther {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
Thanks,
Bhasker Chari -
How can i scan multiple pages in a single file in pdf.
How can i scan multiple pages in a single file in pdf using 1536 dnf.
Hi @veerendrajain ,
I see that you would like to save multiple PDF documents into one file. I would like to help you out today.
In the HP Scan Software, select Advanced scan settings, click on the File tab and uncheck Create a separate file for each scanned image.
Hope this helps.
Have a nice day!
Thank You.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
How to delete multiple data domains with single step ?
how to delete multiple data domains with single step ?
You can go to your Endeca-Server domain home e.g.($WEBLOGIC-HOME$/user_projects/domains/endeca_server_domain/EndecaServer/bin)
run
[HOST]$ ./endeca-cmd.sh list-dd
default is enabled.
GettingStarted is enabled.
endeca is enabled.
BikeStoreTest is enabled.
create a new file from the output just with the domains that you want to delete and then create a loop
[HOST]$ vi delete-dd.list
default
GettingStarted
endeca
BikeStoreTest
[HOST]$ for i in $(cat delete-dd.list); do; ./endeca-cmd.sh delete-dd $i; done
Remember that this can not be undone, unless you have a backup. -
Does anyone know how to add multiple pictures to a single frame in iMovie?
Does anyone know how to add multiple pictures to a single frame in iMovie?
Maybe you would be better off posting this in the iPhoto or iDVD categories of the forums.
http://discussions.apple.com/category.jspa?categoryID=143
http://discussions.apple.com/category.jspa?categoryID=128
The answer to your question depends on what you ant to do with the DVD.
Do you want a DVD menu, slide show etc.
iPhoto will allow you to burn straight to a DVD. Just select the album you want to burn then go to share in the tool bar and select Burn. -
How to insert multiple records in a single query
Dear all,
Can you please tell
how to insert multiple records in a single query ??INSERT INTO table_name (column_1, column_2) VALUES ('value_A', 'value_B')OR
INSERT INTO table_name
(column_1, column_2)
SELECT 'value_A', 'value_B' FROM DUAL
UNION ALL
SELECT 'value_C', 'value_D' FROM DUAL
;Edited by: Benton on Nov 9, 2010 1:59 PM -
How to put multiple targets in ODI
Hi All,
Can i know how to put multiple targets in Oracle Data Inegrator.
Thanks in Advance!!You can have one target per interface. There are some KMs in ODI 11g to generate Oracle multi target insert statements or Teradata comparable ones. You could also hide additional inserts under the hood in a KM if it is a common design pattern.
Cheers
David -
How to call multiple strus actions froma single jsp
how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advancehow to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advance -
How to use multiple classes for each form
Hi,
I have created two forms using screen painter and now i want to use different classes for these two forms .
I have declared the Sbo Connection in main class i.e. Set Application ,Connection Context() but while connecting to other classes
for executing the code for that form SAP is not connected to that class.How to use multiple classes functionality i don't able to
do that.Please provide some sample codes for that as it will be more helpful for me to understand.
Thanks & Regards,
AmitHi Amit,
In fact, its more advisable to use separate classes for every form that you use. Have one common class, say, for eg., clsMain.cs which has all the connection and connectivity to other classes, wherein, the menu event and item event of this main class, will just be calling the menu / item event of other classes.
The individual functionality of the child classes will be called from the item / menu event of the respective classes.
Item event in clsMain.cs will be as below.
private void oApplication_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
SAPbouiCOM.Form oForm;
BubbleEvent = true;
try
if ((pVal.FormTypeEx == "My_Form1Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
NameSpace.Repots.ClsForm1.ClsForm1_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
if ((pVal.FormTypeEx == "My_Form2Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
NameSpace.Repots.ClsForm1.ClsForm2_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
Now, in the individual classes, you can have their respective item events, which will be called from the main class, and the respective functionalities will occur.
Hope this helps.
Regards,
Satish. -
How to use multiple tape drive for single filesystem on single client.
Hello All.
I want to backup single filesystem with multiple tape drive.
Incase of Symantec veritas netbackup "NEW_STREAM" for multi-stream backup.
Backup client has a single backup filesystem like /data1 directory with 4 LTO6 drives.
/data1 directory doesn't have a sub-direcotry, just present a files.
If /data1 directory has a sub-directory like /data1/aaa, /data1/bbb, /data1/ccc , Is it possible to use multiple drives?
Please anybody answer the questions.
Thanks advanced.See how to use multiple tape drive from single client when I want to backup single filesystem?
-
How to put multiple photos on 1 A4 page
Hi
Can someone tell me how to put multiple photos on 1 A4 page,
many thanksTry this:
File >> New
Set your width and height dimensions of A4 in mm.
Set resolution e.g. 72 for web use/email or 240-300 for printing.
Set background color to white (or whatever you prefer) and click OK
Now get your first image
File >> Place Embedded
Select your first image and click place
Drag to position and scale with the corner handles whilst holding down Shift.
Click the check-mark to commit.
Repeat for each of your other images. -
Multiple accounting doc in single file - PROXY
Hi,
I am reciving multiple accounting doc in single file..
MT_INPUT
acc_doc1
acc_doc2
I need to send it seperately to PROXY.
MT_INPUT
acc_doc1
MT_INPUT
acc_doc2
proxy needs to be called multiple times.....
how to do this?
Regards,
Akshay.Hi Akshay,
Create a 1..n mapping and 1..n interface mapping.
You will then need to create an enhanced interface determination. (There is a radio button to select 'Enhanced'). The rest of you config will be the same.
This will split your single message into several messages, which will be processed individually by the receiver proxy.
Regards,
Yaghya
Maybe you are looking for
-
During installation of SCCM agent on 1 particular server we get following error: ccmsetup.log MSI: Action 14:19:26: CreateFolders. Creating folders ccmsetup 15/09/2014 14:19:26 6524 (0x197C) MSI: Action 14:19:26: CcmDetectFilesInUseRollback. Rolls ba
-
i need help i just reinstalled arhive and intall and now my mighty mouse is not working. i can get the right click to work every were exept for the dock. the only menu i can get from the dock is the name of the program if you go overit. it did work b
-
MS SQL Server 2000 + JDBC
Hi everyone, I know many of you don't like microsoft products, but I am getting weird errors when i connect my java program to SQL server 2000 with its driver. My code worked FINE with MS Access. The thing is I know there are some bugs to SQL server
-
I use FIREFOX as my default browser for years. Yahoo is my main e-Mail, yet use Hotmail too. For 2 days now, I can not download any attachments (PDF, JPG, DOC, MPEG ect.) from any of my Yahoo accounts. If I forward the same mail to my Hotmail account
-
User exit for calculating exchange rate in MRER,MRKO,MRNB,MIRO
Hi All, For the transactions MRER,MRKO,MRNB,MIRO I want to change the exchange rate type(tcurv-kurst) which is used to calculate exchange rate . For example, exchange rate type 'M' is used to calculate the exchange rate but now i want to use the type