ActiveDen

More vimeo help!

836 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
marcfolio says

Moogaloop help again. So I have a file that loads a vimeo video file. I need to track when the video starts to play or when the video is complete. Below is the onComplete function that adds event listeners for the different states of the player. When I play the video locally it works fine. I can dispatch an event and the parent swf gets the call. But when I upload it to the web nothing doing. No events are fired. I can’t figure it out. I’m using the debug player and I get nothing in way of errors that I’m missing. Anyone have any ideas? Help!

private function onComplete(e:Event) : void
        {
            // Finished loading moogaloop
            container.addChild(e.currentTarget.loader.content);
            moogaloop = e.currentTarget.loader.content;

                moogaloop.addEventListener(READY, readyHandler, false, 0, true);
                moogaloop.addEventListener(PLAY, playHandler, false, 0, true);
                moogaloop.addEventListener(PAUSE, pauseHandler, false, 0, true);
                moogaloop.addEventListener(SEEK, seekHandler, false, 0, true);
                moogaloop.addEventListener(LOAD_PROGRESS, loadProgressHandler, false, 0, true);
                moogaloop.addEventListener(PLAY_PROGRESS, playProgressHandler, false, 0, true);
                moogaloop.addEventListener(FINISH, finishHandler, false, 0, true);

}

 private function playHandler(event:Event) : void
        {
            trace('playHandler');
            dispatchEvent(new Event("PAUSE_AUDIO", true));
        }
1 year ago
4213 posts
  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Community Superstar
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 50 and 99 users
CodingJack says

My best guess would be that for some reason, the child swf isn’t technically a child of the parent swf when it dispatches the event. Try this underneath the event dispatch line and see if you get null:

throw new Error(this.parent) // or whatever scope the parent swf would be

1 year ago
1301 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Croatia
  • Referred between 1 and 9 users
Tean says

I had problems with these events long time ago.

Aparently they only work with FP10 .

But I stil had problems getting even the most basic (read important) to work like ‘onFinish’.

At a time I couldnt get it to work so I had to track playing time manually to detect video end which was really annoying.

Then at some point this event start working so I am not complaining any more :)

So currently my code looks like this:

//I add this event when he player is ready.
_player.addEventListener("onFinish", videoEnded);
private function videoEnded(e:Event):void{

}

To detect when video start playing well is happens obvioulsy when you call the play method yourself since it doesnt start automatically.

1 year ago
836 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
marcfolio says

Thanks you guys. The vimeo player isn’t near as robust as the chromeless YouTube player. Though through their forums I have gotten help from their Lead dev on the moogaloop player. I even got him to author a fix so you can now bitmap draw on the latest player.

But there’s a Hugh lack of documentation and it becomes very frustrating.

Again thanks for the help.

1 year ago
2968 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Beta Tester
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Spain
  • Referred between 100 and 199 users
pezflash says

MArc, sorry for the little offtopic on your thread, but:

anyone knows if it’s possible to display Vimeo videos in AS2 ?

Thanks in advance.

1 year ago
3678 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Brazil
  • Referred between 1 and 9 users
tsafi says

MArc, sorry for the little offtopic on your thread, but:

anyone knows if it’s possible to display Vimeo videos in AS2 ?

Thanks in advance.

Vimeo only official supports AS3 last i know

1 year ago
2968 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Beta Tester
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Spain
  • Referred between 100 and 199 users
pezflash says

Vimeo only official supports AS3 last i know

Yeah, did some research. Not possible.

1 year ago
by
by
by
by
by