So im trying to make an easy script, which will hold a video…
And i will be able to drag the video around as i want, but the catch is… when it leaves borders of the frame, i want it to continue playing on the other side, even if its only half of the video or less…
I know how to transport it, to the other side, but not the half of it or less..
function everyFrame(event:Event):void {
if (movie.x + 100 < 1)
movie.x = 400;
}
Here is an image of the effect that im trying to achieve… https://i.stack.imgur.com/9H6Yi.png
Thank you in advance
Without seeing more code, I would say you need to set clipAndEnableScrolling.
Try adding that to the group (Group, HGroup, or VGroup) that you have your video in.
Edit based on me understanding now…:
When the right edge of your movie touches the right edge of the screen, you will need to create a second movie and add it to the stage at a determined x of the first movie and y of first movie. I would say something like this…
Very rough code but it should be about right.