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.
|
|
|
|
|
![]() |
||
Jump to a new frame when clicked
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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? |
|
|
|
#2
|
|||
|
|||
|
Re: Jump to a new frame when clicked
Moved to Flash and Multimedia Forum.
|
|
#3
|
|||
|
|||
|
Re: Jump to a new frame when clicked
Thanks for the redirect supermoderator.
|
|
#4
|
|||
|
|||
|
...for such a large amount of members logged in I thought I'd get a response expediently enough. I see more queries than solutions.
|
|
#5
|
|||
|
|||
|
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:
Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; Jul 31st, 2007 at 17:40. |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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:
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
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)
|
![]() |
| Thread Tools | |
|
|
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 |