4 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 10+ items on Envato Market

Hi There,

I wonder if someone can help me.

I am working with a flv (playBack component) in flash. This flv has got a cue point.

I need to triger a movieclip when the video hits the cue point.

Similar to this:


Also, I need this video the loop.

This is the code I am using forlooping and muting the video:

listenerObject = new Object(); listenerObject.complete = function(eventObject:Object):Void { aFLV.play(); }; aFLV.addEventListener(“complete”, listenerObject); aFLV.contentPath = “myvideo.flv”; aFLV.play();

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

var ns:NetStream = new NetStream(nc);


var videoInterval = setInterval (videoStatus, 200); var amountLoaded:Number; var duration:Number;

ns[“onMetaData”] = function (obj) { duration = obj.duration; }

function videoStatus () { amountLoaded = ns.bytesLoaded / ns.bytesTotal; loader.loadBar._width = amountLoaded * 320; loader.scrub._x = ns.time / duration * 320; }

_root.createEmptyMovieClip(“vsound”,_root.getNextHighestDepth()) vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);


mute.onRollOver = function() { if(so.getVolume() == 0) { this.gotoAndStop(“onOver”); } else { this.gotoAndStop(“muteOver”); } }

mute.onRollOut = function() { if(so.getVolume() == 0) { this.gotoAndStop(“on”); } else { this.gotoAndStop(“mute”); } }

mute.onRelease = function() { if(so.getVolume() == 100) { so.setVolume(0); this.gotoAndStop(“muteOver”);

} else { so.setVolume(100); this.gotoAndStop(“onOver”); } }

Any thoughts???

Thanks for your help.



279 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+4 more

if you want the video to loop, check the

ns[“onMetaData”] = function (obj) { duration = obj.duration; }

against the time played. If the time played equals the duration, my guess is, you want it to start again.

4 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 10+ items on Envato Market

Fonz thank you so very much for you reply.

With the code I’ve got in place the video is already looping.

Is just that the methods I’ve been using to track the cue point involve using a new eventlistener.

I don’t know if I can use more than one eventlistener with the code I have.

I hope this make sense.

Really apreciate your help.



607 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more

hi send me the player and the file u want to play…hope the movie clip plays over the player…

cost: usd 55

paypal mode

email: support@flashmart.in


Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes