Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 06-30-08   #1 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default Need help starting out in Flash CS3

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 :\

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #2 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default

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?

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #3 (permalink)
Chiefly Ignorant
 
Scriptorum's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: Atlanta, GA
Posts: 54
Blog Entries: 12

Rep: 13 Scriptorum Unknown
Unique Rep: 0
Trader Rating: 0
Default

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.
__________________
Quote:
Originally Posted by The Bartender Paradox View Post
crazy?...nah. when you cool with a fire extinguisher then your crazy.

System: Flaming Moe's MacBook Pro
CPU
Core 2 Duo
Motherboard
MacBook Pro
Memory
4GB DDR2-667
Graphics Card
512Mb NVIDIA GeForce 8600M GT
Hard Drive
200Gb 7200RPM
OS
OSX 10.5.2 / XP Pro / Boot Camp + Parallels
Monitor
17" Matte 1920x1200
Scriptorum is offline Overclocked Account   Reply With Quote
Old 06-30-08   #4 (permalink)
WaterCooler
 
getllamasfast's Avatar
 
amd ati

Join Date: Dec 2006
Posts: 1,103

Rep: 54 getllamasfast is acknowledged by some
Unique Rep: 0
Trader Rating: 0
Default

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

System: La Computadora de Getllamasfast
CPU
AMD X2 5000+ BE @ 3.008 24/7
Motherboard
GA-M57SLi-S4
Memory
2 x 2gb Patriot DDR2 800
Graphics Card
Diamond 4870x2
Hard Drive
500Gb WD + 500Gb Seagate
Sound Card
Creative X-FI Extreme Music + Denon AVR-2700
Power Supply
Corsair HX620w
Case
Gigabyte 3D Aurora <- Returned for Aurora 570 :)
CPU cooling
Apogee GT + PA120.3
GPU cooling
MCW-60 + PA120.3
OS
Vista Home Premium 64-bit
Monitor
Samsung 2232gw
getllamasfast is online now   Reply With Quote
Old 06-30-08   #5 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default

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

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)

Last edited by nategr8ns : 06-30-08 at 05:47 PM.
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #6 (permalink)
Chiefly Ignorant
 
Scriptorum's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: Atlanta, GA
Posts: 54
Blog Entries: 12

Rep: 13 Scriptorum Unknown
Unique Rep: 0
Trader Rating: 0
Default

Quote:
Originally Posted by nategr8ns View Post
could somebody explain how to "unlock" symbols so that I can apply actions?
Consider this example. Create a new AS3 document. Draw a box on the stage. Double click on it to select the box fill and stroke, then right click and click Convert To Symbol. Give it the name MyClip. It turns into an instance of the symbol type MyClip, which shows up in your library. Now in the properties panel, there's a space that says "<Instance Name>." Put there "clip" which names the instance, to distinguish it from the other MyClip instances on the stage.

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.");
}
Now every time you click on the clip, your function will be called and it will print some text in the output window. That's how to create a movie clip and attach an event handler to it. Does that answer your question?
__________________
Quote:
Originally Posted by The Bartender Paradox View Post
crazy?...nah. when you cool with a fire extinguisher then your crazy.

System: Flaming Moe's MacBook Pro
CPU
Core 2 Duo
Motherboard
MacBook Pro
Memory
4GB DDR2-667
Graphics Card
512Mb NVIDIA GeForce 8600M GT
Hard Drive
200Gb 7200RPM
OS
OSX 10.5.2 / XP Pro / Boot Camp + Parallels
Monitor
17" Matte 1920x1200
Scriptorum is offline Overclocked Account   Reply With Quote
Old 06-30-08   #7 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default

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.

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #8 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default

this is the problem I'm getting:
Attached Thumbnails
need-help-starting-out-flash-cs3-flashcs3-pita.jpg  

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #9 (permalink)
Chiefly Ignorant
 
Scriptorum's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: Atlanta, GA
Posts: 54
Blog Entries: 12

Rep: 13 Scriptorum Unknown
Unique Rep: 0
Trader Rating: 0
Default

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.
__________________
Quote:
Originally Posted by The Bartender Paradox View Post
crazy?...nah. when you cool with a fire extinguisher then your crazy.

System: Flaming Moe's MacBook Pro
CPU
Core 2 Duo
Motherboard
MacBook Pro
Memory
4GB DDR2-667
Graphics Card
512Mb NVIDIA GeForce 8600M GT
Hard Drive
200Gb 7200RPM
OS
OSX 10.5.2 / XP Pro / Boot Camp + Parallels
Monitor
17" Matte 1920x1200
Scriptorum is offline Overclocked Account   Reply With Quote
Old 06-30-08   #10 (permalink)
Commodore 64
 
nategr8ns's Avatar
 
amd nvidia

Join Date: Dec 2007
Location: Maine
Posts: 4,278

Rep: 130 nategr8ns is acknowledged by manynategr8ns is acknowledged by many
Unique Rep: 0
Folding Team Rank: 243
Trader Rating: 3
Default


I'll try getting around that.
I'm not lying when I say I am totally foreign to Flash (and OOP for that matter)

System: OptyMSI Prime (soon "DFO: Designed for Optyvation"
CPU
Opteron 175 LCB9E 0652WPMW
Motherboard
MSI K8N Neo4-f (DFI NF4 Ultra-D en-closet)
Memory
2x1GB GSkill 500mhz HZs
Graphics Card
EVGA 8800GT SC 512
Hard Drive
160GB + 120GB
Sound Card
onboard ftw!
Power Supply
Ultra X-Finity 600w
Case
AeroCool AeroEngine II <3
CPU cooling
ACFreezer Pro w/92mm+80mm+120mm
GPU cooling
AC Accelero S1 w/Dual Tri-Cool 120mm (low)
OS
XP Home + Vista Ultimate after Mobo upgrade
Monitor
Samsung 220WM 22" + LG f-Engine 17" (dual screen)
nategr8ns is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 02:08 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.21989 seconds with 10 queries