Skip to main content
Participant
April 11, 2010
Answered

flash intro (flv imported) as intro page (need help with the link)

  • April 11, 2010
  • 1 reply
  • 1326 views

I have a movie clip that I imported into flash, used a skin and have a nice little player for this website intro. I want to proceed to the sites home page upon completion of the movie. Searched but the best I could come up with was;

player.addEventListener("complete",function (event:Object) { trace("doneVideo");new URLRequest("my link");});

not working...can someone help?

This topic has been closed for replies.
Correct answer kglad

if your flvplayback component's instance name is flv, use:

flv.addEventListener(Event.COMPLETE,f);


function f(e:Event){

navigateToURL(new URLRequest("http://www.adobe.com"));

}

1 reply

kglad
Community Expert
Community Expert
April 11, 2010

is your code on the main timeline?

click your "flv player" and check the properties panel and assign an instance name.  is it a movieclip or flvplayback component?

if it's a movieclip, go to that movieclip's timeline and click the player.  in the properites panel assign an instance name and is it a movieclip or flvplayback component?

continue as above until you find the flvplayback component.

finally, post the instance names in order from the main timeline to the timeline that has the flvplayback component.

BillC-BosAuthor
Participant
April 12, 2010

Thanks much. I am using an flvPlayback component.The flash is being used as an swf in and html document so it is pretty straight forward - one frame in the timeline.

any thoughts on how to get this done would be greatly appreciated. Thanks again for taking the time to respond.

Bill C

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 12, 2010

if your flvplayback component's instance name is flv, use:

flv.addEventListener(Event.COMPLETE,f);


function f(e:Event){

navigateToURL(new URLRequest("http://www.adobe.com"));

}