PDA

View Full Version : onpercentcreated event


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>

antun
07-01-2003, 12:37 PM
I think what you're looking for is the ratio attribute of a Splash View. See this post:

http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=253&highlight=ratio

-Antun