How to put a preloader showing loading per cent to this flash Gallery?

I am loading all thumbs and images in a container on a single image using script of action... but the size of the SWF becomes 1.2 MB if I want to add a top... charger the charger I am adding account executives, but my file has a single framework so that doesnot charger...

Here's the script of my Gallery... and the timeline has a single framework...

Import mx.transitions.Tween;
Import mx.transitions.easing. *;

this.createEmptyMovieClip ("container", 1);
var imagesNumber:Number = 18;
var scrolling: Boolean = true;

for (i = 1;  I < = imagesNumber; i++) {
container.attachMovie ("thumb" + i, "thumb" + i + "_mc", i);
myThumb_mc = container ['thumb' + i + "_mc"];
If (I == 1)
{
myThumb_mc._x = (0,0) * myThumb_mc._width;

}
on the other
{
myThumb_mc._x = ((1.2*i) - 1.2) * myThumb_mc._width;
}

myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc._alpha = 100;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function() {}
This ._alpha = 60;
};
myThumb_mc.onRollOut = function() {}
This ._alpha = 100;
};
myThumb_mc.onRelease = function() {}
This ._alpha = 100;
for (i = 1; i < = imagesNumber; i ++) {}
myClip var = container ['thumb' + i + "_mc"];
myClip.enabled = false;
}
scrolling = false;
_root.attachMovie ("image" + This.largerImage, "large_mc", 2);
large_mc._x = (Stage.width-large_mc._width)/2;
large_mc._y = (Stage.height-large_mc._height)/2;
new Tween (large_mc, "_alpha", Strong.easeOut, 0, 100, 0.5, true ");
new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
large_mc.onRelease = function() {}
scrolling = true;
var myFadeOut = new Tween (large_mc, "_alpha", Strong.easeOut, 100, 0, 0.5, true ");
new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
myFadeOut.onMotionFinished = function() {}
for (i = 1; i < = imagesNumber; i ++) {}
myClip var = container ['thumb' + i + "_mc"];
myClip.enabled = true;
}
large_mc.removeMovieClip ();
};
};
};
}

container.onEnterFrame = function() {}
If {(scrolling)
This ._x += Math.cos (* Math.PI (-_root._xmouse/Stage.width)) * 20;
If (this ._x > 0) {}
This ._x = 0;
}
If (-cet._x >(this._width-Stage.width)) {}
This ._x =-(this ._width - Stage.width);
}
}
};

Anyone know how to add a loadre to this...?

Thank you...

put a textfield on stage, assign an instance name, yourtextfield by your textfield instance name and use:

loadMovieNum("yourcurrentmainswf.swf",1);

this.onEnterFrame = preloadF;

function preloadF() {}

{if (_level1.getBytesLoaded () > 0)}

_level1._alpha = 0;

yourtextfield. Text=100*_level1.getBytesLoaded()/_level1.getBytesTotal () + "% Loaded";

{if (_level1.getBytesLoaded () > = _level1.getBytesTotal ())}

delete this.onEnterFrame;

_level1._alpha = 100;

}

}

}

Tags: Adobe Animate

