Ultrashock Forums > Flash > Flash Newbie
locking timeline in movieclip after exiting it

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
locking timeline in movieclip after exiting it
Old 2008-09-04

In mc_A login button triggers mc_B which in 2nd frame has warning button which after pressing moves timeline to 3rd frame where is button connect (1st frame is empty)!
After exiting that mc_B and mc_A with connect button and later going again to mc_A, after loging again mc_B plays again from 2nd frame! There is no need for warning again and how to lock timeline on frame 3 in mc_B once is played and exited? (exiting _mc not .swf)

... any suggestion?

Login out...

END
postbit arrow 4 comments | 397 views postbit arrow Reply: with Quote   
Registered User
cvekiboy is offline
seperator
Posts: 5
2008-04-07
seperator

Ultrashock Member Comments:
Darth-Awesome Darth-Awesome is offline Darth-Awesome lives in Canada Creative Assets 2008-09-04 #2 Old  
use a boolean to see if its the user's first pass over the information or not. Then use an if statement in the first frame of mc_B that decides whether it should gotoAndStop(3) or play();

And for your next project, don't user time lines to for programming logic (the order in which things appear) that's what events and functions are for.
Reply With Quote  
cvekiboy cvekiboy is offline 2008-09-10 #3 Old  
Thanks for info a lot.
Tryed many times with different tutorials and not any did work well!
Here is .fla that I made, and if someone can post me here code and where to put it will be greatfull!

Still learnig and forgive me for such an ask!

Login out...

END
Reply With Quote  
Darth-Awesome Darth-Awesome is offline Darth-Awesome lives in Canada Creative Assets 2008-09-10 #4 Old  
Doesn't really work that way my friend. That would be us doing it for you instead of you doing it for yourself.

Post the code you feel is problematic and the community will give you suggestions on how to fix it. if you want someone just to do it for you post it in the job offers
Reply With Quote  
cvekiboy cvekiboy is offline 2008-09-11 #5 Old  
OK here is one of the simplest try!
Added one frame more where value will not be reseted in starting position.
The code make me pass 3rd frame when needed, but strange thing happens!
The mc_B loops! Doesn't want to stop on frame 2!
Here are codes from that mc!
Frame 1
Code:
var securityCheck:Boolean = false;
stop();
Frame 2
Code:
stop();
//even here added stop but timeline passes it!
Frame 3
Code:
onEnterFrame = function() {
if (securityCheck == false)
	stop();
else
gotoAndStop(4);
}

yes_btn.onRelease = function() {
	gotoAndStop(4);
}

no_btn.onRelease = function() {
	gotoAndStop(1);
}
Frame 4
Code:
var securityCheck:Boolean = true;


connect_btn.onRelease = function() {
	gotoAndStop(2);
}

cancel_btn.onRelease = function() {
	gotoAndStop(2);
}
Here is the .fla that can be tested.

Thanks in forward

Login out...

END
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: