Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,382 Programmers. There are 1,396 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

flash cs3 WHERE TO PUT ACTION SCRIPT

 
Reply to this topicStart new topic

flash cs3 WHERE TO PUT ACTION SCRIPT, were do i place the action script?

Joe123
post 8 May, 2008 - 05:17 AM
Post #1


New D.I.C Head

*
Joined: 8 May, 2008
Posts: 4



in flash cs3. were do i type any sort of action script, because there are a lot of differnt drop down menus (top level etc.
?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


kyrotomia
post 8 May, 2008 - 08:32 AM
Post #2


New D.I.C Head

*
Joined: 5 May, 2007
Posts: 25

Hi.

You need to put code on a frame. Select a frame in your timeline, and then press F9 (Considering you are using windows version and default hotkeys. After that, you can enter your actionscript in this window.

Let say you want, for example, to execute certain code on the click of a button :

CODE

//Replace yourButton by the name of your button.
  //This link your function and the CLICK event on your button
yourButton.addEventListener(MouseEvent.CLICK,myMenu);

function myMenu(event:MouseEvent):void
{
    //This is the code to execute when you click on yourButton.
    gotoAndPlay("MainMenu");
}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Joe123
post 9 May, 2008 - 03:04 AM
Post #3


New D.I.C Head

*
Joined: 8 May, 2008
Posts: 4

hi. thanks for the help. im using a mac version, also im verry new to this, so i bring up the actions window
as i said before.
then select the object,pic,text, on the stage to add the action script?
and just type it in the left box and as long as i get the code right and correct it should do as i say?
ha


User is offlineProfile CardPM
Go to the top of the page
+Quote Post

kyrotomia
post 9 May, 2008 - 05:43 AM
Post #4


New D.I.C Head

*
Joined: 5 May, 2007
Posts: 25

If you are using actionscript 3, as far as I know, you can only put Actionscript code on frames. You have to select a frame from your time line, and then press apple + shift + A (by default I think.). Then, you can start typing your code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 03:38AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month