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.
?
flash cs3 WHERE TO PUT ACTION SCRIPTwere do i place the action script?
Page 1 of 1
3 Replies - 4393 Views - Last Post: 09 May 2008 - 05:43 AM
Replies To: flash cs3 WHERE TO PUT ACTION SCRIPT
#2
Re: flash cs3 WHERE TO PUT ACTION SCRIPT
Posted 08 May 2008 - 08:32 AM
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 :
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 :
//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");
}
#3
Re: flash cs3 WHERE TO PUT ACTION SCRIPT
Posted 09 May 2008 - 03:04 AM
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
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
#4
Re: flash cs3 WHERE TO PUT ACTION SCRIPT
Posted 09 May 2008 - 05:43 AM
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.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|