<!--- Create a set of pickup lines. ---> <cfset arrLines = ListToArray( "Hey baby, what's your sign?|" & "Excuse me miss, I think you are a hottie!|" & "Whoa! Where have you been all my life?!?", "|" ) /> <!--- Create a Girl object. Notice that we are not using ColdFusion's CreateObject() method directly. Instead we are going through the proxy method that calls it for us. We then, initialize the returned object just as we would for the standard CreateObject() method call. ---> <cfset Girl = APPLICATION.CreateCFC( "Girl" ).Init( FirstName = "Libby", LastName = "Smith", PickupLines = arrLines ) /> <!--- Try to pick up the girl. ---> <p> #Girl.TryPickupLine( "Can I buy you a drink?" )# </p> <p> #Girl.TryPickupLine( "You look hot in that dress!" )# </p> <p> #Girl.TryPickupLine( "Whoa! Where have you been all my life?!?" )# </p>