« [Flash] Coauthor of an upcoming Flash book | Main | [Flash Platform] Delegates are not just for Events! »
July 12, 2005
[Flash Quirks] MediaDisplay Component
A designer bud of mine was having some issues with Macromedia’s MediaDisplay component. I tend to sway away from mm’s component set due to issues like this but after some mucking around I was able to resolve the issue.
The Scenario
In my bud’s Flash site he had a parent movieclip load another swf which contained the MediaDisplay component. The first couple of frames contained some transitional animation with the MediaDisplay component located on the final keyframe.
When clicking on the close button the close routine would unload the swf. This worked fine except for the fact that the audio would continue to play.
To try to fix this issue I added in a mediaPlayer.stop() command. This stopped the audio issue but when reloading the swf that contained the MediaDisplay component the video would not replay. I then tried adding mediaDisplay.play(0) and setting all the MediaDisplay properties dynamically rather then using the panel and this did not work either.
To finally resolve the issue I had to add the following to the close routine:
mediaDisplay.swapDepths(this.getNextHighestDepth());
mediaDisplay.removeMovieClip();
I tried searching the web but couldn’t find anything on a workaround (although I do remember reading something somewhere) so hopefully this will help save you sometime should you come across a similar issue.
-erik
Posted by erikbianchi at July 12, 2005 04:33 AM
Comments
Quick note: It could have something to do with dynamic FLVs and not the component. Haven't had time to test.
-erik
Posted by: erikbianchi at July 12, 2005 04:44 PM
Just to follow up it is an issue with flvs. I'm happy to report however that with the public beta of Flash Player 8 this issue has been resolved. =)
-erik
Posted by: erikbianchi at July 14, 2005 02:32 AM
i come from best search engine http://www.google.com
Posted by: search engine at August 18, 2005 05:41 PM