Actually, background is separate from resource.  Make sure you run 
view.makeContainerResource() before looking for __LZMovieclipRef and you 
should be golden...

-MAx

Sarah Allen wrote:
> So, I wanted to get at the movieClip of a view (prototyping something 
> before actually diving into the LFC), and I couldn't figure it out.  I 
> swear I've done this before.
> 
> Simple test case:
> <canvas>
>    <view id="v" oninit="Debug.write(this.__LZmovieClipRef)"/>
> </canvas>
> 
> shows in the debugger:
> WARNING: test.lzx:2: reference to undefined property '__LZmovieClipRef'
> «undefined»
> 
> Adding width, height and bgcolor to the view didn't help.  If I set 
> Debug.showInternalProperties = true, I see __LZbgRef:, but no 
> __LZmovieClipRef
> 
> What's up?
> 
> Thanks,
> Sarah
> 
> 
> 
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> 


-- 
Regards,
Max Carlson
OpenLaszlo.org
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to