• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Panorama effect in Flash!

Winchester

Diamond Member
How do I create an panorama effect where the image repeats itself, without having to move your mouse etc? I just want it to continue to repeat in the background. I just want it so that as soon as it disapperas on the right it appears on the left.

Click Flash Template 1
 
Actionscript

Somewhere in your main loop:
if (image.x == (0- image.width))
{
image.x = stage.width;
}

In the last frame where it disappears:
goto (frame x); //where x is frame where it appears, but your entire movie will rewind

Or:
image.x = stage.width; //if you only want the image location to be resetted

*note - I'm not sure if this is the exact syntax, been a couple years since I have touched Actionscript (for Flash 5 and 6). However, hopefully this will lead you in the right direction.

Edit 2-
Now that I think about it, Flash will repeat itself at the end of the movie unless you tell it not to. So you might have your effect already (may it be good or bad, since your entire movie will repeat). You also may just want to make it modulized, like having your background be another repeating swf that is loaded into the main movie.
 
Sorry I'm not following. Is this a moving image as the background ?

What would moving your mouse ordinarily have to do with it ?

Got a sample anywhere on the web ?
 
Originally posted by: rh71
Sorry I'm not following. Is this a moving image as the background ?

What would moving your mouse ordinarily have to do with it ?

Got a sample anywhere on the web ?


I think he means where it self rotates the pano.
 
Back
Top