| Ultrashock Forums
• [mini-tutorial] MovieClipLoader |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
| <12 | Page 2 of 2 |
2 Creative Assets
|
2004-12-18
#41 |
||
|
|
|
2004-12-23
#42 |
||
|
well, i am already miles ahead now... after a few hours of testing I built a pretty nice preloader utilizing the class.. so i don't need help with it anymore.
|
|
2 Creative Assets
|
2004-12-23
#43 |
||
|
Originally posted by macronesia The class? You mean you used the moviecliploader class? That's what I used and it works well.
well, i am already miles ahead now... after a few hours of testing I built a pretty nice preloader utilizing the class.. so i don't need help with it anymore.
|
|
|
2005-01-05
#44 |
||
|
problem with bytesTotal return
A related question on this. I have a loader bar working, and I also have a text member reading “X kb of XX kb loaded” and it all seems to work well. But then I noticed that the total load number is not coming up right. when I run “getBytesTotal” it is returning a value of 202kb, (206848 / 1024), however the exported swf file is only 149kb. The proportion to which the bytesTotal and the actual swf file is off is not consistent between different clips. Has anyone run into this, or know a way around it? -Thanks |
|
|
|
2005-01-16
#45 |
||
|
why don't work here?
class com.fi.framework.common.DataLoader { function DataLoader () { } static function loadMedia(mcTarget, strURL, objScope, fnOnLoaded, fnOnProgress) { var _loader:Object = new Object(); var _local3:MovieClipLoader = new MovieClipLoader (); //dont work trace(_local3); _loader.onLoadInit = function (mcTarget) { fnOnLoaded.apply(objScope, ["success", mcTarget]); }; _loader.onLoadError = function (mcTarget, strErrorCode) { trace("load error"); fnOnLoaded.apply(objScope, [strErrorCode, mcTarget]); }; _loader.onLoadProgress = function (mcTarget, numBytesLoaded, numBytesTotal) { trace("load progress"); fnOnProgress.apply(objScope, [numBytesLoaded, numBytesTotal, mcTarget]); }; _loader.onLoadStart=function(){ trace("load started"); } _loader.onEnterFrame=function(){ trace(2); } if ((fnOnLoaded != null) || (fnOnProgress != null)) { _local3.addListener(_loader); } _local3.loadClip(strURL, mcTarget); } static function loadXML(strURL, objScope, fnOnLoaded) { var _local2 = new XML (); _local2.ignoreWhite = true; _local2.onLoad = function (boolSuccess) { if (boolSuccess) { fnOnLoaded.apply(objScope, [this]); } }; _local2.load(strURL); } } |
|
|
|
2005-01-18
#46 |
||
|
@westbrent the difference is caused by compression. 202kb is the uncompressed size, and it has been reduced to 149kb with compression. When you uncheck "compress movie" in the Flash Export settings, the file will also make up 202 kb. |
|
|
|
2005-01-18
#47 |
||
|
A-dude, I can't seem to get your MCL code to work... One thing I noticed was that in the loadVar section your refrencing level5 when the preloader is being loaded into 50. anyone else have problems with this script? |
|
| Mime |
2005-01-30
#48 |
||
|
Thanks for your email reply digimat. I hope it worked out for you in the end.
|
|
|
|
2005-01-31
#49 |
||
|
is this also applicable to flash mx?
|
|
|
2005-01-31
#50 |
||
|
Originally posted by ice_boxmx No not at all... MovieClipLoader is a class that's new to 2004.
is this also applicable to flash mx? |
|
|
|
2005-02-06
#51 |
||
|
great stuff, man.. I always wondered how to make this process easier.. and now i can continue on my project.. thnx!
|
|
|
2005-02-21
#52 |
||
|
I tried to control an additional element with the MCL code but somehow it doesn't seem to work. Specifically I created a text field on the very first frame of the timeline to ensure that the screen has something on it before the preloder kicks in: ActionScript Code:
Then I'm using the simple version of the preloader: ActionScript Code:
Everything is working fine with a preloader but the text field stays put and does not disappear. What am I doing wrong? |
|
|
2005-03-05
#53 |
||
|
This is my first at this place but from what i've read ur pretty friendly ![]() I got this code from frozenmedia @ flashmove that should put me in position to load different swfs into the same holder by pushing different buttons and sharing the same animated preloader. . But the preloadbar is a no show. ActionScript Code:
I wonder what i'm missing.. The preloader_mc is in the libery with a linkage identifyer and are a 100 frame shapetween with a stop action in frame 1. thanks for any help and sorry for bothering u with newbie quistions like this
|
|
|
2005-03-06
#54 |
||
|
Tenant13, I have two thoughts on the matter and was hoping to get some input about them: First, I wondered if it is because the reference to level10 in the first frame of your movieClip (which is being born on level50)is a different level10 (perhaps a level10 from the level50 perspective) than referred to by the movieClip Loader's reference to level10 (which is on level0 of the _root timeline)? I am not sure, so I thought I would ask. Also, maybe this would work: in your first frame: ActionScript Code:
then in your preloader definition: ActionScript Code:
If these are stoopid responses, please forgive the post and be kind in correcting me. Let me know either way. Best wishes, jase |
|
|
2005-03-10
#55 |
||
|
I got it thanks to Netrox... Was missing a percentage decleration ops:thanks |
|
|
|
2005-05-23
#56 |
||
|
Don't worry bout it I found it refresh itself I forgot to clear the temp frist. Great tut helped me alot
|
|
|
|
2005-08-21
#57 |
||
|
Originally posted by laco Is this Bokel/Moock LoaderClass what was actually implemented in the current MovieClipLoader class? I see the last revision to the Bokel/Moock was 2 years ago. Just wondering how this holds up to the features in MCL if they're not the same. Sorry if this has been asked before? Just wondering if one is "better" than the other.i dont use MovieClipLoader, Bokel has writen Loader Class http://www.helpqlodhelp.com/stuff/lo...rclass1.02.zip It runs fine too under FP6 and has many cool features \m/ |
|
|
|
2005-09-07
#58 |
||
|
yeah.........thankx bluebox ive got my minisite finished....youve answer the q??? how great you are...waaaaaaa......i know now what i need for my next thing to do....weeeeeeeeee...^_^
|
|
|
|
2006-01-23
#59 |
||
|
I am using this preLoading sytem... I cannot get the preLoader.bar to move while it is loading... It sets the xScale to 0, and then waits while it loads, and then sets it right to 100 when its done.... Can someone help me? Here is the code. ActionScript Code:
ActionScript Code:
ActionScript Code:
ActionScript Code:
Whats going wrong? The clips are being loaded sequentially just fine, but I see no progress. |
|
17 Creative Assets
|
2006-01-23
#60 |
||
|
Try changing this line... ActionScript Code:
ActionScript Code:
|
|
|
|
2006-01-23
#61 |
||
|
Awesome. Works like a charm!
|
|
|
|
2006-02-03
#62 |
||
|
Could you post a sample .fla so some of us non coders can get visual feel for how this works and where its supposed to go etc.....so like exactly what I have bben searching for for the past 2 days...... Respectfully, Mike Jones |
|
|
|
2006-02-03
#63 |
||
|
Please somebody? I have no idea where to put the code or what to do to get the useage he described in the beginning to go?
|
|
2 Creative Assets
|
2006-02-13
#64 |
||
|
Originally posted by Mike Jones Mike, you forgot to post the FLA I made to help you out with on the forums for other people. Please somebody? I have no idea where to put the code or what to do to get the useage he described in the beginning to go? ![]() http://www.neverrain.net/misc/ineedadime.fla (File name especially for Mike Jones) Julian |
|
|
2006-03-13
#65 |
||
|
Last edited by moonstream : 2006-03-14 at 10:22.
/* Solved, pls delete this post Hi, first thanx for this tutoria, it's a great help. Anyhow, now that i've put it to use for the first time, i have some strange issues... First, the first MC in the que loads twice... Anyone encountered something similar? And second, for the last clip in que, the progres bar doesn't scale to full size, but stays around 70% or so... Anyone have ideas how to sort this? /*Edit : Sloved this: One more thing : How can i set the preloader to wait untill all the files are loaded, and start playing then?? */ Thanx in advance ![]() */ |
|
|
|
2006-03-25
#66 |
||
|
your site is very beautiful how you create the motion of the house ?????? |
|
|
|
2006-11-17
#67 |
||
|
i want to know,what is PEDALSPEED?
|
|
|
2006-11-17
#68 |
||
|
PEDALSPEED is a member on this forum, not software or anything like that.
|
|
|
|
2006-11-17
#69 |
||
|
ohh.i got that,thx~ ![]() very good tutorial~ i like it |
|
|
|
2007-03-15
#70 |
||
|
i hav asked already about using movieclip loader class and i wish i will find the answer here i'll read it all and also thx 4 u |
|
|
|
2007-05-25
#71 |
||
|
hi could somebody tell me how do i load a external swf file into flash using loadMovie so that we can put it in a specific place, if i dont have the .fla file? i Would appreciate some help plz submit a reply as soon as possible |
|
17 Creative Assets
|
2007-05-25
#72 |
||
|
Originally posted by skull_demo loadMovie will load an external SWF into a movie clip, so the SWF will appear where ever the movie clip is located.hi could somebody tell me how do i load a external swf file into flash using loadMovie so that we can put it in a specific place, if i dont have the .fla file? i Would appreciate some help plz submit a reply as soon as possible ActionScript Code:
|
|
|
2007-07-10
#73 |
||
|
@NewEzra: man, your code rocks, it saves me at least 2 days programming this thing. Thanks man. |
|
| <12 | Page 2 of 2 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


2 Creative Assets

ops:


Linear Mode
guys, bluebox you use que as an MCL class, you don't even have a listener... thus making the code invalid.
Get on AIM (nevrrain) and I'll give you my code to play mc(s) instead of text.
(nr)