Hi

"playing" is a read-only property of MediaPlayback component. You can use,
MediaPlayback's play(..), pause() and stop() methods control the playback.

I guess, when you bring another component, you can either pause the playback
or stop the playback, all depends on your requirement.


I also notice, you are using id similar to MediaPlayback, choose a different
id for MediaPlayback component instance and refer the component using that
id. MediaPlayback is not a static class.

function triggerHideEffectMediaPlayback()
{
        MediaPlaybackInstance.visible = false;
        MediaPlaybackInstance.pause();
        //MediaPlaybackInstance.stop();
}

Look at following link for MediaPlayback API:
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/MediaPlayback.h
tml



Does that help..

-abdul

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of cnewroth55
Sent: Friday, May 13, 2005 5:10 PM
To: [email protected]
Subject: [flexcoders] media control question

First what a great forum....now the question, I have a media control
to play my flv, but when i click on another 'button' to bring up a
different component in my app, the media controller continues to play
the flv file. I have tried in my AS code that controls my hide/show
functions and I get this error...
"there is no property with the name 'playing'. 

and file doesn't even compile and run...

Live docs say that 'playing' is indeed a property of MediaPlayback,
(http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/
wwhelp.htm?href=part2_de.htm)
so why if I try to set that property to 'false' so that when it gets
'hidden' doesn't it shut off? 
the AS code is: (MediaPlayback is the ID of the component)

function triggerHideEffectMediaPlayback()
{
  // this triggers the hideEffect on MediaPlayback.
  MediaPlayback.visible = false;
  MediaPlayback.playing = false;
}
do I need to reference my controller via the componentID then the ID
of the controler in the component and then the property? ie
MediaPlayback.myMediaPlayBack.playing = 'false';





 
Yahoo! Groups Links



 




 
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/
 


Reply via email to