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

Similar Messages

  • Knowing when a swf loaded in MovieClipLoader has finished animating

    Hi,
    I'm trying to create a wrapper written in ActionScript2, which loads a second AS2 swf then when this loaded swf has finished animating the wrapper will load a second swf.
    This is the code I have to load the first swf:
    this.createEmptyMovieClip("containerClip",this.getNextHighestDepth());
    var movLoad:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadProgress = function(thisClip:MovieClip)
         thisClip.onEnterFrame = function()
              trace("CurrentFrame:" + this._currentframe);
              //trace("TotalFrames: " + this._totalframes);
              if (this._currentframe == this._totalframes)
                   //trace("true");
                   movLoad.loadClip("number2.swf",this);
              //trace("false"); 
    movLoad.addListener(myListener);
    movLoad.loadClip("number1.swf",this.containerClip);
    I can get the total number of frames from the loaded swf, but how can I check when I reach the total number so I can remove the first swf and load the second one?
    Stephen

    Hi,
    This is what I have so far:
    this.createEmptyMovieClip("containerClip",this.getNextHighestDepth());
    var movLoad:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadInit = function(thisClip:MovieClip, loadedBytes, totalBytes)
         this.onEnterFrame = function()
              trace("CurrentFrame:" + thisClip._currentFrame);
              trace("TotalFrames: " + thisClip._totalframes);
              if (thisClip._currentframe == thisClip._totalframes)
                   movLoad.unloadClip("C:/development/projects/CMSwfLoader/assets/Yahoo_Smart_Banners_Loans_300x250_v2.swf");
                   movLoad.loadClip("C:/development/projects/CMSwfLoader/assets/300x250_2p_12Mb_tipografica.jpg",this);
    movLoad.addListener(myListener);
    movLoad.loadClip("C:/development/projects/CMSwfLoader/assets/Yahoo_Smart_Banners_Loans_300x250_v2.swf",this.containerClip);
    But I found that the onEnterFrame is not called at all, I want it to be called on the movieClip that has been loaded, so I can tell when it has reached the last frame. Is the problem because I'm listening for onLoadInit?
    Stephen     

  • Controling a loaded swf with another loaded swf

    I have a blank stage with only AS that loads an swf
    addChildAt(0) and a second one addChildAt(1). This works. When the
    user interacts with (1) it calls another addChild (not indexed) and
    possibly that one loads another, depending on the choices made by
    the user. How can I get any of these to control that very first
    child that was loaded at (0)? I have run out of ideas.
    Some of the code:
    (on the main swf, nothing on the stage, only code that loads
    the next two)
    addChildAt(pHolder, 0);
    pLoader.load(pURLReq);
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    pLoaded);
    and for the second:
    addChildAt(mHolder, 1);
    mLoader.load(mURLReq);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    mLoaded);
    On the child of childAt(1), I have:
    function replaceSWF(e:MouseEvent):void
    pLoader = new Loader();
    pLoader.load(new URLRequest("p.swf"));
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    placeNewClip);
    function placeNewClip(e:Event):void
    removeChildAt(0);
    addChildAt(e.target.content, 0);
    If I use this exact same code from that very first swf, the
    one that loads the first two external swfs, it works, but once I
    put it on one of hte other loadeds and sub loaded swfs, I can't get
    it to work. In the current state (0) it just makes everything on
    the stage disappear, so I figured then using the index of (1) would
    do it, but that or any other number results in absoluly nothing.
    Help! I am really out of ideas here.
    (the stacking looks like this) ---
    sub second loaded SWF <==== needs to tell first loaded SWF
    to unload then load a new swf at same index
    second loaded SWF <==== loads the next one above
    first loaded SWF <=== needs to be removed and another swf
    loaded at the same index
    mainSWF (loads two others) <=== code placed here works for
    first loaded SWF

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • Controlling the load order of swfs in a HTML document

    Hi all I have a document containing multiple swfs. Is there
    anyway I can control which swf loads first etc. Obvisouly it would
    start from which ever one is higher in the HTML document.
    However I would like to control what loads first, also can
    this be done with the images in the document?
    Any help is much appreciated.

    In your web.xml, under the servlet tag, make A.jsp be loaded the first, at your web app 's startup:
    <jsp-file>A.jsp</jsp-file>
    <load-on-startup>0</load-on-startup>
    ...

  • Embedded container swf loading swf with xml

    I'd call myself an intermediate AS3 newbe. I have a series of slideshows that is called by a 'container' Flash file.
    These slideshow swf files are now rather large (230 kb) so as a test, I redid one of them as a  Flash file that uses xml rather than the images called within the file itself (file size 68 kb), which is my first exploration into xml & AS3.
    All the non-xml files load and play fine locally (well, sort of, since there's some weird glitchs which show up in different ways at different times in the container loading too many files one after another at times - and sometimes there's no problem at all) but that's not my current problem here.
    Basic URL structure:  document relative
    1. container file (container.fla/container.swf) will be embedded in a html file. --> /Flash.container.swf The contain file has a series of links to other .swf files.
    2. The container file other .swf files (selection of 10) from a  subfolder called /sbrds i.e. --> UILoader loads "Flash/sbrds/albert.swf"
    3.  The albert.fla/albert.swf loads an xml slideshow from a subfolder of sbrds  called /AlBert  --> /Flash/sbrds/Albert code "loader.load(new URLRequest("AlBert/AlBertXX.xml"));"  (quotes in message only)
    4. Inside the /Albert folder I have the xml file and all the images. xml file  is AlBertXX.xml  (attached)  
    5. local structure --> desktop/workingFiles/storyboards (container.fla) /Flash /sbrds (albert.fla) /Albert (Albertxx.xml & image.jpgs)
    would equal on the server as  root html/Flash/sbrds/Albert
    Locally... The albert.fla (in the /Flash/sbrds folder) itself works fine with no errors when calling the xml file.  But when I test that file from the container.fla/swf  I get a 2044/2032 error "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///.../myLocalDesktopFolder/storyboards/AlBert/AlBertXX.xml      at albert_fla::MainTimeline/albert_fla::frame1()"
    I've check and rechecked for any typos in the xml slideshow test and don't find any.  Any ideas?
    Could it be that I'm calling a xml driven file from a non-xml driven file?
    I have all the files including my buggy htm file at http://www.danwelter.com/susanTest_static.htm
    All the pertinent fla and image files are in the /flash folder (too many to attach).
    -- Thanks --- Susan

    Hi Jan
    Apparently the update went into place on my personal laptop
    overnight last night. I awoke this morning to discover it had
    rebooted itself and it was patiently waiting for me to enter my
    bootup password. Anyhoo, I happened to notice that today when I
    hovered the mouse over my Captivate movie, I saw the dreaded
    “click to activate and use this control” message that
    popped up in a tooltip. What to do?
    Well, I did notice that it seemed to require a mouse click to
    "activate" the control, but simply running the movie seemed to be
    fine. I then wondered what would be disabled. When my movie got to
    the first button, the initial click was used to enable the control.
    Then the second click was accepted and progressed the movie.
    I hopped out on the web and found a page at the following
    URL:
    http://www.amarasoftware.com/flash-problem.htm
    After following the instructions there, my files seemed fine.
    Here are the steps I followed:
    1. Copied the code on the page and pasted into an empty
    Notepad.
    theObjects = document.getElementsByTagName("object");
    for (var i = 0; i < theObjects.length; i++) {
    theObjects
    .outerHTML = theObjects.outerHTML;
    2. Saved as file name ieupdate.js.
    3. Copied the link code and pasted between the closing object
    and center tags.
    Before:
    </object>
    </center>
    After:
    </object>
    <script type="text/javascript"
    src="ieupdate.js"></script>
    </center>
    It occurs to me that one could easily modify the "seed" HTML
    page Captivate uses when it creates the HTML page. This page is
    named standard.htm and is found in the following location:
    C:\Program Files\Macromedia\Captivate\Templates\Publish
    This would save tweaking the HTM each time you publish. Then
    you would only need to worry about making sure you copied the
    associated ieupdate.js file to the same folder.
    You gotta love lawsuits. I really hope those that "won" are
    happy that we all now have to jump through all the hoops to make
    things work. Sheesh
    Hopefully this helps... Rick

  • I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.  I've been unable to locate an app that will do this.

    I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.
    I've been unable to locate an app that will do this.  The Photos app that comes with the phone or iPad has extremely limited duration controls.  PhotoStream seems to load everything from my phone or iPad not allowing me to just load up a set group of images.
    iPhoto for iPad is getting some terrible recent reviews.  I tried a couple other free apps but they don't use Airplay.
    I can do something like this with iPhoto and my MB Air, but it's kind of ugly to have the computer open in order to connect by Airplay to my Apple TV.  I've thought the iPad or iPhone would be a lower profile controller.
    Am I out of luck?

    Thanks for your help.  Since I'm uninterested in loading all my photos (the only option) into photostream, I won't be able to use the settings in ATV.  I guess I'm just stuck with using iPhoto on my MB Air.  Thanks again.
    paul

  • 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

  • Xcelsius Parent/Child SWF Loader with BICS Connections

    We have several Xcelsius Dashboards that use BICS connections to retrieve data from BW queries that we'd like to combine into one Parent/Child tabbed dashboard. I can't seem to find solid information on if this is possible using a SWF Loader component due to the BICS requirement of being published through BW Portal and not InfoView. Does anyone have any ideas (short of combining them into one huge dashboard due to the volume of data)? Thanks!

    Hi Chris,
    I have been working with SWF loader on the SAP portal using the BICS connection type. It was not supported last time I asked about a year ago. However, it can work if you specify the URL in the SWF loader in this way:
    http://sapwebdisp.vestas.net:8103/bicsremotebex?SWF=XXX&TIMESTMP=1318867468000
    XXX is the name you publish your child dashboard under. Data can be exchanged between the parent and child dashboard by using the custom component "Data sharer" from Inovista which can be downloaded for free:
    http://www.inovista.com
    Besides the fact that this setup is unsupported there are some limitations so from my point of view it should only be applied under the following conditions:
    1. It is not possible to build eveything into a single dashboard.
    2. A solution having several independent dashboards does not make sense.
    An alternative might be the setup described in note 1526291. The way I understand it, it binds the dashboards together in a similar way as on a BO server with flash variables.
    Regards,
    Michael

  • A swf loader bug?

    It looks like I may have found a bug in the swf loader.  Before I submit this problem I want to make sure there is not something I'm missing in my code. I wrote this class to load a tutorial when the user first launches a sub application in a project I'm working on. This is a simplified version of the class that exemplifies the problem.  The same methods I use to launch the swf from within an mxml work just fine, but when I externalize the process in this class, I can hear the tutorial, but I get no visual.  Is this a bug or am I missing something?
    Here is the tutorial launcher class:
    package proj.fuego.utils
         import flash.events.Event;
         import mx.controls.SWFLoader;
         import mx.flash.UIMovieClip;
         public class TutPlayerSimple extends UIMovieClip
              private var gutLoader:SWFLoader;
              public function TutPlayerSimple(fullTutorialPath:String)
                 gutLoader = new SWFLoader();
                 gutLoader.addEventListener(Event.COMPLETE, addToStage);
                 gutLoader.load(fullTutorialPath + ".swf");
                 //addChild(gutLoader);
              private function addToStage(evt:Event):void
                 addChild(evt.target.content);
    This is my mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768" applicationComplete="application1_applicationCompleteHandler(event)">
         <mx:Script>
              <![CDATA[
                 import mx.controls.SWFLoader;
                 import mx.events.FlexEvent;
                 import proj.fuego.utils.TutPlayerSimple;
                 private var fullTutorialPath:String = "ll_tut";
                 private var tutPlayer:TutPlayerSimple;
                 protected function application1_applicationCompleteHandler(event:FlexEvent):void
                      // TODO Auto-generated method stub
                      var context:LoaderContext = new LoaderContext();
                      tutPlayer = new TutPlayerSimple(fullTutorialPath);
                      //context.checkPolicyFile = true;
                      //gutLoader.loaderContext = context;
                      trace("Loading Tut:", fullTutorialPath + ".swf");
                      addChild(tutPlayer);
              ]]>
         </mx:Script>
    </mx:Application>

    That didn't look right.  You'll need to addChild SWFLoader.  Not sure what will happen if you just try to add its content.  There might also be issues putting Flex components inside a UIMovieCip.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • 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 LOAD UNLOADING SWFLOADER ISSUES

    Hello Everyone,
    I wonder if anyone ran into this issue. I have a view stack
    with 3 visual screens. One of the screen has SWFLoader placed in
    with "id = contentLoader";
    I have two buttons on this screen on the top: "LOAD MOVIE 1"
    and "LOAD MOVIE 2".
    So pretty much, user can load the movie into the SWF LOADER
    via this two button navigation. Well, I am able to load the first
    movie with "AUTOLOAD". But when I click for the "LOAD MOVIE 2", the
    second movie does load in but then the application crashes and
    closes itself.
    My Questions:
    How can I unload the currently loaded SWF Movie before
    Loading the next one. I have searched for days for this on google
    and nothing has come through.
    ContentLoader.unloadandStop() doesn't work and application
    still crashes.
    ContentLoader.source = ""; doesn't work, app still crashes
    ContentLoader.source = null; doesn't work, app still crashes
    Any help would highly be appreciated on this, please.

    Hello Everyone,
    I wonder if anyone ran into this issue. I have a view stack
    with 3 visual screens. One of the screen has SWFLoader placed in
    with "id = contentLoader";
    I have two buttons on this screen on the top: "LOAD MOVIE 1"
    and "LOAD MOVIE 2".
    So pretty much, user can load the movie into the SWF LOADER
    via this two button navigation. Well, I am able to load the first
    movie with "AUTOLOAD". But when I click for the "LOAD MOVIE 2", the
    second movie does load in but then the application crashes and
    closes itself.
    My Questions:
    How can I unload the currently loaded SWF Movie before
    Loading the next one. I have searched for days for this on google
    and nothing has come through.
    ContentLoader.unloadandStop() doesn't work and application
    still crashes.
    ContentLoader.source = ""; doesn't work, app still crashes
    ContentLoader.source = null; doesn't work, app still crashes
    Any help would highly be appreciated on this, please.

  • SQL Loader through Forms 6i

    Hi,
    I need to know the steps to run sql loader through forms6i in windows environment.
    Please help me in this regard.

    1. Create a control file for Sql*Loader with all parameters you need
    2. Create a .bat file to run Sql*Loader, e.g. "sqlldr username/password@db control=<file above>"
    3. Use HOST command within Forms 6i to run the .bat file.

  • Issues in calling Sql Loader through forms developer (10g)

    Hi,
    I am developing a form(in 10g) ,in which I am calling sql loader for loading data onto a oracle database table from external source (e.g. data file is a .CSV file).
    But , somehow the sql loader is not getting executed.
    Here , I am giving the environment settings , approach i am taking;
    This is a distributed system , both the application server,and database server are mounted on two different servers.
    The form is delpoyed on the application server.
    The database table , and the sql loader are configured on the databse side.
    I am using host(<sql loader command>) command to invoke the Operating System command through forms.
    The sql loader is working ok , and the data is getting loaded successfully onto the required database table when I am executing the sql loader command on Unix prompt , but through the forms , it's not working.
    Do I need to change some environmental setting to make this work...
    Any quick help in this regard is highly appreciated.
    Thanks.

    Hi Craig,
    I have already tried out the option of calling sql loader through stored procedure,but this is not working ...
    could you please share any examples to do so ...
    code snippet i am using in forms:
    declare
    usid get_application_property(userid);
    pwd get_application_property(password);
    db get_application_property(host);
    msqlldr varchar2(250);
    begin
    msqlldr:='/u01/oracle/formss/bin/sqlldr' username=<uid/pwd@db> control=<control file name> data=<data file name> log=<log file name>
    hosts(msqlldr);
    end;
    Note that sqlldr command ,for that matter any unix shell command is not working through the hosts() command ...
    could you please suggest any way out ...
    Thanks.

  • Control swf from separate swf in main file

    Im loading 2 swfs into my main swf. So I have a top swf and a
    bottom swf being loaded in externally into my main swf that makes 3
    swfs, 1MAIN swf loading TOP swf & BOTTOM swf.
    Is there a way to have the bottom swf control or command the
    top swf? I need a button on in the bottom swf to tell the top swf
    to load a movie.

    in AS2 you can point directly from one to the other with the
    correct pathing.
    IE:
    _level0.TopSwfLoader.content.FunctionToCall();
    or
    _level0.TopSwfLoader.content.Property = NewPropertyValue;
    _level0 takes you to the main swf (_root, but this works
    around if lockroot is set)
    TopSwfLoader.content is the content of the Loader component
    that has your Top.swf loaded into it. If you are not using a Loader
    component, then you can change this to the instance name of the
    Movie Clip that has the swf loaded into it.
    FunctionToCall()/Property is what you want to control. Either
    a function call or a property.
    In AS3 this works a bit differently. I would dispatch a
    custom event from the Bottom swf. Then the main swf would catch
    that event, and call the appropriate function/property in the top
    swf. I can elaborate more on this if you need.

  • Using SWF Loader

    Hi Gurus,
    I have been looking through other questions like this, and not sure if the resolutions that I have seen will work.  I have a dashboard that I want to use the SWF loader in to bring in SWF files (obviously) but they are not stored in InfoView - which is what has been talked about in other questions.
    I have looked in the user guide and have seen that I can use DocumentDownload or OpenDoc, not that I am familiar with either.  My question really is this:
    1. could i use one or other of these even though i am not going through infoview (so i dont have a cuid)
    2. how would I write the syntax?
    I tried using a URL button, but I have a container on the main summary dashboard that I want the swf's to load in, rather than have a new screen load up.
    Could someone give me some advice on this??
    Many thanks,
    Sarah

    Hi Roman,
    Thanks for the response,
    I got that point that i cannot use SWF loader to show my Sub Dashboard inside my main dashboard.
    So my question What is the way (Working) to show the sub dashboard inside the main dashboard using the BICS(On EP).
    I have tried to published my Sub Dashboard and Main Dashboard on EP and tried to call the Sub Dashboard using the HTML Link...(SWF Loader/Slide Show)...but these comp. wont work...
    so which way i shd go..
    Are you saying i shd go via "Web Application Designer--creating the template and calling Dashboards(main n Sub) seperately???
    Sam...
    Edited by: Sapbpc_user on Dec 1, 2010 12:57 PM

Maybe you are looking for

  • Weight change in material master, update all open PO's

    Hello IS there any standard way for mass update open purchase orders, when weights and volumen in material master change ? example: there is a change in neto weight for material AAAA, which is inserted into mm02, basic data for his material. This cha

  • Output type NOT displaying

    Hi, I am creating a new Message type - zse1 to output the Purchase Order thru EDI. I have done the basic settings, of defining the Partner profile, message type, port definiton. But when I create Purchase Order & goto the messages tab, I am not able

  • Could not restore iPod

    I bought classic iPod 80GB 3 yrs ago. I had it synced to my iMac. Then I gave it to my son who has a new PC. He was able to sync it download music and then it was no longer recognized when he would plug it in. I took it back and tried restoring it to

  • Inter company COGS and Cost Components in COPA

    Looked at so many threads but couldn't find a proper answer. Scenario: Company B in Canada books a sales order,  delivering from a Plant in Company A in US. US bills Canada at Cost + Mark up. In US: On Goods issue  COGS is booked based on std in US (

  • Attach Query Report to Purchase Report.

    Hello Xperts.... I have executed a query report regarding  purchase orders. Now I want to attach that query report in my purchase Reports(Modules -> Purchase A/P -> Purchase Reports) but not in My Menu. Plz reply...Thanx..