|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
Need help starting out in Flash CS3
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Commodore 64
|
My school gets us all Flash CS3 (for laptops and home) so I figured I would finally learn how to do it. I went online, found a few tutorials for both games and animations, but I am having the hardest time!
I have some experience with PASCAL and a little bit of the BASIC on TI calculators (Mine is the TI-84+). I think its a cut-down/modified version of normal BASIC, but I'm not sure... So can anybody point me in the right direction of, or walk me through, getting started in Flash? I'm really confused with actionscript (3.0) and I'm a little annoyed that I can't just type code in the actions tab of a symbol :\
__________________
|
|||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
Commodore 64
|
let me clarify
![]() I can't type in code for a symbol because the box is greyed out and it says "current selection cannot have actions applied to it" could somebody explain how to "unlock" symbols so that I can apply actions?
__________________
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||
|
Chiefly Ignorant
|
ActionScript 2.0 is based on Javascript/ECMAscript, and ActionScript 3.0 derives from 2.0. You can type code right into the actions tab after selecting a frame on the timeline. You can attach event handlers to your symbols that way. If you want to attach event handlers to symbols directly, you could roll back to AS2: File -> Publish Settings -> Flash -> Actionscript Version, and set it to Actionscript 2.0. But that does turn off a lot of neat AS3 features as well.
When you're working with a team, you wind up putting 99% of the actionscript in external class files anyway, so it integrates better with a source control repository. There are some great resources at Kirpua.
__________________
|
||||||||
|
|
|
|
#4 (permalink) | |||||||||||||
|
WaterCooler
|
Are you trying to code (make a game or something) or just animate (make a movie) in flash?
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this. Mah Zune card! 3DMarkVantage: 4958
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
Commodore 64
|
both, I figure its better to learn how to animate to make games look better, but I suppose I could make a game without animations
edit: I am not able to type in the actions tab. I clicked on the script assist button and it unlocked it for me ![]()
__________________
Last edited by nategr8ns : 06-30-08 at 05:47 PM. |
|||||||||||||
|
|
|
|
#6 (permalink) | |||||||||
|
Chiefly Ignorant
|
Quote:
Now move your cursor to the timeline, and click on the first frame (below the 1) to the right of first layer (Layer 1). Then click on the actions tab. Paste this in: Code:
clip.addEventListener("click", clipWasClicked);
function clipWasClicked(evt:Event): void
{
trace("That just happened.");
}
__________________
|
|||||||||
|
|
|
|
#7 (permalink) | |||||||||||||
|
Commodore 64
|
sort of, but the real problem was that I could not type at all in the Actions frame, I figured that out by turning off Script Assist though.
__________________
|
|||||||||||||
|
|
|
|
#8 (permalink) | |||||||||||||
|
Commodore 64
|
this is the problem I'm getting:
__________________
|
|||||||||||||
|
|
|
|
#9 (permalink) | ||||||||
|
Chiefly Ignorant
|
1. The movie clip cannot have actions applied to it. It's not lying to you. Actionscript 3.0 must be put on the timeline, or in a class file which you associate with a movie clip (from Library, right click -> Linkage -> Class) or the whole application (from Preferences, Flash -> Settings -> Document Class).
2. For you to see the output from the code snippet I posted, you have to bring up the output window (hit F2). Trace is a useful tool for debugging code.
__________________
|
||||||||
|
|
|
|
#10 (permalink) | |||||||||||||
|
Commodore 64
|
![]() I'll try getting around that. I'm not lying when I say I am totally foreign to Flash (and OOP for that matter)
__________________
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|