SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE FLASH:
Home
Flash Forum
Flash Tutorials
Flash Video Tutorials
Web Streaming Forum
Adobe Flash
Podcast
onCuePoint troubles... help please
Cow Forums
:
Adobe Flash
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
onCuePoint troubles... help please
by
Adam Henson
on Nov 7, 2009 at 5:30:03 am
Okay I'm using the stream class. Excuse my vocab if I make mistakes as I'm somewhat of a beginner.
I have an FLV called "intro.flv". The stream thingy works. my variable is "ns".
My issue is that I'm trying to have it gotoAndPlay a frame labeled "scene2", once the flv reaches a cue point I named "introCue".
Here's my code in it's entirety:
///////// ---This is the part that's causing an error
stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var introMov:Video = new Video(720, 540);
this.addChild(introMov);
introMov.attachNetStream(ns);
setChildIndex(introMov,0);
ns.play('Support Files/intro.flv');
var netClient:Object = new Object();
netClient.onMetaData = function(meta:Object)
{
trace(meta.duration);
};
ns.client = netClient;
ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
function netstat(stats:NetStatusEvent)
{
trace(stats.info.code);
};
/////////////////////////////
function cuePointHandler( cuePoint:Object ):Void
{
trace( "CUE POINT: type=" + cuePoint.type );
trace( "CUE POINT: name=" + cuePoint.name );
trace( "CUE POINT: time=" + cuePoint.time );
trace( "CUE POINT: parameters=" + cuePoint.parameters );
if( cuePoint.name == "introCue" )
{
gotoAndPlay("scene2");
}
}
//////////////////////////////
Does anyone know why the cuePointHandler isn't cooperating?
Thank you!
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
onCuePoint troubles... help please
by Adam Henson on Nov 7, 2009 at 5:30:03 am
Re: onCuePoint troubles... help please
by Adam Ashby on Nov 8, 2009 at 9:45:11 pm
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]