You're poking at internals here, so all bets are off.

Obviously, you are free to do so, because it's open source, but the sprite API is an internal API.

What's wrong with the <html> tag, which is the supported way to embed html in LZX? It would be better to improve that to meet your needs, if possible.

On 2009-08-20, at 16:33EDT, Raju Bitter wrote:

There as a question in the forum on how you can attach custom HTML code to a view, not using the HTML tag.
http://forum.openlaszlo.org/showthread.php?p=45147&posted=1#post45147

I suggested to do:

<canvas proxied="true">

        <view id="targetview" width="320" height="260" />
        
        <handler name="oninit">
                <![CDATA[
var player="<embed type='application/x-shockwave-flash' src='http://videodetective.net/flash/players/player4.3.132.swf?customerid=120000&publishedid=88 8439&playerid=69&pversion=4&playlistid=0&videokbra te=750&sub=&debug=' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='always' flashvars='allowFullScreen=true' allowfullscreen='true' height='260' width='320'></embed>";
                targetview.sprite.__LZdiv.innerHTML = player;
                Debug.write(targetview.sprite.__LZdiv);
                ]]>
        </handler>

</canvas>

Is that something which should be done? Seems to work...

- Raju

Reply via email to