Code for the transaction ME42 to call the customised print program
HI,
I am working on forms, i have the transcation ME42, i need to call the customised print prg, from the print program i need to call the form.
In nace i have customised the print prg with the smartform and i have checked with the table tnapr.
what coding should i give in the customised print prg so the when the transaction ME42 is save the print prg is called.
I am checking the standard print prg how is it calling . i am not able to find . can u pls tell what code can be used
Hello Anitha,
Use this code
Entry routine
FORM ENTRY USING RETURN_CODE US_SCREEN.
CLEAR RETCODE.
XSCREEN = US_SCREEN.
PERFORM PROCESSING.
IF RETCODE NE 0.
RETURN_CODE = 1.
ELSE.
RETURN_CODE = 0.
ENDIF.
ENDFORM.
In the for Processin, U do all the opration to proint the form.
Reaward if useful.
Vasanth
Similar Messages
-
Maintain BSR Code for the TDS Print in ECC6.0
Dear all,
Where can i maintain the BSR code .We are @ ECC6.0.
Please help.Hai
At the time of creation of House banks create bank keys(in Tcode:FI12) with BSR Code that will get prinetd in TDS Certficate.
Regards
Raghavendra.M
SAP-Practice -
I entered the correct download code for "THE HOST" but instead got a copy of "SPRING BREAKERS"! All of the prompts identified it as "The Host" but the final product was "Spring Breakers"! I called a friend who has a copy of that movie and the download codes are not even remotely alike!! How can I correct this error? I 'd rather have SyFy that a bubblegum teenager flick!! HELP ME, PLEASE?!
Hello Old Dogg new tricks,
Thanks for using Apple Support Communities.
For more information on this, take a look at this article:
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
http://support.apple.com/kb/ht1933
Best of luck,
Mario -
ABAP Routine code for the below logic
Hello BW Experts ,
I need to write a complex ABAP routine in BW .
Following is the detail explaination .
Can anyone tell me the ABAP code for the below logic?
It would be a greate help as I am unable to do this
since last two days.
WBS Elements are maintained at IOS and Warranty levels in R/3 side.
The IOS WBS is a top level of WBS element and below that the Warranty WBS level.
The IOS and Warranty WBS elements can be differentiated by means of priority field.
When priority = i , WBS Element is known as IOS Level WBS Element and
When priority = Y the WBS element is known as Warranty WBS element.
The Equipment Number is maintained compulsorily at IOS Level WBS elements only.
It is not maintained at Warranty WBS Element.
But the Cost is maintained at Warranty WBS Elements.
In BW I need all Warranty WBS ( priority = Y) along with their cost figures and Equipment Numbers.
But as the Equipment Number is not maintained compulsorily at Warranty WBS level we have asked to
Copy it from IOS WBS ( priority = i ) and assign it to Warranty WBS level ( priority = Y ).
So I have included the Equipment Number in the ODS and in update rules I need to write the routine for it as
per the above logic.
The Equipment Number is coming from Master data of WBS Element.
The WBS element master data we are loading in BW .
Also the same WBS Element transaction data is coming from the transaction data data source in BW.
Following fields / infoobjects and the table names in BW :
1. Equipment Number : /BIC/ZEQUIPMNT and table name /BIC/MZWBS_ELEM.
2. WBS Element : ZWBS_ELEM is coming from transaction data data source as well as master data.
In ODS update rules it is coming from transaction data data source Comm_structure-ZWBS_ELEM.
Also we are loading separetly the master data for ZWBS_ELEM.
The ZEQUIPMNT is an attribute of ZWBS_ELEM.
3. Priority : PRIORITY and table name /BIC/MZWBS_ELEM.
The info object name for Priority is 0Priority but in master data table /BIC/MZWBS_ELEM
the field name is PRIORITY.
When PRIORITY = ' i ' then ZWBS_ELEM is at IOS Level
When PRIORITY = ' y ' then ZWBS_ELEM is at Warranty Level.
4. ODS name : /BIC/AZCOST00 and same is table name active data table .
So please tell me the routine Code .
Best Regards ,
Amol.Hi Dinaker,
Did you find any solution for this issue. I too have a similar requirement of pulling all the service orders for a specific Purchase Order in the BW report.
Thanks,
SAPBWI -
My iPhone has crashed during a sync and now I can't restore from backup as it is asking for password to load the backup yet neither the lock code for the phone or my iTunes Password are working... I have no other password to call upon and need the restore to retrieve info onto my phone, I am a real novice to this...... please help, !!!!
If anyone else is looking for a solution to this same problem, I was able to get it working looking through several older discussions.
The solution was to use the password that I had on my iTunes account the very first time I set up the iPhone about a year ago. I changed my iTunes password about 10 months ago; but apparently, the backups continue to use the password that existed when the phone was first set up.
A couple of troubling things with this are that 1) I didn't apply a password when I did the backup this afternoon so I don't understand why it was required when I did the restore a few hours later. and 2) it makes zero sense why iTunes would not be smart enough to use the current accout password when requiring the password to restore from a backup made with no password.
I thought iTunes and Apple were smarter than that. With so many posts stating exactly the same problem, it is clear that this is bug in the software.
Best,
Craig -
USER COMMAND CODE for the ICON "Back"
Hello All,
I wanted to know if there is any command code for the user-command icon "back" that i can use while programming.
e.g. as for the icon "save" there is '&data_save' code which we can use.
I have used the code "&F03" for 'back" but it does not call the routine i have written for the same.
So if in case no other code for "Back" icon is available, what is the procedure to implement the "back" command through programming?
as when i click the icon,the code written inside the report should be executed along with the normal "back" function.
ThanksHi..
you do one thing..put /h. then click on back.At the bottom pART of the debugging screen u find
Field names section..There type sy-ucomm and press enter. The value of sy-ucomm can be seen...
Thats the value u need...Which u can use the same in case statement
and its case sensitive.chk the same.. and write it in quotes( ''). that is 'BACK' or 'F03'
Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 7:48 AM -
Enter commodity code/ Group code for the hierachy
Hi Experts,
I am trying to create New trading goods material by copying another similar material but here the issue is when I am trying to save the material mesage says Enter commidity code/ Group code for the hierarchy. This message is coming when every thing is finish and trying to save at the end of the transaction.
I believe we need to maintain commodity codes in customizing for sales and distribution especially foreign trade.
Any one can give me idea what is the configuration for this step by step.
Appreciate your help
Thanks
KrishnaHello,
Commodity code can be configured in SPRO->Sales and Distribution->Foreign Trade/Customs->Basis data for Foreign Trade->Define Commodity Codes / Import Code Numbers By Country.
You maintain the same at country level.
Thanks,
Venu -
Script Component WebService Binary code for the script is not found
I am using SSIS 2012 to access a Public Web Service
http://marketinformation.natgrid.co.uk/MIPIws-public/public/publicwebservice.asmx
However, when adding reference to WebService (not Service Reference),
I receive the dreaded msg "Binary code for the script is not found"
I have spent an age ploughing through the forums.
Many replies seem to suggest not using Script Component to acces WebService.
Should I write a .NET app ?
Any thoughts how I should proceed would be most welcome.
thanks JohnJamesHi JohnJames,
If I understand correctly, you already add this public web service via Add Service Reference option in the Script Component. Then you receive the error message when you trying to call the bindings and Contract settings stored in app.config file to access
the web service.
Please note that we cannot all the web service normal way as SSIS Script Component task doesn’t recongnise the app.config file. To fix this issue, we should define the BINDINGS via code rather than depending on the App.config file. For more details, please
see the following blog:
http://social.technet.microsoft.com/wiki/contents/articles/22587.consume-webservice-via-ssis-script-component.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to Find unused programs / T-codes for the past three months
How to find the unused programs / transaction codes for the past three months,
I tried with the ST03 Transaction but it gives only the Tcodes, program used in last one monthu2026
Regards,
PurshothThis depends on the data retention time (in days) maintained in your system. In ST03, on the right hand side, check "Collector" tab, under that "Performance Database" and then "Reorganization" which will give you the details retention times (in days).
Also please check the link http://inet.tamko.com:8081/saphelp/helpdata/EN/c4/3a68d5505211d189550000e829fbbd/frameset.htm for more details.
Thank You. -
Getting Error In the Routine - While writing Code for the Cross Reference.
Hi,
Getting Error In the Start Routine - While writing Code for the Cross Reference from the Text table ( /BIC/TZMDES with Fields /BIC/ZMDES(Key),TXTSH ) Getting Error as [ E:Field "ZMDES" unknown ].
Transformation : IOBJ ZPRJ3(Source) -> IOBJ ZPRJC ( Target ).
The Source Fields are: 0logsys(Key),zprj3(Key),ZDOM3.
The Target Fields are : 0logsys(Key),zprjc(Key),ZDOM3, UID.
Here i am trying to Update the target Field UID by Comparing the Source Field [ zprj3(Key)] with the Text table ( /BIC/TZMDES ) and update the UID.
The Code is as below:
Global Declarations in the Start Routine:
Types: begin of itabtype,
ZMDES type /BIC/TZMDES-/BIC/ZMDES,
TXT type /BIC/TZMDES-TXTSH,
end of itabtype.
data : itab type standard table of itabtype
with key ZMDES,
wa_itab like line of itab.
Routine Code :
select * from /BIC/TZMDES into corresponding fields of table itab for
all entries in SOURCE_PACKAGE
where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
READ TABLE itab INTO wa_itab
WITH KEY ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3
BINARY SEARCH.
IF SY-SUBRC = 0.
RESULT = wa_itab.
CLEAR wa_itab.
The tys_SC_1 structure is :
BEGIN OF tys_SC_1,
InfoObject: 0LOGSYS.
LOGSYS TYPE RSDLOGSYS,
InfoObject: ZPRJ3.
/BIC/ZPRJ3 TYPE /BIC/OIZPRJ3,
InfoObject: ZDOM3.
/BIC/ZDOM3 TYPE /BIC/OIZDOM3,
Field: RECORD.
RECORD TYPE RSARECORD,
END OF tys_SC_1.
TYPES:
tyt_SC_1 TYPE STANDARD TABLE OF tys_SC_1
WITH NON-UNIQUE DEFAULT KEY.
Please suggest with your valuable inputs.
Thanks in AdvanceI have split the code in two.. one for start routine.. other for field routine.. hope this helps
Types: begin of itabtype,
ZMDES type /BIC/TZMDES-/BIC/ZMDES,
TXT type /BIC/TZMDES-TXTSH,
end of itabtype.
data : itab type standard table of itabtype
with key ZMDES,
wa_itab like line of itab.
Start routine
select * from /BIC/TZMDES into corresponding fields of table itab for
all entries in SOURCE_PACKAGE
where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
Sort itab.
field routine
CLEAR wa_itab.
READ TABLE itab INTO wa_itab
WITH KEY ZMDES = SOURCE_FIELD-/BIC/ZPRJ3
BINARY SEARCH.
IF SY-SUBRC = 0.
RESULT = wa_itab-<field name> -
I need to know the differnece between the Numeric Limit Test between the TestStand version 3.0 to 3.1. If there is any differnec in the source code how to find it out? If somebody has the code can you share it?
Thanks,
JeyanHi,
I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
What has prompted this question?
Regards
Ray Farmer
Regards
Ray Farmer -
Provide the java code for the following scenario.
Hi Experts,
I have tried with all the combinations for this scenario. As per my understanding i require java code for the following scenario
so that it becomes easy........
I require a Message mapping for this Logic.
In the Source there are 4 fields and, the Target side, the fields should appear like this.
Source Structure- File
Record
|-> Header
Order_No
Date
|-> Item
Mat_No
Quantity
Target Structure-IDoc
IDoc
|-> Header
|-> Segment
Delivery_Order_No
Recv_Date
|-> Item
|-> Segment
Delivery_Order_No
Material_Num
Recv_Quantity.
The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
For example:-
we have
Source Structure- File
Order-no Date Mat_No Quantity
1 01/02/2011 A 10
1 01/02/2011 B 15
1 01/02/2011 A 10
2 01/02/2011 C 10
2 01/02/2011 C 10
3 01/02/2011 D 20
3 01/02/2011 D 10
3 01/02/2011 E 25
Target Structure-IDoc
Delivery_Order_No Recv_Date Material_Num Recv_Quantity
1 01/02/2011 A 20
1 01/02/2011 B 15
2 01/02/2011 C 20
3 01/02/2011 D 30
3 01/02/2011 E 25
So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
Kindly provide the java code.
Thanq very much in advance..what i have understood from ur example is that u want to generate an idoc for unique combination of Order-no and Mat_No
if yes then chk the below mapping..
change the context of Order_No, Date, Mat_No and Quantity to Record (right click-> context)
1)
Order-no
----------------------concat[;]---sort----splitbyvalue(valuechanged)-----collapse context---IDoc
Mat_No
2)
Order-no
--------concat[;]---sort----splitbyvalue(value changed)---collapse context---UDF1--splitbyvalue(each value)--Delivery_Order_No
Mat_No
3)
Order-no
-----------concat[;]---sortbykey----------------------- \
Mat_No / \
Date--------------- / \
----------------------------------------------------------FormatByExample-----collapsecontext---splitbyvalue(each value)----Recv_Date
Order-no /
-----------concat[;]---sort----splitbyvalue(value changed)
Mat_No
4)
Order-no
--------concat[;]---sort----splitbyvalue(value changed)---collapse context-UDF2--splitbyvalue(each value)--Material_Num
Mat_No
5)
Order-no
-----------concat[;]---sortbykey
Mat_No /
Quantity --------------- /
----------------------------------------------------------FormatByExample-----SUM(under statistic)----Recv_Quantity
Order-no
-----------concat[;]---sort----splitbyvalue(value changed)
Mat_No
UDF1:
String [] temp= a.split(";");
return temp[0];
UDF2:
String [] temp= a.split(";");
return temp[1]; -
Creating Java code for the function module
Hi Colleagues,
I have a fuction module in ABAP system. Now I want to Generate java code for the FM.
I cam to know that we can achive that using AXIS, By getting the XML file for the fuction module and generate Java
Class file using that XML file.
Can any one tell me how to achive it.
Or any other way to do that?
Please provide you valid suggestions.
Regards,
SathyaHi,
You can integrate axis2 in eclipse. I think you have to find the plugin for that.
After that you can let axis generate the jave code (stubs and proxies) for your web service via the wsdl file.
Kind Regards,
Robin -
Here the SSCCE code for the prvious problem posted by me.
Following is the SSCCE code for the program of search which is having the problem i have asked before.
here when you run it will show a form which have a search button on it and when you press it a panel will shown below which have a table( it is just a bounded area without any column or row as i have removed the database functionality and we dont have to do with it).
the problem is the same that firstly i want to make the panel invisible.
(the blue and yellow colors are just to seperate the panel and the container) Secondly i want to remove the extra large space added below the last table and thirdly i want that on each press of the search button the scrollbar will focus on the new table added.
import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
public class Temp extends JFrame implements ActionListener
Container c;
Toolkit tk;
JLabel l1; int y=30;
JPanel p1,p2,p3;
JRadioButton rbByName,rbBySirName,rbByID,rbByCity,rbByState;
JButton btSearch,btView;
ButtonGroup bgSearch;
JTextField txtSearch; BoxLayout boxl;
ImageIcon i1;JScrollPane sp1;JViewport vp;
public Temp()
super("Search-Address Management System");
c=getContentPane();
tk=Toolkit.getDefaultToolkit();
setSize(1024,768);
c.setBackground(Color.BLUE);c.setLayout(null);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
defineComponents();
settingBounds();
addListeners();
addComponents();
setVisible(true);
public void defineComponents()
p1=new JPanel();
p1.setLayout(null);
p1.setOpaque(false);
p2=new JPanel();
p2.setLayout(null);
p2.setOpaque(false);
p3=new JPanel();
boxl=new BoxLayout(p3,BoxLayout.Y_AXIS);
p3.setLayout(boxl);
rbByName=new JRadioButton("First Name");
rbByName.setOpaque(false);
rbBySirName=new JRadioButton("Last Name");
rbBySirName.setOpaque(false);
rbByState=new JRadioButton("State");
rbByState.setOpaque(false);
rbByCity=new JRadioButton("City");
rbByCity.setOpaque(false);
rbByID=new JRadioButton("ID");
rbByID.setOpaque(false);
btSearch=new JButton("Search");
bgSearch=new ButtonGroup();
txtSearch=new JTextField();
btSearch=new JButton("Search");
TitledBorder tb=new TitledBorder("Search Criteria");
TitledBorder tb1=new TitledBorder("Search");
p1.setBorder(tb);
p2.setBorder(tb1);
public void settingBounds()
rbByID.setBounds(20,30,50,20);
rbByName.setBounds(120,30,100,20);
rbByState.setBounds(20,70,80,20);
rbByCity.setBounds(120,70,50,20);
rbBySirName.setBounds(240,30,100,20);
p1.setBounds(30,40,400,110);
p2.setBounds(30,180,400,80);
p3.setBackground(Color.ORANGE);
txtSearch.setBounds(50,210,250,25);
btSearch.setBounds(320,210,80,25);
rbByID.setSelected(true);
public void addListeners()
btSearch.addActionListener(this);
public void addComponents()
p1.add(rbByName);
p1.add(rbBySirName);
p1.add(rbByState);
p1.add(rbByCity);
p1.add(rbByID);
c.add(txtSearch);
c.add(btSearch);
c.add(p1);
c.add(p2);
bgSearch.add(rbByID);
bgSearch.add(rbByName);
bgSearch.add(rbBySirName);
bgSearch.add(rbByCity);
bgSearch.add(rbByState);
public void drawtable()
JTable t1=new JTable()
public Class getColumnClass(int column)
return getValueAt(0, column).getClass();
if(y==30) //as temporay variable only to add the scrollpane once
sp1=new JScrollPane(p3,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
sp1.setBounds(30,300,660,380);
c.add(sp1);
JScrollPane sp=new JScrollPane(t1);
sp1.getViewport().setOpaque(false); // to make the scrollpane transparent but not worked
sp.setMaximumSize(new Dimension(600,100));
p3.add(Box.createRigidArea(new Dimension(600,20)));// invisible filler to add space between two tables
p3.add(sp);
p3.revalidate();
y=y+110;
public void actionPerformed(ActionEvent e)
if(e.getSource()==btSearch)
drawtable();
public static void main(String args[])
new Temp();
}Please reply with the code required to be added.the problem is the same that firstly i want to make the panel invisible.If I remember you other postings I think you mean to say transparent, which means the background of its parent component will be painted. If you make the panel invisible, then all the component added to the panel will also be invisible.
You have a structure something like this:
main panel
- scroll pane
- viewport
- table panel
- table1
- table 2As you where told in one of you many other posting on this topic, if you want the background of the main panel to show through then you need to make all the component on top of the pane non-opaque, not just the viewport. So, the scroll pane and table panel also need to be changed.
And don't forget to reply to all your other postings on this topic stating that those postings are "closed" so people don't waste time answering in those postings. Keep the conversation in one posting so everybody knows what has been suggested. -
Streamlining the code for the button group with individual links and rollover imgs
I am looking for a solution to streamline the code for the array of 20+ buttons located inside the scroll pane.
I know I can make an array if all the buttons would have a unified code executable change, i.e. they would become larger and brighter.
My problem is that each button represents an product image in the lights off stage, then of rollover it is a lights on stage so I have to import two images in the on and off stage and play around with the opacity.
Additional problem is that each button has to ling to a different label.
My question is: is it possible to unify the code if buttons have that much individuality or I have to make each one of them as in the example below.
// makes a hand cursor appear over a mc acting as a button for all the buttons inside the scrollpnaeBckgrnd_mc.scrollpaneBckgrnd_btns_mc.
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.buttonMode = true;
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.useHandCursor = true;
///////////////INDIVIDUAL BUTTONS
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte _btn.FloraLyte_ON.alpha = 0;
var FloraLyte_btn_Tween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLyte_btn.FloraLyte_ON, .5, {alpha:1, paused:true});
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_FloraLyte_btn);
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_FloraLyte_btn);
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte_btn. addEventListener(MouseEvent.CLICK, onClick_floralytePopUp);
function onClick_floralytePopUp(event:MouseEvent) :void {
gotoAndPlay("floralytepp");
function overHandler_FloraLyte_btn(e:MouseEvent):void{
FloraLyte_btn_Tween.play();
trace("you rolled over me");
function outHandler_FloraLyte_btn(e:MouseEvent):void{
FloraLyte_btn_Tween.reverse();
trace("you rolled off me");
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_btn .FloraLytell_ON.alpha = 0;
var myTween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLytell_btn.FloraLytell_ON, .5, {alpha:1, paused:true});
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler);
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler);
MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_bt n.addEventListener(MouseEvent.CLICK, onClick_floralytellPopUp);
function onClick_floralytellPopUp(event:MouseEvent) :void {
gotoAndPlay("floralyte2pp");
function overHandler(e:MouseEvent):void{
myTween.play();
trace("you rolled over me");
function outHandler(e:MouseEvent):void{
myTween.reverse();
trace("you rolled off me");as ned suggested, plan your flow and code into it. here is one example:
var buttonArray = [someButton, someOtherButton, aDifferentButton];
for(var i = 0; i < buttonArray.length; i++){
//get reference to county movieclip
var mc = buttonArray[i];
//then add listeners
mc.addEventListener(MouseEvent.ROLL_OVER, overMe);
function overMe(e:MouseEvent){
var mc = e.target;
switch(mc){
case: someButton:
someOtherButton: doThis();
break;
case: aDifferentButton: doThat();
break;
default: //do nothing;
break;
function doThis(){
trace("do this")
function doThat(){
trace("do that")
Maybe you are looking for
-
Somebody please help me!!!
Whenever I try and add a song it says "The iPod cannot be updated. The disk could not read from or be written to." Please help me!
-
Can random queue name used in EOIO ?
Hi, Friends: We have scenario: JMS -> PI 7.0 (SP13) -> ECC 6.0. Since we need to maintain the order of the transactions, EOIO setting need to be enabled. When enable EOIO in JMS sender, we specified random queue name saying "INT001" without registeri
-
My Ipod says version not supported when attaching to my Honda
I just purchased a Honda Insight and hooked my iPod up to the USB port and it was working fine. I brought my ipod inside and hooked it up to my macbook added several songs and may have upgraded the software. Now when I hook it up to the USB in the
-
I have reset the entire phone. Phone works fine for a while then I'cant even hang up a phone call if a get a busy siginal or answering machine. I have to do a solf reset. But if a get through to someone and talk, then hang up it disconnects??? can an
-
How to uninstall programs from my mac pro that I can't drag to the trash?
I have several programs that I no longer use that I want to uninstall. Some of them will not allow me to drag and drop them in the trash. How do I get rid of the programs that I no longer want?