Peter_Chea
07-01-2003, 12:33 PM
Antun, I got a slow loading app(40 secs) that is using the canvas onpercentcreated event to display percentage loaded. The event seem only called for first half(20 secs) of the loading process. Is there an event I can use for the second half of the loading process? The link of the app is on the email I sent to you couple of days ago.
<view x="300" y="200" initstage="early" resource="images/loading_graphic.gif">
<dragpoint/>
<text x="197" y="110" width="40" fgcolor="#217FB8" bgcolor="white" fontsize="9" fontstyle="bold">
<method event="onpercentcreated" reference="canvas" args="p">
pp = Math.floor( 100*p );
debug.write("percentage: " + pp);
this.setText( pp + "% " );
</method>
</text>
<method event="oninit" reference="canvas">
this.deleteView();
</method>
</view>
<view x="300" y="200" initstage="early" resource="images/loading_graphic.gif">
<dragpoint/>
<text x="197" y="110" width="40" fgcolor="#217FB8" bgcolor="white" fontsize="9" fontstyle="bold">
<method event="onpercentcreated" reference="canvas" args="p">
pp = Math.floor( 100*p );
debug.write("percentage: " + pp);
this.setText( pp + "% " );
</method>
</text>
<method event="oninit" reference="canvas">
this.deleteView();
</method>
</view>