Skip to main content
Participant
April 16, 2009
Question

Play and stop flv movieclip imported with flashcs4

  • April 16, 2009
  • 2 replies
  • 580 views

Hi you all,

perhaps someone could think I'm trying to flood the forum...

This post is splitted in two problems:

1-      I imported an flv video file with "file->import->import video" and then put the object on the stage on a precise frame ( 71 and 79 ).

         Around the object player I created a transparent button as wide as the stage (67-82) which clicked brings you to another frame(2).

         The problem is that this work is a site and if you click on the transparent button you see a frame with contents but the

         movieclip playing is still on and user still ear the music and experience the bandwidth slow down.

         What I want to do is something like:

          movieclipinstancename.stop();

         to stop the movie playing. Ideas??

2-      I'm triyng to understand the best way to import or use a movieclip, using AS3.

Please help me.

and forgive eventual english errors.

hi

This topic has been closed for replies.

2 replies

PinozzoAuthor
Participant
April 16, 2009

First of all, thank u for reply.

then,

I've already did it but it don't want to work:dragged the object on stage, selected the properties panel in flash and changed

the instance name "<instance>" to "playhigh", after wrote down this code:

sfondobottone2.addEventListener(MouseEvent.CLICK, gotosfondobottone2);
function gotosfondobottone2(event:MouseEvent):void
{
    gotoAndPlay(63);
    count=0;
    playhigh.stop();
    trace("gotosfondobottone2 ")
}  

The actual problem is that it gives me back this error

TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
    at DownLoadIt/gotosfondobottone2()

kglad
Community Expert
Community Expert
April 16, 2009

give your flvplayback instance an instance name (like flv) and use the stop() method:

flv.stop();