• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

How do you listen for a cue point in a netstream within actionscript 3?

I want to have a command execute when the netstream reads the metadata for a cuepoint in a video. I would preferably like to have it run according to a switch which listens for specific specified cue points incase the video will have more than one which serve specific functions.
0
livingin360
Asked:
livingin360
  • 2
1 Solution
 
livingin360Author Commented:
Found the answer myself
var netClient:Object = new Object();
netClient.onCuePoint = function(info:Object)
{
	trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
	switch (info.name)
	{
		case "Resolve" :
			gotoAndPlay("ResolveUnit")
			break;
		case "blah" :
			break;
		case "blah2" :
			break;
	}
};

Open in new window

0
 
livingin360Author Commented:
Because I answered it myself and successfully tested it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now