Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Addressing Multiple Timelines with one click 2

Status
Not open for further replies.

TulsaJeff

Programmer
Jan 29, 2001
870
US
I think I am having a brain fart but I cannot get my one little button to move the playhead on _root to a certain frame and to move the playhead on a child mc inside of _root to a certain frame as well... all with one click.

The mc I am calling these actions from is about 3 levels deep in the hierarchy of things.

I even tried the script below which should do one of them on press and one on release but still no luck.

on (press) {
_root.gotoandStop("aboutusfr");
}
on (release) {
_root.about_in.gotoandStop("history");
}


To explain it in a little more detail... I have a button named aboutus which will carry the playhead to "aboutusfr" where there is a mc("about_in") with a menu on the first frame. The menu items are history, mission, etc. and when clicked on it will carry the playhead to that frame within that mc.

My client has written a welcome message which he wants on the home frame. Many of the words in this message he wants linked to different frames such as history, mission, etc. The problem is I have created this text and the hot buttons within another mc and then used that mc to create a mask in another mc.

Pretty confusing but basically the buttons are 3 levels deep and when one of the buttons within the welsome message is clicked(history for instance) it must not only move the playhead on the _root to "aboutusfr", it must also move the playhead within about_in to "historyfr" at the same click.

Am I making any sense at all? I may be making this a lot more difficult than it really is.... Ya' Gotta Love It!
sleepyangelsBW.jpg
 
on (press) {
_root.gotoandStop("aboutusfr");
}
that should send it to aboutusfr..does it not?..and you say the buttons are about three deep..are you targeting the path correctly jeff?.seems like nothing is wrong with your code..although i could be wrong..is probably something minor like the instance name maybe?.i know that you are as good or better then me at flash so why you can't get it to work is beyond what you have explained..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
the on(press) does take it to the aboutusfr just fine which is where the About_in mc resides but I need it to go a step further and take it to another frame within the about_in mc.

This is driving me nuts! I could make them press several buttons to get there but it lokks like there should be a way to get there with one click. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
oh i see now, on press go here, once here, go there and do this..i understand now..will be thinking along with ya..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
jeff though i could be wrong, and you might have to think out the syntax because i'm not quite sure how you would write it, but wouldn't be something like this:


on (press) {
_root.gotoandStop("aboutusfr");
}
if(frame=="aboutusfr"){
_root.about_in.gotoAndStop("history");
}

something like that?..sorry if not just thinking..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 

Your code should be working if your about_in mc has aboutin as an instance's name... And on one single press.

All of the buttons (except the reset button) have the exact same coding:

on (press) {
_root.gotoAndStop("about");
//goes to aboutusfr in _root
_root.aboutin.gotoAndStop("test");
// goes to frame 10 of about_in mc
}

Maybe you're going into another mc within about_in, in which case you would add the other mc instance's name as:

on (press) {
_root.gotoAndStop("about");
//goes to aboutusfr in _root
_root.aboutin.othermc.gotoAndStop("test");
// goes to frame 10 of othermc in about_in mc
}

Regards,
wink4.gif
ldnewbie
 
Thanks Old... I will try the code again tonight. For some reason it was just not working for me this weekend. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
I'm having the exact same problem as described in TulsaJeff's email and wondered if it was ever resolved. If you found a solution, TulsaJeff, I would be grateful if you shared it. I also have a situation where I need (with one click) the playhead to return to a frame in mcA which has a movie clip (mcB) sitting in it and then to to go frame 65 of mcB. I've tried everything I can think of but it will only go to mcA and I can't get inside the second movie.

Please help! I'm very frustrated.
Thanks!
MtnGirl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top