From: Terry V. <tva...@ei...> - 2001-03-01 20:51:39
|
I have tried and tried, before I go crazy can someone confirm an error in DynImage that makes it so you cant setImage to a dynimage layer unless before issuing the create you set the image? For example: This works: =-=-=-=- SNIP =-=-=-=- DynAPI.include('dynapi.gui.dynimage.js'); //for images DynAPI.onLoad = function() { interface = new Array(1); //Interface Image Array interface[0] = DynImage.getImage('images/background.gif'); myLayerPlayer = new DynImage() myLayerPlayer.setSize(32,32) myLayerPlayer.moveTo(242,162) myLayerPlayer.setZIndex(2) myLayerPlayer.setImage(interface[0]) DynAPI.document.addChild (myLayerPlayer) =-=-=-=- SNIP =-=-=-=- when this doesn't =-=-=-=- SNIP =-=-=-=- DynAPI.onLoad = function() { interface = new Array(1); //Interface Image Array interface[0] = DynImage.getImage('images/background.gif'); myLayerPlayer = new DynImage() myLayerPlayer.setSize(32,32) myLayerPlayer.moveTo(242,162) myLayerPlayer.setZIndex(2) DynAPI.document.addChild (myLayerPlayer) myLayerPlayer.setImage(interface[0]) =-=-=-=- SNIP =-=-=-=- is anyone aware of this an a work around? Right now I am faking it with a 1x1 trans gif. Thank you Terry *********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This footnote also confirms that this email message has been swept for the presence of computer viruses. *********************************************************************** |