How to add actionscript to buttons
i m using adobe flash cs3 profficional software version...in my flash document i m using some buttons but i didn't get action script to that buttons...what is the reason?....can any one solve this problem....plz give me the reply....
stop();
aboutus_btn.onRelease=function(){
gotoAndPlay(1);
gotoAndStop(3);
gotoAndStop(2);
gotoAndStop(6);
gotoAndStop(4);
gotoAndStop(5);
contactus_btn.onRelease=function(){
gotoAndPlay(2);
gotoAndStop(1);
gotoAndStop(3);
gotoAndStop(6);
gotoAndStop(4);
gotoAndStop(5);
employment_btn.onRelease=function(){
gotoAndPlay(3);
gotoAndStop(1);
gotoAndStop(2);
gotoAndStop(6);
gotoAndStop(4);
gotoAndStop(5);
movies_btn.onRelease=function(){
gotoAndPlay(4);
gotoAndStop(1);
gotoAndStop(2);
gotoAndStop(6);
gotoAndStop(3);
gotoAndStop(5);
technology_btn.onRelease=function(){
gotoAndPlay(5);
gotoAndStop(1);
gotoAndStop(2);
gotoAndStop(6);
gotoAndStop(4);
gotoAndStop(3);
//gotoAndStop(0);
but it is not working properly..........can u plz give me short length code.....
logic is:each button display one image....
Similar Messages
-
How to add a custom button in WD screen to call a workflow in siebel?
Hi All,
We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
Thanks in advance!!
Regards,
SubhradeepSubhradeep,
Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
<html>
<head>
<script language="JavaScript">
setTimeout(closeMe, 3000);
function closeMe() {
alert("This window will close");
top.close();
</script>
</head>
<body><B>This window will close in three seconds</B></body>
</html>
{code} -
How to add the REFRESH button in OOPs ALV grid
how to add the REFRESH button in OOPs ALV grid
Hi Naidu.
Check the below code:
Local Class Definition and implementation For events handeling
CLASS LCL_EVENT DEFINITION .
PUBLIC SECTION.
METHODS :TOOLBAR FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT,
USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS.
CLASS LCL_EVENT IMPLEMENTATION.
METHOD TOOLBAR.
WA_TOOL-FUNCTION = 'ZFC1'.
WA_TOOL-TEXT = 'TEST'.
WA_TOOL-ICON = '@EA@'.
APPEND WA_TOOL TO E_OBJECT->MT_TOOLBAR.
ENDMETHOD. "DISPLAY
METHOD USER_COMMAND.
IF E_UCOMM = 'ZFC1'.
ENDIF.
ENDMETHOD. "USER_COMMAND
ENDCLASS. "LCL_EVENT IMPLEMENTATION
MODULE STATUS_0200 OUTPUT.
SET PF-STATUS 'ZALV_BTON'.
SELECT * FROM VBAK INTO TABLE GT_VBAK
UP TO 30 ROWS.
**** CREATE CONTAINER OBJECT
CREATE OBJECT MY_CONTAINER
EXPORTING
CONTAINER_NAME = 'CC1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
OTHERS = 6 .
****** GRID TO CONTAINER
CREATE OBJECT ALV
EXPORTING
I_PARENT = MY_CONTAINER
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
CREATE OBJECT OBJ.
SET HANDLER : OBJ->TOOLBAR FOR ALV.
SET HANDLER : OBJ->USER_COMMAND FOR ALV.
****** ALV DISPLAY
CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'VBAK'
CHANGING
IT_OUTTAB = GT_VBAK[]
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
* text
MODULE USER_COMMAND_0200 INPUT.
IF SY-UCOMM EQ 'BACK'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE. " USER_COMMAND_0200 INPUT
Regards
Kumar M -
How to add a link button in system form?
how to add a link button in system form in the edit text?
HI
see the following code
This creates an item "55" caption, and exittext ("550") and creates linked button "51" linked to "550"
oItem = otmpform.Items.Add("55", SAPbouiCOM.BoFormItemTypes.it_STATIC)
With oItem
.Top = 315 + 30 + 15
.Left = 12
.Width = 100
.Specific.Caption = "Többlet"
End With
otmpform.DataSources.UserDataSources.Add("550", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
oItem = otmpform.Items.Add("550", SAPbouiCOM.BoFormItemTypes.it_EDIT)
With oItem
.Top = 315 + 30 + 15
.Left = 120
.Width = 100
.Specific.DataBind.SetBound(True, "", "550")
.AffectsFormMode = True
.Description = otmpform.Items.Item("55").Specific.Caption
.DisplayDesc = True
End With
oItem = otmpform.Items.Add("551", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
With oItem
.Top = 316 + 30 + 15
.Left = 120 - 14
.Width = 13
.LinkTo = "550"
.Specific.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
End With
Regards,
J. -
How to add actionscript to a movie symbol
I am a complete newbie to actionscript and flash. I am using
Flash CS3 with Mac OSX.
I need to know how to add actionscript to a movie symbol?
I made a circle and coverted it into movie symbol. After
selecting it and opening Windows > Actions, it says that the
currect selection can not have actions applied to it.
I have also tried ticking the Export for actionscript option
and leaving the default options on, but still no use.
can someone please help me?ticking Export for actionscript isnt doing anything for you,
thats to attach a movie from the library... click your movie clip
symbol, in the properties panel, click where it says 'Instance
Name', and give it a unique name, lets say, my_mc. then in an
actions layer, ON A KEYFRAME, add this
my_mc.onRelease
or
my_mc.onRollOver
or
my_mc.onRollOut
and so on, but that's how you reference the movie clip... by
its instance name -
How to add a push button on an ALV grid ?
Hi,
How to add a push button on an ALV grid, using ON_TOOLBAR, ON_USERCOMMAND Methods. Clicking on that push button, a new screen has to be displayed.Hi,
Assuming that you want to have a "push-button" column, i.e. push-buttons within an ALV grid then you need to implement the following steps:
(1) Set the style of the column as button
ls_fcat-style = CL_GUI_ALV_GRID => MC_STYLE_BUTTON.
(2) When the user pushes the button event BUTTON_CLICK is triggered. Thus, define an appropriate event handler method.
<b>Reward points</b>
Regards -
How to Add C3PO Toolbar Buttons with GroupWise in C#
Hello
i try How to Add C3PO Toolbar Buttons with GroupWise in C#. I do all like
i read here
http://support.novell.com/techcenter...a20000906.html
But i can see any result
i create file with Wizard(witout project)
Then i add this file to my EXE project
and add 2 button "Reg C3PO"(RegC3po();) and "Unreg C3PO"(UnRegC3po();)
and init
what i do wrong?
i try find ansver but find only this
http://newsportal.novell.com/article...sup.gwc3po#925
what its mean?
news:SR%Zg.16416$[email protected]:
about this question
http://newsportal.novell.com/article...sup.gwc3po#673
C3POs still don't work in the address book?
KirillKirill wrote:
> Hello and Merry Chritmas :)
>
> regsvr32 onlu for DLL. My project create EXE file :(
>
> Kirill
Ups......
You'll, according to the readme generated by your C3PO Wizard, have to run
Regasm.exe <your C3PO server>
That will create the needed regkeys...
Also, you might have to add the typelib wrapper and assambly to the GAC, bu typing:
Gacutil -i <your C3PO server>
Best Regards
Tommy Mikkelsen
IT Quality A/S
Denmark
Novell Developer Forums SYSOP
Please Report back any success or failure, That way we all learn
Sorry, but no support through email
"I hate bugs".......Tommy Lee Jones, MIB
Be a GroupWiseR, go http://www.groupwiser.net -
How to add a close button to a edge animation ?
How to add a close button to a edge animation ?
Welcome to our community, Laurie
You posted this in the FlashHelp section. Is that your actual
output type? If so, you will need to make edits to the FlashHelp
using Adobe Flash.
Cheers... Rick -
How to add Actionscript cuepoints in the latest version?
I can't figure out how to add Actionscript cuepoints...I see some documentation from November 2009 online but it doesn't match the OSMF docs online for Sprint 10.
I seem to be able to add a cuepoint by writing:
var cuePoint:CuePoint = new CuePoint(CuePointType.ACTIONSCRIPT, 1, "good point", null);
videoElement.addEventListener(MediaElementEvent.METADATA_ADD, onMetadataAdd);
But when I take these two functions from the OSMF online docs:
private function onMetadataAdd(event:MediaElementEvent):void
if (event.namespaceURL == CuePoint.DYNAMIC_CUEPOINTS_NAMESPACE)
var timelineMetadata:TimelineMetadata = videoElement.getMetadata(CuePoint.DYNAMIC_CUEPOINTS_NAMESPACE) as TimelineMetadata;
timelineMetadata.addEventListener(TimelineMetadataEvent.MARKER_TIME_REACHED, onCuePoint);
private function onCuePoint(event:TimelineMetadataEvent):void
var cuePoint:CuePoint = event.marker as CuePoint;
trace("Cue Point at " + cuePoint.time);
I'm not getting any trace message at 1 second into the video?Okay, there is some things about the CuePoint Sample that don't quite make sense to me.
When I try to add markers to the dynamicTimelineMetadata, I keep getting "null" when I trace the dynamicTimelineMetadata.
For this event:
MediaElementEvent.METADATA_ADD
Is that triggered when a marker is added to the dynamicTimeLineMetaData?
Because if the dynamicTimelineMetadata is returning null,
then how can I add a marker to it? -
How to add a new button in IC tool bar and handle the event for the button?
Hi,
I am working on CRM 2007 Interaction center. To add a new button to IC toolbar, customizing is available to define a new button and then assign in to the profile.
In SPRO->CRM->IC webclient->Customer Specifc System Modifications->Define Toolbar Buttons, I defined one new button with ID ZSTART.
Now in SPRO->CRM->IC webclient->Basic Functions->Communication Channels->Define Toolbar Profiles , I selected Default profileid and in Generic Layout Buttons Tab, I added the new button ZSTART in Position 3.
So after completing the customizing when the user logs in using role IC_AGENT, the button (with ID:ZSTART) gets displayed in the IC toolbar too.
Now on click of this button, I need to create an object.
To do so, I have to catch the event which is raised by this new button.
Please let me how to implement the event handler for this new button. What will be the event name for this button click event and how I can subscribe for it ?
Please let me know if anyone of you have already worked on similar requirements.
Regards,
Manas.
Edited by: manas sahoo on Jul 22, 2008 7:49 PMHello Manas,
There are a couple of threads in the community that might help you out (if you haven't already found them):
Re: IC Web Client Toolbar
/message/3621917#3621917 [original link is broken]
Regards,
Renee Wilhelm
Edited by: Renee Wilhelm on Nov 6, 2008 7:46 PM -
How to add a Font Button in the Top of the Help File
Dear all,
In some of the Help Files (HTML Help), i've seen a Font
button being added in the top of the Help File (for e.g next to
Home button)...when we click this font button, the font size of the
Content present in the Help File Increases/decreases
accordingly....how to add this button in our Help File.
At present i'm creating a HTML Help using Adobe 6..Kindly let
me know, if there are any options...
Thanks with regardsHi usureka
Take a look at the following link. It should guide you.
click
here
Cheers... Rick -
How to add a push button in ALV Grid Top-of-page
Is it possible to add a push button to the top-of-page in Alv grid display?if yes, then how? I am not using OO ABAP and am using reuse_alv_grid_display with top-of-page event.
Hi,
I am not sure whether we can add push button in top-of -page or not. But instead of that if you want to add button on toolbar as per your requirement then follow below link. it will useful.
http://www.sap-img.com/abap/example-of-a-simple-alv-grid-report.htm
Ram. -
Can't add actionscript to button instance
How come my fading-in buttons can't be made clickable. I
tried adding actionscript to the buttons as they are fading but
they don't accept actionscript while tweening. I'm using MX 2004
and am a newbie. The links work fine after the animation. Please
check it out at :
bradStolba.comyour buttons are being controlled by a timeline based tween
and therefore will not become operable until they encounter the
code responsible for their events on the timeline. use some script
for your fades instead of relying on the time line, that way you
can have the buttons and all their necessary code on the same frame
- in your case frame 1 - (make sure your code is on a layer labeled
"actions" atop all your other layers - nothing should ever be on
your "actions" layer except script). -
How to add the push button on the apllication tollbar of IL02 tcode
Hi Friends,
I have to add the push button on the application tool bar of the IL02.when that push button is pressed then some operation to be performed.Could you please suggest how to add.Is there any screen exit if yes what is that.
With out screen exits if there is any way ?
Thanks and regards,
shylaHI Vicky ,
if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
I_CALLBACK_PF_STATUS_SET = 'FLIGHT'
I_CALLBACK_USER_COMMAND = 'BUTTON_CLICK'
has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
FORM FLIGHT USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
ENDFORM.
Here the "Flight" is the PF_status .
FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
SELFIELD type SLIS_SELFIELD.
CASE UCOMM.
WHEN 'BUTTON!' .
write ur code for button 1.
WHEN "BUTTON"
*Write ur code for button2 .
end case.
endform.
for any queries reply back.
regards -
How to add "child data" button in Personal information
Hi guys , I m a portal consultant , we are EHP4 portal and ECC 6 in R/3...
In personal Information > Family members/Dependents> there is no Add child tab is there to enter the details of the children...... how to add this??
please help me .......Hi sidhu
have check the tab called "new child" button there you can create the children s
OR check the country specific iview
Go to content admin> content provided by sap>end user >EH3> iview -->check the specific iview
Hope this is help to you.
Thanks& Regards
G.srinu
Edited by: gorlisrinu on Nov 10, 2011 10:29 AM
Maybe you are looking for
-
I have an R61 with XP, SP3 installed. The underlying functionality of Access Connections appears to be working properly (I have access to both Ethernet and wireless using profiles previously established), but when I attempt to launch Access Connecti
-
Trying to find someone in the athens, ga area that will work on a 2006 iMac
my computer will not turn on and the local mac store said they will not work on a machine that is more than 5 years old. any suggestions on where to take it for repair? i have a lot of data on the computer that i need to retrieve.
-
Trying to connect my new Apple TV to my Samsung flatscreen TV with a Belkin HDMI cable. Screen is blinking menu is there and can be accesed with the remote, but can be seen for one sec.
-
Install Acrobat 9 Pro Extended "upgrade" on PC upgraded from Win XP to Win 7
I upgraded my PC from Windows XP to Windows 7. How do I install the Acrobat upgrade on the Windows 7?
-
last I bought this case from the Apple store, this the thing make by apple. Is there any solution for this problem?