Change name of function..?
I have 2 codes on 2 different keyframes i have just copy/pasted. I have changed all the name of functions and variables, I just need one function I don't know how to change name of.
code on key frame 1:
var timedelay2:Number = 10; // seconds delay in replay
var video2;
var nc2:NetConnection;
var ns2:NetStream;
nc2 = new NetConnection();
nc2.connect(null);
ns2 = new NetStream(nc2);
ns2.client = this;
ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
function netStatusf2(e:NetStatusEvent) {
if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
setTimeout(replayF,timedelay*1000);
function replayF2(){
ns2.play("film/film1.f4v");
var durationNum2:Number;
function onMetaData(iObj:Object):void {
durationNum2 = iObj.duration;
video2 = new Video(287,263);
video2.x = 231.1;
video2.y = 140.5;
addChild(video2);
video2.attachNetStream(ns2);
ns2.play("film/film1.f4v");
code on key frame 2:
var moviesA:Array =["film/film1.f4v", "film/film2.f4v"];
var movie:String = moviesA[Math.floor(Math.random()*moviesA.length)];
var timedelay:Number = 5; // seconds delay in replay
var video;
var nc:NetConnection;
var ns:NetStream;
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.client = this;
ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
function netStatusf(e:NetStatusEvent) {
if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
setTimeout(replayF,timedelay*1000);
function replayF(){
ns.play(movie);
var durationNum:Number;
function onMetaData(iObj:Object):void {
durationNum = iObj.duration;
video = new Video(287,263);
video.x = 231.1;
video.y = 140.5;
addChild(video);
video.attachNetStream(ns);
ns.play(movie);
problem is this function, I don't really know how to give one of the function another name so they don't interfere with each other...?
function onMetaData(iObj:Object):void {
durationNum2 = iObj.duration;
anyone that can help..?
hey again
i'm now just using
var durationNum:Number;
function onMetaData(iObj:Object):void {
durationNum = iObj.duration;
on frame 1. But it seems i've lost the randomness on frame 2. it only plays "film/film1.f4v" all the time even though i put multiply times "film/film2.f4v". Is this true, or is it just me who have been very unlucky..?
my frame 1 looks like this at the moment:
var timedelay:Number = 10;
var video;
var nc:NetConnection;
var ns:NetStream;
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.client = this;
ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
function netStatusf(e:NetStatusEvent) {
if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
setTimeout(replayF,timedelay*1000);
function replayF(){
ns.play("film/film1.f4v");
var durationNum:Number;
function onMetaData(iObj:Object):void {
durationNum = iObj.duration;
video = new Video(287,263);
video.x = 231.1;
video.y = 140.5;
addChild(video);
video.attachNetStream(ns);
ns.play("film/film1.f4v");
stage.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "work1_btn":
gotoAndStop("work1");
removeChild(video);
break;
case "contact_btn":
gotoAndStop("contact");
removeChild(video);
break;
case "frontpage2_btn":
gotoAndStop("frontpage2");
removeChild(video);
break;
And my frame 2 looks like this:
var moviesA2:Array =["film/film1.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v"];
var movie2:String = moviesA2[Math.floor(Math.random()*moviesA2.length)];
var timedelay2:Number = 0; // seconds delay in replay
var video2;
var nc2:NetConnection;
var ns2:NetStream;
nc2 = new NetConnection();
nc2.connect(null);
ns2 = new NetStream(nc2);
ns2.client = this;
ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
function netStatusf2(e:NetStatusEvent) {
if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
setTimeout(replayF2,timedelay*1000);
function replayF2(){
ns2.play(movie2);
video2 = new Video(287,263);
video2.x = 231.1;
video2.y = 140.5;
addChild(video2);
video2.attachNetStream(ns);
ns2.play(movie2);
stage.addEventListener(MouseEvent.CLICK, clickHandler2);
function clickHandler2(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "frontpage2_btn2":
gotoAndStop("frontpage2");
removeChild(video2);
Similar Messages
-
Change name of Function group?
How can we change the name of the custom function group which was created by me?
Is there any change to be done ,after changing the name of function group ,to the function module assigned to the earlier function group??Hi,
goto SE80 --> select funcitongroup and name --> press enter --> you can see object list.
In object list --> select function group ---> right clik mouse --> and rename the function group.
Or goto SE37 --> go to function groups --> Change group --> give new name
Thanks,
If helps pls award points -
Changing option in function module
sir,
plz explain the role or importance of changing option in function module SE37hi check this example it had the usage of the changing option..
here the using will input the value to the perform and do some prosses and output some value..
PERNR TYPE P0001-PERNR Personnel Number
PLANS TYPE P0001-PLANS Position
ORGEH TYPE P0001-ORGEH Organizational Unit
DATE TYPE SY-DATUM SY-DATUM Date and time, current (applic
PLVAR TYPE PLOG-PLVAR '01' Plan Version
ISTAT TYPE PLOG-ISTAT '1' Planning Status
MANAGER TYPE ZHMSS_MANAGER Structure for manager for MSS
NO_PERNR_PLANS_ORGEH_SPEC No pernr, position or org unit specified
NO_EXIST_PLANS Position does not exist
INVALID_PLANS Position invalid
NO_EXIST_ORGEH Org unit does not exist
NO_EXIST_PERNR Personnel number does not exist
function z_get_orgunit_manager_info.
""Local interface:
*" IMPORTING
*" REFERENCE(PERNR) TYPE P0001-PERNR OPTIONAL
*" REFERENCE(PLANS) TYPE P0001-PLANS OPTIONAL
*" REFERENCE(ORGEH) TYPE P0001-ORGEH OPTIONAL
*" REFERENCE(DATE) TYPE SY-DATUM DEFAULT SY-DATUM
*" REFERENCE(PLVAR) TYPE PLOG-PLVAR DEFAULT '01'
*" REFERENCE(ISTAT) TYPE PLOG-ISTAT DEFAULT '1'
*" EXPORTING
*" REFERENCE(MANAGER) TYPE ZHMSS_MANAGER
*" EXCEPTIONS
*" NO_PERNR_PLANS_ORGEH_SPEC
*" NO_EXIST_PLANS
*" INVALID_PLANS
*" NO_EXIST_ORGEH
*" NO_EXIST_PERNR
if pernr is initial and
plans is initial and
orgeh is initial.
raise no_pernr_plans_orgeh_spec.
endif."pernr is initial and
if not pernr is initial.
if pernr cn '0123456789'.
exit.
endif.
*-- See if pernr exists
call function 'P_EMPLOYEE_CHECKEXISTENCE'
exporting
object_id = pernr
date = date
exceptions
employee_not_found = 01.
if sy-subrc ne 0.
raise no_exist_pernr.
exit.
endif.
*-- Obtain pernr position
call function 'HR_READ_INFOTYPE'
exporting
pernr = pernr
infty = c_infty_0001
begda = date
endda = date
importing
subrc = g_retcd
tables
infty_tab = i0001
exceptions
infty_not_found = 01
others = 02.
if sy-subrc eq 0.
describe table i0001 lines g_lines.
if g_lines > 0.
read table i0001 index 1.
*-- Got position now find org unit
perform zf_proc_get_om_objects tables i_objects
using c_otype_position
i0001-plans
plvar
c_rsign_a
c_relat_003
istat
date
date
c_otype_orgunit
changing g_retcd.
if g_retcd eq 0.
read table i_objects index 1.
g_orgeh = i_objects-sobid(8).
endif. "g_retcd eq 0.
endif. "g_lines > 0. for i0001
endif. "sy-subrc eq 0 hr_read_infotype
elseif not plans is initial.
if plans co '9' or
plans co '0'.
raise invalid_plans.
exit.
endif.
call function 'RH_READ_OBJECT'
exporting
plvar = plvar
otype = c_otype_position
objid = plans
istat = istat
begda = date
endda = date
langu = sy-langu
exceptions
not_found = 1
others = 2.
if sy-subrc <> 0.
raise no_exist_plans.
exit.
endif.
*-- Find org unit
perform zf_proc_get_om_objects tables i_objects
using c_otype_position
plans
plvar
c_rsign_a
c_relat_003
istat
date
date
c_otype_orgunit
changing g_retcd.
if g_retcd eq 0.
read table i_objects index 1.
g_orgeh = i_objects-sobid(8).
endif."g_retcd eq 0.
elseif not orgeh is initial.
call function 'RH_READ_OBJECT'
exporting
plvar = plvar
otype = c_otype_orgunit
objid = orgeh
istat = istat
begda = date
endda = date
langu = sy-langu
CHECK_STRU_AUTH = space "ASikaria, 10/15
exceptions
not_found = 1
others = 2.
if sy-subrc <> 0.
raise no_exist_orgeh.
exit.
endif.
g_orgeh = orgeh.
endif. "not pernr is initial.
if not g_orgeh is initial.
manager-orgeh = g_orgeh.
*-- Got org unit now find manager
perform zf_proc_get_om_objects tables i_objects
using c_otype_orgunit
manager-orgeh
plvar
c_rsign_b
c_relat_012
istat
date
date
c_otype_position
changing g_retcd.
if g_retcd eq 0.
read table i_objects index 1.
if sy-subrc eq 0.
manager-plans = i_objects-sobid.
call function 'Z_GET_POSITION_HOLDER'
exporting
plans = manager-plans
plvar = plvar
istat = istat
date = date
importing
pernr = manager-pernr
exceptions
position_not_exist = 1
position_invalid = 2
others = 3.
if sy-subrc <> 0.
clear: manager-pernr.
endif.
if not manager-pernr is initial.
*- BOC RTDK902962
*-- Obtained formatted name
clear: i0001.
refresh: i0001.
call function 'HR_READ_INFOTYPE'
exporting
pernr = manager-pernr
infty = c_infty_0001
begda = date
endda = date
importing
subrc = g_retcd
tables
infty_tab = i0001
exceptions
infty_not_found = 1
others = 2.
if sy-subrc eq 0.
read table i0001 index 1.
if sy-subrc eq 0.
manager-ename = i0001-ename.
endif.
endif.
*- EOC RTDK902962
*-- Obtain pernr information
*- Get 0002 data
clear: i0002.
refresh: i0002.
call function 'HR_READ_INFOTYPE'
exporting
pernr = manager-pernr
infty = c_infty_0002
begda = date
endda = date
importing
subrc = g_retcd
tables
infty_tab = i0002
exceptions
infty_not_found = 1
others = 2.
if sy-subrc eq 0.
read table i0002 index 1.
if sy-subrc eq 0.
manager-inits = i0002-inits.
manager-vorna = i0002-vorna.
manager-nachn = i0002-nachn.
manager-midnm = i0002-midnm.
endif.
endif.
*- Get 0105 data
clear: i0105.
refresh: i0105.
call function 'HR_READ_INFOTYPE'
exporting
pernr = manager-pernr
infty = c_infty_0105
begda = date
endda = date
importing
subrc = g_retcd
tables
infty_tab = i0105
exceptions
infty_not_found = 1
others = 2.
if sy-subrc eq 0.
describe table i0105 lines g_lines.
if g_lines > 0.
*- SAP usrid
loop at i0105 where subty = c_0105_usrid_subty.
manager-usrid = i0105-usrid.
endloop.
*- Email address
*// not sure where email is going to be stored but assume it is subtype
*// 0010
loop at i0105 where subty = c_0105_email_subty.
manager-email = i0105-usrid_long.
endloop.
endif. "g_lines > 0
endif."sy-subrc eq 0.
endif. "not manager-pernr is initial.
endif. "sy-subrc eq 0.
endif."g_retcd eq 0.
endif. "not g_orgeh is initial.
endfunction.
zposition holder
PLANS TYPE PLOG-OBJID Object ID
PLVAR TYPE PLOG-PLVAR '01' Plan Version
ISTAT TYPE PLOG-ISTAT '1' Planning Status
DATE TYPE SY-DATUM SY-DATUM Date and time, current (application server) date
PERNR TYPE P0001-PERNR Personnel Number
POSITION_NOT_EXIST Position does not exist
POSITION_INVALID Invalid position
function z_get_position_holder.
""Local interface:
*" IMPORTING
*" REFERENCE(PLANS) TYPE PLOG-OBJID
*" REFERENCE(PLVAR) TYPE PLOG-PLVAR DEFAULT '01'
*" REFERENCE(ISTAT) TYPE PLOG-ISTAT DEFAULT '1'
*" REFERENCE(DATE) TYPE SY-DATUM DEFAULT SY-DATUM
*" EXPORTING
*" REFERENCE(PERNR) TYPE P0001-PERNR
*" EXCEPTIONS
*" POSITION_NOT_EXIST
*" POSITION_INVALID
if plans cn '0123456789'.
raise position_invalid.
endif."plans cn '0123456789'.
if plans co '9'. "default position
exit.
endif.
call function 'RH_READ_OBJECT'
exporting
plvar = plvar
otype = c_otype_position
objid = plans
begda = date
endda = date
exceptions
not_found = 01
others = 02.
if sy-subrc ne 0.
raise position_not_exist.
else.
perform zf_proc_get_om_objects tables i_objects
using c_otype_position
plans
plvar
c_rsign_a
c_relat_008
istat
date
date
c_otype_pernr
changing g_retcd.
if g_retcd eq 0.
sort i_objects by begda descending. "get earliest rec
read table i_objects index 1.
if sy-subrc eq 0.
pernr = i_objects-sobid(8).
endif.
endif. "g_retcd eq 0.
endif. "sy-subrc ne 0.
endfunction.
regards,
venkat -
How to change the Callback function of a GUI button?
I would like to change the callback function associated with a GUI button dynamically in the programming way.
Here is the code piece I tried, but it does not seem to work:
const char* pstrLabelSaveJpeg = "SaveJpegCb";
SetCtrlAttribute(pahel_id, ctrl_id ,ATTR_LABEL_TEXT, pstrLabelSaveJpeg);
int CVICALLBACK SaveJpegCb(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
Solved!
Go to Solution.The attribute you used is about the "label" of the button.
It is just an appearence attribute. You can write your own name on it, but that does not change the callback function.
You should change the ATTR_CALLBACK_FUNCTION_POINTER attribute, and you should not pass the function name as a string.
So your function call will look like this:
SetCtrlAttribute(pahel_id, ctrl_id, ATTR_CALLBACK_FUNCTION_POINTER, SaveJpegCb);
Of course, you have to declare the SaveJpegCb function somewhere above that line.
I think you have already done that.
S. Eren BALCI
www.aselsan.com.tr -
I have two tables
student
NAME STUDENT_NUMBER CLASS MAJ
Smith 17 1 CS
Brown 8 2 CS
and
grade_report
STUDENT_NUMBER NAME SECTION_IDENTIFIER G GPOINT
17 Smith 112 B 3
17 Smith 119 C 2
8 Brown 85 A 4
8 Brown 92 A 4
8 Brown 102 B 3
I need function that when i change names in student table....directly this function changes student names in grade_reportTrigger is some thing like that.
SQL> select * from student;
NAME STUDENT_NUMBER
bbb 10
SQL> select * from grade_report;
NAME STUDENT_NUMBER MARKS
bbb 10 100
SQL>
SQL> create or replace trigger student_name_update_trg
2 after update
3 on student
4 for each row
5 begin
6 update grade_report
7 set
8 name = :new.name
9 where
10 student_number = :new.student_number;
11 end;
12 /
Trigger created.
SQL> update student set name = 'bca';
1 row updated.
SQL> select * from student;
NAME STUDENT_NUMBER
bca 10
SQL> select * from grade_report;
NAME STUDENT_NUMBER MARKS
bca 10 100
SQL> -
Changing delivered class/function module.
Hello All,
Can I change delivered ABAP class "CL_HRMSS_RECRUITING_WF" (add functionality to a method "CREATENBOBJECT"). Also can I change a delivered function module "HRWPC_EREC_CREATE_EREC_OBJECT" .
My original problem.
I am trying to pass the my object (with few attributes read from tables) using CREATENBOBJECT as a parameter to the function module "HRWPC_EREC_CREATE_EREC_OBJECT" (CREATENBOBJECT calls HRWPC_EREC_CREATE_EREC_OBJECT).
The "CREATENBOBJECT" is called as an activity in the workflow (personnel requisition workflow).
Kind regards.
SrinivasHi Srinivas,
Using SE24 to copy CL_HRMSS_RECRUITING_WF to say Z_CL_HRMSS_RECRUITING_WF
Copy Class:
Path:
1> Goto SE24
2> Type in CL_HRMSS_RECRUITING_WF in screen field Object Type
Menu path
3> Object Type/More Functions/Copy. Here you mention your class name (ex: Z_CL_HRMSS_RECRUITING_WF)
Copy FM:
Path
1> SE37
2> Type in HRWPC_EREC_CREATE_EREC_OBJECT in screen field 'Function Module'
Menu Path
3> Goto Function Module/ Other Functions /Copy. TYpe in your FM say Z_HRWPC_EREC_CREATE_EREC_OBJECT
I hope this solves your problem of copying. Herewith make your changes with these new objects.
Please reward points if it has satisfied your requirement.
AKJ -
FM for changing address in functional location
Hi all
I wanted to change address in functional locations in my report, but I don't know any function modul for this. I've found BAPI_FUNCLOC_CHANGE, but it's not possible to change address data with it. Normaly it's done through IL02 transaction. I would be grateful for any help.
BRPete Atkin,
If you go to transaction IL02 and on tab Location you push pencil button, than on new window you can change some of address data but not all that are storred in ADRC table. For example you can change street name or city name, but there is no place that you could enter city code or street code. So if this is not possible to enter these values in this transaction it is not possible to run this transaction from report with BCD data so that street code and city code were changed in ADRC table. -
Why did my base station change names?
For the last 3 years my network had two names. NicTonTimCap and NicTon guest. I wake up this morning to see flashing Amber light and can only find Harry's WiFi Network. The same password worked but why did this happen?
Thanks,
HarryWhen you open the airport utility go to the wireless tab.. has the name actually changed for wireless..
If so this might all be part of the way Apple is trying to help you automate file transfers by a strange peer to peer process.. although how it can self setup the airport is a mystery..
I would put it down to a fresh bug in Yosemite.. reset the network names to what YOU want.. if it happens again and you have applecare then ring apple to see if they have some new functionality in Yosemite that automatically changes names of the wireless network.
I presume your computer name is Harry (or some part thereof). -
SAP BCM changes name to SAP Contact Center
New name
https://www.linkedin.com/groups/SAP-BCM-changes-name-SAP-46603.S.5861499722405015552?trk=groups_most_recent-0-b-ttl&goba…
Contact Center Software | Customer Service Applications | SAP | SAPI do not have a full confidence that I'm personally good with this. Explain why:
1. Abbreviation (I assume it will be SAP CC) will still be confusing. There is already a solution with the same abbreviation: SAP Convergent Charging. BCM was also sometimes confused with Bank Communication Management solution.
2. Contact Center will probably be confused with SAP CRM Interaction Center solution/functionality. I can imagine a statement in some PoCs or other documents: "Integration of SAP Contact Center with SAP CRM Interaction Center". And if somebody will forget to put "SAP CRM" in this statement and will use simple "SAP Interaction Center" instead. Oh yeah...
But I should admit that I don't have other suggestions... The new name is certainly clearer then previous one. And it's already renamed anyway. -
How can I uniquely identify computers on the same network/account specifically for airdrop use? When I change name on one computer under contacts it changes on all computers. I would like to change icon and name for each computer.
you would need to setup a VPN and tunnel into your office.
FYI..the default ports are 3283 and 5900. -
Need of Changing Parameters in Function Module
Hi All,
Why we need sepearte Import and Export parameters in Function Module if the Changing Parameters
acts as both import and export parameters.
What is the use of using Changing Parametrs in Function Module.
Thanks in advance.
SundaresanHi,
EXPORT PARAMETERS: When u r passing some value to the function, and the parameter will not be changed in the function, we use export parameter. Example: u pass parameter (a : 10) to a function, even after the function has been executed, value of a will be 10 only.
IMPORT PARAMETER: When u require some value back from the function. u do not provide any initial value to the function. Example : u pass a parameter (b: <blank>) to the function, function returns the same import parameter as (b : 20).
CHANGING PARAMETER: When u pass some value to the function and that function may change that value inside function, then changing parameters are used. Example: u pass parameter ( c: 30) to the function as changing parameter and function modifies this variable and return ( c: 50).
Reward points if helpful.
Thanks & Regards
- Rishika Bawa -
How to change the Partner function code in Quotation
Hi All,
We have a requirement that whenever a Quote is cancelled,
We need to change one of the function codes in the partner tab and also the user status should be changed.
Can anyone give a quick solution on this?
Your response will be appreciated.
Thanks in advance.
Regards,
RamyaYou will best implement this as an action (tx. SPPFCADM), which is called on changing the status to cancelled. In this action you can call a function module changing the partner functions using e.g. CRM_ORDER_MAINTAIN as the appropriate function module.
Regards, Kai -
Table Name or Function Module to find out all the Screens & Subscreens for
Hello Experts,
Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
Helpful Answer will b rewarded
Arif ShaikHi Balaji,
But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
Any other which U know -
Reg : Table name of Functional Module
Can some one sent me the table name where functional module details get stored
HI,
Check for Function Module.
Tables
TFDIR----
> Table contains Function Modules.
TFTIT----
>Table contains Function Module Short Text.
ENLFDIR-----> Additional Attributes for Function Modules.
rewards if useful,
regards,
nazeer -
Converting Video to iPod, can you change name of file
When you convert Video to iPod format, can you change name of the new file or put some "marker" so one can tell which is the orginal and which is the new file?
Currently it is difficult to tell between the orignal and the new file.
thanks in advance
RohitYou'd probably be better off doing this sort of editing in iTunes, and letting it move the files appropriately.
Go to the preferences, Advanced tab, and check the box to 'Keep iTune Music folder organized'. Then any changes you make to song names or other info (within iTunes) will automatically be applied.
Maybe you are looking for
-
Share my Itunes Library between my PC desktop and my PC Laptop
What is the easiest way to share my complete Itunes library direstly between my PC desktop and my laptop? I do have an external hard drive that I can save it to first. Do I also need to authorize my laptop? Is there a cable such as an ethernet cable
-
Calculate Days between same date field in multiple records, looping for each record
Be patient as I am a newbie to Sql Server (using 2008 R2) and SSIS. I have looked at multiple solutions in this and many other forums before submitting the question. I am looking at records to identify the number of days between two dates. We revie
-
Need to block someone from calling me on FaceTime
I need to block a number from my iphone5 completely but the number can still get through FaceTime. What can I do? I already blocked the number on sprints side.
-
How to troubleshoot Remediation?
I am running ZCM 10.2. Downloaded the patches and on ZCC > Patch Management, select a patch and in Action, pick "Deploy Remediation" and deploy the patch to one device (Windows XP SP3) and I picked the time to be 5 minutes later. However, I don't fee
-
Help reqd for GRN - Number for more than 3 digits...
Hi, Working on GRN report...in that...if i give qty as 1,000.00(comma if comes)....the program getting dump while executing and says... Unable to interpret "1,000" as a number..... and it shows error on my code part >>>>> var6 = lsmng. Pls so the ne