# Need help creating a transition effect

**URL:** <https://forum.kirupa.com/t/need-help-creating-a-transition-effect/236783>\
**Category:** flash\
**Created:** [August 23, 2007, 4:46pm UTC](https://forum.kirupa.com/t/need-help-creating-a-transition-effect/236783 "2007-08-23T16:46:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoBFW](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@GoBFW](https://forum.kirupa.com/u/GoBFW)\
**Post date:** [August 23, 2007, 4:46pm UTC](https://forum.kirupa.com/t/need-help-creating-a-transition-effect/236783/1 "2007-08-23T16:46:30Z")

</div>

Let me clarify that I am faily new to AS3 and actionscript in general. The effect I’m trying to achieve is to have my flv movie embedded in the flash piece animate in a box type transition, scaling the X & Y from 0 to 100% over 25 frames. I have absolutely no idea where to start, any help would be greatly appreciated. This is the code I have so far:

// Video Stream/Connection

var nc:NetConnection = new NetConnection();  
nc.connect(null);

var ns:NetStream = new NetStream(nc);  
ns.addEventListener(AsyncErrorEvent.ASYNC\_ERROR, asyncErrorHandler);  
ns.play(“test.flv”);

function asyncErrorHandler(event:AsyncErrorEvent):void  
{  
// Ignore Error  
}

var vid:Video = new Video();  
vid.attachNetStream(ns);  
addChild(vid);  
vid.x = 405;  
vid.y = 7;  
vid.deblocking = 0

// Video Playback  
function playHandler(event:MouseEvent):void  
{  
ns.play(“test.flv”);  
}  
btn\_Play.addEventListener(MouseEvent.CLICK, playHandler);
