silexlabs / Cocktail

An HTML/CSS rendering engine for the Haxe language
http://www.silexlabs.org/haxe/cocktail/
Other
192 stars 34 forks source link

object type="application/x-shockwave-flash" [exception] #FIXED #404

Open Espigah opened 10 years ago

Espigah commented 10 years ago

< object id="swfContainer" type="application/x-shockwave-flash" data="Untitled-1.swf" width="550" height="400"> </object

[Fault] exception, information=TypeError: Error #1034: Falha de coerção de tipo: não é possível converter cocktail.core.dom::Text@5907a19 em cocktail.core.html.HTMLElement.

Espigah commented 10 years ago

SWFPlugin::attach { containerGraphicContext = cast(graphicsContext.nativeLayer); } cause Error so ... I changed to this: try { containerGraphicContext = cast(graphicsContext.nativeLayer); } catch (err:Dynamic ) { containerGraphicContext = cast(graphicsContext.nativeLayer.platformLayer); }

ps.:I don't know what I'm doing, but it works =)

yanhick commented 10 years ago

I think this bug was fixed in the development version. Do you have the same bug when using the current code from the master branch ?

Espigah commented 10 years ago

I don't know I will test soon (I'm afraid to break my code= D)

Espigah commented 10 years ago

I tried and beautiful =)

fixed #solved