Forums: Flash:

 

need flash to contine playing from current frame when page is changed

first
 

bwojtyra need flash to contine playing from current frame when page is changed

Hello,
I have a small flash tidbit that is basically used like a menu. It scrolls through the thumbnails left and right, when clicked the pages changes to the appropriate location.

However, the flash movie jumps back to the beginning of the movie. Is there anyway I can get it to stay in the same spot when the page is changed?

I tried using iframes, but this did not work out, it had the same result.

ref:
sourcedesigngroup.com/dev_01/putt_01.html

to see the problem scroll the images to the right and select 'wall boarder buddy' (fourth image from the left)

this takes you the page and the flash resets to its original position. Anyway to make it stick?

I'm fairly new.. but I can cut paste like a mofo.

 

lithium

because the flash movie is reloading, it'll always reset to the original position when it loads.

What you'll need to do is save the data with a shared object. I'll post an example for you shortly. I'm going to assume you're using AS2, and my AS2 is fairly rusty, so let me know if you are in fact using AS3 and i'll update the example.

 

lithium

SharedObject example

What this'll do is save the scrolled position of the boxes whenever a link is clicked, and restore it to that position when the flash reloads. What you might want to do is also check the time that the position was saved so that after a given amount of time, the saved position is ignored or reset to the base position.

the fla is here

Let me know if you need an AS3 version, or if you run into any issues.

Hope it helps,

/lith

 
first
 

Forums: Flash: need flash to contine playing from current frame when page is changed

 
New Post
 
You must be logged in to post