Can you post a simple code of your app and your expected behavior so that we can take a look?
Thanks for the quick reply. I changed approach and I'm now trying a proxyelement instead, but I'm hitting a different issue.
I have several videos (A, B and C) and create a synchronisedParallelElement (copied the code straight from the examples)
I create a proxyElement and set the proxiedElement to the parallelElement.
Plays fine A, B and C arranged on page.
I put in some code which switches the proxiedElement so it proxies one of the videos (B) which was the source of the parallelElement.
Play fine. B replaces the A,B,C combination on screen and continues playing seamlessly.
I then try to set the proxiedElement back to the synchronisedParallelElement to play A,B,C on screen and I get an error as below:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at org.osmf.layout::LayoutTargetSprite/onRemoveChild()[C:\Dev\osmf\public\trunk\framework\OS MF\org\osmf\layout\LayoutTargetSprite.as:376]
If I let it continue, I can see that the video which i switched into the proxyElement (B) is missing from my parallelElement.
So I tried building a parallelElement out of proxyElements, having them proxy A,B,C (worked fine) and then switching the B proxy back before switching back to the parallelElement (phew!) This resulted in the error above.
So I'm wondering if there's a different approach? Maybe I should use two players and proxy into them - but the problem seems to be that when you use a video that's in a parallelElement it is taken out of the parallelElement, so I suspect I need to put it back somehow to get this work...
I'm wondering if this is expected behaviour and if anyone can think of a workaround...
Not sure if you'd still like to see code (if so I'll need to do some de-complication to get minimum conditions...)