dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Video Resize

  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    37

    Video Resize

    Hi,


    I have a 400 x 300 video on frame 20 when a user clicks a button named double_btn I want them to go to frame 21 with the video still playing but double the size. Any ideas on how to do this? Thanks

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Well your video object should have an instance name. If it was "myVid", it should be as simple as:

    Code:
    double_btn.addEventListener(MouseEvent.CLICK, goNext);
    function goNext(e:MouseEvent){
       gotoAndStop(21);
       myVid.scaleX*=2;
       myVid.scaleY*=2;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center