preloader problem

This is a discussion on "preloader problem" within the Flash & Multimedia Forum section. This forum, and the thread "preloader problem are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 3rd, 2007, 19:32
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
preloader problem

hey.
i've made a preloader,
and i have a movie clip inside the movie clip that controls the preloader,
and i wanted the movie clip (loaderbar, instance = l_bar) to be as wide as the % loaded.
but it doesn't work.
i'm applying this AS to the movie clip:

Code: Select all
 
onClipEvent(load) {
 this._xscale = 10;
}
onClipEvent(enterFrame) {
kBytesLoaded = _parent.getBytesLoaded()/1024; 
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal - kBytesLoaded; 
percentloaded = 100 * kBytesLoaded / kBytesTotal; 
percentRemaining = 100 - percentloaded;
this._xscale = percentloaded;
}
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 3rd, 2007, 22:56
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preloader problem

Can you post it and I will take a look at it please. There might be an easier way to do this.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 3rd, 2007, 22:58
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: preloader problem

sure, i'll post the fla as an attachment.
gotta switch pcs a min
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 3rd, 2007, 23:00
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: preloader problem

changed my mind here it is
http://total-development.com/files/totaldev.fla
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 5th, 2007, 11:07
New Member
Join Date: Jul 2007
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preloader problem

hi try this. i have made a small change.Hope this will work.

onClipEvent(load) {
this._xscale = 10;
}
onClipEvent(enterFrame) {
kBytesLoaded = _parent.getBytesLoaded()/1024;
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentloaded = 100 * (kBytesLoaded / kBytesTotal);
percentRemaining = 100 - percentloaded;
this._xscale = percentloaded;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 5th, 2007, 15:20
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preloader problem

There are also slightly easier ways to do this...I'll post more a bit later.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 5th, 2007, 18:23
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: preloader problem

thanks to both.
gotta switch pcs to try it out
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
preloader

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PreLoader Problem monkeygraphik Flash & Multimedia Forum 3 Sep 19th, 2007 17:43
another preloader problem aaaaah ahwell Flash & Multimedia Forum 12 Sep 17th, 2007 18:10
flash preloader problem sathishbabu Flash & Multimedia Forum 1 Sep 5th, 2007 12:50
preloader problem!!! sipherlucian Starting Out 0 Apr 23rd, 2007 11:48
Help with preloader huminuh83 Flash & Multimedia Forum 4 Jan 6th, 2007 20:10


All times are GMT. The time now is 06:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42