Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: Add buttons to .f4v encoded videos (AS3 proposed solution)

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Add buttons to .f4v encoded videos (AS3 proposed solution)
by demetri tashie on Apr 16, 2009 at 6:55:00 pm

as always, there are several ways to go about this. You could of course use CuePoints in your videos that would then trigger anything you want - the appearance of buttons, or whatever. you can search this forum for Cue Points and see how it is done. i have explained it several times.

another easier approach, whcih might or might not work for you would be to use a COMPLETE event of the VIDEO EVENT CLASS to have the end of the video either take you to a new frame where you can have different content( buttons for all your other video choices, etc) , or use it to load on the same frame an external SWF which had all your other buttons, or it could turn on the visibility of previously placed "hidden buttons" etc. i think you see where this is going. you can write the function to do just about anything. to use this class, you need to import the class. here is the complete code for importing the class, and adding a function. in this code example, the function takes you to a new frame....

import fl.video.VideoEvent;

flvPlayer.source="myInitialVideo.flv";

flvPlayer.addEventListener(VideoEvent.COMPLETE, myFunction);

function myFunction(evt:VideoEvent):void{
gotoAndStop(3);
}


of course you need to have an initial video player. see the Flash Tutorials here if you need help with that. they will explain how to add a skin also. i suggest Lee Brimelow's Flash Video Basics series, as well as Tony Ross's video tutorials

here is a quick example to see it in action( in this example, the function actually just turns on the visibility of the 2 buttons. also, the initial green button you see is on frame one, click it to get to frame 2 and view the video ( done to combine an example for the previous thread to yours)
ww.demetri-media.com/Sven/onCmplete.swf hope this makes sense !

let us know what you come up with, or if you need any further help.




Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:
  • Add buttons to .f4v encoded videos by Cole Perkins on Apr 16, 2009 at 5:00:06 pm
    • Re: Add buttons to .f4v encoded videos (AS3 proposed solution) by demetri tashie on Apr 16, 2009 at 6:55:00 pm




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]