This content has been marked as final. Show 9 replies
the syntax of your gotoAndStop() function is incorrect. in addition, you should not use the goto functions: use the goto methods.
also, it's not clear what you would like to happen.
for example, if you wanted the _root timeline to advance 3 frames and stop, you could use:
kglad I am using those functions on the MC clip itself, not in the actual time line, is that what you mean?
Thats why I havent used .this.gotoAndStop._currentframe; etc
i mean exactly what i stated above. it doesn't matter what timeline you're trying to direct and it doesn't matter what timeline contains the goto statement (except both those may be needed to describe the path used by your goto method.)
if you need more specific help, describe the timelines' (relationship to your _root timeline) that are to be directed and that contain the goto statement.
kglad I have tried using
But it always continue playing. I reality I have 2 functions telling it to pause. The onrollover which is working (it pauses at the currentframe), then the on press which obviously for some reason starts playing again..
So I have posted the file here if you could take a look and see if you see anything.
where's that code located, what timeline are you trying to control and where's aspecificframe defined?
Those functions are sitting on the 1mc under _root.photomain (the actions are not in the timeline, but on the MC). Its the first movie you see once you open up photomain.
All I want to happen is when you on(press) on that movie 1mc for the timeline in _root.photomain to stop/pause. (then the external link/window opens up), you close that window off then come back to the flash MC window where 1mc should be still displayed/paused. But at present the timeline in _root.photomain is playing. Thats what I am trying to resolve.
You will see this code sitting on 1mc:
//I am trying to pause the movie on whatever frame I rolled over it, while another window is launched, so that when I have finished viewing the external window I can come back to this window and continue where I was
you probably don't want to return to a frame that was played just as your movieclip is rolledOver because it will be clicked after more frames have played. that means when a viewer returns, if you start play from the frame when the rollOver occurred, the viewer will see frames that have already been viewed.
you should probably just stop the timeline when your window is launched:
kglad changed both my on rollover and on press to this.stop();
but I have the same result, starting to think it has something to with my
Im I right in thinking that when you leave the focus of the current window into another window flash thinks you have rolled out? Thus it would execute the above on Rollout?
Because if I take that line out and then click, it then stays stopped as required. My problem then is getting it to play again when the user comes back to the flash window
why do you have that rollOut statement? if there's no this.stop() in your rollOver, you need no play() statement until you return to your document.