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

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

    Default Current selection cannot have actions applied to it

    Hey, I just got this template for my site, and I want to be able to link the buttons to my pages. Everytime I click on the "Hit" frame it say's "Current selection cannot have actions applied to it". Its plain text, I cant figure out whats wrong, And I have searched but nothing helped.

    Im using Macromedia Flash professional 8 if it helps.

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

    Default

    Hi,

    The "Hit" state of a buttons timeline is only used to signify the graphical space the button will use. Flash has two options for codeing style. Frame code and object code. Object code goes directly onto the object, in this case, your button. Select the button(single click), open the actions panel and you will see the name of the object you have selected at the top of the panel. Object code looks like...

    on(release){
    //do something;
    }

    Frame code is placed on the first frame of the main timeline and establishes it's actions through the instance names of objects. If you give your button an instance name, you can use frame code ...

    myButton.onRelease=function(){
    //do something;
    }

    The advantage of frame code can be seen when editing or modifying a project. Centralized code is much easier to deal with than having to select multiple objects to see the code they contain.

    hope it helps
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. unable to assign actions to buttons
    By gksite in forum Newbies
    Replies: 2
    Last Post: 04-02-2006, 04:02 AM
  2. ignores my frame & object actions!
    By bubblejam in forum Newbies
    Replies: 1
    Last Post: 01-28-2006, 06:40 PM
  3. Complex Button Actions.
    By aussie01 in forum Flash Scripting
    Replies: 1
    Last Post: 12-08-2005, 08:12 PM
  4. Replies: 2
    Last Post: 10-28-2005, 11:12 PM
  5. if MC's current frame is 1, gotoandplay(2), else if
    By flashless in forum Flash Scripting
    Replies: 2
    Last Post: 07-22-2005, 12: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