Apologies, underneath the exact code I'm using.
class Test
{
static var root_p:MovieClip = _root;
function Test()
{
display();
setInterMezzo()
}
function display()
{
var videoHolder_p:MovieClip = _root.attachMovie("videoHolder",
"videoHolder_mc", 0);
//setup netstream
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
//movies
var videoHolder_p:MovieClip = _root.attachMovie("videoHolder",
"videoHolder_mc", 0);
videoHolder_p.video.attachVideo(stream_ns);
stream_ns.play("bokk1.flv");
}
function setInterMezzo()
{
setInterval(this, "checkOnMove", 2000);
}
function checkOnMove()
{
trace("ok")
}
}
On 8/23/07, Tom Huynen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> My goal is to play an FLV and use the setInterval method without problems
> at the same time.
> This works fine when my code is placed on the timeline.
>
> When the EXACT same code is placed in an external class however the FLV
> gets interrupped soon as the setInterval is invoked.
>
> Also an onEnterFrame interferes with the flv when using an external class.
>
> How is this possible?
>
> Kind regards,
>
> Tom
>
>
> class Test
> {
> static var root_p:MovieClip = _root;
>
>
> function Test()
> {
> display();
> setInterMezzo()
> }
>
> function display()
> {
> var videoHolder_p:MovieClip = _root.attachMovie("videoHolder",
> "videoHolder_mc", 0);
>
> //setup netstream
> var connection_nc:NetConnection = new NetConnection();
> connection_nc.connect(null);
> var stream_ns:NetStream = new NetStream(connection_nc);
>
>
> //movies
> var videoHolder_p:MovieClip = _root.attachMovie("videoHolder",
> "videoHolder_mc", 0);
> videoHolder_p.video.attachVideo(stream_ns);
> root_p.stream_ns.play("bokk1.flv");
>
> }
>
> function setInterMezzo()
> {
> setInterval(this, "checkOnMove", 2000);
> }
>
> function checkOnMove()
> {
> trace("ok")
>
> }
> }
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com