Adding actions to my buttons
hi flash ppl!
why am i getting a "current selection cannot have actions
applied to it" msg in the actionscript window(f9), when i try to
add an action to my button to point to a section of my text? pls
pls help.
Frustrated newbie
are you sure its a button that you have created and not a
graphic?
Similar Messages
-
Having trouble adding action script to button symbol
Hello everyone:
I am hoping someone will read this as I am a developer in
'dires straits' with Flash ( a newbie). My problem regards a
layer called "button" which has already been converted to symbol
and turned into an invisible button. The problem lies when I try to
use the selection tool to select it so that I can add action script
to it. Instead of the actions dialogue box saying "actions-button",
it says "actions-frame", and as a result, the action script doesn't
work. I don't know what to do, it should be simple to select it but
something is wrong. If you feel a need to help a developer in need,
you can email me at [email protected], and I can e-mail
you the file so that you can help. Thanks, or you can call me at
310-867-5167
CorinnaCan you plant the fla file on a server and provide a link to
it? Zip it up first if possible. -
Adding actions to buttons...
I created a slide show in flash (I'm very new to Flash). The
slideshow
works great so far. I recently added some buttons to the
slideshow (each in
their own respective layers) and the buttons are Prev, Play,
Stop, Next. I
want to add actions to each of those buttons with the action
script. I want
the Stop button to simply stop the movie whenever you press
the button, the
play button I want to simply play the slideshow if one has
pressed the stop
button (by default my slideshow starts when it loads). The
next and play
buttons are obvious what they will do. I'm wondering how I go
about adding
these actions to each button. I know how to add them to the
buttons but I
just don't know the proper Action Script code. Can anyone
help me out with
this. Can't seem to find a good tutorial on it!
Best Regards,
Chris Jumonville
iMedia Web Design
503.277.3553Nevermind, did it myself.
Best Regards,
Chris Jumonville
iMedia Web Design
503.277.3553
"Chris Jumonville" <[email protected]> wrote in
message
news:ejj8vq$jff$[email protected]..
>I created a slide show in flash (I'm very new to Flash).
The slideshow
>works great so far. I recently added some buttons to the
slideshow (each
>in their own respective layers) and the buttons are Prev,
Play, Stop, Next.
>I want to add actions to each of those buttons with the
action script. I
>want the Stop button to simply stop the movie whenever
you press the
>button, the play button I want to simply play the
slideshow if one has
>pressed the stop button (by default my slideshow starts
when it loads).
>The next and play buttons are obvious what they will do.
I'm wondering how
>I go about adding these actions to each button. I know
how to add them to
>the buttons but I just don't know the proper Action
Script code. Can anyone
>help me out with this. Can't seem to find a good tutorial
on it!
>
> --
> Best Regards,
>
> Chris Jumonville
> iMedia Web Design
> 503.277.3553
> -
Actions on the main page..do they affect actions on movie buttons?
ON the home page I've created, the buttons I used with the
code in my previous thread ("two questions about HTML publishing
and buttons"), I added an on rollover action to the actions layer
of the main timeline (not the movie button timeline) so that on
rollover, a picture would change according to the button that was
rolled over. I did this for all three buttons. The rollover action
works great, but now the links don't work in either the html OR the
swf version. Would the added action disable the movie-clip button
actions? Here's the added main timeline code, edited for space:
photobtn_mc.onRollOver = function() {
gotoAndStop(2);
photobtn_mc.onRollOut = function() {
gotoAndStop(1); ( Again, help is greatly appreciated!)When you add actions to a movie clip, they will take
precedence to any buttons you have inside the movie.
You can code the button however to control any movie clip as
long as you give every movie name and reference it from the root.
ie.
on (release)
_root.main.speller.nameframe.gotoAndStop(1); -
Not able to call action of a button
Hi All
RIght now i am facing a very strange issue.
In my applictaion if on my page i drop a buttion and add action for that button.
If i add a SOP(System.out.println()) in that action i am able to see that in my back end means action is called. But on one specific page when i add a button and add action its not working.
I am not able to see the SOP on a specific page means action is not called.
Any idea why button on that specifci page is not called ?
Thanks in advance,
VikasWhich page?
Which jdev version?
Which UI technology you are using?
What's the difference to the other pages?
How do you get to the page in question?
Timo -
Hi everybody,
i�m a beginner programming JAVA. So i think the question will be so easy.
How can I add an action to a button created on a container???
i.e. i want that when pressing the button, a word document can be opened.
thank you very much in advance.hi,
you need to add a listener to the button such as an actionlistener:
JButton button1 = new JButton();
button1.addActionListener(new buttonListener());
// This should be an inner class
class buttonListener implements ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Event generated!");
}you an use an inner class to handle the event, pass the addActionlistener an object of the inner class, the inner class here should implement the actionlistener interface which has the actionPerformed method. You need a listener, best place to find one is the API. -
my very new iphone5s will not turn on its as if the button no longer works is there any additonal swiping actions or hidden buttons i may have triggered accidently it is barely 2 weeks old and has no obvious signs of wear............not impressed APPLE
im hoping that by holding both the power and circle buttons it will spring back to life ..........somtimes apple you are too clever with your secert hidden butttons switches
-
Creation of UI Element on the action of a button?
Hi,
Can we create some UI Element on the action of some button, i.e. writing code to create UI Element outside the wdDoModifyView() method of the view?
Regards,
Smriti.Hi,
We can create an UI element dynamically, on button click action..Follow the steps given below:
1. Create a static variable say ' myvar ' of type com.sap.tc.webdynpro.progmodel.api.IWDView in last declaration part(ie. inside //@@begin others //@@end.
Eg: static IWDView myview;
2. 2. In wdDoModifyView(), add the following
myview=view;
3. Now add the following code in the "OnAction<Submit>" event to create an UI element dynamically:
IWDTransparentContainer rootContainer = (IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDLinkToAction Link1 = (IWDLinkToAction) view.createElement(IWDLinkToAction.class, "Link1");
rootContainer.addChild(Link1);
Hope it helps!!!
Regards,
TFG - Kumara Guru -
User exit/ BADI in f-32 / f-28 for adding application tool bar button
Hi Experts,
There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.
Any help is apreciated!
Is there any EXIT ? Because I can not find it too.
Regards,
Nitinwhere you did the enhancement?
I have to create the IDOC once Clear docuemnt is created.. It may help me. -
ALV Grid default values for new rows added with Add/Insert buttons
Hi!
Help, please, to find a way how to set default values for new rows added with Add/Insert buttons in
ALV Grid.I have found salution:
ALV Grid u2013 Insert row function
Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
Definition of a class:
Code:
CLASS lcl_event_receiver DEFINITION
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed
e_ucomm.
ENDCLASS. "lcl_event_receiver DEFINITION
Implementation of a class:
Code:
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_DATA_CHANGED.
DATA: dl_ins_row TYPE lvc_s_moce. " Insert Row
FIELD-SYMBOLS: <fs> TYPE table. " Output table
Loop at the inserted rows table and assign default values
LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
loop at <fs> into ls_outtab.
ls_outtab-carrid = 'LH'.
ls_outtab-connid = '400'.
ls_outtab-fldate = sy-datum.
MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
endloop.
endloop.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
Register the events to trigger DATA_CHANGED event when a new row is created.
Code:
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED. -
Can we perform two actions with one button with two clicks one after other?
Sir,
can we perform two actions with one button with two clicks one after other?
I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
Regards
TanvirIn code it should be easy.
The following code adds a button called butman with a text "ADD".
It then registers a listener that will be called if the button is clicked.
This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
Therefore it will swap the button's functionality between ADD and CLEAR on every click.
final Button butman = new Button("ADD");
butman.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent t) {
if (butman.getText().equals("ADD")) {
butman.setText("CLEAR");
runAddData();
} else {
butman.setText("ADD");
runClearData();
} // END IF-THEN
}});I hope this is what you wanted.
Some extra food for thought.
You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed. -
Single form Multiple Actions based on button click
Hi,
I have to call two different actions based on button click from single <form > .
How to achive this?.
Thank youHi,
I am using struts <html:form> and my code is as follows
<script language="javascript">
function setAction(val){
if(val==A){
window.open(document.forms[0].action="preview.do");
}else if(val==B){
document.forms[0].action="create.do";
document.getElementById('fcreate').submit();
</script>
<html:form action="/create.do" >
<html:text property="name">
</html:form>
action is mandatory for <html:form>
Its not sending the form elements, when I click the preview button.
Create button works fine. In struts-conig, I have taken same form name for create and preview actions
Please give me some tips
Thank you -
Approve quotation on action of custom button
Hello experts,
For some requirement, standard approve/reject button is to be hidden and based on certain zfield status, and custom button action, quotation should be approved. I am able to add the button. The quotation is created in an external system and is transferred to SRM. In SRM system, the quotation is created using BBP_PD_QUOT_CREATE. The quotation is visible in approver's UWL. Now when approver opens the quotation, custom button should be displayed instead of standard buttons 'Approve' or 'Reject'. Upto this, it is done.
On the action of the button, I am creating instance of class /SAPSRM/CL_PDO_BO_QTE_ADV in approval mode and using the method /sapsrm/if_pdo_bo_qte~approve or /sapsrm/if_pdo_bo_qte~action_approve etc.. none of them is working. For all the methods above, i am getting error - 'A PDO layer update method was called in display mode'.
Could you please guide me how can I approve the document using custom button action?
Regards,
Yayati EkboteHello experts,
For some requirement, standard approve/reject button is to be hidden and based on certain zfield status, and custom button action, quotation should be approved. I am able to add the button. The quotation is created in an external system and is transferred to SRM. In SRM system, the quotation is created using BBP_PD_QUOT_CREATE. The quotation is visible in approver's UWL. Now when approver opens the quotation, custom button should be displayed instead of standard buttons 'Approve' or 'Reject'. Upto this, it is done.
On the action of the button, I am creating instance of class /SAPSRM/CL_PDO_BO_QTE_ADV in approval mode and using the method /sapsrm/if_pdo_bo_qte~approve or /sapsrm/if_pdo_bo_qte~action_approve etc.. none of them is working. For all the methods above, i am getting error - 'A PDO layer update method was called in display mode'.
Could you please guide me how can I approve the document using custom button action?
Regards,
Yayati Ekbote -
Adding text to a button.
Can anyone tell me how to add text to a button I created? If it changes anything, it is a sub-menu button
Hi:
Sorry if it sounds like a RT_M answer, but look in the User Manual for the topic Adding Text to a Button and you'll get the step by step procedure.
If it don't answer your question or you mean something different come back please !
Alberto -
I have a course in Captivate 6, when I try to publish in captivate 8 the actions of the buttons disappear
i feel very concerned, because the work it's hardI was able to resolve this without support. I identified the slide where the course stopped playing and the ppt from which the slide background was located. Even though the ppt deck in the Captivate library showed that the ppt was to date, I updated the ppt anyway and that resolved the issue.
The course would stop playing at the same slide, and didn't allow me to advance to any slides beyond that slide using the TOC, I simply got a blank gray screen, refreshing the course in the browser caused the course to start over from the beginning and it would stop at the same slide. Refreshing the ppt allows the course to play through and the TOC now allows navigation.
Maybe you are looking for
-
I'm thinking of getting an ipad but due to having too many songs/movies etc I'm running out of space on my Macbook (250gb). I want to access all my music on my phone and ipad and macbook from any internet connection... Is there a way of doing this?
-
Hi, I am not able to view some parameters in my File Sender Adapter like 1. Adapter Specific Message Attributes 2. Archive Faulty Source Files 3. Adavanced Selection for Source File I feel some problem the deployment of adapter specific files. How ca
-
Active Layer Name as Text Variable/Live Caption?
Hi all, I work for a company that uses heavily layered InDesign files to create variable brochures, with the appropriate layers activating for output as pdfs based on user information. Our clients often have difficulty discerning what layer they're l
-
IPad with Verizon does not work in Alaska.
If you live in Alaska and considering an iPad with Verizon don't do it. It does not work anywhere in Alaska. I recently purchased an iPad while travelling in the lower 48. The Apple sales people displayed the Verizon coverage map which displays wi
-
Problems cutting a sequence into another sequence
Hello, We have followed the steps outlined here: Adobe Premiere Pro Help | Edit from sequences loaded into the Source monitor to cut a sequence into another sequence without it nesting. We are on Premiere Pro 2014.1. We often need to work in the