<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi everybody.<BR><BR>Im having a problem with 
BitmapFileMaterial, although i may be using it wrong.<BR>my code is as 
follows</FONT></DIV><FONT face=Arial size=2><B><FONT color=#7f0055>
<P>Line 1: var</B></FONT> <FONT color=#00009b>bmpMaterial</FONT> 
:BitmapFileMaterial;<BR><FONT color=#00009b><STRONG><FONT color=#7f0055>Line 2: 
</FONT></STRONG>bmpMaterial</FONT> = <B><FONT color=#7f0055>new</B></FONT> 
BitmapFileMaterial(<FONT color=#00009b>asset</FONT>.<FONT 
color=#00009b>ThumbnailUrl</FONT>, <FONT color=#7f0055>false</FONT>);<BR><FONT 
color=#00009b><STRONG><FONT color=#7f0055>Line 3: 
</FONT></STRONG>bmpMaterial</FONT>.addEventListener(FileLoadEvent.<I><FONT 
color=#00009b>LOAD_COMPLETE</I></FONT>, onFileComplete, <FONT 
color=#7f0055>false</FONT>, 0, <FONT color=#7f0055>true</FONT>);</P>
<P>I create a plane and will eventually set the material of this plane to this 
bitmap material</P>
<P>Now&nbsp;if i wait until this material has <STRONG>fully</STRONG> 
<STRONG>loaded</STRONG> and then add a second plane with a new 
BitmapFileMaterial but using the&nbsp;<STRONG>same</STRONG> URL.</P>
<P>The BitmapFileMaterial recognises that this URL has already been loaded and 
fires the load complete event!</P>
<P>this all happens in the BitmapFileMaterial constructor (Line 2) and 
<STRONG>before</STRONG> i attach my event listener (Line 3). </P>
<P>therefore i never get the message that my URL has loaded</P>
<P>seeing as i need this message so i can hide the loading bar and attach the 
image properly this is not good.</P>
<P>Any ideas am i doing this wrong, how can i attach my event listener before 
the cached image load event fires!</P>
<P>At the moment i have disabled bitmap/url caching on the 
BitmapFileMaterial&nbsp;by removing references but its not the ideal 
solution.</P>
<P>any ideas would be great!!</P>
<P>Cheers, alan</FONT></P><p style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: x-small;">-- 
<br />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.
<br /><br />
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.
<br /><br />
Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.
<br /><br />
Yomego is an entertainment division of DA Group (UK) Limited a
company registered in Scotland with registration number SC121558
having its registered office at The Lighthouse, 70 Mitchell Street, Glasgow, G1 3LX.</p>
</BODY></HTML>