Hi,

I typically use creationPolicy="all" for my viewstack.

With your situation, you have options. If you want the mediaDisplay to load the content in the background, use creationPolicy="all" and have a viewHelper load the FLV (setMedia or contentPath) when the button to the view is clicked.

Or, you can use creationPolicy="none" and call the setMedia when the component (the view) is first created, and you can instantiate the view with createComponent.

Info: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00001145.htm

If you're are requesting remoting, you could set the MediaDisplay when you receive a result from the server in a result handler.

Dave

On 6/1/05, Krzysztof Szlapinski <[EMAIL PROTECTED]> wrote:
hi,
my application is basically a viewstack with many external componet
children:

  <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns:local="*"  >
   <mx:Panel id="pan"  width="900"  height="560"
horizontalAlign="center"  verticalAlign="middle"  >
    <mx:ViewStack id="vs"  widthFlex="0"  borderStyle="none"
width="{pan.width*0.95}"  height="{pan.height*0.85}"
creationPolicy="all"  >
    <local:test00027vb00000 id="vb0" vs="{vs}"/>
    <local:test00027vb00001 id="vb1" vs="{vs}"/>
    ....
    ....
    <local:test00027vb00016 id="vb16" vs="{vs}"/>
    <local:test00027vb00018 id="vb18" vs="{vs}"/>
    </mx:ViewStack>
    <mx:Button id="nextButton"  label="NEXT"  width="300"
click="Next();"  />
   </mx:Panel>
  </mx:Application>

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.
when I change the creation policy of the viewstack to auto the media
starts to play for a second when this component is being displayed
(initilized)

krzysiek





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