header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Mark
Points:0
Posts:0

9/17/2010 12:23:10 AM

Title: Video embed HTML in AIR, transparent bug?


Hi.

I made a chromeless AIR app in Flash Builder that contains an mx:HTML element that loads a local html file with a ustream embed. When I set 'transparent' to true to begin spicing up the design, the embed wouldn't load anymore!

Over the past 5 hours I've tested dozens of settings in combination with each other, Google'd myself to death and finally discovered that the problem is - wait for it - the freaking embed code.


Type A
<object width="640" height="200">
	<param name="flashvars" value="autoplay=true&brand=embed&cid=1524"/>
	<param name="allowfullscreen" value="true" />
	<param name="allowscriptaccess" value="always" />
	<param name="movie" value="http://www.ustream.tv/flash/live/1/1524" />
	<embed flashvars="autoplay=true&brand=embed&cid=1524" width="640" height="200" allowfullscreen="true" allowscriptaccess="always" src="http://www.ustream.tv/flash/live/1/1524?v3=1" type="application/x-shockwave-flash" />
</object>
Type B
<object width="640" height="200" data="http://cdn1.ustream.tv/swf/4/viewer.292.swf">
	<param name="wmode" value="opaque">
	<param name="flashvars" value="autoplay=true&brand=embed&cid=1524">
</object>
Type A is my own code that has always worked on the web. Type B is a stripped down version of the messy code ustream.tv uses themselves to embed. When transparent is false both players load, when it's set to true only type B loads. That's ridiculous. I guess I should be happy I finally found a way to fix my application, but I'm not because apparently AIR thinks my code is bad. What exactly is wrong with my embed code in the eyes of AIR?



1
Troy
Points: 820
Posts:0
9/19/2010 10:48:50 AM



mark I think its not a bug but this mode is not supported in html component in adobe air application . See the below line from adobe documents
"Setting a partial transparency (or opacity) value is not supported"

http://livedocs.adobe.com/flex/3/html/help.html?content=WorkingWithWindows_2.html

2
Mark
Points: 0
Posts:0
9/19/2010 3:34:33 PM



That article doesn't explain why a type B embed works and a type A does not. Also I'm not using partial transparency, just entirely transparent or opaque.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions