A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 26

Thread: Flash intro page.

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    12

    Flash intro page.

    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

  2. #2
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    that is easy - just set number of frames to your movie's lenght (in secs).

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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?

  4. #4
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    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
    }
    Any programming language is at its best before it is implemented and used.

  5. #5
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    Thanks tmoore935, question, it says to set it at 320x240, can this be made larger?

  6. #6
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Quote Originally Posted by Galactic Zero
    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.
    Any programming language is at its best before it is implemented and used.

  7. #7
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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?

  8. #8
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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 frame
    Code:
    flv1.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.

  9. #9
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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.

    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

  10. #10
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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).

  11. #11
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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

  12. #12

  13. #13
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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

  14. #14
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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.

  15. #15
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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

  16. #16
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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.

  17. #17
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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?

  18. #18
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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?

  19. #19
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    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.

  20. #20
    Junior Member
    Join Date
    Dec 2006
    Posts
    12
    BINGO!!

    Now, How do I do that?


    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center