Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Question about controlling button frames

    Ok.. so I want to be able to move a button to say the Down frame when I call an action from the scene. I guess to better explain this.. I have a button that scrolls a dynamic text with onpress. But then I have it so it also scrolls with onkeypress("<down>"). I want to be able to show the button's down state when the down key is pressed, as if you where pressing the button with the mouse. Is this possible? I tried gotoAndPlay/Stop(down) within the on keypress("<down>") script for the button's actionscript (and several other similar commands) but nothing works. Can you call a certain frame of a button?

    Thanks

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    You can use a movieclip as a button and give it any button method you want.....
    Code:
    mcName.onPress=function&#40;&#41;&#123;
    do something;
    &#125;
    
    mcName.onRelease=function&#40;&#41;&#123;
    do something;
    &#125;
    
    mcName.onRollOver=function&#40;&#41;&#123;
    do something;
    &#125;
    
    mcName.onRollOut=function&#40;&#41;&#123;
    do something;
    &#125;

  4. #3

    Default Ok...

    Yeah.. that makes sense. I was just wondering if you could control pre-made button clips through. But, that's simple enough to just copy the button to a movie clip and then I can control which frames. I'm using a button from the MX button library, so that's why I was wondering if you could move to a certain frame of a button in an actionscript, but I'll just write my own for a new button.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. cool button animation question???
    By rondo in forum Design and Animation
    Replies: 2
    Last Post: 03-25-2007, 06:57 PM
  2. controlling external .swf in root movie
    By jvader in forum Advanced Flash
    Replies: 4
    Last Post: 08-04-2006, 10:44 AM
  3. Controlling the pitch of streaming .mp3 file
    By Entrance Six in forum Sound and Music
    Replies: 0
    Last Post: 09-25-2004, 10:19 PM
  4. Button question
    By Ragestaff in forum Newbies
    Replies: 1
    Last Post: 03-11-2004, 04:30 PM
  5. Controlling Button State
    By nusharp in forum Newbies
    Replies: 3
    Last Post: 01-07-2004, 07:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial