Go to the second picture in the SWF loaded using Adobe AIR

Hello

I am a beginner to Adobe AIR. That I am charged an external SWF file in the AIR.

But I can't go straight to the second image of this external SWF file of the AIR.

How to load the second image of the external swf file. ?

Thanks in advance.

You must wait for function Event.COMPLETE the Loader to trigger to ensure that it is fully charged. After access the content of the loader property to access the MovieClip inside, for example:

swfloader.addEventListener (Event.COMPLETE, onComplete);

function onComplete(e:Event):void

{

var mc:MovieClip is MovieClip (e.target. content);.

go to section 2

mc.gotoAndPlay (2);

}

Tags: Adobe Animate

Similar Questions

  • How to access the camera in the Blackberry Playbook using Adobe Air SDK (in Flash builder Burrito)

    Hi all

    How to access the camera in the Blackberry Playbook using Adobe Air SDK (in Flash builder Burrito).

    Provide me with examples of coding please.

    Thanks in advance.

    With respect,

    Sampath

    Not possible yet. See http://docs.blackberry.com/en/developers/deliverables/21880/Known_issues_1360895_11.jsp

  • How to align the text to the right in the text filed using Adobe Acrobat Pro?

    How to align the text to the right in the text filed using Adobe Acrobat Pro? I am able to align the text box, but not the alignment of the text with the deposited text.

    In the Options tab of the field properties dialog box, you can choose left, Center, or right alignment.

  • rinsing of the SWF loaded phase target mc?

    Hi, I'm using buttons to send the playhead to executives in which sovereign wealth funds are then loaded into an empty movieclip called "stage_target_mc"... .how I can then flush out the previously loaded swf then only a newly loaded swf displayed in "stage_target_mc"?  For example, after you click on the button 'about' swf 'about' load... then the "concepts" click the "concepts" swf loads - but the previously 'about' loaded swf plays again... I wish I could rinse the swf 'about' so only "concepts" are display, in this example.  Thank you!

    code associated with buttons that are used to send the playhead to frame "concepts" or "about":

    about_btn.addEventListener (MouseEvent.CLICK, displayAbout);

    function displayAbout(e:MouseEvent):void {}

    root.gotoAndStop ("about");

    }

    concepts_btn.addEventListener (MouseEvent.CLICK, displayConcepts);

    function displayConcepts(e:MouseEvent):void {}

    root.gotoAndStop ("concepts");

    }

    code on frame called "concepts":

    stage_target_loader. Load (new URLRequest("swfs/stages/concepts.swf"));

    MovieClip (root).stage_target_mc.addChild (stage_target_loader);

    code on frame called 'a way':

    stage_target_loader. Load (new URLRequest("swfs/stages/about.swf"));

    MovieClip (root).stage_target_mc.addChild (stage_target_loader);

    Before loading, try to use the method of the Loader class unloadAndStop() If you are using a version of Flash newr

  • white box flashes before the SWF load

    I am embedding my swf using SWFobject file but I get a white box, flashing until the swf file is loaded. I tried all the suggestions, but I still have the problem.

    The Flash file and the browser background color is the same. Any new idea on how to solve this problem.  I'm a casual AS3 programmer, I'm just learning to be able to do my own Web site.

    You can take a look at a problem in www.carlosNmolina.com

    Thanks in advance.

    Hello

    Yes, the famous "white lightning" is caused by SWFObject, but is more or less a bug; Just to set the bgcolor parameter, otherwise it's default white:

    var params = {bgcolor: '#000000'};
    swfobject.embedSWF ("my.swf", "flash", "100%", "100%", "10.0.0", false, {}, params");

    Easily attaches.

    (Here it is SWFObject 2.2. It's the 8th budget in the declaration of swfobject, and of course, the color is the color of your choice.)

    ____________________

    Design Cyboide

    Web site creation

  • Why the Brazil cannot use Adobe Stock?

    Hello guys,.

    I am new to Adobe and I want to know why I can't use Adobe Stock to the Brazil

    Every time when I try, you'll see this message:

    "Licenses can be purchased online in your area.


    I really want and need to use it.

    Thank you people.

    < 3

    Hello

    Please see the frequently asked questions, Adobe Stock

    You can check the countries in terms of availability.

    Kind regards

    Sheena

  • How to remove the screen debugger in Adobe air applications?

    can someone help me remove screen Adobe AIR (unable to connect to the debugger) in my application .apk airScreenshot_2015-05-12-11-07-15.png

    How to remove this screen

    I tried disabling the debugger option in publication of flash CC settings. I always get this screen?

    After unchecking the option of the debugger you republish your air application and then check the date of creation of the application you are testing?

  • loadFilePromise() unavailable method in the class Loader using FB 4.7 (target iOS)

    Here is my code:

    errorLoadFilePromise.jpg

    Note that mpLoader is declared as a class Loader, but when I try to use the loadFilePromise() method, it does not accept it syntactically.

    Is there a reason for this?  I checked then triple in the online documentation. It comes to show me examples where loadFilePromise() works of course...

    What's wrong with this code? Why won't it work?

    I took this code directly from example ActionScript 3 on the Adobe website, but it did not work.

    This is my new solution after 6 days of trial and error (error, for the most part)

    public class TakePhoto extends Sprite
      {
           private var cameraUI:CameraUI = new CameraUI();
           private var cameraRoll:CameraRoll = new CameraRoll();
           private var dataSource:IDataInput;
           private var eventSource:IEventDispatcher;
           private var testTxt:TextField = new TextField();
    
           public function TakePhoto()
           {
                if( CameraUI.isSupported )
                {
                     testTxt.text = "CameraUI Initializing ...";
    
                     cameraUI.addEventListener( MediaEvent.COMPLETE, imageSelected );
                     cameraUI.addEventListener( Event.CANCEL, browseCanceled );
                     cameraUI.addEventListener( ErrorEvent.ERROR, mediaError );
    
                     cameraUI.launch( MediaType.IMAGE );
                }
                else
                {
                     testTxt.text = "CameraUI is not supported.";
                }
             }
    
             private function imageSelected(e:MediaEvent):void
                {
                     trace( "Media selected..." );
                     testTxt.text =  "Media selected...";
    
                     // Create a new imagePromise
                     var imagePromise:MediaPromise = e.data;
    
                     // Open our data source
                     dataSource = imagePromise.open();
    
                     if (imagePromise.isAsync )
                     {
                          trace("Asynchronous");
                          var eventSource:IEventDispatcher = dataSource as IEventDispatcher;
                          eventSource.addEventListener( Event.COMPLETE, onMediaLoaded );
                     }
                     else
                     {
                          trace("Synchronous");
                          readMediaData();
                     }
                 }
    
                private function onMediaLoaded( event:Event ):void
                {
                     trace("Media load complete");
                     readMediaData();
                }
    
                 private function readMediaData():void
                 {
                     testTxt.text = "Read Media Data";
                     trace("Read Media Data");
    
                     var imageBytes:ByteArray = new ByteArray();
                     dataSource.readBytes(imageBytes);
    
                     var loader:Loader = new Loader();
                     loader.loadBytes(imageBytes);
                     loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageAddToCamRoll);
                     loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, onMediaLoadError);
    
                   }
    
                protected function imageAddToCamRoll(event:Event):void
                {
                     var loaderInfo:LoaderInfo = LoaderInfo(event.target);
                     var bmpData : BitmapData  = new BitmapData(loaderInfo.width, loaderInfo.height, false, 0xFFFFFF);
                     bmpData.draw(loaderInfo.loader);
    
                     try
                     {
                          cameraRoll.addBitmapData(bmpData);
                          trace( "image added to cameraRoll" );
                          testTxt.text = "Image added to cameraRoll";
                     }
                     catch (e:Error) {
                          trace( "Caught :: " + e );
                          testTxt.text = "Image failed to add to cameraRoll";
                     }
      }
    

    It worked. Now I can take pictures and store them in the film.

  • I want to install windows os(not genuine) in the mac, I use mac air beginning 15, 4 GB of ram, 128ssd.     I want to play counter strike (overall offensive) in the windows operating system.     is 4 GB of ram enough or it takes 8 GB of ram.

    in fact, I want to install windows os (not authentic) because I'm fond of counter strike

    so, mac support this game?

    or it takes 8 GB ram to play counter strike?

    operating system windows (not authentic) will cause no effect on mac?

    If I install the windows on mac operating system, I will award 58 GB in the windows operating system and remains to mac, goes no problem in the future, due to the windows operating system?

    ALSO POINT OUT THE ADVANTAGES AND DISADVANTAGES OF INSTALLING WINDOWS ON A MAC.

    operating system Windows (not authentic)

    This means that you ask for assistance on the use of a pirate copy of Windows?

    If you install Windows, you have the advantage of being able to run Windows and the inconvenience of having to deal with all the viruses and stuff for which Windows systems are prone.

    Why not just buy the Mac version? It seems relatively inexpensive: http://store.steampowered.com/app/730/

  • Script to hide the dock while using Adobe software

    Hi guys,.

    I'm wondering - is it possible to write a script, automator service or something that hides the dock automatically at launch of Photshop exaple? It would be helpful since software Adobe is not fullscreen support.

    Thank you!

    Does not "automatically hide / show the Dock" in System Preferences > Dock?

  • Difficulties to download the .pdf file using Adobe 10 app "no connection not detected".

    Have enabled internet connection when you are connected to the web page and domain name when I try to download the .pdf forms, open app Adobe10 but file download transfer stalls saying unable to detect the internet connection? I am already connected, I don't understand

    file transfer download stalls saying unable to detect the internet connection? I am already connected, I don't understand

    A firewall can cause that.   For example the program tries to link may need to be allowed to pass through.

    ---

  • Splash image but still not full screen for the game appear in adobe air ios

    I added splashes, HE appeared on the launch of the app, yet there are black bars in my game on left and right, it is in landscape mode. stage.displayState = StageDisplayState.FULL_SCREEN; I also tried to add this and publish full mode setting screen is enabled. Please someone guide me what I'm doing wrong and how can I play my application in complete mode.

    Set the property ScaleMode (ScaleMode) of course.  If you want to skip the proportions and show all the use of the scene.

    stage.scaleMode = "exactFit";

  • Edit the Web site using Adobe Muse CC (was: my web site)

    My site was designed using Muse. I want to be able to edit my site, but I thought that this will mean me download the program, is this correct. I'm not a computer fundee but could certainly change my site if could get.

    Thank you

    Peter

    Ask your designer if the "browser edition" feature is available for the parts that you want to change.

    Sites of muse aren't very well transferable in another edition of web programs. Muse is designed for coders and so its code is complex sort.

    Fenja

  • How to put the SMS PHP script on the Web site using adobe DreamWeaver

    Where should we found a site that is easy to love your HTML codes with PHP scripts to receive or send TEXT messages? [suspect URL removed by Moderator] so we saw this Web site?

    [suspect URL removed by Moderator] Talking about how to skip the check for text Messages on a Web site, but it is possible to intergrate such a script in PHP coded in a designed HTML tag or the designed Web Adobe Muse site

    You could, but my favorite workflow is to use Dreamweaver for the entire project.  Muse code is very messy work with.

    Nancy O.

  • During the first loading of Adobe Story more, what do you do if the program loads at all times throughout the day without opening?

    When I open Adobe Story, he constantly load without opening... What should I do to fix this?

    Turns out that I signed in on another computer and it didn't. So to get more Story to work on the computer I was on, I first have to disconnect from the other computer.

Maybe you are looking for