LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-28-2007, 06:01 PM
manhattan's Avatar
manhattan manhattan is offline
Registered User
 
Join Date: May 2007
Posts: 16
Rep Power: 0
manhattan is on a distinguished road
How many returns can 1 function have?

If I ran a function that returns three different variables with three unrelated values; can I have three returns?

Actionscript:
function myFunction() {
    variableA = 10;
    variableB = 20;
    variableC = 30;
    return (variableA);
    return (variableB);
    return (variableC);
}

myFunction();
trace("tracing varA: "+variableA);
trace("tracing varB: "+variableB);
trace("tracing varC: "+variableC);
What options/alternatives do I have?

Last edited by manhattan : 05-28-2007 at 11:23 PM
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Function Consolidation Help SpectacularStuf Flash CS3 / Flash 9 0 09-29-2007 03:20 AM
Slight actionscript forum Agent-VIP Newbies 0 05-08-2007 12:30 AM
Newbie! Cannot access flash.net.FileReference paulr Actionscript 2.0 7 12-21-2006 11:33 AM
Buttons ... damned BUTTONS gooup Flash 8 3 10-15-2006 12:31 AM
Functions ssjskipp Flash MX ActionScript 5 03-22-2005 12:42 AM




All times are GMT. The time now is 07:40 PM.