Groups | Blog | Home
all groups > flash (macromedia) > april 2004 >

flash (macromedia) : AS in Frame 1 vs. on indiv. objects.


REMOVEjustincredible76 NO[at]SPAM hotmail.com
4/19/2004 9:54:09 PM
I developed a few intermedaite sites with Flash MX 2004 Pro. I have
been adding AS to each indiv object. Such as onRelease/onPress for
buttons, if/else, and goToAndPlay, etc.

A book I am learning from places all/most AS in the first frame. One
advantage I see is all the code is in one place.

Is there a reason to use one over teh other? Does one compile faster?
Or does the swf file work more effiiently?

Peter Blumenthal
4/20/2004 8:21:21 AM
IMO this only really becomes an issue where you are developing as part of a
team, or your work is likely to maintained by someone other than yourself.
In these cases it is generally easier for an outside developer to get the
"gist" of your code (and actually FIND it) if it isn't scattered all around
the movie on various objects.

--
---------------------------------------
http://www.phageinteractive.com
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'If I come across as a grumpy and twisted old man, it's just because I'm a
grumpy, twisted, old man." - me
---------------------------------------

urami_
4/20/2004 10:25:03 AM


[quoted text, click to view]

It would be more of personal preference.
There is many positive and negative for both.


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

Jeckyl
4/20/2004 12:27:42 PM
Use whatever works best for you .. as long as you use consistent methods and
can maintain your code without problems. Having code on the objects
themselves means it is easy to find the code . .select the object and thee
it is. Having code in one place can make it easier to make bulk changes or
see how code interacts without jumping hither and yon. But generally,
whatever works for you, works for you.

AddThis Social Bookmark Button