Help with close buttons
I have been reading the forums and scouring the internet to
find a way to either write a button in flash or creating one in
captivate 3 using the on click execute javascript function
javascript:self.close() and I have tried the actionscript on
(release) {
getURL ("javascript:window.close()");
Please help me.
thanks,
Alex
Hi Alex
Is it possible you are overthinking it?
Try configuring the end action of your project to Close the
project. Then insert a Button or Click Box object that simply jumps
to the last slide. What happens is that your user clicks the
button, the last slide appears and the project closes (if it can).
Cheers... Rick
Similar Messages
-
Hello,
I need help with a button. I created a button and set it up
so that when you click and hold it, the button becomes lighter in
color (I used Alpha). I want the button to stay this light color
after i release the click. Right now it goes back to the normal
color when I release the click. Can somone help we this?
Thanks!rpofclt wrote:
> Hello,
>
> I need help with a button. I created a button and set it
up so that when you
> click and hold it, the button becomes lighter in color
(I used Alpha). I want
> the button to stay this light color after i release the
click. Right now it
> goes back to the normal color when I release the click.
Can somone help we
> this?
you can't use the button itself if you want to maintain the
DOWN state after
release as button automatically resets itself once the mouse
lives the HIT zone.
Use movie clip instead and on press simply send it to a frame
where there
is DOWN state like image.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Help with linking buttons to Scenes
Hey,
Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
"stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
"stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
gotoAndPlay(1, "MainMenu");
So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
Please helpFirst, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
stop();
btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN. MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
As for the code to get you back home, where is it located on the timeline? Are you getting any error messages when you try to use it?
One thing you should learn to use is the trace() function. It is useful for troubleshooting. You can use it now to see if your second button is talking to the function at all...
stop();
btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
function mouse5DownHandler(event:MouseEvent):void {
trace("the button works okay");
gotoAndPlay(1, "MainMenu");
If you don't get that message in the output panel, you'll know the button is not properly coded to work.
Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic. Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both. -
I need help with a button animation!
Hi,
I hope someone can help with a simple-looking problem which
nonetheless has me stumped!
I have a feeling that I've missed something obvious.
I've created a movie clip to act as a button (I've called it
"abs_button") and placed it on the stage.
My main movie has one frame.
Within the "abs_button" movie clip there are 5 layers.
Labels, actions, default button state, rollover state and rollout
state.
Technically, default button state, rollover state and rollout
state could be on the same layer as they don't overlap, but I've
given each animation its own layer for clarity.
FRAME 01.
Default button state is one frame with a graphic of the
button. Just a label at the start ("abs_up") and a "stop();" action
at the end.
FRAME 02 to 31.
Rollover state is a 30 frame animation. Label at start
("abs_over"), "stop()"; action at the end.
FRAME 32 to 62.
Rollout state is a 30 frame animation. Label at start
("abs_out"), "stop()"; action at the end.
All animations were achieved with tweens.
My initial "abs_button" code:
on (release) {
getURL("targetPage.htm", "_self");
on (rollOver) {
gotoAndPlay("abs_button", "abs_over");
on (rollOut) {
gotoAndPlay("abs_button", "abs_out");
As it stands, the animation jumps to frame 1 of "abs_out" on
rollout.
I need the "abs_over" animation to always play through to the
end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
large on rollover and shrinks again on rollout.
I've tried for 2 days to solve this, but I clearly need help.
My experiments with variables simply didn't work.
I would be grateful if someone could tell me where I'm going
wrong!
Thanks,
Andyuse this:
on (rollOver) {
gotoAndPlay("abs_over");
Since the code is attached directly to the movieclip, you
don't have to
identify the clip. A gotoAndPlay() function takes a frame
number or a
frame label name as its argument, never the name of the clip
that
contains the frame number or name.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412.243.9119 -
Little bit of help[ with a button.
Good day all!
I need help making a button. This is what I want to happen.
I have a bunch of text, One of the words "merino" is bule as
to say there is a link hear! And I want an image of the "merino" to
come up, like a "ALT" box. Or have an image in the "ALT" box?
I know how to do this in "Flash" i.e just drop in the image
on the over state of the button event. Easy as pie! This is why I
cant get to grips with Dreamweaver! I hate it!
But I am willing to learn and maybe in time love???
Thanks all!"satrop" <[email protected]> wrote in
message
news:f0o4t7$954$[email protected]..
> Good day all!
>
> I need help making a button. This is what I want to
happen.
>
> I have a bunch of text, One of the words "merino" is
bule as to say there
> is a
> link hear! And I want an image of the "merino" to come
up, like a "ALT"
> box.
>
> I know how to do this in "Flash" i.e just drop in the
image on the over
> state
> of the button event. Easy as pie! This is why I cant get
to grips with
> Dreamweaver! I hate it!
>
> But I am willing to learn and maybe in time love???
HTML is a lot different from Flash! :-)
I believe you could do this using DW's Show-Hide layer
behavior - have
mousing over the link trigger a layer with the image to
appear. Someone else
may have a better idea.
Just FYI, having to mouse over a link in order to get more
information about
it isn't usually appreciated by users. You *might* want to
re-think this
plan..
Patty Ayers | Adobe Community Expert
www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet -
Help With Radio Buttons -- URGENT!!
Hi i am new to using UI compents in flash.
Basically i havnt a clue where to start.
Just some simple action script will help and be much
appreciated if someone can give me it.
Basically i have a question to ask which requires radio
buttons to answer the question.
I have a question and the answers are A, B, C, D.
I want:
A to equal 1
B to equal 2
C to equal 3
D to equal 4
E to equal 5
Would someone be able to tell me how to set up the radio
button so that the value of the radio button is stored into an
array called SCORE.
i dont need a tutor for arrays, i can do them, i just need
help with the radio buttons so a reference to an array would be
enough, eg how to store the answer from the radio button in an
array.
Thank youPlace the radio buttons on the stage and set their parameters
to what you need. Make sure that for each group of radio buttons
you give them the same group name. Then you could use something
like this:
var listenerObject:Object = new Object();
var answerArr:Array = new Array();
listenerObject.click = function(eventObj:Object) {
answerArr.push(eventObj.target.selectedData);
trace(answerArr);
radioGroup.addEventListener("click", listenerObject);
radioGroup refers to the group name for the buttons.
eventObj.target will refer to the actual radio button
clicked.
Tim -
Need help with encore buttons - highlights
Hi All
I am seeking help with Encode CS5. I have a project working fine except that I dont have highlights for buttons, at least I think thats what its called. So when the mouse or remote control navigates up/down toa button it changes colour.
In the properties of my button, the highlight option is greyed out.
How do I apply highlights ?
many thanks
Chris AndersonHi Bill
Thanks for your reply.
Here are 2 screen prints. One from encore the other from photoshop.
First time I have inserted images, and they seem a little small on this message - if you have any problems reading I could email to you.
I have highlighted the first button - which is called 'Highlights' - same issue with all the other buttons.
Do you have to use photoshop to add highlighting? or can you do this in encore - i dont have much experience with photoshop.
Not sure how to check 'Color Set' ? can you tell me how to get that for you - same for transparency for states? - I havent experienced them or changed them as I dont know how to
Yes it was duplicated - have left a message not to reply
Thanks again
Chris -
UWL - Help with Decision Buttons
Hello SDNers,
I'm customizing the UWL iView to show approval itens only, and their respective decision buttons.
Everything looks ok, but when someone try to submit the decisions it shows the message:
"reject wasn't correct"
Where "reject" is the name I gave to the action.
It also happens with the approval action.
Below is the XML I've created.
Does someone have a clue in what that message means, or what I've done wrong?
Thanks in advance!!Hi There,
Make sure that your decisionKeys are correct. I have seen issues with this many times. Log on to the backend system and call SAP_WAPI_DECISION_READ or SWK_DECISION READ for a specific workitem (You can get the details of the workitem id from the support information on the UWL - enable this and you can check this specific workitem) The decision key is an internal value (typically a numeric value) corresponding to the selected decision used by the provider.
You will need to ensure that you have x amount of decisions configured in the xml file, where x = the amount of decisions configured in the backend system.
For additional help with this topic please see the userDecision Action Handler documentation:
http://help.sap.com/saphelp_nw70/helpdata/en/7a/df014b037141ca9afc6433ed42b519/content.htm
Beth Maben
EP - Senior Support Consultant II
AGS Primary Support
Global Support Centre Ireland
Please see the UWL Wiki @
https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq *** -
Help with Social buttons ...
Hi,
I'm designing a muse site with social buttons that are created when you embed code from a site such as facebook, and others. They look like this on my site ...
I would like to build a 'social' area on my site that looks like this instead ...
So, to clarify when my user clicks on the 'f' in the lower of the two graphics above I'd like my website to behave as if the user had clicked on the 'f share' icon generated by the embedded html from facebook.
How?
Many Thanks!
GaryHi Gary
This would be a customization with codes for share.
You can use Share This and use the embed code for the same view that you have mentioned , which will allow users to share the page where you will insert the code.
http://www.sharethis.com
- Select Website
- Select the layout
- Generate the code
Thanks,
Sanjit -
Comments with close buttons?
I wish to show in a PDF that a particular paragraph has been updated. Can I add a comment in Acrobat that has a close button, like a popup window in a browser? Ideally, the person viewing the document in Reader would read the window and then close it to read the updated text. The Comments and Sticky Notes features seem geared more for Acrobat users during the drafting of a document.
Hi Alex
Is it possible you are overthinking it?
Try configuring the end action of your project to Close the
project. Then insert a Button or Click Box object that simply jumps
to the last slide. What happens is that your user clicks the
button, the last slide appears and the project closes (if it can).
Cheers... Rick -
I am looking for a way to enable/disable all buttons in a
swf. I found this searching here but I don't understand it, and am
looking for some of the many ways, as mentioned.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1240137&highlight_key=y&keyword1=enabled
I am messing with having things load in what I call "windows"
and when you close a window, basically it just collapses the .swf.
The problem I have is that the cursor reacts to roll overs and I
can still rollover buttons in the swf even though its collapsed. To
see this prob go to:
www.custom-differentials.com
and open the gallery, then drag the gallery to the middle of
the screen, close the gallery, then move the mouse around the
outside of the "title bar" and watch the mouse change colors even
though there is nothing there. I put a trace in the rollover
handlers so I know which buttons are causing this. I just would
like a broad sweep disable all buttons while the window is closed.
Thanks in advance for any help.OK, I lied to you. I meant to say I was setting the _height
value of the swf to .1, not the y value. Any way the lie is that I
was actually setting it to 0, which is what was causing my problem.
I changed the resize value to .1 and the problem dissapeared. I am
going to try out your suggestion though, for s&g. Thank you for
the help.
I am not gonna mark this answered cuz I am curious on the
original question. Before your suggestion and me stumbling onto my
own stupidity, I was trying out an array that stored button names
and I would cycle through them enabling and diabling as I opened
and closed. One thing I noticed was that my galleries contained 50+
pics and the latency in my push loop may have become a problem.
Thanks Again. -
Help with Radio Buttons in Form
Hi. I have inherited a website that has a simple form. I have
been asked to edit the form adding 4 radio buttons to collect the
consumer's satisfaction with the content of the website. I have
added the radio buttons using Dreamweaver MX, however, they do not
work as I expected them to. I was under the impression that radio
buttons did not allow the user to select more than one option
because when the user selected a different option, the first option
was unselected. My form is currently allowing all four options to
be selected at the same time. The code for the form is below. I
have changed the @ in the email address of the form to prevent
possible spam. Any help would be greatly appreciated.It looks like you need to change the name= to the same on
each radio button, if they all have the same name then you can only
check one. Then click the form in the behaviors panel and be sure
the radio button name is inserting into the proper db
column. -
I'm needing a script that locks all of the fields once the submit button is pressed and it's emailed to someone else. Is that possible? Thanks in advance for your help.
Right now I'm using javascript to submit the form. I'm using
this.mailDoc({
bUI: true,
cTo: [email protected],
cSubject: ""
So I need to incorporate the script you gave me with this script that I'm already using? -
Help with submit button remove null value
Hello,
First of all I dont know much about java, but I wanted to create a submit button and I did alot of research. I want a button that will email some pdf files I have created in LiveCycle. So far everyting works but my code needs help.
There are a few fields I want to be place in the body of the e-mail, but if left blank I dont want null to apear on the email subject or body.
Here is what I have so far *this is a work around I like to konw the proper code.
var
strToAddress, strCCAddress, strSubject, strMessagestrToAddress
= myemail@atwork;strCCAddress
= myemail@atwork;
strSubject
= "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue +" " +mi.rawValue;
if
(mi.rawValue ==null || mi.rawValue =="")strSubject = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue;
strMessage
= "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +mi.rawValue +". " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
if
(mi.rawValue ==null || mi.rawValue =="")strMessage = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
event.target.submitForm({cURL
:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
//this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;
The 4 fields am working on are First name, last name, Mi and comments. First and last are alwasy used, but if MI is not I dont want Null in there, with what I have above it works but its messy. I wanted to do the same with Comments if its left blank I like for it to read "Comments: None" not null
on the If statement I just re did the whole deal with out the mi.rawvalue but i now that is not right way... any help would be great.
ThanksI believe that you should re-post this in either the Forms or the Designer forum. You are more likely to get the right folks to look at it there.
Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product. -
Help with submit button, signatures and locking fields
https://acrobat.com/#d=sCcToPsLqquP0uePmVL1pQhttp://https://acrobat.com/#d=ZsRL5CeME*4iV3VHnvUFXw
Well here's a doozy for ya. I have no idea what I'm doing as you will be able to see when you look at my form.
What I want to happen is to have the user fill out the form, choose the operations manager and select submit button associated with the drop down box. All other dropdown boxes and submit buttons should be hidden. I need the form to lock so there are no edits except the signature field, the next dropdown box and submit button. I'd like to customize the email with a specific subject line and specify the email address based on the person selected from the drop down box. I'd like this to repeat itself until there are no more signature fields left. It is very important that this document follow the order specified.
I tried to use an example Niall put out there to use regular buttons as submit buttons with script. I changed a couple things and it worked to submit the form based on the person selected but I still do not know how to lock the fields. Long story short, I broke what did work and don't know how to do what I really want to do or fix what had once worked. I don't understand javascript so please, if you're willing to help teach me, be patient and spell it out like i'm speaking a foreign language.
Oh boy, even I don't want to do this. What a mess!I believe that you should re-post this in either the Forms or the Designer forum. You are more likely to get the right folks to look at it there.
Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.
Maybe you are looking for
-
Downloading dmg file and Mounting Failed ??
hi, i might have messed up with the files on my ibook. i somehow deleted previous users account and created mine As Admin. ..... however deleted user account is in deleted user folder as dmg file. now when i log in my account as admin and download so
-
PreparedStatement and 'Order by'
How can a PreparedStatement be made in this situation? String query = " Select * from myTable where id=? Order by ? ? "; PreparedStatement ps = con.prepareStatement( query); ps.setInt(1,userID); ps.setString (2, columnName ); ps.setString (3, ascOrD
-
I am planning to buy an ipad mini, please suggest me whether its the right choice to go for or not ? Hows the display?
-
How do add .mov files in Premiere Elements 11 with Windows 8? I get a generic error message.
-
UAT Database from Standby database
Hi, I'm using oracle 11.2.0.2.0 on Windows 2008, I have prod & standby databases, I want to create new UAT DB which wiil be same as prod, How Can create a UAT using standby database cold backup, can i use cold backup of standby database. Thanks Edite