actionscript 3 - Get SWF HTML id attribute (from AS3) -
i need know coordinates of swf relative html page. there way that?
i planning on using externalinterface
call javascript code return coordinates, need know id
attribute of html element containing swf, how can id
attribute value as3?.
what didn't want pass value in flashvars
, reason being want library function can reuse easily.
i'm surprised found externalinterface
, , not externalinterface.objectid
, id of swf in page. that, can parent using js property .parentnode
please note objectid return different data depending of browser :
- ie :
<object>
id - chrome :
<embed>
id - firefox :
<embed>
id - opera :
<object>
name
Comments
Post a Comment