Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Flash action that returns to previously called function for more directions
Closed Thread
Old 03-17-2009, 01:33 AM   #1 (permalink)
Seria's Avatar
 
PC Cutie ^_^

Join Date: Sep 2004

Posts: 511

Seria is on a distinguished road

Default Flash action that returns to previously called function for more directions

Hey everyone! I love the new look of the forums!

Today is my first day playing around with Flash. I have ACS4MC and its taking some getting used to but i'm excited!

anywho... my question is this:

Is there an action that I can use which will return to the previously left function to get more instructions?

EXAMPLE:

Code:
// CODE FOR FRAME 1
button1.addEventListener(MouseEvent.CLICK, gotoImageFadeOut1);
button2.addEventListener(MouseEvent.CLICK, gotoImageFadeOut2);

function gotoImageFadeOut1(event:MouseEvent):void
{
gotoAndPlay(2);
gotoAndPlay(3);
}

function gotoImageFadeOut2(event:MouseEvent):void
{
gotoAndPlay(2);
gotoAndPlay(4);
}

Code:
// CODE FOR FRAME 2
goBackTo {the previously left function and execute the next line}
Code:
// CODE FOR FRAME 3
THE END FROM BUTTON 1
Code:
// CODE FOR FRAME 4
THE END FROM BUTTON 2
or is there another way to accomplish what im trying to do?
__________________

Last edited by Seria; 03-18-2009 at 12:25 AM.
Seria is offline  
 
Closed Thread

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hijack log bdruff HijackThis Logs (finished) 22 01-07-2009 11:33 PM
Internet connection camman321 Windows Operating Systems and Software 4 12-14-2008 05:18 AM
Computer Still acting screwy Shana2415 Virus - Spyware Protection / Detection 10 09-03-2008 11:36 AM
A sneaky, and annoying virus donaldj HijackThis Logs (finished) 25 06-16-2008 08:58 PM