Flex Menu controlling a FLV Player

I was hoping someone could help me with some script. I'm sure
it is simple but I am extremely new at Flex. I want to have a menu
that when a button is clicked it will load an SWF/FLV into the
player.
Can anyone help me or pass me onto a forum/site that has
these sorts of tutorials.
Also does anyone know a site that has beginner tutorials on
Flex 2.0? They all seem very advanced to me.

Hi Chielosos,
In your code, after
import flash.utils.Timer;
You may need to add
NetConnection.defaultObjectEncoding =
flash.net.ObjectEncoding.AMF0;
SharedObject.defaultObjectEncoding =
flash.net.ObjectEncoding.AMF0;
Hope it works,
Jeffrey

Similar Messages

  • Flex flv player source variable question for an expert!

    I created a custom player using Flex 3.0 application. The flex app controls have the flv movie location hardcoded in. This player works fine, however, I would like to assign the flv that it plays using a variable. When I try to create a variable and then publish it bombs out. Can anyone tell me how to do this? Thanks.

    I created a custom player using Flex 3.0 application. The flex app controls have the flv movie location hardcoded in. This player works fine, however, I would like to assign the flv that it plays using a variable. When I try to create a variable and then publish it bombs out. Can anyone tell me how to do this? Thanks.

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • Has anyone actually been able to build a FLV player with Flex 2?

    I have been playing around with a FLV player in Flex 2, but I
    keep on running into one big problem: I never get a picture. Sound
    is not a problem, and all code seems to do exactly what it should.
    Except for the video showing up... I have tried loads of examples,
    read all of the docs I could get my hands on, but it all ends the
    same: no picture.
    The best solution (imho) I found is listed below, but still
    it does not do what it is supposed to do. Still, I only get audio.
    If there's anyone who's got a player working with the Video
    object using Flex 2 (SDK), I would *love* to hear your solution.
    Michiel.
    The source:
    package Assets {
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.media.Video;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextField;
    import flash.events.Event;
    import flash.events.TimerEvent;
    import flash.events.NetStatusEvent;
    import flash.utils.Timer;
    public class simpleFlv extends Sprite{
    private var _video:Video;
    private var _stream:NetStream;
    private var _playbackTime:TextField;
    private var _duration:uint;
    private var _timer:Timer;
    public function simpleFlv(){
    _duration = 0;
    _playbackTime = new TextField();
    _playbackTime.autoSize = TextFieldAutoSize.LEFT;
    _playbackTime.y = 20;
    _playbackTime.x = 20;
    _playbackTime.text = "Buffering …";
    _timer = new Timer(1000);
    _timer.addEventListener(TimerEvent.TIMER, onTimer);
    _timer.start();
    public function playMyFlv(flvUrl:String): void {
    _video = new Video();
    var connection:NetConnection = new NetConnection();
    connection.connect(null);
    _stream = new NetStream(connection);
    _stream.play(flvUrl);
    var Client:Object = new Object();
    Client.onMetaData = onMetaData;
    _stream.client = Client;
    _video.attachNetStream(_stream);
    _stream.addEventListener(NetStatusEvent.NET_STATUS,
    onNetStatus);
    addChild(_video);
    addChild(_playbackTime);
    private function onMetaData(data:Object): void {
    _duration = data.duration;
    private function onNetStatus(e:NetStatusEvent): void {
    _video.width = _video.videoWidth;
    _video.height = _video.videoHeight;
    private function onTimer(t:TimerEvent): void {
    if( _duration > 0 && _stream.time > 0 ){
    _playbackTime.text = Math.round(_stream.time) + " / " +
    Math.round(_duration);
    }

    Hi Chielosos,
    In your code, after
    import flash.utils.Timer;
    You may need to add
    NetConnection.defaultObjectEncoding =
    flash.net.ObjectEncoding.AMF0;
    SharedObject.defaultObjectEncoding =
    flash.net.ObjectEncoding.AMF0;
    Hope it works,
    Jeffrey

  • Control 2 flv movies with one button

    Hello,
    I am not even sure this can be done, but I am trying to
    control 2 flv's with one set of controls. The reason; We have
    footage of a talking head as one flv and footage of a microscope.
    Basically, the guy talks and moves the microscope around. These 2
    flv's have to be synched b/c the guy is talking and showing how
    things look under a microscope (the original footage was shot at
    the same time using 2 different methods - I imported both in
    Flash). So, my quandry is that I need one set of controls for both
    these flv's b/c if you pause the talking head, you also have to
    pause the scope. I tried to make both flv's a movie clip and
    control them that way, but got no where with that. I also tried to
    build my own skin with a Play and Pause Button for now, but only
    got as far as the code below. Basically, I can control one flv
    component, but not both at the same time. Any ideas would help - I
    am not sure if this is an AS issue, or a complete design issue, or
    if it can even be done at all - thanks much in advance...
    Jason

    I have discovered that what I wanted to do above is not possible in Livecycle. The only thing that works in the Livecycle script editor is the xfa.host.print from what I found.
    I was able to add a print button to a form that I scanned in that enabled me to print at 2 different printers at the same time. What I did was to first set up a mouse up action to execute a menu item (file>print) and then I added a second mouse up action to run the JavaScript below
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "\\\\DPDSVR\\Xerox WorkCentre 7435 PCL6";
    this.print(pp);
    This resulted in me being able to print to my default printer (HP) and the Xerox with just one click of the button.

  • Dynamic flv player with auto resize based on content

    Hi,
    I would like to build a .flv player which can accommodate 7
    different video sizes.
    This will probably be made using php and xml to dynamically
    control content.
    What I would like to know is if and how it is possible to
    have a holder.swf (just looks for variables to display the flv)
    that can automatically resize based on the flv dimensions. I dont
    want any kind of browserscreen resolution resizing of content, just
    an swf that will change its size from say 320x240 to 450x253
    depending on the dynamically loaded flv.

    The same thing has been reported for the T410. You can see how to fix it here:
    http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T410-unstable-screen-brightness/m-p/212492#...
    It appears to occur anytime you are on battery and the intel graphics power plan is set to anything other than 'maximum performance.' It's pretty subtle, but really annoying when it happens.

  • Custom FLV Player is Killing me. . .

    Hi All
    Right, where do i start - i have just spent the last 3
    months learning HTML and CSS for a website that i run. We are a
    video production company, and we need to have a bank of videos that
    will be updated on an almost weekly basis.
    I want to use some sort of flash video set up, where the main
    video plays and there is a slideshow of other videos below -
    wrapped up in a XML file.
    BUT - I can't find any up to date tutorials on making your
    own FLV player that is compatible with XML style lists. When i say
    make my own FLV player, i mean i have made a skin in PS and
    imported it to Flash. I can import a video that is Actionscript
    controlled - but from there, all the tutorials i come across seem
    to use old code that CS3 doesn't understand.
    This is a big question - but any ideas?
    Thanks
    JP

    thewakeplace.com wrote:
    > Hi All
    >
    > Right, where do i start - i have just spent the last 3
    months learning HTML
    > and CSS for a website that i run. We are a video
    production company, and we
    > need to have a bank of videos that will be updated on an
    almost weekly basis.
    > I want to use some sort of flash video set up, where the
    main video plays and
    > there is a slideshow of other videos below - wrapped up
    in a XML file.
    >
    > BUT - I can't find any up to date tutorials on making
    your own FLV player that
    > is compatible with XML style lists. When i say make my
    own FLV player, i mean i
    > have made a skin in PS and imported it to Flash. I can
    import a video that is
    > Actionscript controlled - but from there, all the
    tutorials i come across seem
    > to use old code that CS3 doesn't understand.
    >
    Just set the export to Flash 8 AS 2.0 version and you will be
    set. All the flv players
    will work for you.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • FLV Player rollOut

    Hey -
    Problem:
    I have an FLV player that takes up the whole stage area and selected 'autoHide' for the video control skin. Just wondering how to make the video controls hide when the cursor leaves the flash file area (when it has been embedded in an HTML file). The problem is that when the cursor leaves the flash area it doesn't register as a rollOut.
    Question:
    Is there a piece of code I'm missing that will register the rollOut when the flash is embedded in HTML?
    Thanks!

    the stage has a mouseleave event:
    stage.addEventListener(Event.MOUSE_LEAVE,f);
    function f(e:Event){
    //do whatever;

  • Flv player buffering issue

    Hi Everyone....!
                  In my flv player,all the functionalities are well.But,one thing is,when player buffering the video,it will automatically taggled into paused state.After buffered full video completely,then only start playing.I was given buffering time=0.1.
    My solution::::;
                            By using the setInterval,Every minutes monitoring the loadedBytes.If loaded bytes increased 300Kb(hardcode) compared to previous loaded bytes,I will play() the video manually.
    videoMc.addEventListener(VideoEvent.PAUSED_STATE_ENTERED,pausedEntered);
    function pausedEntered(Evt:VideoEvent):void {
    var setInter=setInterval(checkBytestLoaded,1000)
    function checkBytestLoaded():void {
    var cl:Number=videoMc.bytesLoaded/1000
      if (cl>(CurrLoading+300)) {
      videoMc.play();
      preLoadMc.visible=false;
      CurrLoading=videoMc.bytesLoaded/1000;
    /==================================
    It was Ok for buffering issues.But,i cannot differentiate for both(Manually pressed the pause button and automatically paused due to buffering issue).If manually pressed the pause button ,video did'nt play due to above coding.
    Now i m waiting for ur solution.Atleast any one!!!
    whether the  buffering issues or how to find manually pause button pressed "pause state".?.
    thanks in advance...............(sorry for poor English)

    Is that the net stream class using actionscript to assign the source?  or import fl.video.*?  All i did was import the video into flash and used action script to stop playing the video when a button is clicked.  As far as video control that is.  Is there an entire method of assigning the source of the video that i am unaware?  If so can you point me in the direction and I'll learn it.  Thanks again you have been very helpful.

  • Prevent sound of Flv player played after Go to another frame

    hi ...
    i have a project , i put all my project in 1 scene
    there are several frames that i put several part of my project like :  about us ,  my works , contact us
    also i have layer that i put some menu and script them to goto these pages ...
    in one my pages i have FLV must be played ...   now there is 2 problem
    1: i have background sound played from start of my project ,,,  as my flv player is autoplayed i want the background sound Stop at these Frame
    2:  my main probelm comes when i click in another button and Go to another page ( frame ) ...    in this case i can hear the sound of FLV !! and it`s not stop !!
    it will be much problem when i click on the button that goes to My Flv frame again !! so the sound of flv played double !!
    what can i do about this ??
    thanks

    Dear Kglad
    i found another threat that you answer this Question with this tip :
    use the removedfromstage event to stop your video.  ie, if flv is the instance name of your flvplayback component:
    flv.addEventListener(Event.REMOVED_FROM_STAGE,f);
    function f(e:Event):void{
    flv.stop();
    and it works well ....
    thanks so much

  • FLV Player with Dynamic Playlist

    So this is the first time I've experimented with a Dynamic
    Playlist in an FLV Player and I'm learning a lot. I found a
    tutorial on the Adobe site similar to what I'm looking to create.
    [URL="
    http://www.adobe.com/devnet/flash/articles/prog_download.html"
    one is for Progressive Download, which I want.[/URL]
    The same person also wrote one for [URL="
    http://www.adobe.com/devnet/flash/articles/video_player.html"
    I only mention that, because in the Streaming version, the videos
    have the standard Adobe video controls in them, and the Progressive
    tutorial does not. Usually I just create my own controls and link
    it to the video component that I'm using, but this tutorial is
    different than I normally roll.
    In the library there is an object type "Video", which I can't
    recall ever seeing before. If I delete it from the stage my videos
    won't play, so it's definitely important. It doesn't give
    parameters like the FLVPlayback does so I can't choose controls on
    it. I don't know if there is a way.
    Or maybe I need to build my own controls and find a way to
    tie them into what we have here, but that would be stretching the
    bounds of my knowledge, and I was hoping to have this up soon to
    send to a potential employer.
    What I'm looking for is some help to get pointed in the right
    direction to just add the controls to the player in that tutorial.
    If there is an "easy button" somewhere that I can push that'd be
    great. If I need to get dirty I'm willing to, but I'm a bit lost
    right now.
    Thanks in advance for any help!

    Search for JW player on Google and look at that.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Introducing the Ginger FLV Player, the most expansive media player available!

    Hi, my name is Tim Erickson.
    My company just launched the Ginger FLV Player and I would
    like you to take a look!
    Ginger is a full XML media player that allows for the most
    flexibility. All you need is a text editor to start editing the
    most expansive media player on the market. You can even integrate
    other languages such as PHP and JS to take total control of the
    application; and everything is parsed at runtime! Ginger really has
    no boundaries, and you can download the fully featured free version
    to take a trial run.
    If you have any more questions take a look around the site,
    watch the developer tutorial videos (we are working on more!), or
    shoot me an email at [email protected]
    http://www.spicyapp.com/
    Thanks!

    Hey Dave - I don't think you're missing anything, I get the same - Adobe Media Player is just a soon-to-be discontinued product. Check here for a couple more details.
    You could uninstall it I guess but it's only 3Mb, may as well leave it there.  Cheers - Chris

  • Flv player works locally but not when uploaded

    Another day, another issue...
    I have a flash movie that includes an flv player with previews and buttons. It reads the content from an xml file.
    It works without problem when I test it locally. Trouble is when I upload it, everything displays correctly but the flv movie file doesn't play. Here's the test link:
    http://www.swsoftware.com/ncjhs/assets/video/flvplayer.html
    XML file is http://www.swsoftware.com/NCJHS/Assets/Video/video.xml
    Flash file is http://www.swsoftware.com/ncjhs/assets/video/flvplayer.fla
    Anyone have any suggestions? I'm new to flash and this forum has been a tremendous help in resolving my (somewhat numerous) problems.
    Sam

    When I tried to view the posted url I got the following
    errors in the order I have listed them.
    CSInit is undefined Line 23
    Line 75 Object Expected
    Line 66 Object Expected
    My Platform.
    IE 7
    Windows XP Pro

  • "the activex control for flash player could not be registered" - Solutions Roundup

    I recently ran into this problem on my computer:
    http://at32.s3.amazonaws.com/flash_install_problems2.jpg
    I am a Flash developer (as in I write SWFs, I don't work for Adobe).  and when I updated IE to 10.2, "the activex control for flash player could not be registered".  Since I am a developer, I also have Firefox and Chrome installed, with Flash running without problems.  For a long time now, Internet Explorer has used a different version (ActiveX) to the other browsers, which use plugins.  I am a strong supporter of Flash, it's great to develop with and has a very wide feature set which is growing all the time, unlike fixed technologies/standards.  However, the weakest part is the install process - I don't understand why their is a Download Manager.  Google Chrome does it's best (so far) by managing the install/update process entirely in the background.  Anyway, it was in my best interest to try and get to the bottom of this.
    For the record, on the problem machine I have Windows 7 with IE8, but I have seen almost  identical symptoms with IE9, Windows XP SP3, as well as various  iterations of Flash Player (10.0, 10.1, 10.2 and even some final  editions of version 9).
    First I tried the standard support here:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Basically, doing the manual uninstall and manual install of the latest version (without using the download manager, or have IE open).  This did not work.  I also tried the Microsoft "subinacl" program, together with "reset_fp10.bat".  This didn't work either.  However, you should try all of these things first before progressing further.
    A quick note about people who had tried running the following at a command prompt: "secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose"
    I didn't do this, because on investigating further it didn't seem to work with Windows 7, only Windows XP, Windows 2000 or Windows 2003 - though there was a few threads where this had fixed the problem for some users.
    For my solution, it is recommended you use the manual uninstall / installers, so you should have them downloaded ready to use.
    I then heard about problems with permissions in the registry with the key: HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    So I opened regedit.exe (start - run - typed "regedit.exe"), navigated to the key and sure enough, I couldn't open it - permission denied - even though I had an administrator account.  If for some reason, you can access this key (and any subkeys), then it's likely the following fix will not resolve the problem.
    I then done further diagnosis, by using Process Monitor to try and install Flash Player, and I got the following:
    http://at32.s3.amazonaws.com/flash_install_problems.gif
    This shows all the access denied errors the Flash Player install was experiencing when trying to write to the registry key.  This confirmed that this was the problem.  I only stress this because several people said it was unwise to tinker with the registry.  Though this is common advice, this is the only known fix for this precise problem at present, since you need to manually adjust the permissions yourself.  I don't know who is at fault here - Microsoft or Adobe - but let's just get Flash fixed...
    The solution:
    Firstly, you may want to backup your registry, or the exact key.  I didn't do this so I've provided no instructions on how to, but it is recommended for the paranoid.  Also make sure as much software is closed down as possible - browsers, IM software, any junk in your system tray. As way of example, I happened to have "BBC iPlayer" installed and running in the background which uses Adobe AIR and Flash Player, so I exited that too.
    1) Open regedit (start - run - type "regedit.exe").  You may need to right click on it and select "Run As Administrator", but I didn't as my account was already administrator.
    2) Navigate to the key. HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    Click on it to confirm that you cannot access it (you will get an error) - if their are no problems - this probably isn't the cause of your issues.
    3) Right click on it and click Permissions, and ignore any message that may pop up.
    4) Under "Group or Usernames" click "Add".  Type your account name name, or "Administrators" in the box, then "Check Names" to format it correctly, then Ok.
    5) Now on the next screen click the checkbox to enable Full Control (this will also automatically enable "Read" permission too).
    6) Click Advanced, then the "Owner" tab at the top.  You will see that their is no "Current Owner".  This is what we will now fix.
    7) Click on your name to change the owner to (I went for Administrators).  Also enable the checkbox entitled "Replace Owner on subcontainers and objects".  Then click Ok.  You will get an error message, which you can try clicking Retry to, but hit Cancel - this is not a problem.
    8) Click Ok a couple of times and this part of your registry is now fixed.
    9) Now it's a simple case of running the manual Flash uninstall program, then finally the manual Flash installer (for Active X - not the Firefox/Chrome plugin versions).  To my surprise, after a couple of days looking into this - I finally had a solution and Flash in IE once more.  If you are using Firefox too you may find Flash is no longer installed their (the uninstaller removed it).  In this case just install via the Adobe site or try to watch a video on You Tube and you will be prompted or linked to the install.
    Hope this provides a good round up of the possible solutions to this problem.  Hopefully Microsoft or Adobe can find out what causes this issue in the first place so we don't have to go down this route for much longer.  Chrome's implementation of Flash shows how effortlessly things can work!

    They will stay on the screen.  However, Process Monitor is only intended for advanced users.  It is recommended that users try to navigate to the troublesome registry key using regedit, and see if they can access it or not without an error.  This is far easier than trying to use Process Monitor, which is very complicated.
    I used Process Monitor to confirm that it was just that key which was causing the problem, and not others.  Process Monitor is not to be confused with the new Resource Monitor which is accessible via Task Manager in Windows 7 (and possibly Vista).  If you must experiment (and Process Monitor is very useful for diagnosing many deep-level problems if you know what you're looking for) Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    It replaces the older Sysinternals "FileMon" and "RegMon".  For those interested in the technical side, I had to setup a number of filters to be able to get the results display as in the screenshot.  First of all to just show Registry events.  Then to just show events from the manual Flash activeX installer executable.  The I added a filter to show only non-successfull results.  And finally, for the purposes of the screenshot, added a filter to just show those with "Access Denied", since other non-critical errors are also picked up due to missing keys because installation has not yet been fully completed I guess.   When experimenting, most of these filters were applied using the "is not" boolean logic, which will make sense if you experiment with the program.
    Without adding any filters, it picks up so many events (hundreds per second) that it's otherwise unusable.  e.g. 40,000 events within the first few seconds of opening the program. For this reason, I recommend simply using Regedit to diagnose the problem with the particular Flash registry key.

  • My own built fullscreen mode flv player is not working in Mac OS

    I built a flv player, it is just a normal video player with a
    fullscreen mode.
    The video player is work fine in Window IE, FF, and Safari.
    But not not working in Mac OS X, leopard & tiger &
    May I know what might cause this problem?
    I m usng action script 3, flash cs3 & all my browsers
    already upgrade to latest version of Flash Player.
    Help!!!

    I am running Mac OS X 10.10.1 Yosemite and iPhoto Version 9.6 (910.29). Automatic updates in the Mac App Store is turned on for my iMac and it shows no updates available. I was told directly by Apple Support on the date that I wrote this article (Nov 8, 2014) that there were no Canon drivers and photo transfer software that worked with Yosemite. I was told by Canon that the workaround was to change the communication method from Normal to PTP on the camera, which did provide a solution. At that time I was running Mac OS X 10.10 (because the 10.10.1 update was not yet available) and the most up-to-date version of iPhoto for Mac OS X 10.10 that was available at that time, at least per the Mac App Store. I was told by Canon that the workaround was to change the communication method from Normal to PTP on the camera, which did provide a solution.
    With the Mac OS X 10.10.1 update if the camera is in PTP communications mode the thumbnails now appear in the Import screen in iPhoto almost immediately. If the camera is returned to Normal communications mode; however, it takes forever for the thumbnails to appear. I have been waiting 10 minutes and iPhoto has generated only 14 thumbnails. So it appears that there is still something not working properly between the original Canon EOS Digital Rebel and Mac OS X Yosemite 10.10.1 when the communications mode on the camera is set to Normal.

Maybe you are looking for