all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

preloader help


preloader help -]
7/5/2004 10:08:56 PM
flash actionscript:
hi. im making a pre loader bar i want the bar to look like its expanding
left.. 2 right this is my code

in the first frame
iStatus=0;
setProperty("pBar",_xscale,0);

the second frame
setProperty("pBar", _xscale, iBytes);
text=iBytes add "%";

third frame
if (iBytes<100) {

iBytes=iBytes+2;
gotoAndPlay(2);
} else {
text='COMPLETE'
gotoAndPlay(4);
}

Forth Frame
text='COMPLETE'
gotoAndPlay("start")


this code make the pre loader bar start from the middle and expand both sides
instead of from left to right...

help

Thx.
Re: preloader help Laiverd.COM
7/6/2004 12:41:42 AM
This has nothing to do with the code but with the location of the
registration point of the pBar symbol. Choose edit symbol; and place the
registration point on the left side using the align panel.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: preloader help Syndicate5
7/6/2004 12:47:33 AM
If your still having problems with your preloader let me know, what version of
Flash are yo uusing anyways? The code I use for a preloader is defintely more
simple than what you just showed us. Its very flexible also. Very Very simple!!
Re: preloader help -]
7/6/2004 2:44:25 AM
sorry for taking so long to reply. lol... i feel so stupid i thought i did
that but i guess not :S.

i use flash mx...iv used this code for a very long time..it seems simple to
me....if u can post the easier 1 for me 2 look at

Thx
AddThis Social Bookmark Button