Loading in each mclip one at a time

Hi,
I have a site that in which each section is in it's own
mclip. I simply want each mclip to load in when it is navigated to
rather than the whole swf loading in at the start.
I have the following actionscript to make the whole swf load
in but need to modify it to cater for each individual mclip:
onClipEvent (load) {
total = _root.getBytesTotal();
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
How would I modify this script and where would I place it,
(ie.on or inside each mclip)
Thanks

Hello Dilroy,
getBytesTotal just goes off of file size, so with the script
you have below,
it will always go of the entire file size of the swf.
The way I like to do this is to use separate swfs rather than
separate movie
clips. Then I use loadMovie to load the swfs onto the stage.
It makes your
main swf way smaller, and makes managing and editing specific
movies down
the road a little easier too.
Then you could use your preloader script below on each
individual swf if
needed.
Jesse H.
Adobe Community Expert
My site:
http://www.jharding.com
Free Blog Radio:
http://www.tornadostream.com
> Hi,
> I have a site that in which each section is in it's own
mclip. I
> simply want
> each mclip to load in when it is navigated to rather
than the whole
> swf loading
> in at the start.
>
> I have the following actionscript to make the whole swf
load in but
> need to modify it to cater for each individual mclip:
>
> onClipEvent (load) {
> total = _root.getBytesTotal();
> }
> onClipEvent (enterFrame) {
> loaded = _root.getBytesLoaded();
> percent = int(loaded/total*100);
> text = percent+"%";
> gotoAndStop(percent);
> if (loaded == total) {
> _root.gotoAndPlay(2);
> }
> }
> How would I modify this script and where would I place
it, (ie.on or
> inside each mclip)
>
> Thanks
>

Similar Messages

  • Whenever I launch a new Google window, Google immediately re-opens all other windows I happen to have open but minimized. I then have to either close or re-minimize each window, one at a time. What a pain!!

    Whenever I launch a new Google window, Google immediately re-opens all other windows I happen to have open but minimized. I then have to either close or re-minimize each window, one at a time. What a pain!!

    Just to address the last point: check your History menu to see whether you have the Restore Previous Session option and use that if you can. If that is grayed out or doesn't restore everything, check the Recently Closed Windows and Recently Closed Tabs lists for other pages.
    The unwanted window may be generated by an add-on. Try disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Here are some other things to check:
    (1) user.js file that changes Firefox startup behavior and overrides your preferences. This article describes how to track that down and delete it if you have one: [[How to fix preferences that won't save]].
    (2) Possible hijacked shortcut. Check the "target" of the desktop icon you use to start Firefox to see whether it lists the unwanted page. To do that:
    right-click the icon > Properties > Shortcut tab
    For 64-bit Windows 7, the Target should be no more and no less than this:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    (3) Possible undisclosed bundle items. If you have installed any free software recently, check your Windows Control Panel, Uninstall a program for surprises. If you click the "Installed on" column head to group by date, it is easier to spot bundled junk. Remove everything suspicious or unrecognized.
    (4) Supplemental clean up scans. Our support article lists tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that cures it.

  • Can not find file must locate each song one at a time need to restore my whole library

    can not find file, must locate each song one at a time need to restore my whole library

    Hello BadSteve,
    It sounds like iTunes seems to have lost track of all your music and you must locate each file individually. I would recommend at this point that you check for 3rd party plugins to see if there are any causing an issue:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/ts3430
    If the issue persists after removing the plugins, I would next try recreating your iTunes library:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • Both of my kids have ipod touch 4.  On 1 we can edit the camera roll and delete muptiple pics at once.  On the other, we can't edit in camera roll and have to delete each picture one at a time?  How do we get edit as an option in camera roll?

    Both of my kids have ipod touch 4.  On 1 we can edit the camera roll and delete muptiple pics at once.  On the other, we can't edit in camera roll and have to delete each picture one at a time?  How do we get edit as an option in camera roll?

    Hi jenny,
    Are you certain that they are both running IOS 6.1.3? Go to Settings>General>About, and check the "Version".
    Cheers,
    GB

  • Im moving all my music and media to a diffrent drive and i want itunes to find all the music again for me instead of me finding each song one at a time, is there a way?

    im trying to move all my music to another drive because my main one is full, and when i do and try to play a song in itunes i need to locate it on my computer and tell itunes where it is, for every single song. cant itunes do this for me ?

    Hi,
    If you have iTunes match enabled, you should be to change playlists on your iPhone and also turn on automatic downloads on all devices
    iTunes Store: How to enable Automatic Downloads
    iTunes Match on iPhone, iPad, or iPod touch
    Manual sync is not available when match is turned on and in any event the sync is one way - PC to iOS devices.
    Do you keep your actual files on your PC's hard drive?
    Jim

  • Whenever I play music only one of the speakers on the bottom (the right one) seems to play the music, if i cover each speaker one at a time you hear no difference when i cover the left, and then you hear no music when i cover the right... help?

    bottom left speaker isnt working...
    i tested it out and im not sure if its suppose to be like this or not.
    when i play my music i tried covering the left speaker on the bottom and no sound difference occurred, then when i covered the bottom right one i heard nothing just some sound from under my finger. the left speaker isnt working or it happens to act like that on 2 of my friends too...
    help?

    Only one of them is the speaker (bottom right), the other one is the microphone

  • Why cant i purchase my whole wish list....im being told i have to buy each song one at a time

    i had the option in july to purchase the whole wish list, now im being told i cant

    I have just had the same problem and have spent a good hour trying to figure out where the Purchase Wish List Button has gone. I had an online CHAT with one of the nice Support Desk staff - who didn't know the answer and had to get clarification from her Supervisor.
    I couldn't believe it frankly when she told me that they had INTENTIONALLY removed that facility!! OMG! That's ridiculous.
    I have likened it to going to a Supermarket and doing a monthly shop - putting all the items on a conveyor belt and then having to pay for every one individually. It's absurd.
    I have written to the Feedback Desk and suggested strongly that they change this back asap or else they will lose me as a customer (not that seems much of a threat to a $multi billion company!) 
    I have also suggested that they take a leaf out of AMAZON's Book and have a proper Checkout facility where you can put individual items into a Basket and go to checkout - and once at checkout you can either purchase everything or remove some items by flagging them Save For Later. They remain in a sort of holding basket where you can quite simply have the option of putting them back into your Basket at a future date. Amazon also have a Wish List Facility which is separate to the Basket Checkout - so they are - it seems - far in advance of iTunes.
    Perhaps you could write to the iTunes Feedback Team and suggest the same ? It seems that the more they get requests for certain features the more they listen.
    I have advised them that I shall be buying my MP3 music files from Amazon if they don't improve the Checkout options. Suggesting that I buy 40+ songs individually is just plain ludicrous .... and I thought Apple were a leading technology ?!
    Please add your comments to the Feedback so we as Customers can get them to see sense ..... and if anybody else is reading this because they've experienced the same problem as we have ..... please put your comments on the Feedback too.
    I am refusing to purchase my 25songs and albums until they rectify it. Their loss more than mine.

  • Trying to upgrade from 10.6 to 10.10.  Do I need to do each version one at a time?

    I just need to know if I need to pay for each individual upgrade so that I can purchase an app that won't let me get an older version. 

    Check that your computer is compatible with Mountain Lion/Mavericks/Yosemite.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    MacBook (Late 2008 Aluminum, or Early 2009 or newer) model number 5,1 or higher
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory (More is better - 4 GB minimum seems to be the consensus)
    8 GB or more of available space
    Check to make sure your applications are compatible. PowerPC applications are no longer supported after 10.6.      
    Application Compatibility
    Applications Compatibility (2)
    Do a backup before installing.

  • Every app - one at a time - stops responding

    Every few days I will have a problem where an application is not responding - I get the spinning pizza wheel. Then I "Force Quit" that app. Usually my most problematic app is Adobe Acrobat Pro version 9.3.4 (which has never allowed me to update, but that's not the reason for this post).
    When Adobe Acrobat crashes and I restart, next thing I know, every app - +one at a time+ - stops responding and "Force Quit" tells me that. I am unable to quit these apps the normal way. I must quit them using "Force Quit." So after Force Quitting each app one at a time, I restart my iMac, version OS 10.6.7 and all is well again for the time being.
    I have used many maintenance utilities: Cocktail, Drive Genius, Onyx, SLCC, etc. They do their thing, but 3 − 4 days later the same problem occurs.
    MY QUESTION: Can anyone tell me what may be causing this problem or what it's related to??
    If I know the answer to this I can maybe fix it.
    My only guess is that it may be related to Adobe Acrobat, but I may be wrong about that.

    Click on the HD icon and do a GetInfo. How much free space is there on the drive? You need to maintain at least 15%-20% free of available.
    When this is happening, have a look in Console>Files>system.log for any possibly relevant messages. Also have a look in Activity Monitor to see if something is hogging the CPU. Run Acrobat Pro and see what the CPU usage is. Also, in Activity Monitor>System Memory, down at the bottom what do you see for Swap used and Page outs? Should be a low number or zero. If not, you may need more RAM or need to run fewer applications at the same time. Also check to see how much free and inactive RAM there is.
    Good article here.
    http://www.thexlab.com/faqs/sbbod.html
    Message was edited by: WZZZ

  • Topic : every app - one at a time - stops responding

    Every few days I will have a problem where an application is not responding - I get the spinning pizza wheel. Then I "Force Quit" that app. Usually my most problematic app is Adobe Acrobat Pro version 9.3.4 (which has never allowed me to update, but that's not the reason for this post).
    When Adobe Acrobat crashes and I restart, next thing I know, every app - +one at a time+ - stops responding and "Force Quit" tells me that. I am unable to quit these apps the normal way. I must quit them using "Force Quit." So after Force Quitting each app one at a time, I restart my iMac, version OS 10.6.7 and all is well again for the time being.
    I have used many maintenance utilities: Cocktail, Drive Genius, Onyx, SLCC, etc. They do their thing, but 3 − 4 days later the same problem occurs.
    *_MY QUESTION: Can anyone tell me what may be causing this problem or what it's related to??_*
    If I know the answer to this I can maybe fix it.
    My only guess is that it may be related to Adobe Acrobat, but I may be wrong about that.

    +Can anyone tell me what may be causing this problem or what it's related to??+
    Not without more information. At a minimum, you'd have to provide an error messages from the console log relating to the applications that crashed. If you don't want to go to that trouble, just follow the standard procedure for fixing almost any system problem:
    (1) Back up all data.
    (2) Run "Verify Disk" on your startup volume in Disk Utility, and if any problems are found, boot from your installation disc and "Repair Disk" as many times as necessary until it comes out clean.
    (3) Boot from the installation disc and reinstall Mac OS X.
    (4) Reboot as usual and run Software Update as many times as necessary to bring everything up to date.
    This procedure will solve nearly all problems such as yours, unless they're caused by third-party system add-ons or by a hardware fault.

  • Dynamically loading images?One at a time :(

    codeworld....help...sos.....send in more troops....the titanic is sinking.....
    The problem:
    I am trying to load dynamic images in order without all of them attempting to load at once....
    I have an array of images that I loop through depending on the gallery that will load up....but when i loop through the images all of them try to load.
    What i need to happen is somewhere in the loop i guess....each image fully load....then goto the next image and fully load.....etc.....
    Basically each image load one at a time in order......and the list is dynamic so uhhhhh HELP ......????
    save narnia....save tinseltown.....awww hell sacrifice yo self and just save me .....

    ok ok......one of these i'm going to make work
    ....thanx for all the help....
    this is kinda the basics of how i got the method looking that i will change
    for(var i=0; i<listArray.length; i++)
                   //picListLoader is a custom class......its just the loaded picture and some variables attached to it.....
                    var picture:picListLoader = new picListLoader(pID, ptitle, pdesc, picURL, i );
                    picArray.push(picture);
                    addChild(picture);
    i think instead of calling the class to create the individual objects......
    i'm going to create a gallery object......and send in the info....and once all of the picture's urls and info is loaded into the object tell the gallery object to load each one of the pictures using one of the methods above......and that should cure my ills
    smallville was saved once again................byMe... ...selfGlory..... .......(ok....saved by yall) thx a million
    thelegendaryghost

  • I have a macbook pro 10.8.5 and the Application Safari will not open no matter what i do, I try to open the menu of Safari but it won't let me either, the mouse will just be loading. Each time i open it, it says "Application Not Responding"

    I have a macbook pro 10.8.5 and the Application Safari will not open no matter what i do, I try to open the menu of Safari but it won't let me either, the mouse will just be loading. Each time i open it, it says "Application Not Responding" and I try opening it in my Finder and it'll say "The Application 'Safari' cannot be opened." and below that it'll say "-1712" Please help? I would really like to open it again.

    The application Safari can't be opened -1712
    What to do about "The application 'Safari' can't be opened" -1712 ?

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • ITunes lost all of my files on the external drive, thousands of songs.  Is there a way to load them back in without doing one at a time?

    I've just updated the lates iTunes, and now it seems to have lost all of my music.  I have thousands of songs on an external drive, none of them can be found...the songs are in multiple folders on the external drive so the media folder to the external folder doesn't fix the problem...iTunes isn't seeing songs that are in different folders with sub folders.  Is there a way to have iTunes discover the music on the external drive to avoid reloading each of them one at a time?

    When you first download iTunes onto a PC, it will give you the option to allow iTunes to search for your music. I'd suggest removing iTunes from your PC, connecting your external drive and then download iTunes from scratch. I'm pretty sure if you let it, it will find the music for you.

Maybe you are looking for

  • Itunes 7 and quicktime wont install

    Neither itunes 7 or the latest quicktime will install since I recovered my system and installed all the latest windows updates. I get the ol' "installer incountered errors before itunes could be configured, try again at a later time." popup. I tried

  • Excel 2010 – VBA Userforms – Vlookup via Textbox, display result in another textbox

    Hi, Thank you in advance for your time. I have a multi-page userform and I am having problems getting the result I am after. I am trying to get the user to enter a four digit (numeric code) into a textbox and display the contents of that code in anot

  • Can anyone help here

    Can anyone please help me with getting Logic to control the bank changes on this beast. I have it controlling the patch changes no problem it is just the bank changes I need thanx

  • Photoshop CC -- OpenCL causes GPU temperature to rise instantly with no load

    Hello all, I've just installed Photoshop CC 64 and am finding that with "OpenCL" checked under performance, my graphics card (Nvidia GTX 670, 2 gb, with updated drivers) temperature immediately rises from 33 C to over 45 C, and "core" from 324 Mhz to

  • I accidentally changed all dates of all events, how do I correct it?

    Hi, I accidentally changed all dates of all events, now my entire library of 17000 pics is messed up. Fortunately I have the luxury of two backups: time machine and old Toad's iPhoto dB Backup. Which one should I use, to get back were I was? Thank yo