How does the packages work and where do I save the files? 
Posted: 26 June 2008 02:14 PM   [ Ignore ]
New Member
Rank
Total Posts:  11
Joined  2008-06-19

I opened the ripples example from the touchlib files and modified it to do the effects that i want, but now i want to create a new file (.fla and .as) to start from the beggining but i can´t work with the packages because no matter where i save the files, it doesn´t work.

Can someone please explain to me how to use the packages, where to save them, how to save everything in only one folder???

Thanks a lot

Profile
 
 
Posted: 28 June 2008 11:37 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  509
Joined  2008-02-22

Each package delimits an
independent physical region of a program and gives that region a name, called the
package name. By convention, package names typically start with a lowercase letter
while class names typically start with an uppercase letter. This helps distinguish
package names from class names.
When a class’s source code resides within a package, that class automatically adopts
the package’s name as part of its own name, much like a child takes on his parents’
family name. For example, a class named Player in a package named game becomes
known as game.Player. Notice that the package name comes first and is separated
from the class name using a period (.) character (character is simply programming
jargon for letter, number, punctuation, and so on). The package name helps distinguish
the game.Player class from other classes also named Player, thus preventing
name conflicts between different parts of a program or between a program’s custom
classes and ActionScript’s built-in classes.

Quoted from Essential ActionScript 3.0

 Signature 

http://www.justinriggio.com cool mad
http://www.niceminds.com My blog

Profile