Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Flash CS4 Button Help -.-
United States
Marigi
  Posted: Sep 27 2009, 12:00 AM
Quote Post


PLEASE USE CAPS IF YOU INTEND ON BEING TAKEN SERIOUSLY.
[*]

Group Icon
Group: Members
Posts: 4876
Member No.: 726
Joined: 14-December 04

Status: (0d) [--]


I haven't used Flash in a reeeaaaaal long time... and I don't think I've ever made something in CS4.

So, I need to make a button.

However, when I make the button... and select it to apply actions to it... the action panel says: "Current selection cannot have actions applied to it.".

How do I... do this...


--------------------
user posted image
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Baroque
Posted: Sep 27 2009, 12:22 AM
Quote Post





Group Icon
Group: Members
Posts: 817
Member No.: 6076
Joined: 11-March 09

Status: (0d) [--]


iirc flash is a dumb piece of crap where you need to make two things to do one thing

for instance, if you wanted to make clickable text, you have to make an invisible box around the text that you click on instead (otherwise the gaps between the letters don't respond to clicks.)

i imagine you place a similar box arfound your button and it will let you click on it

the problem is i don't know what kind of invisible box you need. Flash has like 5 objects, and only one of them works well for having scripts applied


--------------------


DeviantArt (DA needs update) | Clean FurAffinity Clean FA | Why I Cut Quotes
You see things, and you ask, 'Why?' But I dream things that never were, and I ask, 'Why not?'


QUOTE (Ryo)
its the correct form of to.........lemme run it down for ya

to is used when your talking about the number. good way to remember this: to has to letters

too is used when your talkin about actions in stuff.

two is used when your talking about places and locations
PMEmail PosterAOL
Top
United States
Marigi
  Posted: Sep 28 2009, 12:09 AM
Quote Post


PLEASE USE CAPS IF YOU INTEND ON BEING TAKEN SERIOUSLY.
[*]

Group Icon
Group: Members
Posts: 4876
Member No.: 726
Joined: 14-December 04

Status: (0d) [--]


Annnnyyyyboddddy?


--------------------
user posted image
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
jamie.ds
Posted: Sep 30 2009, 05:50 AM
Quote Post


Standard Member


Group Icon
Group: Members
Posts: 16
Member No.: 5558
Joined: 24-July 08

Status: (0d) [--]


This I can help with. Assuming your using Actionscript 3.0

Create 2 layers name top one actions and the bottom one buttons.

For the buttons, we are going to use the Button Component. To get an instance of the Button Component go Window --> Components to open up the Components Panel. Look under the User Interface category to find the Button Component and simply drag it onto stage.

Give it an instance name of test_btn and a lable Test.

Give a frame the label Test.

Now back on the frame with the button click the actions layer, add this to the actionscript;

CODE
stop();

function goTest (e:MouseEvent):void{
gotoAndStop("Test");
}
test_btn.addEventListener(MouseEvent.CLICK, goTest);


and it should all work. Let me know. ^^
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0496 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.76 ]