Jump to a new frame when clicked

This is a discussion on "Jump to a new frame when clicked" within the Flash & Multimedia Forum section. This forum, and the thread "Jump to a new frame when clicked are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Jul 31st, 2007, 16:49
New Member
Join Date: Jul 2007
Location: Ireland
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Jump to a new frame when clicked

Firstly hello, I'm Kieran from Ireland and spanking new to flash.

Secondly my query: (refer to attached)

I have an MC of an animated red arrow. I want to jump to a new frame (which is labelled a "b") when clicked. Alas nothing happens.

The MC uses the following actionscript for a reverse roll-off effect:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

The above is placed on layer by itself in the MC, This part is the problem I think:

this.onRelease = function(){
gotoAndPlay("b");
;


Any takers?
Attached Files
File Type: zip Perrie.zip (22.6 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Jul 31st, 2007, 16:53
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Jump to a new frame when clicked

Moved to Flash and Multimedia Forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Jul 31st, 2007, 16:55
New Member
Join Date: Jul 2007
Location: Ireland
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Jump to a new frame when clicked

Thanks for the redirect supermoderator.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Jul 31st, 2007, 17:13
New Member
Join Date: Jul 2007
Location: Ireland
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Any takers...

...for such a large amount of members logged in I thought I'd get a response expediently enough. I see more queries than solutions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Jul 31st, 2007, 17:22
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Jump to a new frame when clicked

At first glance it looks like you want the embedded movieclip to play "b" on the main timeline. To access the main timeline you need to add "_root." to your gotoAndPlay Statement...like this:

Code: Select all
this.onRelease = function(){ 
_root.gotoAndPlay("b");
}
P.S. Where are you seeing more questions than anwers? I try and get to all of the flash questions that I have the answers to. :-) Keep i mine its 10am here in the states and I am at work.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; Jul 31st, 2007 at 17:40.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Jul 31st, 2007, 17:33
New Member
Join Date: Jul 2007
Location: Ireland
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Okay.

Sorry about the haste but its 6:45 over here and Ive already spent a ridiculous amount of time on this.

Heres what happened pending your instructions:

*Error** Symbol=n_mc, layer=Layer 4, frame=1:Line 18: Statement block must be terminated by '}'
this.onRelease = function(){
**Error** Symbol=n_mc, layer=Layer 4, frame=1:Line 22: Operator '=' must be followed by an operand
Total ActionScript Errors: 2 Reported Errors: 2

Last edited by rexusdiablos; Jul 31st, 2007 at 17:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Jul 31st, 2007, 17:40
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Jump to a new frame when clicked

Sorry I am sick right now and all medicated.

Here is what you need to do, I just copy/pasted you code and didn't pay enough attention...

Make it look like this:

Code: Select all
this.onRelease = function(){ 
_root.gotoAndPlay("b");
} //changed the ; to a } that'll do it.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Jul 31st, 2007, 18:00
New Member
Join Date: Jul 2007
Location: Ireland
Age: 24
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you so much

Oh my god; it it worked! I honestly dont believe it. I knew there was something simple I was overlooking. Surprised I didn't notice the typo but I definatley overlooked the _root.

I was on flashmove for considerable portion of the day being redirected to the wrong threads and given completley irrelevant answers. This site rocks and I hope to excel to the level of offering solutions as quickly as possible.

Great site and great community! (oh and get well soon )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Jul 31st, 2007, 18:02
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Jump to a new frame when clicked

Thanks!

Please, stick around, we love having new people to interact with. There is a lot to learn from just reading the previous posts in this forum along with a lot of the other forums so check them out!

Welcome to the community, we look forward to hearing from you more often!

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Thread Tools

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
Jump menus and cross browser compatibility severence JavaScript Forum 0 Feb 26th, 2008 00:53
[SOLVED] pagementation to jump menu saltedm8 PHP Forum 19 Jan 26th, 2008 21:22
EASY PEASY Displaying frame address in another frame question molotov JavaScript Forum 3 Nov 20th, 2007 17:29
jump to marker using parameters Smokie Flash & Multimedia Forum 5 Jan 14th, 2005 08:39


All times are GMT. The time now is 14:12.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42