Hi Manish,

I've seen Krzysztof's issue in our Flex-Flashcomm apps. The FLV plays before pausing when it's first loaded, even if the command is:

contentPath or setMedia
then....
myMediaDisplay.stop; or myMediaDisplay.pause

Our resolution is the same as you suggested. Load the content only when it's requested. I think what most people try to do is to expedite buffering on a non-flashcomm, non-progressive FLV by loading it in the background. My best suggestion to expedite the caching is to load the FLV into a non-visible MediaDisplay (maybe set the size to 0,0) or a non-visible MovieClip (a SWF accessed through contentPath and the loader Component). You can turn off the audio/not attach audio to eliminate that weird moment when the movie plays the first second or two and you hear static while it loads in the background.

viewHelper? For now, think of a function called within your MXML when the button to request that MXML is called.

Dave





On 6/1/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 6/1/05, Krzysztof Szlapinski <[EMAIL PROTECTED]> wrote:

> one of these comonents has a media display component and the problem is
> that the media starts to play for one second and then stops when the
> application is being initialized even when its autoplay property is set
> to false.

Can you confirm that the media actually plays for a second by checking
the value of the 'playheadTime' property?

It's odd.  One workaround is to set the 'contentPath' property only
when you want to play the media (just before calling the 'play'
method).



Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/







Yahoo! Groups Links

Reply via email to