Link to home
Start Free TrialLog in
Avatar of imawake
imawake

asked on

MX Preloader problem, probably quick fix.

Hi,

I think I'm doing this right, but it doesn't work properly.

What's wrong?

Here's the file:
http://flashready.tripod.com/IMLoader2.zip

It looks exactly as it's supposed to in Fash.

I'd need it figured out today so it's worth 500 points.

I'll try my best to figure it out, but I don't really know what I'm doing. Thanks for any help.

Avatar of mrdilliard
mrdilliard

It looks like it's working to me, but you don't have anything in the movie to load. Stick a big picture in a frame after everything, preview, and hit Ctrl +Enter to show in streaming mode.
Avatar of imawake

ASKER

Hi,

Well, I put the image in there but once I put it online, it doesn't advance further than the initial frames and gets stuck on the "loading" clip. Looks fine in MX, right? I'm totally boggled as to why I doesn't quite work?

By the way, you recently helped my with a mailing list problem, just gave you another 500. I'm still tinkering with it. Thanks for the help.

Do you have any idea what the problem might be with this though?

Here's the new one:
http://flashready.tripod.com/IMLoader2.zip

Same name, new file.
Avatar of imawake

ASKER

OK, well it kind of works. Still, it doesn't work right. I'd like it to work exactly as it looks and works in Flash. In preview, the loader bar doesn't appear, and it's all messed up.
I think what you want is some thing like this..I made this and please check this link

http://www16.brinkster.com/photoflash/preloader.zip

if you get "HTTP1.1 STATUS 403 Remote Access to this object forbidden This file cannot be directly accessed from a remote site, but must be linked through the Brinkster Member's site. "

please copy the link and paste in the Browsers addressbar
Avatar of imawake

ASKER

Hi,

I can't open it, there were errors. The zip isn't a valid archive. Please try again.

Thanks
Avatar of imawake

ASKER

Hmm. Unexpected file format. I'm using Flash MX. Thanks for the help and persistence.

Maybe one more time?
Okay try the same link..
Avatar of imawake

ASKER

Okay, great, I'm able to open it. Let me tinker with it to see what I can do and I'll get back to you shortly.

Thanks very much for your time and help so far.
Hey there friend, do you still need help with it?
Avatar of imawake

ASKER

Hi,

I'm working on it. I appreciate all the help.

Take a look at my original:
http://flashready.tripod.com/IMLoader2.zip

and then the one that nishasrilankan kindly posted.

I'd like to figure out how to combine them. More specifically, use alpha fading like and a custom load bar like my original.

Is that difficult?

Alright dude,
here's the deal,
What you have:
////////////////////////////////////////////////////////////////
Frame 1
A movie clip named "loadBar" on Layer "loadBar"
an unnamed moviclip on layer "loadText"

... and this action script
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
      _root.gotoAndStop(3);
}
////////////////////////////////////////////////////////////////
Now, the MC named "loadBar" is one frame long, although you have the animation on the main timeline, I am afraid that's not gonna work, at least it will not perform the animation on the main timeline. Pay attention to this line of code: if (bytes_loaded == bytes_total) {_root.gotoAndStop(3);} This basically says that when you have downloaded the entire movie go to frame 3 and then stop.
So, from what I've read and seen, I understand that you want the bar to fade in at the time it stretches out to reach 100% right?
My suggestion is that you create a movie clip with the entire animation of the bar making it 100 frames long and change the code a little bit, more specific, the line "_root.loadBar._width = getPercent*100;" for "_root.loadBar.gotoAndStop(Math.round(getPercent*100));" This method will allow you to creat highly customized bars.
As for the text, just drop a Dynamic Text Field (with the text tool) and name it loadText, that should get you running. Also, please add ".text" to "_root.loadText = Math.round(getPercent*100)+"%";" so it is like "_root.loadText.text = Math.round(getPercent*100)+"%";"
Hope this doen't sound too complicated,
Let me know how're you doing,

Cërf.

PS: I have put together a small example of how it would look like and how to do what I explain, get it at http://es.geocities.com/flash. Look for IMLoader3.zip.
ASKER CERTIFIED SOLUTION
Avatar of Cerf
Cerf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of imawake

ASKER

I'm still interested.  
Hello imawake,
Did you have any luck with the preloader?
If you have any questions about the code or how it works let me know, I'm here to help.

Cërf.