| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: May 2008
Posts: 2
|
hey guys, need help, im new with flash
I just opened a new actionscript 3.0 file and im trying to apply an action to a button but it wont let me, i,ve tried it in an actionscript 2.0 file and works fine but when i do it on an actionscript 3.0 file i keep getting the"current selection cannot have actions applied to it" message, same thing happens when i try to apply an action to a movieclip. Any ideas why? Help very much appretiated. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jan 2008
Location: Exeter, UK
Posts: 263
|
Sounds as though you may have the button (or some other object) selected when you open the Actions window.
De-select the button by clicking on an empty part of the stage, and THEN open the actions window. Any good? |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2008
Posts: 8
|
we have all been at this one!
In AS3 you cant apply script to the objects directly... You have to ref them from the Timeline or via a class, OH NO you say! Welcome to AS3. it does sound like a nightmare, but the whole application has been rebuilt to enable a stronger OOP approach. ![]() |
|
|
|
|
|
#4 |
|
AS3 Lover
Join Date: Feb 2008
Location: UK
Posts: 480
|
even in AS2 its wiser to place your code on the timeline rather than on the objects themselves...
so change this: ActionScript Code:
to this for AS2: ActionScript Code:
to this for AS3: ActionScript Code:
__________________
PLEASE place your code within [code] tags
Stock Flash |
|
|
|
|
|
#5 |
|
Registered User
Join Date: May 2008
Posts: 8
|
Agreed!
![]() |
|
|
|
|
|
#6 |
|
Registered User
Join Date: May 2008
Posts: 2
|
thanks a lot guys, that saves me a big headache!!
|
|
|
|
|
|
#7 |
|
AS3 Lover
Join Date: Feb 2008
Location: UK
Posts: 480
|
welcome
It may be worth getting a book or two or jump on to Lynda if your coming to AS3..
__________________
PLEASE place your code within [code] tags
Stock Flash |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Current selection cannot have actions applied to it" error message | jareditor | ActionScript 2.0 | 3 | 10-05-2007 06:51 PM |
| Dynamically Creating Thumbnails and attaching actions? | komplex | Components | 3 | 08-30-2006 09:50 PM |
| Capturing trace() actions into a variable | mikiti | ActionScript 2.0 | 0 | 01-25-2006 04:42 PM |
| gotoAndPlay generates "current selection cannot have actions applied to it" | gLT4FM | ActionScript 2.0 | 3 | 06-24-2005 11:52 AM |
| spontaneous getUrl actions? | smallplate | ActionScript 1.0 (and below) | 2 | 07-22-2004 10:19 PM |