How do I start preloader later in movie clip?

Hi,
I want a preloader to start about 20 frames in, rather than at the very beginning of a movie clip, is this possible?
The reason I dont want it to start at the beginning is because it's on an external swf which loads when a button is clicked. Becuase the swf has a transparent background at the very beginning, the preloader is showing above the main movie and it cant really be seen. The main slideshow actually starts 20 frames in so this is when I really need the preloader.
any ideas?

The way I have my preloader set is on another scene so i'm not sure 
how to delay it by 20 frames in the main time line? When I move the 
preloader frames along by 20 it doesn't work?
This is the code I have on my preloader:
loaded_bytes = _root.getBytesLoaded();
total_bytes = _root.getBytesTotal();
loadpercent = (loaded_bytes/total_bytes)*100;
if (loadpercent != 100) {
     // OPTIONAL: Place the percentage on some textfield
     preloaderText.text = int(loadpercent) + '%';
     // Goto respected load percentage since not done
     bar.gotoAndStop(int(loadpercent));
} else {
     gotoAndPlay("Main", 1);
code on next frame:
gotoAndPlay(57);

Similar Messages

  • How do you combine two or more movie clips into one movie clip in iMovie '09

    how do you combine two or more movie clips into one movie clip in iMovie '09

    First create an iMovie project. Then drag the clips (or portions of clips) that you need into the project.
    When finished, use the SHARE menu to share the project.

  • How to load dynamic text inside a movie clip?

    hello all - i have a main stage where on the first frame my
    "home" movie clip displays. i did this by dragging/dropping, and
    then i put a stop action. all works fine.
    inside this home movie clip on the main stage, there are
    links to other movie clips. for example, to get to my faq's page -
    you click that button, then it takes you to frame 4 on my main
    stage, where my faq's movie clip (followed by stop action) has been
    dragged/dropped and displays properly.
    within the faq's movie clip this process is repeated, with
    buttons taking to you various pages (different frames where
    different movie clips play - all works fine).
    so now i want to add a dynamic text field within my faq's
    movie clip. i have read numerous tutorials where i have created the
    text file but i have not been able to display it with success
    within my faqs movie clip.
    here is some code that my dvd tutorial instructs me to place
    on main stage as i practice getting this to work:
    var myMCL:MovieClipLoader = new MovieClipLoader ();
    var myListener:Object = new Object();
    myMCL.addListener(myListener);
    var myLV:LoadVars = new LoadVars();
    myLV.onLoad = function (success:Boolean) {
    if (success) {
    _level5.loadedInfo.htmlText = myLV.info;
    } else {
    _level5.loadedInfo.text = "There has been an error loading
    the requested information. Please contact the webmaster.";
    and here is some code that i place on the faqs button within
    my main movie clip that takes me back to main stage and plays faq
    movie clip all successfully:
    on (release) {
    //Movieclip GotoAndPlay Behavior
    _root.gotoAndPlay("4");
    //End Behavior
    and finally, here is some code that i place within my faqs
    movie clip in an attempt to display my dynamic text within the faqs
    movie clip - so far unsuccessful:
    _level0.myLV.load("vars/faqs.txt");
    NOTE:
    i have published this to view - not working.
    i have my faqs text file starting as info=
    i have eliminated white space within my text file
    i am using flash 8 pro
    can anyone offer some sugestions? thanks!

    hmmmmm lemme double check as i seem to be a bit lost now.
    // this is my actions layer code on frame 4 of main timeline:
    stop();
    var myLV:LoadVars = new LoadVars();
    myLV.onLoad = function (success:Boolean) {
    if (success) {
    _level5.loadedInfo.htmlText = myLV.info;
    } else {
    _level5.loadedInfo.text = "There has been an error loading
    the requested information. Please contact the webmaster.";
    myLV.load("vars/faqs.txt");
    1. fyi - at frame 4 on main timeline, one layer beneath the
    actions layer where i dragged/dropped my faqs movie clip i gave my
    faqs movie clip an instance name of "mainfaqs" - although nowhere
    do i refer to this specific mc within my code.
    2. where would i replace/insert the following code?
    _level0.faq_mc.loadedInfo.text = myLV.info;
    3. i didn't know about embedding font but i saw the option
    and embedded it - still no results.
    4. i'm not sure how to do the following:
    _level5.loadedInfo.text ='test'; //although I would still
    change the path as above
    To see if your getting a return from the load call adn text
    file, use a trace statment before the success condition and see
    what it returns:
    trace(myLV);
    sorry to be such a pain - i really have looked around for
    answers through previous postings and i googled it and i've been
    taking instruction through lynda.com and dvds but i seem to be
    stuck here.... as always - thanks for your time

  • AE How to Change the color of a movie clip?

    I have a movie clip of a White Show Avalanche. How can I change the color from White to another earthly color. I would like to post 2 images, one still of the white avalanche and one still image of the color or look I am after. Can you post or attach images to this thread? If so how?
    I am not just trying to change the Hue/Saturation.

    To elaborate on Ko's post: In RGB space, White is presented by full values of 1 (or 255, if you like that better) for Red, Green and Blue. Since there's no differential between the individual components, there's nothing to shift the Hue. Hence you will have to find alternate ways of recoloring your stuff.
    A simplistic way would e.g. be using effects such as Tint, Tritone or Colorama based on the Luminance. A more elaborate way would be cutting up the whole thing in multiple pieces (debris, shadows, waves, edges) and color correct each part individually. In any case you will very likely have to work with multiple instances of your layer and apply some masking here and there.
    Mylenium

  • How do i insert cgi into my movie clips?

    I have shot a couple scenes and i have downloaded free cgi effects. How do i put these in my movie using iMovie?

    I'm not clear exactly what effects these are but iMovie 9 and10 do not support third party plug-ins.   You need Final Cut Pro which accepts Motion template plugins.
    Geoff.

  • How Do I Make Bitmap, Graphic, or Movie Clip into a clickable link??

    I am designing a website entirely in flash (macromedia flash) but I cannot get the bitmap, graphics, or movie clips clickable links, although when hovered over turns into a hand.  Any suggestions? I have also tried the following script;
    on (release){
    getURL("http://www.google.com/", "_blank")
    Obviously I didnt use google, but still no go.
    I'm hot linking the raw fla file below.  I bought this template online and have modified it alot (all cosmetic) but I cant get the tabs to be links!?  I used action script (the one posted above) in every layer and the text inside the tabs.  But still doesnt work Does anybody know whats wrong?
    Sorry, but I dont know much in action script, I'm a c++ and web designer, this is my first time working in only flash.
    http://www.hotlinkfiles.com/files/2449178_iizru/_menu2_fv8.fla
    Here is my modded template in my website:  http://9karim.com/adminI only need to modify the menu bar

    I wouldn't say you're screwed, you just have some work ahead of you to find out what are actually the buttons in that thing.  If you look at the file on stage you'll see a large turquoise shape (an invisible button) that when you select it shows it has an instance name of "menu"... I still couldn't figure out what it has to do with those animated tabs, but it may lead to further discoveries.
    There's a lot of stuff woven into that file, and with the frame by frame animation, it's hard to isolate just about anything.  Based on what I see in the library as far as object naming goes, and your not knowing what's where, I'd conclude that this is an "acquired" design that has been decompiled into the fla you are trying to figure out.  While I haven't any experience with decompiled files, it wouldn't surprise me if there is an increased level of complexity as a result of how the decompiler rebuilt the file.

  • How to _root in as3 (buttons in movie clip referencing to main timeline)

    Hi, I created buttons within a movie clip that i placed in the main timeline.I am  a novice to as3. I just wanted the button to go to the frame label of the main timeline. i used to do this with _root in the old flash. how do i do this?
    thumb02_btn.addEventListener(MouseEvent.CLICK, buttonClicked);
    function buttonClicked(event:MouseEvent):void
        gotoAndPlay("slide2");

    Thanks for the quick reply!
    somehow i must be doing something wrong though. It's not working...
    I added a stop to the "slide02" labeled section of the main timeline.
    and I also added a stop to the beginning and end of the movieclip. Am I doing something wrong? attached is my file....thanks!!
    stop();
    thumb02_btn.addEventListener(MouseEvent.CLICK, buttonClicked);
    function buttonClicked(event:MouseEvent):void
        MovieClip(this.root).gotoAndPlay("slide2");
    stop();

  • How to break a bitmap into several movie clips

    Hello,
    I have a bitmap imported into library and need to break it
    with ActionScript2.0 into several bitmaps, using a rectangular
    grid. The smaller bitmaps have to become movie clips so they can be
    animated further.
    The resulting animation should be: bitmapped picture breaks
    into tiles which fly away...
    Possible? Thanks for help

    quote:
    Originally posted by:
    patrick garner
    I'm not sure what you mean... You want to break it apart with
    actionscript?
    Yes, I want to have an image and break it into tiles at
    runtime using AS2.0. Each tile should become a MovieClip so that I
    can add some simple code for random movement for each tile. That
    way they'll fly away. (later I want to make modifications to make
    an opposite effect - tiles fly randomly until they make up a
    picture again, or there's room for a bunch of other effects...)
    quote:
    You do Contol > B and break it apart that way and turn
    them into MCs. Then add tween classes to each of the pieces to make
    them move.
    Thanks but that's not it...

  • How to detect the end of a movie clip:  what eventListener to use?

    I'm doing a rather fancy button with up,down,rollover,rollout,and static states, something the standard flash button structure isn't capable of as far as I can tell, and believe me, I've tried it.
    Here's the setup:  My main timeline has a series of frames with stop(): scripts, and each frame has a movie clip representing what should happen during that state:  still, rollover, rollout, mousedown, mouseup
    I can't get the mouseup event  to work.
    Here's what I've tried so far that doesn't work:
    1. in the imbedded movieclip, no script at the end.  Result: This just loops the embedded clip.
    2. in the imbedded movieciip, put gotoAndPlay("NextFrame"), where "NextFrame" is the label in the root movie where I want to go. result: loops clip
    3. in the imbedded movieciip, put root.gotoAndPlay("NextFrame"), where "NextFrame" is the label in the root movie where I want to go. result: error
    I think what I need to do is write an eventListener for the root actionscript, but I don't know what event to listen for. 
    What event is thrown when a movieclip finishes playing?
    :<)McFrisco

    You have to create your own mechanism(s) for detecting the end of a movieclip being reached.  You can either build code into the end of the clip itself, possibly dispatching an event that is being listened for by a containing timeline, or you could continuously monitor the currentFrame of the clip to see if it equals the totalFrames value.

  • How do you wait to load certain movie clips or frames?

    I have seen flash sites that wait to load different parts of the flash file until you click on a link, thereby starting a loading graphic that then loads the content you're looking for. I can't find any information on how to do this, and I'm guessing I just can't find the right terminology.
    Does anybody have the right verbiage for me or can anybody point me to a website that explains the process? Thanks, Dan

    I got ya.  Thanks for your help.
    Any idea what size they say is "too big" a file for a flash movie on a standard website nowadays? I'm looking at being around 1MB when all is said and done (assuming I use the loader to pull some of the bigger things from external files).
    Thanks, Dan

  • How to create 3d effect of the movie clip on mouse move

    Dear All
    I have done the research a lot but failed I need to give the effect in flash like this
    http://www.soft.se/#/sv/portfolio/web,single,kaffeakademi
    any one know how to do that please send me any hint or peace of code so i will get an idea
    Thanks in advance

    thanks for the reply, but the carousel is the different thing. the another example http://www.bestvisualization.com/portfolio.htm click on the portfolio button to see the effect with mouse
    this is my own website but i use this portfolio executable file from some where so i need the code how can i build my own effect like this
    i need to know the code or the softwate that make this effect on mouse move
    Message was edited by: RasBilgrami

  • How do i get an externally loaded movie clip to inherit the playhead position of the main timeline?

    Hi Flash experts, i'm hoping that someone can help me with this annoying problem.....
    I have been approached to design a configurator for a new television product. The Application will let users specify the colours of certain parts of the product and also attach addons, which then updates a cost total.
    In the main interface i have a looping animation of the product slowly rotating around 360 degrees that i rendered in 3ds max. When a user clicks a button on the interface i need to load an external movieclip on top of the main animation so it looks as though a certain part has changed colour, this i have acheived. The problem is that when i load the external clip over the original, the loaded clip starts playing from frame 1 and i need it to inherit the playhead position of the main animation so the two layered pieces look as though they are rotating as one. I'm sure this must be possible, unless i need to approach the problem in a different way?
    I hope this makes sense,
    Any help on this subject would be hugely appreciated.
    Many Thanks
    Matt

    Hi again Ned,
    I've almost got it i think, my code now looks like this....
    on (release) {
             var loader:MovieClipLoader = new MovieClipLoader();
             loader.loadClip("Bezel/Bezel_Red/Bezel_Red.swf",Empty_MC);
             var loadListener:Object = new Object();
             loader.addListener(loadListener);
             loadListener.onLoadComplete = function() {
             Empty_MC.gotoAndPlay(_root._currentframe);
    This code loads the external clip fine and i know the onLoadComplete listener is working because if i change the last line to: Empty_MC.gotoAndStop(1);
    it works. I think its just that last line: Empty_MC.gotoAndPlay(_root._currentframe); that is causing the problem?
    Many Thanks for all your help, it is greatly appreciated
    Matt

  • How to join HD and non HD movie clips?

    I have tried several ways to insert this non HD clip into an HD clip. I have also tried converting  both into the same type of file.
    It always looks like it worked but when I play the completed movie it always freezes up before it reaches the part that was inserted.
    Has anyone else had this problem. I am using the latest version of IMovie and OSX 10.9.2

    Hi
    Nor .mov or Mpeg are Video-Codecs - they are (as far as I know) Containers (sort of folders) as can hold Codecs that works - or not.
    Open them in QuickTime-player (can open many more than iMovie/iDVD can use)
    then open Inspector - cmd+I
    Read
    Video format (Codec): nnnnnnnnnnnn
    Frames per second: YY.yy
    What does it say - (for each and every video clip to be used) ?
    Yours Bengt W

  • How to get width/height of a movie clip in CreateJs?

    In AS3.0 it is like:
          mc.width and mc.height
    In AS2.0 it is like:
          mc._width and mc._height
    What about createJs
        mc.????

    The answer is get "nominalBounds" and then get width and height:
    var bounds = mc.nominalBounds;
    bounds.width will give you width and
    bounds.height will give you height
    Thanks

  • IPad - with movie clips - how can I play more than one at a time?

    iPad2.  I post short movie clips via iTunes to the Photo catagory.  I can play each of these clips by selecting the clip and pressing the start arrow, only the selected clip will play.  How can I select a group of movie clips and have them play with only one selection.  Like a "slide show" but for movie clips???

    More than one contacts at a time

Maybe you are looking for

  • How to delete from Nokia C5-03?

    How to do delete music and other unnessary things from Nokia C5-03? I have not found delete or remove area. Help me.

  • HP Pavilion HDX9000 Connect to External DVD Player

    Our older HP Pavilion HDX9000 DVD died and we wanted to use an external DVD player to drive the monitor on the HDX9000.   It does not seem possible to do this despite the HDMI and many other ports.  The PC is running Vista.   Any suggestions?

  • Production Orders, Varience  & costing

    I have many customer that are using SAP production orders with either moving average of FIFO and are surprised by the varience that are created by SAP production orders.  This is not typical of a 'actual' costing system. When a production order is cl

  • Need Information about IMS QTI 1.01 Assessment Generator Tool

    Hi All, Does anyone know about any tool to generate IMS QTI 1.01 Assessments from an excel sheet. I have only come across those tools that generate assessments in a later/newer version of IMS QTI standard which is non compliant of OLM. Any informatio

  • Wi-Fi not searching or finding any networks

    my 3G's Wi-Fi is not working. when i turn on the Wi-Fi it dont read anything. it just keeps searching for the networks but it doent read them. it just started happening. i dont even have a month with the phone. i already tried the suggested steps by