loadmovie -frame number - jumping

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   loadmovie -frame number - jumping
ianripping
CZ Newbie
ianripping has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 12, 2005
0.00 posts per day
Posts: 3
Points: 91
   
Hi, I have a movie with a button, which when I press, I want to load another movie on its last frame, not the first.

I am using the loadmovienum command, but don't know how to get action script to jump to frame number - x.

Can anyone help?



Back to top Reply with quote
#2   re: loadmovie -frame number - jumping
wolf
CZ Active Member
wolf has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 33
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
Go to the Movie Clip's timeline, and on the first frame type:
gotoAndStop(x);


x being the last frame number.



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   Re: re: loadmovie -frame number - jumping
ianripping
CZ Newbie
ianripping has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 12, 2005
0.00 posts per day
Posts: 3
Points: 91
   


Originally posted by wolf @ Thu Jul 14, 2005 10:38 am:

Go to the Movie Clip's timeline, and on the first frame type:
gotoAndStop(x);


x being the last frame number.


The problem with this is that when I open this movie for another function - it will jump to the last frame and not start from the first - which is needed - see what I mean. I need it to run normal when opened from one source, but then from the last frame from another source.
THanks


Back to top Reply with quote
#4   re: loadmovie -frame number - jumping
wolf
CZ Active Member
wolf has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 33
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
Ok, so if you have two buttons, you press one and it goes to the first frame, and if you press the other one it goes to the last frame in this other movie clip? I'm not really understanding, because if you loadmovie, it should start from the first frame, and not the last. To make it go to the last, you would use gotoAndStop(); command. Instead of the loadmovie command try using this. On the main timeline, add this when the button is pressed.
_root.attachMovie(idName, newName, depth);
What this does is adds the movie clip on to the main stage, and it should start it off from the first frame. If this isn't what you were looking for, can you explain a little more in detail? Thanks.



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   Re: re: loadmovie -frame number - jumping
ianripping
CZ Newbie
ianripping has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 12, 2005
0.00 posts per day
Posts: 3
Points: 91
   


Originally posted by wolf @ Fri Jul 15, 2005 6:56 am:

Ok, so if you have two buttons, you press one and it goes to the first frame, and if you press the other one it goes to the last frame in this other movie clip? I'm not really understanding, because if you loadmovie, it should start from the first frame, and not the last. To make it go to the last, you would use gotoAndStop(); command. Instead of the loadmovie command try using this. On the main timeline, add this when the button is pressed.
_root.attachMovie(idName, newName, depth);
What this does is adds the movie clip on to the main stage, and it should start it off from the first frame. If this isn't what you were looking for, can you explain a little more in detail? Thanks.


What I have is a movie with an introduction on it that ends at frame 20 and the frame with all the content loads on frame 21.
I also have another movie that links to this 1st movie but when I click on a button, I want it to load the 1st movie on frame 21, do you see? So 2 buttons on the first frame of my first movie wouldn't be sufficient because I need this to load automatically without any user interaction.

Thanks


Back to top Reply with quote
#6   re: loadmovie -frame number - jumping
wolf
CZ Active Member
wolf has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 33
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
I'm getting there! lol. Well, ok. You have an introduction...is that placed into a move clip or is that just on the main timeline? Then you have two moveclips: mc1 and mc2. On frame 21 you load mc1, but when a button is pushed you want mc2 loaded on frame 21 as well? I'd like to contact you via MSN, AIM, or YIM if that would be ok. I'm not understanding and I'm thinking that by those messengers I can help better. So then we can talk about it and I can help you faster, instead of going day-by-day with unanswered questions. icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum