flex3 - Add Child immediately in Flex 3 -


I have a problem as the code is as follows:

  saving the private function bitmap ( Event: context menu event): zero {loadingScreen.visible = true; LoadingScreen.appLoadingText.text = "Preparing bitmap ..."; AddChild (loadingScreen); ValidateNow (); Var BMPD: Bitmapdata = New Bitmapdata (Canv., Canv.High); Bmpd.draw (canv); Var fr: FileReference = New FileReference (); Fr.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA, RemoveLoadingScreen); Fr.addEventListener (event.cancel, removeloading screen); Var PNG: PNGNcoder = new PNGNCoder (); Var Iba: Bitere = PGN. Encode (BMPD); Fr.save (Iba, "Export Page"); }  

Basically, bmpd.draw and / or png.encode are slowing the dog, so I should look good to "Please make your png ready" to reveal the dialog Please keep. I can not use callLater () due to FileReference.

And just for the good measure, the loading screen appears at the same time, since when fr.save () appears from the dialog call to save.

Any thoughts?

Cheers!

Are you adding children to this function? Are you doing any other work on the loading screen, like That give it shape? Or the situation? Most of this update is done in the DisplayList () What container are you using?

Are you sure your two children's Z-order is correct? You can swap kids with method


Comments