In place of void? so like... function someFunc():Number { //return a number }
function someFunc():String { //return a string } Karl DeSaulniers Design Drumm http://designdrumm.com On May 19, 2013, at 12:26 AM, John R. Sweeney Jr. wrote: > Void was AS2 and wasn't really necessary. > > void is AS3 and since it uses strong typing, very necessary. void will not > return anything. If you want back values (numeric) use Number (text) use > String, etc. > > > John R. Sweeney Jr. > Senior Interactive Multimedia Developer > OnDemand Interactive Inc > Hoffman Estates, IL 60169 > > > > > On May 18, 2013, at 10:15 PM, Karl DeSaulniers wrote: > >> My first question. >> >> What is the purpose of "void" versus "Void"? When do you use "void" and >> "Void" and when is it not needed or wise to use "void" on a function? I may >> have asked this a few years ago, but can not find any of the emails, so if >> its a duplicate I apologize. > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders