How to show a splashscreen in a FLASH AIR game while content is loading

Hi,
I've seen some games take some time to load (something completely reasonalbe and normal). So I guess it would be really interesting to have a way to show a splash screen while the content is loading.
Any common aproach to face this problem?
Thks.

The solution is generally to break up the operation that is taking a long time into smaller chunks. If for example, you have a long loop executing, then AIR never gets a chance to update the screen (or respond to the OS messages).
The first step is to identify what part of the process is taking such a long time.
See http://senocular.com/flash/tutorials/asyncoperations/ for a good explanation.
And to put up a progress bar, you have to do this anyway, otherwise the progress bar will never get updated, either.

Similar Messages

  • How to show catalog items with Approval Status:Pending in a Content Search Webpart

    How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.

    I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
    As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to deal with multiple Android ressolutions with Flash- AIR games

    Hi,
    I have some Flash games that want to make run on different Android devices. How do we do so? I've seen that in one of my games, while I check "full screen" when exporting, the game area is not taking all the available space on the screen. I guess that's because the aspect ratio.
    I've seen this nice tutorial to solve that problem on Flex apps/games: http://gregsramblings.com/2010/05/06/scaling-an-adobe-air-application-to-fit-multiple-reso lutions-and-netbooks/
    Is there any similar solution for flash based games?
    Thanks!

    That article looks like it's geared towards desktop applications, and it makes sure the window never gets bigger than the original size.
    You will read, any minute now, that a lot of people set the stage to not scale, and then use layout code to position the interface to look right, and will even take note of the DPI of the device to make sure that buttons are the right physical size. That's fine for typical utility apps, but if you have a detailed illustrated background, or any sort of fixed bitmap art, it may not be the right way to solve the problem.
    The way I solve the problem is to not do any scaling at all, I leave that up to Flash, but I have spare content off the edges of the stage, that will be revealed on wider or taller screens.
    The first time I used that approach I made the Flash stage be 480x320, and had extra content above and below the stage, to a total height of 360. That single file would exactly fit the iPhone screen and also the different aspect ratio iPad. On the iPad you would see the extra content.
    That works fine if you layout for the widest device, and a have extra content for the less wide devices, but there is only one device less wide than the iPhone, the iPad. So now I have switched the technique to horizontal.
    My stage is now 1024x768, and there is a lot of extra content off the left and right edges. I have enough there that it will still fill the screen on the widest device, which is the new Samsung Galaxy Nexus.

  • How to embed icon MAc dmg file in air application while in windows its working fine

    how to embed icon in mac os dmg file ..while in windows i ha set in air application .xml file in <icon> tag and its working..so to embed icon for MAc OS

    solution ::
    add this code in windows app of AIR
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()" layout="absolute" xmlns:local="*">
    <mx:VBox>
    <mx:Label text="Jay Mahadev" fontSize="32" />
    </mx:VBox>
    <mx:Script>
    <![CDATA[
    private function init():void
    if(NativeApplication.supportsDockIcon){ 
    var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
    //dockIcon.menu = createIconMenu();
    else if (NativeApplication.supportsSystemTrayIcon){ 
    var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;sysTrayIcon.tooltip =
    "Stopwatch";sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
    //sysTrayIcon.menu = createIconMenu();
    public function undock(event:Event = null):void{stage.nativeWindow.visible =
    true;NativeApplication.nativeApplication.icon.bitmaps = [];
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    and also in windowapplication.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/1.0">
     <icon>
    <image128x128>/icons/128x128.png</image128x128>
    <image48x48>/icons/48x48.png</image48x48>
    <image32x32>/icons/32x32.png</image32x32>
    <image16x16>/icons/16x16.png</image16x16>
    </icon>
    </application>
    Reference Link :::
    http://www.adobe.com/devnet/air/flash/quickstart/articles/stopwatch_dock_system_tray.html

  • Adobe Flash Player stops working whenever Flash or Rich Media content is loaded.  Can anyone help?

    Whenever I launch a browser, I get a message telling me "Adobe Flash Player 11.5 r502 has stopped working."  Additional message says Data Execution Prevention has closed Flash Player.   I have tried all the applicable fixes suggested on the Flash Player help page (http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html).
    Flash Player version: 11.5.502.135  and .146
    OS: Vista Home Prem, sp2, 32-bit
    Browser: Firefox 18.0 and IE 9
    Anyone else have this problem?

    1st)    Click on the apple at the top left corner of your screen. Fourth option down, system preferences click this. Once system preferences opens up adobe flashplayer should be listed on the very bottom row, click this. Once adobe preferences are open make sure you are on the storage tab (listed accross the top), make sure "allow site to save information on this computer" is bulleted. Next click on the "local storage settings by site...". Once you click that, check to see if youtube.com is listed in the box. If not then click the + symbol at the bottom left. Manually enter www.youtube.com. Close out of everything.
    2nd)    Launch safari, look to the very top left corner of your screen. You'll see the word "Safari" just to the right of the Apple logo, click on this and go down to preferences. Next, go to the security tab accross the top. Make sure there is a tick/check mark in the "Allow Plug-ins" option. If it is, click "Manage website settings...". Then on the left-hand column select Flash Player. Then off to the right-hand pane, make sure that youtube.com is listed and that its set to Allow. Quit and re-open Safari.
    All of these steps or at least some portion of this should get it operational. If not, post back... more things we can do.

  • How to show information from sql to flash cs6 in textbox

    I am having trouble with the showing of result of the information from sql to flash cs6 textbox which is dynamic text.
    I am using php to transfer the data to flash.
    I will like to show me the information in order like
    Name      score
    Tom        20
    Jack       10
    I already try reqVar.name + " " + reqVar.score and it does not work.
    And there is also 6 data in the sql to be formated like the top.
      function loginFunction(evt:MouseEvent):void
      var variables:URLVariables;
      var req:URLRequest;
      var loader:URLLoader;
      if (usertxt.text == "")
      resTxt.text = "Please enter your username.";
      return;
      if (passtxt.text == "")
      resTxt.text = "Please enter your password.";
      return;
      variables = new URLVariables();
      variables.username = usertxt.text;
      variables.password = MD5.hash(passtxt.text);
      req = new URLRequest("http://localhost:8088/classP/checkLogin.php");
      req.data = variables;
      req.method = URLRequestMethod.POST;
                loader = new URLLoader();
         loader.addEventListener(Event.COMPLETE,handleRes);
      loader.load(req);
      function handleRes(evt:Event):void
      var loader:URLLoader;
      var reqVar:URLVariables;
      loader = URLLoader(evt.target);
      reqVar = new URLVariables(loader.data);
      if (reqVar.result == "PASS")
      gotoAndStop(10);
      var req:URLRequest;
      req = new URLRequest("http://localhost:8088/classP/getScores.php");
      req.method = URLRequestMethod.POST;
                loader = new URLLoader();
         loader.addEventListener(Event.COMPLETE,handleRes3);
      loader.load(req);
      else
      {resTxt.text = "Login Failed";}
      function handleRes3(evt:Event):void //to show the output message when it is correct in user and pass
      var loader:URLLoader;
      var reqVar:URLVariables;
      loader = URLLoader(evt.target);
      reqVar = new URLVariables(loader.data);
    displaytxt.text = reqVar.name + " " + reqVar.score;

    1.ckeck your syntax: the last two closing brackets are coming out of nowhere.
    2.use trace commands in your eventhandlers to show if you get any results and if not use them as a hint where the error lies.
    for example:
    reqVar = new URLVariables(loader.data);
    trace("reqVar:"+reqVar);

  • How to show video in iOS by flash builder 4.5?

    I use VideoDisplay show local flv  file, when publish to Andriod mobile phone, it worked , but publish to iphone4, it do nothing.
    But when I use video control attachCamera, it can work, why?

    iOS does not support flash video.
    That is not correct. We play flv just fine on the iPad, both locally and streaming over RTMP.
    We are using the AIR 2.7 SDK with Flex 4.5.1.

  • How to show playbar when exported to flash?

    When published as .swf(TEST_1.swf) and run it, the playbar appear. but when i load it inside loader (jumpeye loader component) and run it(base.swf), i can't see the playbar. How to include playbar so that i can combine all swf in one, easy for navigation and loading specific file?

    Kglad, you are my HERO!
    Thanks so much for your reply, I did not know about the embed options within flash...
    Mike

  • How to load and show PDF on stage in Flash using AlivePDF or PurePDF external libraries?

    Hello,
    I searched a lot on internet but didn't find a proper way to load and open/show PDF on stage in Flash. Following are my understandings about this topic.
    I know Flash does not have the built-in functionality to load and show pdf document on stage.
    I know you can do this in AIR application using HTMLLoader class but it required adove reader to be installed on your machine.
    I have used AlivePDF/PurePDF and I know how to export/generate a PDF File using these libraries but I don't know how to use them to load and show PDF document on stage in Flash. According to my research, I think these libraries can accomplish my task but how, I don't know. That's because I am here for your help.
    People suggest to first convert pdf into an image or swf file and then import it into Flash but I don't want this solution because my clients will be importing/uplading PDF file into my software.
    Some people suggest to "Convert PDF renderer code written in C/C++ using Alchemy to flash library" and then use that library to my project. I don't have any idea how to do this. If anyone can help me to achieve required functionality this way, please guide me.
    Now you know about my understandings, so you can guide me in better way. Let me give you an example what kind of functionality I want. Please visit: https://www.pdffiller.com. Upload a pdf file there and you will see that it shows that pdf to user (At the moment, I want this functionality) and pdf annotation i.e. write text on pdf and other functionalities.
    NOTE: I am not a Flex and AIR developer. I am a Flash (Actionscript 3.0) Developer. So please first help according to flash. If you want to offer the solution according to Flex and AIR, you are most welcome.
    I specially want "ADOBE EXPERTS - Adobe Flash developer from Adobe" to comment on this and help me out. It's about 4th day I am without a solution. I am afraid, I'll loose my client if I'll not have a solution in next couple of days.
    Thanks,
    momersaleem
    eLearning Specialist

    Just to throw in a $0.02, I looked at those libraries myself quite a while ago and all they had the ability to do was give you information and assets from the PDF. At that point you literally had to read each page in the PDF (whatever the library could extract), use the information it extracted (position, type size, images, etc) and create a layout engine that could "reconstruct" the page piece by piece.
    I hope it's better these days but that's what I took from those libraries quite a while ago and it may still be true. That would explain "Convert PDF renderer code written in c/c++ using Alchemy to flash library". Someone may already have written a quality layout engine. Otherwise there was no "load pdf, run this ShowPDF() function to add to display list" functionality at all.

  • Why has apple restricted adobe flash player?  How can one watch things like shows from CBS without the flash player?

    Wy has apple restricted the use of adobe flash player?  How can one watch things like shows from CBS without the flash player?

    This has been discussed a billion times. Please search before posting.
    Read this: http://www.apple.com/hotnews/thoughts-on-flash/
    CBS has apps for watching its shows. Search the AppStore.

  • How do I import music from a flash drive that was formatted with a windows PC to my MacBook?

    How do I import music from a flash drive that was formatted with a windows PC to my MacBook - the drive is showing it has over 3GB of info on it but none of the files are showing up in finder?  I had backed up my iTunes library on the flash drive about a year and a half ago before I switched from a dell to a MacBook pro.

    What I found works for me is to make sure iTunes keeps the music files organzied in the iTunes Media folder according to album, artists, etc. and that it copies the music files there when adding them to the library.  That way, if something happens to the library, the raw files can always be re-imported again.

  • How do i play my videos in flash file after moving SWF file to website?

    Hello all,
    I am having some problems showing my videos in flash after moving it anywhere besides my computer.
    I published my flash file once as a exe. file and sent it to another computer, where it all worked but my videos, which didn't show up at all.
    I also published them as SWF files, then put them up on my free website (where i don't have access to the ftp) and the videos still aren't there.
    The videos will play fine in an SWF file on my computer, but i am assuming when they are away from the videos, they don't have a source to access them.
    I also tried sending the videos along with the SWF files when sending to other computers and it still doesn't work.
    I now have a free hosted website (with wix.com if that makes any difference) with my flash work on, but no videos. I even tried to embed a youtube video into the scenes the videos are meant to appear, and put the videos on youtube, then i discovered you can't put that sort of HTML into flash.
    Does anyone know how to show the videos on these sort of website, or even better, how to keep them in original file when sending them, so they show on other computers.
    Sorry if I've waffled but I'm trying to clear up my situation .
    Any help would be super, many thanks,
    Flasher87

    i am using the website wix, so in order to put the swf file up you just click the "Upload SWF" button, so i don't know how i could put the videos along with the swf, the swf is just sat on the page once i upload it.
    second, when using this type of website do you know how i'd go about giving the website the permissions to play flv files?
    Thank you.

  • How do I get a button in Flash point to a https page of PagSeguro.

    How do I get a button in Flash point to a https page of PagSeguro. Programming they provide is this:
    <!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
    <form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">
    <!-- NÃO EDITE OS COMANDOS DAS LINHAS ABAIXO -->
    <input type="hidden" name="itemCode" value="AC0DD53E5757C9F774629F9937513499" />
    <input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/120x53-comprar.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
    </form>
    <!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
    If I past this programation in start HTML, I see border white in my page.
    I wrote a book and this schedule is to send to a secure site for sale
    I development my site in Flash 4 and now CC6. Export in Html
    www.escalasdecores.com.br

    Excuse me for my ignorance.
    I put the schedule as show below and generates an error when I export
    Scene 1, Layer 'Actions', Frame 350, Line 119, column 11 in 1061: Calling a possibly undefined method send through a reference with static type flash.net: URLLoader.
    Which is in line urlLoader.send (urlRequest);
    I used Snippets
    This programation:
    /* Evento de clique de mouse
    Clicar na instância do símbolo especificada executa uma função na qual você pode acrescentar seu próprio código personalizado.
    Instruções:
    1. Acrescente seu código personalizado em uma nova linha depois da linha que diz "//Iniciar seu código personalizado" abaixo.
    O código será executado quando se clica na instância do símbolo.
    button_7.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              // Iniciar seu código personalizado
              var urlLoader:URLLoader=new URLLoader();
    var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");
    var urlVariables:URLVariables=new URLVariables();
    urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";
    urlRequest.data=urlVariables;
    urlRequest.method=URLRequestMethod.POST
    urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    urlLoader.send(urlRequest);
              // Este exemplo exibe as palavras "Mouse clicado" no painel Saída.
              trace("Mouse clicado")
              // Encerrar seu código personalizado

  • How to show MouseOver effect on dropable region while dragging a MovieClip?

    Hello friends,
    I am creating Drag and drop flash application.
    While dragging an instance of a movieclip I want also the dropable region to show effect like MouseOver case.
    So that end user can confirm that they are dropping the item in right region.
    Here the mouse is moved while it is kept clicked
    Plz help me,
    Thanks.
    Venkat

    Thanks for taking interest.
    I did the first part of your reply already, but  How to check if a MovieClip is being dragged?
    Say, I have two MovieClips
    TargetToDrop_mc
    DropableRegion_mc
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
    function gotMouseDown(EventReceived:MouseEvent):void {
        EventReceived.currentTarget.startDrag ();
    function gotMouseUp(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.stopDrag();
    function gotMouseOver(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.alpha=0.5;
    function gotMouseOut(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.alpha=0.7;
    Now plze guide me on basis of above.
    Thanks,
    Venkat

  • How to export a fireworks file to flash while retaining image quality?

    I created a banner for our website using fireworks cs3. Part of the banner has aimation (basically a slide show of 6 photos). I've tried to export the files by saving the frams to files, but when I do this, the image quality really gets bad. When I try to change the export settings and change the dither, everything but the last frame looks better and the last frame looks like a yellow color is splattered all over it....I've tried just saving the file as an .swf file but when I do so, the file doesn't work when I insert it into my web page, it doesn't work.  Is there a better way to do this?  Can I export as something else then import into flash and still retain my image quality?  Thanks for any input and help!

    How are you inserting the file?
    Flash objects need to be placed in an object tag...as described here: http://kb2.adobe.com/cps/415/tn_4150.html

Maybe you are looking for

  • File Settings

    Hi, Currently this is my file sender configuration. ProcOrdRecs.fieldSeparator            "," ProcOrdRecs.endSeparator             "'0x0D''0x0A' ProcOrdRecs.beginSeparator          " The file got failed at the vendor side where he has given his inpus

  • How to cancel an A/P Downpayment Invoice which has payment on it?

    Dear all experts, How can I cancel a A/P Downpayment Invoice No.100001 whereby it has done the outgoing payment. I unable to cancel the outgoing payment due to this outgoing payment also paid for another A/P Downpayment and already draw to some invoi

  • Upgrade the processor of Portege 3110ct from Pentium II to Pentium III

    My question is if i can switch from the original pentium II to a pentium III processsor. If yes can you tell me how? If no, thanks for your time. I thank you all for you time.

  • Virus warning when upgrading to Abode Reader 10?

    So I get a notice that I should update my Reader to version 10 for some "enhanced" features, and at 50% receive this little notification from my AV: trojware.win32.trojan.agent.gen@27776523 Why?

  • Action script..PLEASE HELP..

    ...hello guys...i really dont know what to do...i have a drop down menu here..it is an xml driven menus...and i want to put a scroll bar in the submenus....so even if the submenus will be to many..it will not go across the movie....PLEASE HELP.. i am