Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > macromedia flash flashcom > february 2006 >

macromedia flash flashcom : Silly question


pula
2/18/2006 12:00:00 AM
On the server side actionscript of my application can I use OO actionscript
2.0? like in my main.asc can I use my defined objects in functions like
application.onAppStart() ? If so .. is there a drawback to this? ... I'm
relatively new to flash .. and coming from a good knowledge of OOP so that
would make it easier for me than using traditional action script .. I hope I
didn't say to many dumb things

Thank you in advance
JayCharles
2/18/2006 10:11:09 PM
Server side AS is actually AS1 with a limited set of methods (and a few
additional methods that don't exist in client side AS. You can use OO to the
application just like you would have in AS1, but you can't use all of the AS2
syntax like you can in the Flash authoring environment.

As for using application.function(), that's perfectly valid, but just using
function() will garner the same results. There are a few syntactical
differences between client side and server side AS, and they're all (well..
most of them anyway) defined in the help docs that ship with FMS/FCS.
FlashTastic
2/22/2006 6:36:20 PM
As a note:

SSAS is the same as Javascript 1.5.

Cheers,
FlashTastic
AddThis Social Bookmark Button