Ok, I've figured out how to add a .flv file to a project, added a skip button now what I need to figure out is how to make the page load the main site page once the clip has run to its end.
Thanks
Franklyn Halamka
Printable View
Ok, I've figured out how to add a .flv file to a project, added a skip button now what I need to figure out is how to make the page load the main site page once the clip has run to its end.
Thanks
Franklyn Halamka
that is easy - just set number of frames to your movie's lenght (in secs).
Ok, maybe I'm not being clear, I've created a storyboard 640x500 and imported a 640x480 .flv file to sit on the storyboard as an object. I've put a text button at the bottom of this .flv object with the action to go to a URL upon release. What I'm trying to make happen is at the end of the play of the .flv object how do I trigger the automatic forward to another web page?
I put a video player on at koolexchange. If you look at the code for the progress bar, you can see that it is converted to precentages. From that you could set up an if statement that says
If (percent = 100)
{the go to new URL
}
Thanks tmoore935, question, it says to set it at 320x240, can this be made larger?
Ok, just tried to open that in Koolmoves, well, it crashes the program, when I double click to open, says it wasn't created in koolmoves... any suggestions?
Maybe your KM version isn't up to date (KM 5.7.1) .
Another option is to pause the main timeline until the flv movie ends.
If you embed a flv movie named flv1 in the first frame and add the following code to the second framethe main timeline will be paused and continue once the flv movie has stopped.Code:flv1.netStream.onStatus = function(i){
if (i.code == 'NetStream.Play.Stop') _root.play();
}
stop();
Make it any size you want. 320*240 will work with the "skin" that I made. You can also remove any buttons or the like. Also wilbert has a good idea pausing the main timeline. He was also the one that showed how to use the flv in koolmoves in the beginning.Quote:
Originally Posted by Galactic Zero
w.brants, when I add an extra frame, then add the script into the scripts part of that frame, the movie flashes, then goes blank.. I'm doing something wrong but not sure what.. I'm attaching a ss of what I have so far. http://www.galacticzero.net/nof10/kmflv.gif
As you can see I have btn1, flv1 and I added a second frame, then went to edit frame actions/sounds and in the actions section I added your code. When I play the movie, it flashes, then goes blank. Here is the flv file: http://www.galacticzero.net/nof10/LibertyMTGUS.flv
Thanks.
Franklyn
As far as I can see your btn1 and flv1 objects only exist in the first frame.
They should also exist in the second frame (the frame you attached the script to).
Using a portion of Wilberts code, does this do what you want?
Preview link edited out. Trying to save band now that he is all set
Disregard, I thought you wanted to sequentially load. Should read first :)
Yes Chris, that is what I'm trying to accomplish. I'm going to embed this at 640x500 so that the skip button shows up at the bottom, it is already configured to switch to the main page.
Err.. ok not quite.. but that is the idea, I want the movie to play, then once it is finished to change to a new web page.
How do I do that?
Thanks
Franklyn
w.brants ok I copied both the btn and flv to the second frame, added the code to the second frame .flv object, now it plays and loops.. not quite what I'm after. Do I put the code there or on the frame at the bottom under the .flv?
Mine doesn't use a button. It uses a variation of Wilberts code to advance one frame without need for one. A skip button would simply need a gotoAndPlay to hit a frame or a getURL to skip to another external page.
Want me to show a test sending it to a completely different external page automatically or just another frame in the same movie? I'm confused on what you are sending to on completion.
I want to send to a new URL. So, visitor comes to www.xyz.com/index.html and see's the movie. They have the option on that page to skip the movie (text button with mouse release command to send user to www.xyz.com/html/main.html) or watch the movie to completion and then be directed automatically to www.xyz.com/html/main.html.
Does that make sense?
Mind you, this could send it anywhere, even a html or php or any kind of valid webpage anywhere, even in the same domain. I just sent it here for example. This would force the movie on users (which sometimes is wanted for ads) if a button is offered to skip you can expect it will be used (I can add though).
Again, thank Wilbert for all of this. That is a sweet couple of lines on his part :)
Preview link edited out. Trying to save band now that he is all set
Here is what I have so far:
http://www.galacticzero.net/flvswf/liberty.html
To this I need to add a preloader and at the finish I need to have it redirect.
OK...hit it again. It should be what you want.
Preview link edited out. Trying to save band now that he is all set
I always leave frame one open so you will be able to use a KM preloader or whatever. :)
BINGO!!
Now, How do I do that?
Thanks.