it looks like your (re) loading the flash navigation in the linked page. that's going to make it more work to send and retrieve swf's state.
it will be easier to correct your iframe problem.
// try creating a variable like
var mcNum : Number ;
// and inside your click function place this variable
mcNum = yourMovieClip.x;
// then place this value in the beginning of your code
yourMovieClip.x = mcNum;
also, you might remove your eventListener for your movie clip when you mouse out of the arrows.
If you hold down the mouse and drag out of the arrow, the movie clip still goes to the end.
hope this will work for you...
that won't work if the swf's reloading.
Yes, you are right. The swf will reset.
Is there a way to force the swf to not reload?
I could not find a way to not reload the iframe. If I could do that that would be great. any ideas?
why are you reloading the swf in the iframe? your swf would remain in its frame and the html page would change at the direction of the swf. you can target frames using the 2nd parameter of getURL() (as2) or navigateToURL() (as3).
the iframe refreshes by default.
I have it exactly how you describe. in the flash I use getURL()
I think the problem is that I am using iframe instead of building the whole page in frames. so the flash in ther iframes is reloading a whole new page wioth a anew instance of the flash.
is there a better way of doing this?
.. I don;t want to use frames at all.
I want something like this:
show the html code your using to build your iframes
<iframe src="iframe_gallery.html" width="400" frameborder="0" </iframe>
iframe_gallery.html has my flash file.
does this help?
I don't think I frames will work for me here (at least the way I have done them). I think I built the whole thing in frames then maybe I'd have a chance.
I have found a workaround... I just saved several instances of the flash movie with different starting points. So for each product it loads the corresponding flash file. Not very elegant but it works.