Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Tweening a looping FLV

$
0
0

Hi All,

It's me again. Stumped again:

 

Kglad helped me make a FLV loop seamlessly and tween an FLV (converted to a movie clip) so that it zooms. Now I'm trying unsuccesfully to make both (loop and zoom) happen at the same time. It looks like the looping method below only works on a FLVPlayback component ...and the tweening method only works on a movie clip. Any recommendations?

 

Here's the code in frame 1 of my timeline:

 

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.video.*;


//Looks like the looping code below can't make a movie clip loop. It only works with a FLV
//in a FLVPlayback component.

//Loop the FLV animation
var index:int = 0;
my_FLVPlybk.addEventListener(fl.video.VideoEvent.COMPLETE, completeHandler);
my_FLVPlybk.source = "FroggyTop.flv";
my_FLVPlybk.play();
readyNextPlayerF();
function completeHandler(e: fl.video.VideoEvent): void {
my_FLVPlybk.play();
    my_FLVPlybk.visibleVideoPlayerIndex = index;
    readyNextPlayerF();
}
function readyNextPlayerF():void{
index++;
    my_FLVPlybk.activeVideoPlayerIndex = index;
    my_FLVPlybk.source = "FroggyTop.flv"; //assign the source
}


//Zoom (enlarge) the FLV animation.
//Needed to make the FLVPlayback component a movie clip 1st).
var scaleXTween:Tween=new Tween(LoopingMC,"scaleX",
None.easeNone, 1,3,5,true);
var scaleYTween:Tween=new Tween(LoopingMC,"scaleY",
None.easeNone, 1,3,5,true);


//How can I do both on same object at the same time (ie; make the animation loop as it's tweening)?

Here's the posted swf: http://home.comcast.net/~samiri/director/mortals/froggy/linkedFLV__loo pAndZoom.swf

Here's the fla source file: http://home.comcast.net/~samiri/director/mortals/froggy/linkedFLV__loo pAndZoom.fla

 

Thanks much.


Viewing all articles
Browse latest Browse all 13519


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>