Help with moving buttons

I am totally new with flash. I am using the following
tutorial which I believe I followed correctly.
http://www.flash-game-design.com/flash-tutorials/advWebsite-flash-tutorial.html
I have edited the site just a bit adding my own graphics and
colors. The problem is that when you first view the site all the
buttons stay in the up position. Once you click each one once, they
function properly. Here is the script that I have.
stop()
content.gotoAndStop("home")
current = menu.home_button
setMove = true;
yMove = -10
menu.home_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("home")
current = this
menu.league_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("league")
current = this
menu.photos_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("photos")
current = this
menu.downloads_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("downloads")
current = this
menu.forum_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("forum")
current = this
this.onEnterFrame = function(){
if(setMove){
if(yMove < current._y){
current._y --
}else{
setMove = false
Also here is a link to the actual site that I have published.
http://67.175.252.196/New%20Site/Test%20Website.html
Any help would be greatly appreciated.

I just figured it out. The buttons just needed to be moved
down below the bar. It had nothing to do with the
actionscript.

Similar Messages

  • Need help with a button

    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 help

    First, 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.

  • Needing help with moving pictures around

    I am in need of help in moving pictures and images around
    dreamweaver document window. My older brother gave me his computer
    witch has dreamweaver MX (he is in Irag) so i can start building
    building my own websites. I went to borders and bought a book on
    dreamweaver MX. Here is where I am having a problem with: when ever
    I bring a picture into the document window I can not move the
    picture around the document window. The book say "place the
    insertion point where you want the image to appear" but there is no
    insertion point. There is just a straight line as if I am about to
    type something. It's almost like I am in microsoft word. If I take
    the mouse over the picture , and then left click and try to drag
    the picture to the location I want it in, it doesn't move. Can
    somebody PLEASE help me out with this problem. Thanks Jical

    Nadia gave you a good place to start… Here is what you
    have to understand. Web pages are based on specific code that tells
    the viewer’s browser how to display the page. There has to be
    something that says, “Put this picture in the lower right
    hand corner, and center this image in the middle of the
    screen”
    Then there are further instructions that say “Put this
    text here and that link there”. So Dreamweaver (and most
    other web developing programs) do not work like Illustrator or
    PowerPoint where you can simply grab a picture and slide it around
    the page.
    In its simplest form you might drag an image onto the
    Dreamweaver design view page and click on the center button in the
    properties dialog.
    Then type in text and center it, left justify, right justify,
    etc. Add another picture and so on and you could possibly create a
    passable web page. Now click on the Code view button and see what
    code Dreamweaver generated in order to do all of this.
    That is what you will really need to understand before you
    can really get proficient at web design.
    At the next level, you can start to add in tables. These
    actually are similar to tables in Word. You can put text in one
    cell, images in another, colored backgrounds, thick and thin
    borders with contrasting colors, and you can start to see how to
    “contain” your images as Nadia suggests.
    Now look at the code again and see how these cells are
    defined around your content.
    Once you understand how this works, you will get much more
    comfortable with Dreamweaver. You will just have to get used to the
    idea that it doesn’t work like all of the publishing software
    that is only dependant upon its own format for layout. HTML is
    dependant upon the many browsers, computers, operating systems,
    user preferences, and a million other unknown factors.
    That’s why this forum has more than 91,000 posts…

  • Help with Moving Emails from Exchange Server 2013

    Hi Team,
    Help, I need a solution on how to copy incoming and outgoing emails together with their attachments and was hoping someone could help with a solution I need to find for this problem.
    1) I have a need to copy all incoming and outgoing emails & attachments from Exchange Server 2013 mailboxes on a daily basis, so they can be archived into an external 3rd party database overnight.
    I believe that the first step is that I can set up another Exchange mailbox, through Journaling to receive these emails. 
    Is there any way that these emails can then be moved direct from the Journaling mailbox that I have created, to a shared folder on the network? If so what format would they be sent out as e.g. .msg, .ems and what is the process?
    Failing that, could they be sent to an Outlook client (not another Exchange mailbox) on the network and stored in a .pst file? (I have a program that will export them from .pst)
    I would really appreciate any assistance that you can provide in this matter.
    Regards, Greg.

    Hi,
    You can set auto-forward on journaling mailbox and auto-forward emails to another mailbox. Why don’t directly archive the emails from the journaling mailbox “an external
    3rd party database”.
    Thanks,
    Simon Wu
    TechNet Community Support

  • 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,
    Andy

    use 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 you

    Place 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 Anderson

    Hi 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 moving files

    I'm having problems copying data across my network to my new mac mini and i'm looking for some help with how to resolve this issue.
    I'm using "Connect to Server' to connect via SMB to a Vista x64 machine that has the files I need to copy. I'm mounting the share as the user that has permissions to the files on the vista client. The connection is fine, but when I start the copy process, I receive an error message about not having the appropriate permissions to copy files and then the entire copy process fails. Here is the exact error message:
    Copy
    The operation cannot be completed because you do not have sufficient privileges for some of the items.
    OK
    From the vista machine I have logged in as the same user and I have taken ownership of ALL of the files and folders I'm trying to copy. I also made sure that the folder is shared with EVERYONE having full access (not something I would normally do, but figured it might help this situation). The vista machine is in a workgroup if that makes a difference.
    Question 1: how can I do this via command line so that instead of stopping the entire file copy it skips the ones it can't copy and copies the rest of them?
    With hundreds of subfolders and thousands of files, I have no idea which ones it is failing to copy making this process quite painful.
    I'm also stuck on another basic issue - when I originally connected to the share, I told the OSX machine to remember the password. If I want to reconnect to the share using a different username and different password, how do I get OSX to reprompt me for this information?
    Help

    You are probably better off using
    ditto
    In a terminal
    man ditto
    and read the description and instructions.
    Yes, sadly, many copy process when the fail at a file abort the rest of the process. Windows does this as well.

  • 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!
    Gary

    Hi 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

  • Help with Moving Entire Library from one account to another - Same computer

    Ok. I have read and searched but have had little luck with finding info on how to...
    I have 1 computer, an imac. We have two logins and each have a itunes account. How can I move EVERYTHING from one account to the other? I just want to close up one of the accounts and have everything in one place under the same library.
    Any ideas??
    Thanks
    Message was edited by: JSSAUCE for spelling errors

    Hi JS,
    I'm assuming that you simply want to move all of your music from one library to the other and operate iTunes ONLY from THAT library. If this is the case then follow these steps..
    1. Make sure that you place your iTunes Library to be copied into a location where you can access it while logged in from the OTHER account. The only two options you have are the "Public Folder" ~Users/YourUsername/Public or the "Shared Folder" ~Users/Shared. These are the only two folders where you have access when logged into another account.
    To do this open iTunes and go to preferences, selecting the "Advanced" tab and then the "General" tab. You will see the location of your iTunes Music folder and next to it a "Change" Button. Select the change button and a window will appear where you can choose to navigate to the desired NEW location for your Music Library. Once you have navigated to either the "Public Folder" or the "Shared Folder, select "Choose" and your library will be moved to the new location. Before you close the preference window make sure you have "Copy Files to iTunes music Folder when adding to Library" and "Keep iTunes Music Folder Organized" both CHECKED. Now close that window.
    2. Go to the iTunes menu again, this time under the FILE menu, there you will see the option to "Export Library." Click this option and a window will appear with a "Library XML" file highlighted at the top of the window. Change the name if you like or leave it as it is, but make sure you leave the xml at the end. Save this document to your Hard Drive. ( Click on your Hard Drive in the window and save the document there)
    3. Log out of this account and into your second account.
    4. Open itunes and go the Preferences in the menu bar. Again select the "Advanced" tab, and then the "General" Tab. Make sure that the same two boxes are checked. "Add Files to itunes Folder" and "Keep iTunes Folder Organized" Select OK and close the window.
    5. Now go the File Menu in iTunes and "Add to Library." In the pop-up window navigate to the Location of your first account (either your Public or Shared Folder) and select "Open." This will add all of your music from the original account.
    6. Now go back to the iTunes File menu and select the "Import" option. Navigate to the location of the xml file you saved inside your Hard Drive, select it and choose "Open". This will transfer all of your playlists and restore your iTunes library to its exact same state as the first account...
    It took a little while, but that's IT. Now if you no longer desire to use the original iTunes library, just log back into your first account and drag the iTunes Music folder in your "Public" or "Shared" Folder to the trash and delete it. Your new library already holds copies of those files so you won't lose anything.
    Hope this helps you achieve what you desire..
    Regards,
    Ben.

  • 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.

  • Need help with Submit button

    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?

Maybe you are looking for