Avatar of newbe101
newbe101

asked on 

flash cs3 as3 redirect url after movie

hi all,
I am using flash cs3 with action script 3.  I have a avi movie that I imported into my flash project.  The timeline now contains only 1 frame (the move).  When I publish this, it works fine.  What I want to do is have an as3 redirect the page to a new page once the movie is finished loading.  What I would normally do is add another layer and create an ac3 action at the frame I want to redirect on.  The problem is that the movie is way too long to adjust for time errors.
any suggestions will be appreciated.
Web Development SoftwareAdobe Flash

Avatar of undefined
Last Comment
KryptoQuasar
Avatar of blue-genie
blue-genie
Flag of South Africa image

i could be wrong here, but if you're importing an avi directly into your timeline, there's not too many ways of accurating controlling the video.
you might consider using flv and then you have access to all the VideoEvents.

Avatar of newbe101
newbe101

ASKER

BTW, I am using progressive download for the movie... how about if I use action script 2... I found:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void  {
      //insert event-handling code here
      getURL("http://www.google.com", "_self");
};
my_FLVplybk.addEventListener("complete", listenerObject);

What am I doing wrong?
Avatar of blue-genie
blue-genie
Flag of South Africa image

you said you imported the avi straight into your timeline. that code is for the flvplayback component, hence my suggestion of using a flv.
ASKER CERTIFIED SOLUTION
Avatar of newbe101
newbe101

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ImprovMike
ImprovMike

Newbe101,

Would you post how you solved the problem. I'm trying to accomplish the same thing but so far the solutions I've found aren't working. I tried adding the getURL method to the last frame of the timeline and that works when I test the movie but not when I publish it. The video just plays to the end and then nothing.

Any help is greatly appreciated.

Thanks,

Mike
Avatar of KryptoQuasar
KryptoQuasar

YES, Always post how you solved it.
Adobe Flash
Adobe Flash

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo