How to create a preloader in Flash CS5?

can someone help me with creatinga preloder in CS5?

Here is the code.Create a movie clip and call it logo_mc    Inside that movie clip insert a text field.  Make it dynamic.  then lable it percent.  This will create a nice preloader.  Do not put this code in your current project.  Create a new file.  change "http://www.buttonbeats.com/images/pianonewSounds.swf" to the address of your flash app.
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("http://www.buttonbeats.com/images/pianonewSounds.swf"));
function loop(e:ProgressEvent):void
    var perc:Number = e.bytesLoaded / e.bytesTotal;
    logo_mc.percent.text = Math.ceil(perc*100).toString()+"%";
function done(e:Event):void
//    for(var i:uint = 0; i < numChildren;i++){
//        trace("CHILD:"+getChildAt(i).name);        
    removeChildAt(0); 
    addChild(l); 
    var movie:* = l.content; 
    movie.play(); 

Similar Messages

  • Need to learn how to create a slideshow in Flash

    Hello All,
    I'm new to Flash and I need to learn how to do a slideshow with exactly the same features as can be found in this link:
    http://www.esppromo.com/index.asp
    Just like at the link above, it needs to play through the slides automatically once the page is loaded, each slide needs to link to a specific URL, and I need controls similar to the boxes at the bottom so the viewer can click on any specific slide they wish to view (I'd like to have numbers in the boxes though). The transitions don't have to slide across like this. If a fade is easier, that would be fine.
    Since I've looked online, but can't find any tutorials for doing this in Flash Professional, I think I'll pick up a book on Flash. There are some online tutorials that are close but nothing that is exactly what I'm looking for.
    I'm just wondering if anyone can recommend a particular book that covers creating this type of slide show with the links and controls exactly as I need it to be. I see these types of slide shows on a lot of sites now, so I'm hoping that maybe someone else on this forum has had to learn how to do this and can recommend a book they used?
    I was looking at Adobe Flash Professional CS5 Classroom in a Book and it looked like it may be what I'm after, but I am rather cautious, as I don't want to end up with instructions that are close to what I am looking for, but not quite right.
    Actually, I thought I'd be able to do this fairly easily with Flash Catalyst, so I updated to Adobe CS5 Design Premium. I found that Flash Catalyst can be used to create a slide show like this, but unfortunately it won't play automatically when the page loads and the viewer has to manually click through the slides, which is not what I need. I could be wrong, but from what I've read, I need Flash Builder to add code so the slide show will play automatically if I create it in Flash Catalyst. Since it's not an option for me to buy more software at this time, I've decided to learn how to do this in Flash Professional.
    I really want to learn how to do this. I expect to go on and create more using Flash, but for now I just REALLY need to figure this slide show out.
    If anyone can help out, I'd really appreciate it!
    Thanks,
    William

    Edit:
    i'm sorry. it is a huge work to type this and will be confusing as hell. i'm already up to 1 full word page of explanation. Though i am able to do it, explaning it in full lengh is ... well.. very hard. Way harder than it is to make your flash itself.
    I can however point you to some element you should read about how to make them:
    - How to use timeline in flash cs4
    - how to create a button in flash cs4
    - How to make "CLASSIC TWEEN" in flash cs4
    - How to use ActionScript 2 ( AS2) basic command like : GetUrl, Gotoandplay, Stop and how to put those script in the right location. ( AS2 allow you to put script directly on the button itself. however it is best to put it in the Action Layer that you will have to build in the timeline.
    - How to import thing in library.
    keep in mind that what you want to make is mostly a Logic probleme...
    - Image 1 click = GetURL X,
    - After Y time, Switch image 1 to image 2 with animation. Do the same for the button.
    - If you click on button 1 while being on image 3, you have to set all the reverse animation in the timeline, and use a lot of Gotoandplay.
    Hope this help you a little.
    I'm sorry. i really wanted to help you do it, but it is just a monstruous job to write all this.

  • Creating a component in Flash CS5

    Hi,
    How can I create a component using Flash CS5? I have tried to follow various documents I have found on google and went about it in the following way:
    1. I created an empty FLA.
    2. I created a MovieClip containing some graphics, and named the MovieClip "MyTestComponent" in the Library.
    3. I selected the MovieClip's properties in the Library and selected "Export for Actionscript", and made the MovieClip inherit from fl.core.UIComponent.
    4. I saved the FLA in the directory "C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Components" and restarted Flash. At this point I would expect that the MyTestComponent component would show up in the Components panel, but it did not.
    5. I tried to publish the FLA as an SWC file and place the SWC file in the same file as above. According to my understanding, both this and the step above should have worked, but it did not.
    So, what am I missing?
    Also, where can I find an up-to-date documentation on how to create components to be used in Flash CS5?

    I managed to get it work at the end...
    First, the components directory was at this location:
    C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
    Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

  • How to publish iPhone Apps with Flash CS5 for beginners

    After many trial/errors and with lots of support from this site, I've decided to start building some tutorials to help people get into the packager. This is the first one and, now I'll work on a usual erros handle tutorial.
    Any comments and/or critics are welcome.
    http://www.chrisid.com/blog/2010/10/how-to-publish-iphone-app-with-flash-cs5-for-beginners /
    cheers,
    Chris.

    It helped me a lot, exept I hav this little problem ..
    I can't select the .p12 file .. it's disabled..

  • How to create volume slider for flash cs 5 using action script 2.0?

    how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
    stop();
    mySoundBtn.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip");
              mySoundC.start(0, 10);  //10 represents the number of loops
              gotoAndPlay(2);
    This sound plays till 3-4 scene ahead.
    Can anyone help me?

    Hey thnx Ned.
    this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
    Below is my slider code for sound.
    onClipEvent (load) {
        mySound1 = new Sound();
        mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
        mySound1.onSoundComplete = function() {
        mySound1.start();
        mySound1.start(0.058,999);
    onClipEvent (enterFrame) {
        downloaded = mySound1.getBytesLoaded();
        total = mySound1.getBytesTotal();
        if (downloaded != total) {
            _root.dl = "You have to buy this software...";
        } else {
            complete = 1;
            _root.dl = "";
        mySound1.setVolume(ratio * 2);
    This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
    Below is my button code.
    stop();
    mySoundBtn4.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip4");
              mySoundC.start(0, 300);  //10 represents the number of loops
              gotoAndPlay("play1");
    this is on button's frame.not exactly on button.
    Button and Slider both are on diffrent scene.
    Can you plese help me out?

  • How to create a Macromedia's Flash Java Player with JMF?

    How to create a Macromedia's Flash Java Player with JMF? Can you give me an example? My email:[email protected] [email protected]

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • Newbie Here - How to Create a Slide Show in CS5?

    I am using Windows 7 and I am familiar with PSElements 8 where creating a slide show is easy.  I just want to create a slide show in CS5 (in Bridge??  View>Slideshow Options?) using vacation photos from several folders, and I want to order them manually.
    First, I can't figure out how to display more than one folder in the Content panel in Bridge.  Second, I can't figure out how to create and intersperse "blank" slides with text.   Third (and I haven't even gotten this far yet), how do I save the slide show and burn a VCD?  This was all so easy and intuitive in PSE8, I can't believe it seems nearly impossible in CS5! 
    As an alternative, should I simply re-save the photos as JPEGs (they are PSDs now), export them to a Desktop folder, open them in PSE8 and create the slide show there instead?   Thanks for any help and suggestions!

    I am using Windows 7 and I am
    familiar with PSElements 8 where creating a slide show is easy.  I just
    want to create a slide show in CS5 (in Bridge??  View>Slideshow
    Options?) using vacation photos from several folders, and I want to
    order them manually.
    First, I can't figure out how to
    display more than one folder in the Content panel in Bridge.  Second, I
    can't figure out how to create and intersperse "blank" slides with
    text.   Third (and I haven't even gotten this far yet), how do I save
    the slide show and burn a VCD?  This was all so easy and intuitive in
    PSE8, I can't believe it seems nearly impossible in CS5! 
    As
    an alternative, should I simply re-save the photos as JPEGs (they are
    PSDs now), export them to a Desktop folder, open them in PSE8 and create
    the slide show there instead?   Thanks for any help and suggestions!
    1) Bridge has a new feature (can't think of the term at the moment) but it works like instancing or virtual copies. Select all of the photo's that you want and place them in the "collection" (Ah I knew I would think of it) Move to another folder and move them into the same collection and so on. These are virtual copies in that they don't really exist, but are a link to the original images. You then can use the collection for the slide show.
    2) Just create a page same size as your photo's in photoshop with what ever color background and put your text on it.
    3A)The slide show can be exported as a pdf or swf. Windows can then copy the file to a cd. If you choose swf, you may need to alter the html file (I assume it generates one, if not it isn't har to create one) The html file would help the web browser determine the correct size to display at. If you have flash, it can be used to create a html file as well.
    3B)If you would like the slide show to be displayed on a tv screen, then your cd/dvd will need to use a format that your dvd player can play, mp2 is the standard, but some can display jpg's, some are blue ray, etc. For exporting into the correct video format, then one of the following can be used. After Effects, Premeire pro, Encore, Photoshop (If you have quicktime installed and you are using one of the formats that quicktime supports like mp4)
    If you have quicktime installed, paying the 20 bucks may be worth it as it will allow you to take your jpg images and generate an animation file as avi or mov. But can save as mp4 as well.
    4) In Bridge you can select all of the images and run image processor on them. This plug in is part of photoshop there fore it will be in the menu's under photoshop. It will let you specify the files size, format and any actions, etc. It will then place them all into a folder that you specify.

  • How to create an swc in Flash

    Hi
    I've searched around, but couldn't find a decent answer for this question...
    I have a set of AS3 classes (it's actually the code for papervision 3d), and I'd like to create an .swc library in order to speed up compiling. Papervision provides an swc, but I've modified the core library.
    I don't use Flex, or Flash builder, for the moment I'm using only Flash CS5.5 and the command line.
    How can I create an swc from this code that can then be imported into a Flash file as a library?
    From my search I'm getting the sense I need to use the command line tool compc, but I don't see clear instructions on how to do this. Does anyone know? Thanks.
    -rich

    If you have Windows as an OS, perhaps consider FlashDevelop (http://www.flashdevelop.org/) with the ExportSWC plugin (http://sourceforge.net/projects/exportswc/)? Looks like some people may be having some issues with it working 'right out of the box' with the latest release of FlashDevelop, but there seem to be answers to most problems within the FlashDevelop forums.

  • How to debug swc files in Flash CS5

    Hi, to coin a familiar phrase "I'm new to Flash developement". My question is very simple. How do I debug .swc files (that I've created in Flash Builder 4) in Flash Professional CS5. I've incorporated the .swc file in the Publish Settings->Flash tab. But when I attempt to consume the objects in the .swc file I get an error saying it "Cannot display source code at this location."
    Can someone tell me the best pratice for debugging .swc files. Do I debug them in Flash Builder or Adbobe Professional Flash CS5?

    I think I found the solution to my problem..... but dont know how to implement it correctly.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html#SHOW_ALL
    I believe I need to use the SHOW_ALL constant, but there isn't an example of how to do it
    Heres my code, it compiles without errors, but when I publish it as .exe I get the 'Error 1037: Package cannot be nested':
    package
              import flash.display.StageScaleMode
              import flash.media.Camera;
              import flash.media.Video;
              public class ScaleMode
                        public static const SHOW_ALL:String = StageScaleMode.SHOW_ALL;
                        var camera:Camera = Camera.getCamera();
                        if (camera != null) {
                                  videoTwo.attachCamera(camera);
                        } else {
                                  trace("You need a camera.");
              stop();
    Any ideas??

  • How to create slide show in Photoshop CS5.

    Hi,
    Does anybody knows how to create a slide show in photoshop CS5 on windows computer?
    Thanx

    marer1976 wrote:
    use Output Module in Bridge (CS4 and CS5 only) and you can very easily and quickly create a slideshow. Loads of options in a very easy to understand format and in an order.
    Have fun! 
    IMO the Output Module in Bridge offers a limited number of options. If you can program some you have endless possibilities using Photoshop Scripting.   I have an old 20th century programming background, don't have good understanding of object programming still I was able to hack one of Jeffrey Tranberry Photoshop scripts created for the Simpleviewer Web Gallery Flash Viewer. I Changed features and Added features and options I wanted for example Meta-data support for copyright notice, titles, description, Links, e-Mail to, EXIF etc.  It was also easy to adapt this script to generate other Flash Web Galleries like WS-Slideshow. 
    Examples:
    SimpleViewer: http://www.mouseprints.net/SVNewZealand/ 
    Ws-Slideshow the way I generate these I hide the Ws-Slideshow menu bar you need to hover the mouse cursor over the bottom of the image window to be able to see and use it. This Ws-Slideshow gallery contains nine albums http://www.mouseprints.net/albums/

  • Creating universal app using flash cs5

    Hi,
    I'm using Flash CS5 and I wanted to create an universal app (iphone + ipad).
    Then I click the "iphone IOS settings"  there is no device menu, so I can't choose the desired devices..
    I dont know why the device menu has disappeared?
    I saw on several video tutorials, that you can simply choose the desired device.
    But then I look at my own project and I click the "iphone IOS settings", I cant find any "device" menu by the "general" tab.
    Does anybody know how I can resolve that problem?

    The iPad support was added later. Get the 11.02 updater here:
    http://www.adobe.com/support/flash/downloads.html#flashCS5

  • How to easily get an Adobe Flash CS5.5 Professional project into Flash Builder 4.5?

    Hey all,
    I am new and trying to do the following, can you please guide/help me do it:
    I have a video chat application that is done on Adobe Flash CS5.5. I had the problem of "echo" so I wanted to use "getEnhancedMicrophone()". When I replaced "getMicrophone()" with "getEnhancedMicrophone()", Adobe Flash CS5.5 Professional didn't recognize it. I knew I need Flex, so I installed Flash Builder. And then got lost. What I simply want is just import my "FLA" file (or if I need to convert it to something else using a specific tool, let me know.. I have Adobe Flash CS5.5 Professional and can install other required applications if needed) done on Adobe CS5.5, into Flash Builder, and then "support Flex" so that I compile with the flash-version argument required.
    I am totally new to MXML and Flash Builder, and even Flex. I don't know how to import a FLA and add "Flex" libraries into it simply to make "getEnhancedMicrophone()" work without the need to recreate the whole thing on Flash Builder. Can you guide me please? The output is for a web SWF file, not a desktop application.
    Thanks!

    I have the same problem here. I'm trying to do a stick animation on cs6, but to be more precise, i need to actually draw with a larger brush size. I suggest using the pen tool with the smooth option on. You can't see exactly where the stroke will be, but its better than nothing, and it more or less acts like the brush anyway.

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • How to display dynamic text in flash CS5....

    i am using flash cs5...i created a game but when i m running it...it is  showing a message saying "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts""
    and i am not getting my dynamic text output.......please hwlp me out!!!!!!

    As the error message says, you need to embed the font(s) that you use in any input or dynamic text object so that Flash will have that font to use when displaying the dynamic text. There are several different ways to accomplish this. Are you using textField objects on the stage, or are you creating instances of textFields using Actionscript?

  • Create cool preloader without flash?

    Hi all,
    Is there a way I can graphically design a preloader with just AI en Flex?
    I've found tutorials online using Flash and pure AS3 to create preloaders, but it'd be very convenient if I could use Flash Builder and create a Preloader.mxml with some simple .FXG graphs.
    Or maybe there's a way to generate a standard PreloaderSkin.mxml with FlashBuilder which I can use as a template?
    Thanks!

    Hi,
    I had a bit of a play with preloaders, this is what I found.
    1. A flex based preloader is no value as it won't work until the framework components are loaded, even if you start to add the needed libraries into a flex swc the file size becomes very large very quickly which defeats the whole purpose of a preloader.
    2. Preloaders are happy to be constructed with any elements available in the flashplayer so you don't need a preformed flash based swc or swf as a preloader.
    3. Its Easy to write actionscript preloader's in flex.
    4. A preloader generator wouldn't be that hard to make maybe an air app with a visual designer that generates the requires actionscript file.
    I am going to play with the visual designer idea after experimenting with preloaders that use a config file for 'skinning'.
    for a basic as preloader (no flash needed )
    http://ezflex.net/  view source enabled
    David

Maybe you are looking for