Similar Questions

  • How to put two images in an image on the windows photo gallery

    I need to know how to put two images in an image on the windows photo gallery.

    I need to know how to put two images in an image on the windows photo gallery.

    =================================
    If you say you want to join two images
    edge to edge that's easy to do with the free-
    Ware IrfanView.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html

    Once you have downloaded IrfanView and
    installed... Open the program and go to...

    ... Image / create the Image of the Panorama...

    Make your choice and click on the button create an Image.

    When you see the combined images displayed
    in the display... go to... File / save as...

    Choose a location...

    Choose a format...

    Give the file a new name...

    Click on... Save...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Save a slide show in Media Center on a Flash drive

    How can I save a slideshow with the music I made in Media Center on a flash drive?

    Thank you

    Hello

    The slideshow created in windows media center will be stored in the following path.

    1. click the Start button, then select music.
    2. now open the folder playlists

    Hope this information is useful.

    Umesh P - Microsoft Support

  • How to hide a preloader music loading ends

    I have an external preloader that plays music while the main swf file is loading. Everything works well, but it sounds a bit abrupt when the music stops as soon as the swf file is loaded. Is there a way to start the discoloration on the music when the progress bar gets to, say, 80%, so that at the moment which opens the main SWF, the music is completely dimmed?

    kglad wrote:

    var alreadyExecuted:Boolean

    {if(!alreadyExecuted)}
    alreadyExecuted = true;
    var s:Sound = new Sound (TitleScreen.Notes_mc);
    }

    this.createEmptyMovieClip ("container_mc", "100");

    my_mc = new MovieClipLoader();

    Preload = new Object();

    my_mc. AddListener (Preload);

    preload.onLoadStart = {function (targetMC)}

    container_mc._visible = false;

    loadingBar._visible = true;

    loadingBorder._visible = true;

    loadingText._visible = false;

    loadingTitleScreen._visible = true;

    loadingLessonName._visible = true;

    };

    preload.onLoadComplete = {function (targetMC)}

    container_mc._visible = true;

    loadingBorder._visible = false;

    loadingBar._visible = false;

    loadingText._visible = false;

    loadingTitleScreen._visible = false;

    loadingLessonName._visible = false;

    gotoAndStop (4);

    };

    my_mc.loadClip ("lesson.swf", "container_mc");

    LAYER ACTIONS, FRAME 2:

    loadingBar._width = (container_mc.getBytesLoaded()/container_mc.getBytesTotal ()) * 576.0;

    loadingText.text = "Loading" + Math.round (container_mc.getBytesLoaded () / 1024) + "K" + Math.round (container_mc.getBytesTotal () / 1024) + "K"; ""

    var flight: Number =Math.round (100 * container_mc.getBytesLoaded () / container_mc. getBytesTotal())

    {if(vol>80)}

    s.setVolume (5 *(100-vol));

    }

    LAYER ACTIONS, FRAME 3:

    gotoAndPlay (2);

  • How to block all the videos and ads on all the site as how it is when it shows the gray screen when the flash player needs to be updated

    Hi there please help me. I didn't have this problem until two days ago when the browser updated itself. I have the youtube video downloader add on and always use it. I'm on a data plan and it used to block videos and add ads which I like, but now is not because of the update, I came back to the old version, but it did not help and I downloaded the flash but block it does not work. It makes the slow loading of pages and uses a large amount of data that I tried many things like all the plugins of switching to add it on the menu to activate ever and it doesn't quite work. Before it used to show the gray screen, where it says "the flash player is out of date" on videos and commercials, but he does not do this because of the update so please help me to do it again.

    I solved. On the firefox support page they will give you information about the HTML5 player and they say there that firefox uses it only 38 version before so I'm 36 version and it worked in blocking it as before.

    So its all sort and if everyone wants to do the same thing go to https://ftp.mozilla.org/pub/firefox/releases/ and all previous versions will be there.

  • How to put an application on the dock icon without the arrow shortcut showing at 07:00

    Whenever I try to place an application icon in the dock icon get a tiny arrow shortcut to as for the 07:00 click the newly created and connected position.

    None of my icons for other applications in the dock has this small arrow on its icon.

    So, how to put an icon on the dock without the shortcut arrow display at the 07:00 position?

    If I understand you correctly, simply drag the application in the dock. No need to create an alias first.

  • How to value objects on the load

    I read through some of the messages on the progress of Actions with conditional statements, but I couldn't find an answer.

    Very simple what I need: when the user clicks on one of the days of the week tab, I want the content to be placed in the Middle.

    I created a variable called 'day', but how I put "Monday" or "Tuesday" on the load so that when the user clicks the appropriate button I can run a conditional statement: If "day" = Monday then show 'content Monday. Is it possible to assign a variable without user interaction? as when loading a slide.

    I'm sure it's super simple, but I want to do th

    2016-04-10_22-11-29.jpg

    My apologies.  As I said, I wasn't sure I was understanding your intent.

    Looks like you need to have a number of text captions or Smart Forms hidden on the slide where you want the content to appear.  These objects will contain the relevant information for a given day.  But, you set all these objects to occupy the same space on the slide, one above the other, and their Visible in the OFF output value (so that they are initially invisible to the learner) and group together them.  Simply by going in a group makes it easier to HIDE with a unique action line.

    When your user clicks one of the buttons at the bottom which corresponds to a given day, this button comes to perform a Standard action that has two lines of action. The first line must HIDE the Group (so that all the visible objects of clicks on the back button are immediately hidden) and then SHOW the caption or the form chip that is the day the user has clicked.

    Unless you plan to do something else with the variable, there is no need to have a variable has a value just to achieve the interaction that I described above.  However, if you later NEED to know what day the user clicked (maybe to use it in a conditional Action) then you can add an action to the line that assigns the value of the variable.

    Which is closer to what you want?

  • How to make a preloader external movieclip?

    How to make a preloader external movieclip? Anyone know of a good tutorial because I have tried for the past 12 hours get a preloader to work (not 12 hours right lol). My file is 2.6 MB, so I really need the preloader. Or if there is than any free programs that make preloaders that would be too good. Or all components that have a tutorial with them (also should be free).

    -Thank you

    If your main swf file main.swf in your preloader.fla, you need to create your animation (usually a bar that is filled from left to right) and a textfield, which shows the progress of the load.

    If you create a movieclip (say preloaderMC) in preloader.fla that will contain both and your filling bar instance name fillbar and your textfield instance name tf, on the main timelne of preloader.fla, you can use

    this.createEmptyMovieClip("targetMC",1);

    targetMC.load ("main.swf");

    this.onEnterFrame = function() {}

    var bl:Number=targetMC.getBytesLoaded();

    var bt:Number=targetMC.getBytesTotal();

    {if(BL>0&&BL>=BT)}

    delete this.onEnterFrame;
    }

    preloaderMC.tf.text=Math.round(100*bl/bt) + "% Loaded";

    preloaderMC.fillbar.xScale = 100 * bl/bt;  the left edge of the fillbar should be aligned with its stage-Center

    }

  • where should I put my preload?

    Hi all

    Would ask you for advice on where should I place the preload.

    I have a swf swf menu, main content swf and intro swf banner. where should I load the preloader? on the main MC who will call these swf? or each swf have their own preloader? who would look rather weird.

    A should I just merged banner, menu, main content and total intro? How do I do that? I'm lost what should I separate them or put all the eggs in 1 nest. My main content will be transitions between each section.

    my menu is separated from the main content, how do I get the main content for this article whenever the user clicks on sections 1 point?

    I'm so lost. Please notify. Thank you

    X large, happy that you get the concept.

    with regard to the method of your preloader, not quite. You should find the distance in pixels that the mask moves from 0 to 100%, revealed, then using that number is how you calculate the amount of movement that is necessary according to the number of items is loaded at the time. If move you only 25% of the overall distance, rather than move the animation by images. You should only need one frame in the preloader, define the mask at the far left position 0, then the Manager onLoadProgress "moves" the mask as needed by the distance (_x) to reveal the logo.

    So you will need to add a parameter to the system, which allows you to specify how many clips are loaded at the time, this will be used in the calculation of the amount of movement needed for the preloader clip. to pass to the call of 'loadFile' and add the parameter to the list in the function. then you will have to '1', if there is only a single item being loaded using the method, as defined and it will calculate the distance of progress for a single instance of loading. Changes to the code above should be as follows:

  • When I run a web browser immediately loaded two blank tabs. How to make the browser to load the only?

    When I run a web browser immediately loaded two blank tabs. How to make the browser to load the only?

    Have you checked the home page to make sure that if is not the vertical bar (|) symbols?

    See the following for a few suggestions:

  • How to put 2 A5 flyers on a page A4 Pages

    How to put 2 A5 flyers on a page A4 in Pages? On iMac

    Hi Billy,

    5.6.1 the pages.

    If your flyer is in a text box, resize the box to fit a half page A4. Copy, paste, and then drag the copy down half of the A4 page.

    Alignment guides can help (Menu > Pages > Pages Preferences > leaders):

    Also Menu > view > show rules.

    You can drag a Guide of alignment (orange line in the following screen shot) of the horizontal rule (not to print the Guides).

    Menu > View > Show presentation in order to see the page margins and the header and footer.

    50% of the zoom for a small screenshot.

    File > Menu > print... to confirm the layout

    Kind regards

    Ian.

    Edit: You can drag a Guide to align the horizontal rule (orange line in the following screenshot).

  • How to put in place measures in the application of health?

    How to put in place measures in the application of health?

    What do you mean 'the configuration steps? If you want steps if poster on the health dashboard, tap on health at the bottom of the screen data. Tap fitness. Tap measures. The value "Show on dashboard" on.

    The health app is really more than one application storage and synchronization. You can't do things as targets for a particular metric. If you want to set a goal of step and follow it, use one of the many followed apps available that can extract data from health. Map My Fitness, My Fitness Pal, Jawbone UP and Fitbit (both can be used with the phone if you have an iPhone 5 or a later version). If you like to compete with others, the Club activities is fun.

  • How to put Windows 7 on the new hard drive without boot cd? How will I know if 32 or 64 bits? This computer yourself running windows 10?

    * Original title: windows 7 download

    I have a laptop dell M4400 with windows 7 pro OA. HARD drive crashed and I replaced with a new one. How to put Windows 7 on the new hard drive without boot cd? How will I know if 32 or 64 bits? This computer yourself running windows 10?

    It has probably comes with Windows 7 Professional 64 bit.

    You can download a copy of Windows 7 Professional using the following instructions (update of Microsoft recovery software supports downloads with the COA key):

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

    You can also use Windows 10 too as you have the right to it as a free upgrade:

    • Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
    • Reboot several times, and then try again.
    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • Perform a clean boot, restart, and then try again.
    • If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both, then try to install.
    • If you are updated through Windows Update, when download reaches 100% disconnect from the LAN (Ethernet) Internet or Wi - Fi, then proceed with the installation.
    • If this does not work, try using the. ISO file to upgrade if possible.
    • If you are connected to a domain, go to a local account.
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • How can I me printer to load directly into my computer instead ofsnapfish

    How can I me printer to load directly into my photo folder on my computer instead of download on snapfish?

    Are you connected USB or wireless? If you are wireless, you will not be able to get the photos on the SD card on the computer.

    If there are videos or files of great true photos on the SD card, it will not download everything on the computer.

    When you put the SD card, it won't automatically on your Windows drive, Snapfish.

  • How to put a border around the text?

    Someone would be able to show me how to put a border of text around the text?

    Hello

    I think that if you want to put a border on the box containing that go to 'outline' so you can color and size choices
    but in the text, it is impossible.

Maybe you are looking for

  • Satellite M50-130 does not BSOD appears

    The M50-130 apparently won't let you run unless it is on the lowest power setting imaginable. At first I thought it was windows, reinstalled, even tried linux, same blockages. Blockages were handed over to instant zero or random messages on the BSOD.

  • How do the box values ring to have figures after the decimal point

    How do the box values ring to have figures after the decimal point Thanks in advance

  • Extract a table under a table 2D

    I've beaten my head against the wall on this issue for a while now and ran out of ideas so I ask for help somehow. What I want is pretty simple: A way to take a picture 2D with the time and temperature (the temperature is a thermocouple so there is a

  • Predictive keyboard (correcting/suggestions) in AIR apps?

    The OS 2.0 update adds a new text predictive keyboard add-on (correcting/suggestions). A quick review of various AIR applications on my PlayBook, I see that it does not work in them (conquest, files and folders, Poynt, etc.). Is there a way to enable

  • How to get the height in absolute pixels of a control

    I have a list of items seen with two hard coded into it.  I take the position of absoultely discovers this list to make it lower edge is a certain coordinate on the screen. (so that it is directly over another point aboslutely placed on the screen) T