From: Michael P. <mp...@ph...> - 2001-03-02 04:17:54
|
why don't you pass the image source when you create the dynimage? myLayerPlayer = new DynImage(interface[0]) also, as a note to all who read this, could people please stop sending posts with no subject line. it is annoying when trying to follow threads and they all keep being placed with posts from months ago. Terry Valladon wrote: > > > 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() > myLayerPlayersetSize(32,32) > myLayerPlayermoveTo(242,162) > myLayerPlayersetZIndex(2) > myLayerPlayersetImage(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() > myLayerPlayersetSize(32,32) > myLayerPlayermoveTo(242,162) > myLayerPlayersetZIndex(2) > DynAPI.document.addChild (myLayerPlayer) > myLayerPlayersetImage(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. > > ********************************************************************** -- Michael Pemberton mp...@ph... ICQ: 12107010 |