Re: [Flashcoders] Version control and Flash

2007-08-10 Thread T. Michael Keesey
On 8/10/07, Rick Schmitty [EMAIL PROTECTED] wrote:

 Should there be any code in the flas besides the #includes?

#includes are already deprecated (by classes and linked symbols), so
you shouldn't even have that.

As I see it, pretty much the only time you should have timeline code
is when you need to cue something from an animation. Even then it
should just be a single call to a function in that movie symbol's
class, e.g. onElementAppear() or onFadeComplete() or something.

There may be a few other times you use timeline code in the root FLA,
like for Express Install, etc., but, by and large, people should be
writing code as classes in AS files, organizing the AS classes into
packages, and linking those classes to movieclip symbols in the
library.
-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com/
Parry  Carney: http://parryandcarney.com/
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Version control and Flash

2007-08-10 Thread Hans Wichman
Hi,

we use standard folders for our projects:

\trunk\
\tags\
\branches\
\trunk\project.fla
\trunk\project.fdp
\trunk\deploy\project.swf
\trunk\sources\
\trunk\resources\injection\injection.swf
\etc

All project sources go into \trunk\sources.

Anyone found guilty of using AS includes, is killed, revived and killed
again :).

We are still struggling with the assets / code in the fla thingy though,
swfmill might help you there, not sure through.

greetz
JC



On 8/10/07, Rick Schmitty [EMAIL PROTECTED] wrote:

 We are starting to add our flash projects to SVN but by large every
 project has all of the AS code inside the actual movie leaving us with
 just fla's in the repo

 We are working on getting everyone to develop with .as files they
 include in the fla, but is there a limit as to how far that should go?

 Should there be any code in the flas besides the #includes?

 How do you go about organizing your folders when you are making an
 AS1/AS2 project?

 Do you mimic the folders in the fla with the appropriate as file
 locations?

 I'd like to make it easier for everyone to use SVN while still getting
 the benefit of having plain text code in the repo


 Thanks for any guidance
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Version control and Flash

2007-08-10 Thread Ron Wheeler



Rick Schmitty wrote:

We are starting to add our flash projects to SVN but by large every
project has all of the AS code inside the actual movie leaving us with
just fla's in the repo

  
We are working on getting everyone to develop with .as files they

include in the fla, but is there a limit as to how far that should go?
  
When you have all of the includes gone and all of the code out of the 
fla's you will be ready to start developing new functionality.

Should there be any code in the flas besides the #includes?
  
No. No includes either. You probably do not need any fla files either 
once you get off the timeline unless you are doing animations but they 
will not be hard to build or manage once they have no connection to script.

How do you go about organizing your folders when you are making an
AS1/AS2 project?
  

Into packages.
Under the src directory build a tree
com.
   smitty.
   yourapplication
  model
  view
 controller
 util


Do you mimic the folders in the fla with the appropriate as file locations?

  
Nothing in the fla's except animations. Draw everything else on a stage. 
If you want a button, create one in ActionScript and put it on the stage 
or use Flex or  ActionStep or some other view technology

I'd like to make it easier for everyone to use SVN while still getting
the benefit of having plain text code in the repo

  
You are on the right track. Get your code into Eclipse, get the 
ActionScript plug-in and program with the pros. Save your Flash licenses 
for the animators.

Thanks for any guidance
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Version control and Flash

2007-08-10 Thread Hans Wichman
Hehe no worries there, I'm sure we all do stuff that causes someone else to
say they need to kill... etc :)
It was meant as a joke nothing harsh to be honest:).

You are hijacking this thread though, which is in itself ofcourse enough
reason to ... :)

But short answer:
- buy a good object oriented book, Essential Actionscript for example.

Probably a book with something on classes, actionscript, classes in
actionscript, and nothing or very little on patterns. Although some patterns
are very simple I'd stay away from them for a while if you are still
struggling to come to terms with object orientation.

Anyway once you've finished your first book, grab a new one and keep doing
that :)

Some answer though:
- you dont code AS2 classes on frames, you just write as2 classes in files.
Once you compile your movie, flash lets you specify in which frame your
classes should be exported.
- if your class is in a package a.b.c.MyClass flash expects you to hand it a
directory, called a classpath, which will have a folder structure mimicking
your package structure, say a\b\c\MyClass.as that is all there is to it.

This is all pretty basic stuff/info though, most of which should become
clear to you when you struggle through Flash's help files.

greetz
JC


On 8/10/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote:

 Hi from someone about to be killed, revived and killed again and
 probably revived to be torture and killed again, again.

 I code everything on the second frame of my main movie, since I could
 till today understand how to code in classes and use them, but I really
 like to learn, since I don't want to die three times, what do you guys
 suggest me?

 I code use functions, returns, and strong type almost everything I do,
 my main complications to understand classes, is that english is not my
 primary language, and all the documents I've read, got me confusing,
 even thought I think my english is not that bad.

 And I really didn't understood the whole path thing with classes, and
 how to code them on the second frame so I can have very light preloaders.

 C'mon be merciful :)

 David Ngo wrote:
  Anyone found guilty of using AS includes, is killed, revived and killed
  again :)
 
 
  LOL. I say the same thing about people using onEnterFrame's for almost
  everything, like XML loading/parsing.
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Version control and Flash

2007-08-10 Thread David Ngo
Anyone found guilty of using AS includes, is killed, revived and killed
again :)


LOL. I say the same thing about people using onEnterFrame's for almost
everything, like XML loading/parsing.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com