fl vs flash
October 14, 2008 4:20 PM Subscribe
What's the relationship between the ActionScript namespaces fl.* and flash.* ?
Those aren't namespaces, they're packages. ActionScript namespaces are an entirely different, strange beast that are one of the unique features of the language. The public, private, protected, and internal access specifiers are implemented in Actionscript with namespaces, which are a user-accessible feature.
posted by zixyer at 5:11 PM on October 14, 2008
posted by zixyer at 5:11 PM on October 14, 2008
Response by poster: OK, good point about the definition of namespace.
Do you happen to know the relationship between the two packages?
posted by iconjack at 7:49 PM on October 14, 2008
Do you happen to know the relationship between the two packages?
posted by iconjack at 7:49 PM on October 14, 2008
fl.* is almost certainly implemented using flash.* (I say "almost" because I haven't actually seen the source code, but I don't see many other possibilities). Think of the Flash Player as a runtime environment with an API (exposed to AS via flash.*); pretty much any code that does something interesting when running in the Flash Player is ultimately going to depend on that API (otherwise you're just working with AS/ES primitives).
posted by kanuck at 11:39 AM on October 15, 2008
posted by kanuck at 11:39 AM on October 15, 2008
This thread is closed to new comments.
posted by kanuck at 4:50 PM on October 14, 2008