Flex 4 s:VideoPlayer

Hello.
I try to skin VideoPlayer
http://blog.flexexamples.com/2009/05/16/removing-the-drop-shadow-from-the-spark-videoplaye r-control-in-flex-gumbo/
But I have error that
it couldnt found
<s:VideoPlayerVolumeBar
<s:VideoPlayerScrubBar
<s:VideoElement
I use a night build and try also on stable, but have the same error.
plz help.

Hi,
On build 11020, this works, what build are you using ?
<s:List x="127" y="138" borderVisible="false"></s:List>
David.

Similar Messages

  • OSMF  Flex 4 VideoPlayer sound problem

    Hi,
    It seems that there is a problem with sound in the Spark VideoPlayer in video that's been encoded in H.264.
    If I set 'autoPlay' to 'true' or start playing from the very beginning of the clip, everything works fine.
    But if I set 'autoPlay' to 'false' and start the video not from the beginning, i.e. click somewhere in the seekBar, video is playing, but there is no sound. Once I jump back to the very beginning of the clip the sound appears, and from that point I can play the clip from any section and sound is there.
    Once I reload the video, the story is repeated.
    This happens ONLY with H.264 files and does NOT happen with flv files.
    Also, I don't believe that this problem existed back in the beta version of Flex 4 (previous version of FlashPlayer 10.x.xx.xx), even after the VideoPlayer became OSMF based.
    FTQuest

    Good evening Brian,
    After installing the latest Flash Player from the Adobe labs and switching to the latest nightly build of Flex SDK the sound problem is gone.
    But I've run into another one: I make a simple OSMF player in Flash CS5 and it works fine within the Flash and also when I open the resulting SWF in stand alone Flash Player.
    Yet, when I try to open the swf from within the Flex 4 application, using mx:SWFLoader I get the following error: VerifyError: Error #1053: Illegal override of synthesizer in org.osmf.layout.LayoutMetadata.
    Any advice on that?
    Thanks,
    FTQuest
    P.S. Also, for some reasons setting the 'autoPlay' on MediaPlayer to 'false' doesn't prevent the video from instant playing.

  • Flex 4 VideoPlayer captioning and horizontal VolumeBar?

    I need to make a horizontal VolumeBar that looks like bars or just a rectangle and clicking on it would cover that rectangle with another rectangle to display the total volume, is that possible to make with the horizontal slider, or maybe it requires custom coding.. what do you think ?
    I can't find video captioning in flex 4, but there is one in Flash CS5 for example, so does anyone know if there will be one in flex 4 or one should use the flash component instead, or build a custom caption component in flex 4?

    Not sure if you are watching the JIRA bug, but I posted an update:
    From the Open Source Media Framework (OSMF) team:  "The version of OSMF that shipped with Flex does not have DVRCast support. I'm not sure what will happen if you try to connect to DVRCast without such support, but it wouldn't surprise me if the end result is what the forum user is seeing.  To use DVRCast with OSMF, they would need to get the latest OSMF release (in which DVRCast is fully supported)."  You can find more info about OSMF from http://opensource.adobe.com/wiki/display/osmf/Open+Source+Media+Framework  Peter
    So it looks like DVRCast support isnt fully implemented in Flex 4.0, but it is something we're definitely considering for a future Flex SDK release.
    Peter

  • [svn:osmf:] 15867: asdocs: Update to accomodate generating OSMF for Flex 4. 0 asdocs from OSMF 1.0 source with as few changes as possible.

    Revision: 15867
    Revision: 15867
    Author:   [email protected]
    Date:     2010-05-02 19:36:51 -0700 (Sun, 02 May 2010)
    Log Message:
    asdocs: Update to accomodate generating OSMF for Flex 4.0 asdocs from OSMF 1.0 source with as few changes as possible.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/display/ScaleMode.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

  • VideoPlayer, FMS, and application instances

    I am trying to playback recorded streams from a Flash Media Interactive Server using the VideoPlayer component in Flex  4/Flash Builder 4.
    If the stream is located in the <serverpath>/streams/vod/_definst_ directory then I can get to it by setting the 'source' parameter of the VideoPlayer to "<server>/vod/streamname" assuming streamname is an .flv file.  If the stream is located in an application directory (e.g. 'app1') in the _definst_ directory (i.e. <serverpath>/app1/streams/_definst_), then I can successfully play it back by setting the 'source' parameter to "<server>/app1/streamname".
    What I can't get to work is when I have a stream recorded to an instance within an application directory.  So if the application is "app1' and the instance name is "inst1" it would be literally located in <serverpath>/app1/streams/inst1 directory.  Setting the source parameter to this "<server>/app1/inst1/streamname" does not work.  It seams to be ignoring the 'inst1' part of the path because the server side log shows '_definst_' as the instance name being run.
    I know this is in part a Flash Media Server question, but manually writing a video player works.  I would just like to get the Flex 4 VideoPlayer component to play the video.
    Thanks for any help.

    I have the same problem, but it seems that Adobe simply ignores the existence of it.

  • FMS 3.5.3 and FMS 4.0 support in VideoPlayer?

    As of FMS 3.5.3 there are some really snazzy seeking/stream switching features that are unavailable using Flex's VideoPlayer or VideoDisplay.  Currently I've had to write a custom video player nearly from scratch, using the osmf MediaPlayer as a base.  Are there any plans to add support for some of these features in future versions of Flex?  Should I post this as a feature request in Adobe's Jira?

    Bury it a couple of folders down in Applications or simply archive (zip) it.
    Peter
    btw You seriously need to update iWork '09 to v4.3

  • HTTP dynamic streaming without FMS ?

    Hi,
    is it possible to use HTTP Streaming without a Flash Media Server ?
    Cheers
    Marc

    OK , I did it !
    I event get the audio playing with the flex spark videoplayer component.
    When I try it the following it is not working :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                      creationComplete="SuperSimpleFLVPlayer()"
                      >
         <fx:Script>
              <![CDATA[
                   import flash.display.Sprite;
                   import flash.media.Video;
                   import flash.net.NetConnection;
                   import flash.net.NetStream;
                   import mx.events.FlexEvent;
                   private var nc:NetConnection;
                   private var ns:NetStream;
                   //private var vid:Video;
                   private var client:Object;
                   public function SuperSimpleFLVPlayer ():void
                        // Initialize net stream
                        nc = new NetConnection();
                        nc.connect (null); // Not using a media server.
                        ns = new NetStream(nc);
                        client = new Object();
                        ns.client = client;
                        client.onMetaData = onMetaData_handler;
                        client.onCuePoint = onCuePoint_handler
                        // Play video
                        //vid.attachNetStream ( ns );September Drive by Lightrocker_1.flv
                        ns.play ( 'http://xx.xx.xx.xx/vod/September_Drive_by_Lightrocker_1/September_Drive_by_Lightrocker_1.f4m' );
                        //ns.seek( 555.664 );
                   //MetaData
                   private function onMetaData_handler ( mdata:Object ):void {
                        trace (mdata.duration);
                   private function onCuePoint_handler( item:Object ):void {
                        trace("cuePoint");
                        trace(item.name + "\t" + item.time);
              ]]>
         </fx:Script>
    </s:Application>

  • PB Displacement filter really slow with big images

    hello;
         I am trying to make a Pixel bender displacement filter that will handle displacements bigger than 128 pixels, for flash. Right now flash only uses one 8 bit color channel to represent a displacement,  which can not be bigger than 128 pixels. I am trying to make a pixel bender kernel that will take 3 color channels( 24 bit) as a displacement, which should be able to handle displacements as big as 8388608. That is obviously bigger than I need.
         The problem i am finding is that when the image or the displacement maps are too big it runs really slow. With images the size 3072x768,  it runs at 3 frames per second on an intel based mac.
         The question is , does anybody know how to optimise this code?
    the code:
    <languageVersion : 1.0;>
    kernel DisplacementMap
    <
    namespace : "dood";
    vendor : "m0ose";
    version : 1;
    description : "Displacement by bitmap map 16 bit. X and Y are seperate bitmaps  ";
    >
    parameter   float       scale
        <
            minValue        : -10.0;
            maxValue        :  10.0;
            defaultValue    :  1.0;
        >;
    parameter float offsetX
        <
            minValue        : -1000.0;
            maxValue        :  1000.0;
            defaultValue    : 0.0;
        >;
    parameter float offsetY
        <
                minValue        : -1000.0;
            maxValue        :  1000.0;
            defaultValue    : 0.0;
        >;
    parameter float zoom
        <
                minValue        : 0.1;
            maxValue        :  10.0;
            defaultValue    : 1.0;
        >;
    input image4 src;
    input image4 mapX;
    input image4 mapY;
    output pixel4 dst;
    void evaluatePixel()
        float2 pos = outCoord();
        float4 amountX = sampleLinear(mapX , pos);
        float4 amountY = sampleLinear(mapY , pos);
        float x = (amountX.b * 256.0 - 128.0) ; //red
        x = x + (amountX.g * 256.0 - 128.0) * 128.0;//alpha
        x = x * scale;
        x = x + pos.x;
        x = x + offsetX ;
        x = x / zoom;
        float y =  (amountY.b * 256.0 - 128.0) ;
        y = y + (amountY.g * 256.0 - 128.0) * 128.0;
        y = y * scale;
        y = y + pos.y;
        y = y + offsetY ;
        y = y / zoom;
        float2 displacedPos = float2( x , y );
        dst = sampleLinear(src, displacedPos);
    thanx

    I am adding a shader to the filter attribute of a Flex Video Player
    code: something like this
    [Embed(source="displ24test.pbj" , mimeType="application/octet-stream")]
    protected var displacer:Class;
    var shader:Shader;
    public function init():void
    shader = new Shader( new displacer() );
    shader.data.src.input = src;
    shader.data.mapX.input = mapX;
    shader.data.mapY.input = mapY;
    shader.data.scale.value = [ scale ];
    shader.data.offsetX.value = [ offsetX ];
    shader.data.offsetY.value = [ offsetY ];
    shader.data.zoom.value = [ zoom];
    _mov.filters = [ new ShaderFilter( shader) ];
    then in flex:
    <s:VideoPlayer x="10" y="10" source="df_retro5_1k_sound.mov"  id="_mov"  autoPlay="true"/>

  • [svn:osmf:] 18007: 1. Remove two unused message code from MediaErrorCodes. as

    Revision: 18007
    Revision: 18007
    Author:   [email protected]
    Date:     2010-10-04 14:29:48 -0700 (Mon, 04 Oct 2010)
    Log Message:
    1. Remove two unused message code from MediaErrorCodes.as
    2. Fix bug FM-1041, extend timeout from 15 seconds to 60 seconds for multicast.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1041
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/F4MLoader.as
        osmf/trunk/framework/OSMF/org/osmf/events/MediaErrorCodes.as
        osmf/trunk/framework/OSMF/org/osmf/net/MulticastNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetConnectionFactory.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetNegotiator.as
        osmf/trunk/framework/OSMF/org/osmf/utils/OSMFStrings.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

  • [svn:osmf:] 10104: Integrate VAST code into the new VAST library project.

    Revision: 10104
    Author:   [email protected]
    Date:     2009-09-09 16:55:16 -0700 (Wed, 09 Sep 2009)
    Log Message:
    Integrate VAST code into the new VAST library project.
    Modified Paths:
        osmf/branches/briggs-prototype/libs/VAST/.flexLibProperties
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTMediaGenerato r.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/dom/MASTDocume ntProcessor.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTLoad er.as
    Added Paths:
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/loader/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/loader/VASTLoadedContex t.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/loader/VASTLoader.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/DefaultVASTMediaF ileResolver.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/IVASTMediaFileRes olver.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAd.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAdBase.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAdInline.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAdWrapper.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTCompanionAd.a s
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTMediaFile.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTNonLinearAd.a s
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTTrackingEvent .as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTUrl.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTVideo.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTVideoClick.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/parser/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/parser/VASTParser.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

  • Flex 4.5.1 Setting VideoPlayer source to null when it is already null results in a runtime error

    I moved my project from Flex 4.1 to Flex 4.5.1 and I noticed that setting VideoPlayer source to null when it is already null results in a runtime error. The same thing applies to the case where you specified as a source url some invalid location (no video found there) and then you try to set the source to null.
    Here is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at spark.components::VideoDisplay/cleanUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src \spark\components\VideoDisplay.as:1956]
        at spark.components::VideoDisplay/setUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\VideoDisplay.as:1609]
        at spark.components::VideoDisplay/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoDisplay.as:1073 ]
        at spark.components::VideoPlayer/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoPlayer.as:1362]
    The problem is that in the VideoDisplay cleanUpSource function, in some of the cases there properties on the videoObject are modified like this:
    videoPlayer.displayObject.visible = true;
    without checking if displayObject is null which is done in the rest of the videoDisplay functions.
    So when it reaches this line: videoPlayer.displayObject.visible = true; it results in a runtime error.
    Is this supposed to work this way now ? I didn't have this problem on Flex 4.1. Not sure if it is a bug, but if it is please report it, I don't have the time right now to be checking in on this.
    I fixed it by checking if the source is set, of course... (that won't help me in cases where I provide a wrong or missing video url by mistake.. so it is important to be fixed!)
    F

    Hi
    I found the same error displaying video on flex !
    in my simple code, i have :
    videoInfoDataVideo.source = videoName;
    the full error is :
    TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
              at spark.components::VideoDisplay/cleanUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src \spark\components\VideoDisplay.as:1956]
              at spark.components::VideoDisplay/setUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\VideoDisplay.as:1609]
              at spark.components::VideoDisplay/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoDisplay.as:1073 ]
              at spark.components::VideoPlayer/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoPlayer.as:1362]
              at Function/item/private:updateVideo/anonymous/resultGetVideo()[C:\Users\randev\Adobe Flash Builder 4.5\visurbaCMS\src\item.mxml:800]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:993]
              at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318]
              at mx.rpc::Responder/result()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:5 6]
              at mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:84]
              at DirectHTTPMessageResponder/completeHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:451]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    did you solve the problem or someone else?
    Thanks

  • VideoPlayer on flex 4.5

    I see that VideoPlayer and VideoDisplay flex components are discouraged to be used in the mobile device.
    I tested them and they don't seem to work on the adl (emulator).
    What is the alternative to use? Handcode streaming via netstream classes?
    Having an option to watch flash videos will be the biggest USP for air apps on mobile.

    There is no straight forward way of doing this as each ViewNavigator owns its own ActionBar.  You can use default properties on ViewNavigator to somewhat immitate this like so:
    <s:TabbedViewNavigatorApplication>
         <s:ViewNavigator label="Tab 1">
              <s:actionContent>
                   <MyComponent />
              </s:actionContent>
         </s:ViewNavigator>
         <s:ViewNavigator label="Tab 2">
              <s:actionContent>
                   <MyComponent />
              </s:actionContent>
         </s:ViewNavigator>
    </s:TabbedViewNavigatorApplication>
    This will result in a different component for each tab, but will prevent you from having to set the component on each individual View.  If you wanted to have one component visible for the entirety of the app, you could reskin the Application or ActionBar and add this component.
    Chiedo

  • How to Play all type  audio or video file in Flex 4.5 mobile

    Hi,
    I need audio player and video player include by Mobile app.
    <s:VideoPlayer - not mobile optimized.

    First of all, thanks for your reply.
    second, the way i found is this: http://www.sparkfun.com/products/10748   sparkfuns IOIO device. i'm planning to use its UART port for real time serial communication.
    yet the thing i couldnt understand is, how people never feel the need to use threading in Flex. I mean, HOW?

  • AudioElement causes an error in Flex 4

    Greetings,
    A few days ago Ryan and Brian helped me to patch the problem wtih importing video into Flex by using the 'loadForCompatibility' flag.
    This morning I ran into similar problem with audio: the SWF that uses simplest OSMF player plays fine in the Flash CS5 and in the standalone FlashPlayer. Once I import the SWF into Flex 4, even with the SWFLoader flag 'loadForCompatibility' set to 'true', I get this error:
    Here is the code for the simplest audio player class (by the way, for some unclear reasons getter/setter didn't work, so for the test case I had to set the variable as 'public' ):
    package
    import flash.display.Sprite;
    import org.osmf.media.MediaPlayer;
    import org.osmf.media.URLResource;
    import org.osmf.elements.AudioElement;
    public class LightAudioElement extends Sprite
    public var audioPlayer:MediaPlayer;
    public function LightAudioElement(aSource:String)
    var resource:URLResource = new URLResource(aSource);
    var audioElement:AudioElement = new AudioElement(resource);
    audioPlayer = new MediaPlayer();
    audioPlayer.media = audioElement;
    audioPlayer.autoRewind = true;
    And here is the code for the SWF:
    import LightAudioElement;
    import flash.events.MouseEvent;
    var snd:LightAudioElement = new LightAudioElement('assets/Test.mp3');
    snd.audioPlayer.autoPlay = false;
    //Standard Button component dragged on the stage for this quick test
    sndBtn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void
    if(snd.audioPlayer.playing)
    snd.audioPlayer.stop();
    else
    snd.audioPlayer.play();
    Once again, it works fine in both Flash CS5 and standalone FlashPlayer, but produces an error in Flex 4. I'm on OS X 10.6.3, the Flex SDK 4.0
    Thanks in advance for any suggestions,
    FTQuest

    Hi,
    First, and foremost. As Brian Riggs - who is ultimate authority on the subject - has said:
    I'd advise against replacing Flex's OSMF.swc with the latest one.  The reason is that the Flex SDK integrates with OSMF APIs from a much earlier sprint, and in the latest OSMF SWC many of these APIs don't exist anymore (due to renaming).
    And that's what I take seriously.
    Yet, out of curiosity, and for the sake of exploration I took my chances and did replace the version of the OSMF that is shipped with the Flex 4.0 release with the latest - 0.95.
    So far, all the functionality that I need - single player, multiple players, compiled in Flash, compiled in Flex, playing in synch, or alternating - seems working fine, including access to various events.
    Let me repeat: this is NOT a suggestion; just mere sharing of experience, and it comes at a cost - you should use your versions of video player, i.e. built in that latest version of OSMF. The Spark VideoPlayer (or VideoDisplay) give you compile time error I mentioned before - TimeDimension.
    Just FYI,
    FTQuest

Maybe you are looking for

  • Matrox Mini with Max

    Is anyone having problems with a Matrox Mini with Max with OSX10.8.1. mine just does not work.

  • Power consumption when PowerOFF: 24" iMac 2009

    I really wonder about my iMac 2009 Modell: when using sleep mode I got 11-12 watts power consumption. But when shutting down the iMac (Power Off in Apple Menu), the same iMac takes 10 watts Is this normal and how can I get sleep mode with far less or

  • Should project down payment value settle to AUC

    Dear all i have two questions when settle the project to AUC for example, the material cost for project A-01 in Dec is 2000 CNY and down payment for project A-01 in Dec is 1000CNY when i do the project settlement for Dec, the AUC value is 3000CNY tha

  • Remote Web Access (remote desktop gateway) issue with WHS2011

    I have been using Remote Web Access on my Windows Home Server 2011 for several years with no problems. Over the past several weeks, though, I have been receiving an error when I try to connect to a computer through WHS's Remote Web Access: "...the Re

  • Sending notifications to offline users when new emails arrive

    Hi, I need to develop and application that would send a notification via SMS to users whenever new mail arrives to their inboxes. One way to do that would be to periodically check each subscriber's account for new mail. Are there any other options? T