-
Senior Member
so i just want to know for future, what code should i put in this button so the grey box appears and loads the picture,
That would be the last part of my last post.
You can make a preloader in the external swf.....that would be easiest.
-
ohhh okay i see...but what if i am loading in external jpegs, not swf? all my artwork is on my ftp server as jpg files.
thanks!
~"Flash is soooooooooooo flashy!"
-
Senior Member
Its the same code for loading jpg's or swf.
-
oh i mean, how do i make a preloader on a jpg file? this is unclear to me. thanks!
~"Flash is soooooooooooo flashy!"
-
Senior Member
All preloaders has the same basic functions. It just the target that changes. I this case it is the container clip's byte status that should be evaluated. The code could be put in a frame loop or in a function or on the container clip itself. In the last case it can look something like this...
//ON the container clip
onClipEvent(load){
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_parent.loadBar._visible=0;
}
onClipEvent(enterFrame){
// LoadBar and Text things
if(_parent.status=="load"){
_parent.loadBar._visible=1;
_parent.loadBar._width = getPercent*100;
_parent.loadText = Math.round(getPercent*100)+"% Loaded";
// When the movie is loaded ( also check that something is IN the movieclip before continuing )
if (bytes_loaded >= bytes_total && bytes_total>500) {
_parent.loadBar._visible=0;
_parent.status="noload";
}
}
}
Then you would place the load bar ( named loadBar ) clip on the main timeline with a textfield and a textfield ( named loadText ) also on the main timeline
And the button that loads the movie you add this line...
status="load";
This is just from the top of my head but should work.
-
thanks, but at this point...
*sigh* i really appreciate all the help i've received on this topic so far, but still, no matter what i do, it's not working. i follow the instructions best i can and check everything, and i dunno whre i am going wrong. is anyone willing to take a lookat my flash file and help me out on this? seems to be the best solution at this point.
thanks!!! and sorry i am so confused at all this.
someone please help...
~"Flash is soooooooooooo flashy!"
-
Senior Member
Post the fla here in MX format.
-
file size too big =(
alright, thanks!
however, is it alright if i email it to you ina private message or something, or anyone else let me know because i just tried to attach the file and it turns out, it's too big for flash-kit. the file size is 638 KB. thanks!
~"Flash is soooooooooooo flashy!"
-
Senior Member
flashfiles
@
pellepiano.com
-
~"Flash is soooooooooooo flashy!"
-
Senior Member
I got a little confused over wher you load the jpg files, so I did a separate .fla with the things we talked about.
A button that loads a jpg image into a container clip. A grey movieclip that appears behind the image that you can click away anywhere. And a preloadder for the jpg images with a bar and percentage counter z ( these are in the grey mc ).
-
again, a big thank you for all your help! i'm still working everything out~if i get it to work, then great! however, if not, i will simply use a "get url" command for the buttons. (i load the jpegs from the buttons in each movie clip. for example, in the movie clip, colors_mc-you see all those black buttons there? i load the jpegs from there. i think that is why it is not working for me. my buttons are in a movie clip, not just on the stage as soon as the movie starts like it was in your polaroid flash file you just sent me.)
nice site you have by the way!
~peace
~"Flash is soooooooooooo flashy!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|