Stop Looping in SWF Loader

Hi i'm new to AS, I am trying to use the AS3 Loader class to
pull in a SWF file that should only play once.
How do I get this thing to stop looping?!
Code is below.

you must explicitly stop the video stream. if you're using
the flvplayback class to start the video's play, you'll need to
apply the stop() method to that class instance.
you can access the main timeline of your external swf by
referencing the content property of your loader (and casting that
as a movieclip). from there, use the path to your flvplayback
instance and apply a stop() when the playheadPercentage of your
flvplayback instance reaches 100.

Similar Messages

  • Flash won't stop looping

    I have imported a 4 second SWF into Captivate 4. I want it to play through once then stop on the last frame of the SWF. The SWF has a stop embedded on the last frame. The problem is; it won't stop, but keeps on looping right through the SWF stop. I tried placing a 'Next' button with a "Pause after n seconds" on it and used varying intervals from 1 to 5 seconds for the pause to take effect but, you guessed it, the SWF just keeps on a-rolling along. The screen does stay put and does not continue until the 'Next' button is clicked - but I'm trying to get the SWF to play nice, and it won't!
    It seems to be the opposite problem to this post > http://forums.adobe.com/thread/607598 where they want to keep it looping, but it stops instead. Unfortunately there's no answer in this post so I can't reverse engineer a solution!
    Caviat: A colleague created the swf to my spec and I'm assuming they did in fact put the stop where requested. Will post an update if they did not do this.

    Your mismatched timing might be due to the frame rate of the Flash SWF not matching the frame rate of the Captivate movie.
    Check with your Flash developer again to find out what the frame rate was (e.g. 30 frames per second).  Get him to match it to the Captivate project.
    The issue with Flash animations needing to be on the main timeline has been documented before in these forums.  It wasn't an issue in Cp4 but has become so in Cp5 because the new architecture actually loads all the animations at the beginning of the movie. This means that by the time you reach the slide where you want the animation to play, it's already played long before.  This only affects SWF animation that have buried the animation inside a symbol, which is what Flash developers often do to make it all easier to resize and reposition as needed.  When the animation is happening one level down from the main timeline, you can trigger this animation to work properly in Captivate 5 by using some ActionScript in the Flash animation's main timeline.  Here's how:
    Create your animation as a symbol on a single keyframe so that the animation happens on the level one level down from the main timeline.
    Give the animation symbol an instance name (e.g. Fred).
    Add a new layer to the main timeline for ActionScript.  You're only going to need two frames on the main timeline with keyframes on each one.
    Put a stop(); action on the second frame so that it stops the main timeline.
    On the first keyframe put this code or similar: Fred.gotoAndPlay(1);
    What happens here is that when the Captivate SWF loads it will load your animation and start playing it but it will be stopped at the second frame of the main timeline.  When it gets to the slide where you want it to play, it will begin playing again, hit the first frame and then the AS code there will tell the Fred animation to play from its first frame. Hopefully there will be a stop action on its own timeline to terminate it as well.
    I've had to use this trick several times when trying to use the Right_Mark and Wrong_Mark tick and cross SWF animations that come with Captivate 5.  They've obviously not been updated to work properly since the change from Cp4.
    Hope this helps.

  • No loop in swf array?

    Hey everyone.  So, I have this flash movie I've been working on for awhile.  Everything's going great thanks to a lot of help I've received in these forums.   I have my file set to load an array of swfs.  Now, though, I'm wondering how to keep it from looping.  At the end of the last swf, I want the movie to go to the last swf and then just stop.  Here is my code:
        var listener:Object = new Object();
        var mcl:MovieClipLoader = new MovieClipLoader();
        mcl.addListener(listener);
           // When the swf loads, set it up to constantly check its current frame
        // against the total frames, and if those match, the swf is done playing.
        // If that's the case, then load the next one.
        listener.onLoadInit = function(targ:MovieClip):Void {
           theTargetClip_mc.onEnterFrame = function():Void {
              if (this._currentframe == this._totalframes) {
                 loadNext();
                 delete this.onEnterFrame;
    //Previous and Next Swf Buttons
    function loadNext():Void {
        currentSwf++;
        if (currentSwf >= swfs.length) currentSwf = 0;
        loadSWF(currentSwf);
    function loadSWF(nextSWFToLoad){
       mcl.loadClip(swfs[nextSWFToLoad],theTargetClip_mc);
    loadSWF(currentSwf);
    function loadPrevious():Void{
       currentSwf--;
       if(currentSwf==-1) currentSwf = swfs.length-1;
       loadSWF(currentSwf);
    previous_btn.onRelease = loadPrevious;
    next_btn.onRelease = loadNext;
    //End Previous and Next Swf Buttons
    //Play Button
    play_btn.onRelease = function() {
        theTargetClip_mc.play();
    //Pause Button
    pause_btn.onRelease = function() {
        theTargetClip_mc.stop();

    Cuwen_26 wrote:
    Does anybody know how to add that kind of code to the code I already have?  Help would be very much appreciated!!  I'm really curious to see how this would be done.
    NOTE:  take note of the SWF titles I have in the added Array declaration line . . . . (var swfs:Array=new Array("etc,etc,etc") below in the code)
    CODE:
    var listener:Object = new Object();
    //change the titles in the array to whatever your content swfs are called
    //in your directory.  Store the swfs in the same directory
    //as your FLA
    var swfs:Array= new Array("swf_01.swf","swf_02.swf");
    var container:MovieClip = createEmptyMovieClip("container",getNextHighestDepth());
        var mcl:MovieClipLoader = new MovieClipLoader();
        mcl.addListener(listener);
           // When the swf loads, set it up to constantly check its current frame
        // against the total frames, and if those match, the swf is done playing.
        // If that's the case, then load the next one.
        listener.onLoadInit = function(targ:MovieClip):Void {
                trace("loaded listener");
    theTargetClip_mc.onEnterFrame = function():Void {
              if (this._currentframe == this._totalframes) {
                 //loadNext();
                 delete this.onEnterFrame;
    //Previous and Next Swf Buttons
    var currentSwf:Number=0;
    function loadNext():Void {
        currentSwf++;
        if (currentSwf >= swfs.length){
              //currentSwf = 0;
        loadSWF(currentSwf);
    function loadSWF(nextSWFToLoad){
       mcl.loadClip(swfs[nextSWFToLoad],theTargetClip_mc);
    //loadSWF(currentSwf);
    function loadPrevious():Void{
       currentSwf--;
       trace(currentSwf+" currentSwf");
       if(currentSwf==1) {
            currentSwf = swfs.length-1-1;
       trace(currentSwf+" currentSwf");
       loadSWF(currentSwf);
    previous_btn.onRelease = loadPrevious;
    next_btn.onRelease = loadNext;
    //End Previous and Next Swf Buttons
    //Play Button
    play_btn.onRelease = function() {
        loadSWF(currentSwf);
    //Pause Button
    pause_btn.onRelease = function() {
         mcl.unloadClip(theTargetClip_mc);

  • Problem using swf loader

    When i try to run the mxml individually, It run correctly. As soon as i include it in another mxml using SWFLoader , the components stop working properly. It reflects the data sometime while sometime it doesnt. If i press browser refresh button , the components starts working
    again.
    here is the code snippet for the mxml where i load another swf file using swf loader.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:views="com.views.*" viewSourceURL="srcview/index.html" styleName="AppBack" height="100%" width="100%" initialize="init()" layout="vertical">
    <mx:Style source="assets/css/Main.css" />
         <mx:TabNavigator id="tn" height="100%" width="100%" top="-1" right="0" left="0" paddingTop="0" >
         <mx:Canvas label="Home" paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0">
             <mx:SWFLoader id="loader0" source="AddDeleteAccess.swf" height="100%" width="100%" x="0" y="-15"/>
         </mx:Canvas>
         </mx:TabNavigator>
    </mx:Application>
    The Home.swf contains a conbo box and a datagrid.
    The combo box stops working sometime and after the browser refresh is click it starts working.
    if required i can also paste the code of the file which is being loaded.

    scale your loader so it fits the way you want.  ie, if your loaded swf is 800x600 (with nothing on the back-stage) and you're loading into a 350x375 swf, after loading is complete, use:
    loader.width *= 350/800;
    loader.height *= 375/600;

  • Facing problem while unloading the SWF file in SWF Loader

    Facing problem with SWF Loader.
    Background:
    I've 4 SWF files (demo1.swf, demo1_skin.swf, demo2.swf and demo2_skin.swf).
    These swf files are created throgh Adobe Captivate.
    Playing demo1_skin, will play the demo1.swf with the controls at the button such as "Play", "Pause", "Stop", "Forward", "Backward" and Seekbar.
    Playing demo2_skin, will play the demo2.swf with the controls at the button such as "Play", "Pause", "Stop", "Forward", "Backward" and Seekbar.
    Scenario:
    1. Clicked on the video1 leaf of the tree. Video1.swf is getting played.
    I am able to click on the seek bar to take the video pointer to the desired position. I can drag the seek bar forward and backward also.
    2. Clicked on the video2 leaf of the tree. Video2.swf is getting played.
    I am not able to click on the seek bar to take the video pointer to the desired position. Also, I am not able to drag the pointer on the seek bar either forward or backward also.
    Play, Pause, Stop, Forward, Backward buttons on the skin works properly.
    3. If I again, click on the video1 leaf, point 1 observation is found.
    4. clicking agian, on video2 leaf, point 2 observation found.
    Please suggest.
    I tried with Loader also. But, nothing fruitful. Same result, as I am getting from SWF Loader.
    Please find the below used code.
    dp.xml
    <?xml version="1.0" encoding="utf-8"?>
    <root>
        <gallery label="All">
              <file label="video1" src="demo1_skin.swf" />
              <file label="video2" src="demo2_skin.swf" />
        </gallery>
    </root>
    Sample1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white">
    <mx:Script>
        <![CDATA[
                  import mx.events.ListEvent;
                  private function tree_itemClick(event:ListEvent):void {
                        var t:Tree = event.currentTarget as Tree;
                        var dataObj:Object = event.itemRenderer.data;
                        swfLoader.load(null);
                        if (dataObj.hasOwnProperty("@src")) {
                            swfLoader.load(dataObj.@src);
              ]]>
    </mx:Script>
    <mx:XML id="dp" source="dp.xml" />
        <mx:HDividedBox width="100%" height="100%">
              <mx:Panel width="200" height="100%">
                  <mx:Tree id="tree" dataProvider="{dp}" labelField="@label"
                        showRoot="false" width="100%" height="100%" itemClick="tree_itemClick(event);" />
                  </mx:Panel>
                  <mx:Panel id="panel" width="100%" height="100%" backgroundColor="white">
                        <mx:SWFLoader id="swfLoader" width="100%" height="100%" />
                  </mx:Panel>
        </mx:HDividedBox>
    </mx:Application>
    log in the console
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\Sample3.swf - 951,034 bytes after decompression
    Clicked on the video1 leaf of the tree
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1_skin.swf - 31,309 bytes after decompression
    this.getSWFVersion() = 7
    contentSWFFullPath = file://C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf - 323,414 bytes after decompression
    incrementWait = 1
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    decrementWait = 0
    Clicked on the video2 leaf of the tree
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2_skin.swf - 31,311 bytes after decompression
    [Unload SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf
    this.getSWFVersion() = 7
    contentSWFFullPath = file://C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2.swf
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2.swf - 477,273 bytes after decompression
    incrementWait = 1
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    decrementWait = 0
    Clicked on the video1 leaf of the tree (Again)
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1_skin.swf - 31,309 bytes after decompression
    [Unload SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2.swf
    this.getSWFVersion() = 7
    contentSWFFullPath = file://C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf - 323,414 bytes after decompression
    [Unload SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2_skin.swf
    incrementWait = 1
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    decrementWait = 0
    Clicked on the video2 leaf of the tree (Again)
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2_skin.swf - 31,311 bytes after decompression
    [Unload SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1.swf
    this.getSWFVersion() = 7
    contentSWFFullPath = file://C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2.swf
    [SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo2.swf - 477,273 bytes after decompression
    incrementWait = 1
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    onLoad m_movie = null
    decrementWait = 0
    [Unload SWF] C:\Java_Flex_Practice\FlexPractice\Sample\bin-debug\demo1_skin.swf

    Try calling unloadAndStop() before loading a new swf.
    http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html#unloadAndStop()
    http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#unloadAndStop()
    Note that unLoadAndStop()is FP10 only.

  • SWF LOADER null pointer exception

    Hello,
    I an trying to load and stop a SWF video.
    The video loads perfectly but when I click on stop, it gives me a null pointer exception.
    The thing is this, in STOP, the variable asociation:
                    var mc : MovieClip = loader.content as MovieClip;
    gives me as a result null (mc:null) , so when I excecute  mc.stop(); it gives me a null pointer exception.
    Why is mc null? if the content exists and loads?
    thank you VERY MUCH!
    Agustina
    CODE
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="1280" height="720" xmlns:views="code.views.*" xmlns:controllers="code.controllers.*" backgroundColor="#000000" creationComplete="OnCreationComplete()">
              <mx:Script>
              <![CDATA[
                        import mx.core.UIComponent;
                        private var loader:Loader;
                        private function OnCreationComplete():void
                                  var url : String ="flashvideos/Advertising.swf";
                                  loader = new Loader();
                                  var request:URLRequest = new URLRequest(url);
                                  loader.load(request);
                                  loaderHolder.rawChildren.addChild(loader as DisplayObject);
                        private function onStop():void
                             var mc : MovieClip = loader.content as MovieClip;
                             mc.stop();
                        private function onPlay():void
                             var mc : MovieClip = loader.content as MovieClip;
                             mc.play();
    ]]>
              </mx:Script>
    <mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
                        <mx:Canvas id="loaderHolder" width="500" height="500"/>
                             <mx:Button label="Stop" click="onStop()"/>
                             <mx:Button label="Play" click="onPlay()"/>
    </mx:VBox>
    </mx:Canvas>

    If the swf is not an AS3/FP9 SWF (or newer) it will not be a MovieClip.

  • Controlling SWF loaded through MovieClipLoader

    Hello AS gurus,
    I have a two-level site for a portfolio where users can view
    still images and videos for different projects. The top level SWF
    file can be considered as the "parent SWF" and within this file,
    the user navigates by choosing which project he/she wants to
    explore. After choosing, the "parent SWF" loads in a "child SWF"
    via MovieClipLoader of the selected content. It is within this
    "child SWF" that the user can view the various images and videos
    (with sound) of the selected project. To go back out and choose a
    different project, the parent SWF is used and the user navigates to
    and chooses another project.
    The problem is that I can't figure out how to communicate
    from the child SWF to the parent SWF (and vice versa)...well not
    really...this is difficult to explain...hmmm... It would be better
    to explain it with an example...
    If you go to:
    http://www.culshaw.info/junk_drawer/xdin/swf/
    (1) Choose the "Examples" square (when this box zooms up, you
    are presented with a way to navigate to various projects -- this
    SWF that loads as the zoom up happens is what I am calling the
    "parent SWF").
    (2) Choose the second project, labelled "Ford : Ti-VCT" by
    clicking on it (after clicking on the Ford project, the "child SWF"
    is loaded via a MCL from the "parent SWF").
    (3) You can see that the Ford project has 8 images and one
    video that the user can view. Choose the video and ensure that it
    begins to play and hit the mute button so that you hear sound
    (sound is default muted. It is within this "child SWF" that the
    video is NetStream(ed) and the sound is controlled. (there is a bug
    with my code here so you may need to hit play/pause to get the
    video going).
    (4) Now, as the video is playing and you hear sound, click on
    the "Other Examples" button that is located below the video player.
    This button is actually embedded in the the "parent SWF" that
    allows the user to navigate back up to see other projects and not
    in the "child SWF" which contains all of the content. Notice that
    you continue to hear the sound and that the net connection is still
    streaming the video within the "child SWF". I don't want this to
    happen. I want the "parent SWF" to tell the "child SWF" to stop
    streaming and stop all sounds when this "parent SWF" - embedded
    "Other Examples" button is pushed.
    I can't figure out how to do this. Any info that may help
    would be appreciated...
    -john

    Hi,
    It looks to me that the example you are going by has a main
    navigation in the parent swf that is controlling which child movie
    is loaded in and each child swf has its own internal navigation. If
    this is what you are trying to achieve and you are using
    _root.MoveClipName to target things you need to use the lockroot
    code so the flash player knows what root you are talking about.
    Place on the first frame of each Child swf
    this._lockroot = true;
    Hope this helps

  • Problems with loop on progressive loaded Movie

    Hey I got help for a a week ago to do a loop on progressive loaded movies, but nov I got a problem it only loops on keyframe one and not on keyframe 2. Do anyone know how I can sort that out..?
    I have the following on keyframe 1, where everything is perfect:
    var timedelay:Number = 3; 
    var video;
    var nc:NetConnection;
    var ns:NetStream;
    nc = new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.client = this;
    ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
    function netStatusf(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF,timedelay*1000);
    function replayF(){
    ns.play("film/film1.f4v");
    var durationNum:Number;
    function onMetaData(iObj:Object):void {
        durationNum = iObj.duration;
    video = new Video(287,263);
    video.x = 204.1;
    video.y = 140.5;
    addChild(video);
    video.attachNetStream(ns);
    ns.play("film/film1.f4v");
    and on keyframe 2 I got this, here it chooses a randome movie from the Array, when it'a chosen it dosen't loop:
    var moviesA2:Array =["film/film1.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v"];
    var movie2:String = moviesA2[Math.floor(Math.random()*moviesA2.length)];
    var timedelay2:Number = 6; 
    var video2;
    var nc2:NetConnection;
    var ns2:NetStream;
    nc2 = new NetConnection();
    nc2.connect(null);
    ns2 = new NetStream(nc2);
    ns2.client = this;
    ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF2,timedelay*1000);
    function replayF2(){
    ns2.play(movie2);
    video2 = new Video(287,263);
    video2.x = 204.1;
    video2.y = 140.5;
    addChild(video2);
    video2.attachNetStream(ns2);
    ns2.play(movie2);

    i assume you've applied ns.close() when going to frame 2 so that stream stops looping.  then use:
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns2.time)<.1) {
    setTimeout(replayF2,timedelay*1000);

  • Animated Gif won't stop looping!

    I'll try to format my question as best I can.
    I have created a Java chat applet, and for the Java chat, I have created a "ChatPane" class for displaying the chat. ChatPane is an extension of Canvas, and every time the paint() method is called, the program loops through visible lines of text drawing them on a buffer image, then draws the buffer on the screen.
    My problem lies in animated gifs. In my chatroom, chatters can type textual symbols that will be replaced with an image (or emoticon). I have created my animated icons in a popular animated gif editing program, and I have set particular icons to loop 3 times. The problem is that when the animated icon is displayed in my applet, the animation -doesn't stop- after 3 loops, it loops forever! I can't for the life of me figure out why! Can anyone provide any insight as to why the animations won't stop after 3 loops? The animations work just fine if displayed in a browser by themselves (they stop looping after 3 times)
    Thank you for any help!
    [email protected]
    Tony N.

    From what I understand of your problem;
    - You have made your own animated gifs
    - With the software to make these gifs you have set them to loop their animations 3 times
    - They loop continuously
    I don't see how java can be expected to interpret the animated gif software instructions to loop only 3 times and would assume that there are various proprietry ways of setting this (an assumption based on applets /javascript etc, that rely on the client-side browser interpreter). So, if you loop your animated gif or have any form of animated gif that you import into your program with getDocumentBase /getCodeBase as a (pre-animated) gif, then this is exactly what I would assume would happen.
    The answer is to seperate your images with eg;-
    smiley1[0];
    smiley1[1];
    smiley1[2];
    run a seperate thread, cycle through them as you wish and stop.
    I'm fairly sure that there is nothing in either the swing libraries or the jmf libraries that can resolve this any other way, so your choices are write extra code and have a pool of threads to control this, or leave it as is.

  • Loading and Unloading of swf files in SWF Loader

    Hi all,
    I have a doubt reg. SWF Loader.
    I have created two mxml files A & B.
    A. local.mxml
    B. SwfSample.mxml
    i have two labels and a button in A file and i have set values to those labels and have a method to handle the click event of the button. In B file i have loaded this A file and accessed the labels and methods using SystemManager Component and changed the values of the A file's label and accessed data from A file to B file.
    Here comes the problem,
    I have two buttons named LoadAgain and Unload
    When i click the Unload button, the SWF Loader unloads its content by the method i handled for  the Unload button, after that i have clicked on the LoadAgain button to load the same content of A's mxml to the SWF Loader, it loads succesfully,but i was not able to access its Label or Method from the B mxml. Please help me to solve the issue.
    local.mxml
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
    <mx:Script>
        <![CDATA[
    Bindable]
        public var varOne:String = "This is a public variable";
        public function setVarOne(newText:String):void
              varOne = newText;
        ]]>
    </mx:Script>
    <mx:Label id="lblOne" text="I am here" x="28" y="88"/>
    <mx:Label text="{varOne}" x="166" y="88"/>
    <mx:Button label="Nested Button" click="setVarOne('Nested Button Pressed');" x="28" y="114"/>
    SwfSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
        <mx:Script>
        <![CDATA[
              import mx.controls.Alert;  
              import mx.managers.SystemManager;  
              import mx.controls.Label; 
    Bindable]
              public var loadedSM:SystemManager;
              private function initNestedAppProps():void
                  loadedSM = SystemManager(myLoader.content);
              public function updateLabel():void
                  lbl.text = loadedSM.application[
    "lblOne"].text;
              public function updateNestedLabels():void
                  loadedSM.application[
    "lblOne"].text = "I was just updated" ;
                  loadedSM.application[
    "varOne"] = "I was just updated";
              public function updateNestedVarOne():void
                   local(loadedSM.application).setVarOne(
    "Updated varOne");
              public function unload():void
                   myLoader.content.loaderInfo.loader.unload();
              public function loadAgain():void
                   myLoader.load(
    "../bin-debug/local.swf");
            ]]>
         </mx:Script>
    <mx:Label id="lbl" x="72" y="47"/>
    <mx:SWFLoader id="myLoader" width="438" source="../bin-debug/local.swf" creationComplete="initNestedAppProps();" y="73" height="238" x="72" alpha="1.0"/>
    <mx:Button label="Update Label Control in Outer Application" click="updateLabel();" x="72" y="319"/>
    <mx:Button label="Update Nested Controls" click="updateNestedLabels();" x="72" y="349"/>
    <mx:Button label="Update Nested varOne" click="updateNestedVarOne();" x="72" y="379"/>
    <mx:Button label="Unload" click="unload();" x="72" y="409"/>
    <mx:Button label="Load Again" click="loadAgain();" x="72" y="439"/>
    </mx:Application>
    Thanks & regards,
    Sathish.K

    creationComplete only fires once when the SWFLoader is created.  Therefore you never reset your variables to point to the new sub-app.  On a slow network, creationComplete may fire before the sub-app loads.  It is best to use the COMPLETE event.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How do you stop game center from loading, How do you stop game center from loading

    iPhone 4 _ iOS7
    I have never used Game Center. However, most times when I open a solitaire game that I purchased on iTunes having 0 to do with Game Center, Game Center (obnoxiously) loads and asks that I join or login or whatever. Altough I hit cancel, that is not sufficient. I have found no means in Tools to disable Game Center.
    Is there no way to stop Game Center from loading??? (behavior same in both OS 6 & 7)
    Mark

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How do you stop top sites from loading in safari

    I have tried for days to stop "Top Sites" from loading in Safari 7.0
    In my ~Library I have locked the:
    Safari db
    metadata db
    etc.
    There is no way I can find to stop these crap top sites from loading!!!!!!!!!:(
    Anyone found a way to fix this?

    Never mind, I found out how to do it. However, you can't get rid of all the sites because in Safari 7.0, in the Preferences>General Tab, you can only change Top Sites to a minimum of six. So, you can't entirely get rid of them.

  • Change the SWF loading text for a single presentation

    This question was posted in response to the following article: http://help.adobe.com/en_US/Presenter/7.0/WS8815BC0A-5D22-4f29-87B9-D9047B5B57E4.html

    Hi,
      I have Adobe Presenter 7.0.5, in which with recently updating to 7.0.7 version.
    When I tried the fix of this "Change the SWF loading text for a single presentation" workaround fix, I passed to have the error:ReferenceError: Error #1069: Property ADOBE_PRESENTER not found on Pool_P75.Resource.UIText
    But before this error comes, I see that the loading text is changes from the original 2Adobe Presenter" to the one defined by me on the UIText, as the fix said.
    And what's happen is that the scrren with the loading text is not being changed by the learning first slide....
    Is there any workaround to correct that error?
    Many thanks in advance for any feedback from the adobe support team or from any other colleagues that are using Adobe Presenter (;-)).

  • How to get the content in embed swf file in Swf Loader on run time

    How to get the content in embed swf file in Swf Loader on run time
    [Bindable]
    [Embed(source="assets/index.swf")]
       private var SWFSRC:Class;
    <mx:SWFLoader id="_swfloader" source="{SWFSRC}" />

    Hi Flex harUI,
    Throw the error.
    Access of undefined property content

Maybe you are looking for