;

PDA

Click to See Complete Forum and Search --> : Flash intro page.


Galactic Zero
12-15-2006, 12:49 PM
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

ant_Z
12-15-2006, 04:31 PM
that is easy - just set number of frames to your movie's lenght (in secs).

Galactic Zero
12-15-2006, 10:53 PM
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?

tmoore935
12-16-2006, 12:58 AM
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
}

Galactic Zero
12-16-2006, 01:19 PM
Thanks tmoore935, question, it says to set it at 320x240, can this be made larger?

Galactic Zero
12-16-2006, 01:21 PM
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?

w.brants
12-16-2006, 01:37 PM
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 frameflv1.netStream.onStatus = function(i){
if (i.code == 'NetStream.Play.Stop') _root.play();
}

stop();the main timeline will be paused and continue once the flv movie has stopped.

tmoore935
12-16-2006, 04:18 PM
Thanks tmoore935, question, it says to set it at 320x240, can this be made larger?

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.

Galactic Zero
12-22-2006, 12:55 AM
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

w.brants
12-22-2006, 01:12 AM
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).

Chris_Seahorn
12-22-2006, 01:19 AM
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

Chris_Seahorn
12-22-2006, 01:26 AM
Disregard, I thought you wanted to sequentially load. Should read first :)

Galactic Zero
12-22-2006, 01:30 AM
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

Galactic Zero
12-22-2006, 01:35 AM
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?

Chris_Seahorn
12-22-2006, 01:35 AM
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.

Galactic Zero
12-22-2006, 01:42 AM
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?

Chris_Seahorn
12-22-2006, 01:43 AM
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

Galactic Zero
12-22-2006, 01:50 AM
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.

Chris_Seahorn
12-22-2006, 01:51 AM
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. :)

Galactic Zero
12-22-2006, 01:52 AM
BINGO!!

Now, How do I do that?


Thanks.

Chris_Seahorn
12-22-2006, 01:55 AM
BINGO!!

Now, How do I do that?

Easy, you download my source and enjoy Wilberts magic :)

Galactic Zero
12-22-2006, 04:31 AM
Ok, I'm still missing a piece of this puzzle, besides being a neophyte with flash. I opened your fun file, copied the action script out, modified the url, opened my file, added a blank frame to the beginning and then pasted your script in the actions for the second frame. This all plays well in KM. When I export this to a SWF file and put it on my web page (import into NoF X) add the call to the script file in the head tag section <script src="http://testbed.galacticzero.net/assets/AC_RunActiveContent.js" type="text/javascript"></script>

I'll see the button but not the movie. What am I missing?

http://testbed.galacticzero.net/

w.brants
12-22-2006, 06:20 AM
Did you upload the flv movie also ?
It should be in the same directory as the swf file.

Galactic Zero
12-22-2006, 10:32 AM
nope, that was the problem, thanks for all your help.

Chris_Seahorn
12-22-2006, 11:23 AM
Since you are all set, I'm going to save my band and smoke that last preview and clear the attachment since I'm close to maxing my allowed space here. :thumbsup:

blanius
12-22-2006, 02:00 PM
Can I make a suggestion?

Intro's can get frustrating when someone has been to your site and sees the intro every time they come, Even with a skip intro button, it's as if a customer came to your brick and morter store and you stop them at the door to show them a catalog of brochure.

What I allways suggest with intros is to use a shared object to tell if a user has been to the site before and skip right past the intro if they have, until the intro changes then you reset the shared object.

small swf that checks shared object if not present then loadMovie the intro otherwise jump right to main page.