Loding swf files into swf files

Hi,
If i have a swf fil locally which loads a number of other swf
files from a server, can i have the loaded files load other files?
I have a tool which loads different presentations from different
folders but the swf files in the presentations may them selves load
other swf files. Is there a method to handle this?
Jesper

Having one player find with relative paths folder grouped or
data based
grouped is very doable in Flash.
Look at the _url property for the player and pop off the swf
name at the end
and you have the path of the player. Then concatenate the
relative paths
from there.
The player base url can be attained with
urlBase = _url.substr(0,_url.lastIndexOf("/")+1)
then you concatenate
Ex:
aChildFolder = urlBase + "theChildFolderName/"
aSiblingFolder = urlBase + "../theSiblingFolderName/"
Then concatenate the swf name to those.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"JesperBisgaard" <[email protected]> wrote
in message
news:e2a8bj$22m$[email protected]..
thanks for your reply,
To describe the problem in greater detail:
I work for a company which produces presentations in flash.
Each
presentation
has a folder of its own on our server and these folders are
organised under
the
companies who ordered them. The presentations are composed of
a number of
swf
files which are loaded into a main presentation control file.
Now i am
looking
to build a tool which can load each of these presentations
depending on what
the customer would like to see. I would like this tool to be
plased in a
folder
of its own so i dont have to place one in each presentation
folder.
But my problem is that when i try this i find that most
often flash cant
handle the relative paths in the movies loaded by the
presentation control
file. Example: If i in the presentation load a file with a
graf and the graf
contains a button with an onRelease = function() {
instance.gotoAndPlay(2) }
flash has a very hard time determining which movieclip to run
the command
on.
Is there a way to handle this?

Similar Messages

  • Changing x and y position of a loded swf

    I know this is so basic, and I have googled and looked at
    help docs, which is helpful, but I still can't see the answer to my
    questions specifically.
    I am loading an external swf into my movie, and the default x
    y coordinates are 0,0.
    I want to make the coordinates 450, 0.
    How do I do that. Here is teh code.
    // ----------------<MCL>--------------------------\\
    var myMCL:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myMCL.addListener(myLisntener);
    // ----------------</MCL>--------------------------\\
    // loads the references flash player
    myMCL.loadClip("reference.swf", 5);
    thanks so much. I hope that makes sense. I just want the
    reference.swf file to be loaded in on layer 5--- 450 pixels form
    the left.
    thanks again!

    joshuataylordesign,
    var myMCL:MovieClipLoader = new MovieClipLoader();
    So far, this is fine. You're declaring a variable that
    happens to be
    named myMCL, and it refers to an instance of the
    MovieClipLoader class.
    What that means is that your variable, myMCL, has available
    to it all the
    functionality defined by that class in the documentation. The
    characteristics of this object (and this goes for all
    classes) are called
    properties; the things it can do are called methods; the
    things it can react
    to are called events.
    You're going to use the loadClip() method, and you're going
    to use the
    onLoadInit event. Let's take care of the event first.
    In AS2, the mechanics of event handling aren't always
    consistent. In
    this case, you're doing to need a go-between object -- just
    an Object
    instance -- to act as the liaison between your myMCL object
    and and your
    Object object.
    var myListener:Object = new Object();
    That line does it. So now you have myMCL, which is an
    instance of
    MovieClipLoader, and myListener, which is an instance of
    Object.
    When the onLoadInit event occurs, you want something to
    happen, so
    you'll need to assign an event to the myListener object to
    communicate your
    intentions on behalf of myMCL.
    myListener.onLoadInit = function():Void {
    // instructions here
    What you want this function to *do* is to move the loaded
    clip to a
    certain horizontal position. Well, your loaded clip is an
    instance of the
    MovieClip class, so it has available to it all the
    properties, methods, and
    events of that class -- including an _x property. How can you
    get a
    *reference* to the loaded clip? That comes by way of a
    parameter to the
    function you're assigning to the onLoadInit event. This
    parameter is passed
    into the function automatically for you, so if you want to
    use it, just tap
    into it:
    myListener.onLoadInit = function(mc:MovieClip):Void {
    mc._x = 450;
    And with that out of the way, you associate this myListener
    object with
    its companion object, myMCL:
    myMCL.addListener(myListener);
    Finally, invoke the loadClip() method on your myMCL
    instance:
    myMCL.loadClip("reference.swf", 5);
    Here it is, all together:
    var myMCL:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadInit = function(mc:MovieClip):Void {
    mc._x = 450;
    myMCL.addListener(myListener);
    myMCL.loadClip("reference.swf", 5);
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Access child clips of loded SWF

    I have a class (Main.as) that uses a Loader object to load an
    external SWF in to the root of my main app. I then want to pass a
    reference to the loaded SWF to another class in my main app so that
    it can access clips on the main timeline of the loaded SWF.
    Currently I use a Loader to load the SWF with a handler for
    EVENT.INIT, in the INIT handler I send the Loader object to another
    class using Event.target.loader.
    The second class receives the Loader object and it is here
    that I want to use addChild to add a Shape to the loaded SWF and
    set it as a mask on a clip on the SWFs timeline. I thought I was
    getting there using:
    loaderObject.content["clipName"].parent.addChild(maskShape;
    but when this runs I get a #1010: A term is undefined and has
    no properties.
    I am pretty new to AS3 so am quite likely going about this in
    a pretty kak handed way so if anyone has any ideas in general on
    accessing the child clips and properties of externally loaded SWF
    files I would love to hear them.
    Thanks a lot all

    loaderObject.content is the main timeline of your loaded swf.
    if clipName is a child of that main timeline,
    loaderObject.content["clipName"] will reference that child.
    therefore, loaderObject.content["clipName"].parent will
    reference you external swf's main timeline. and then you are trying
    to add maskShape to your external swf's main timeline.
    where's maskShape? that needs to be accessible to the class
    that's executing your code (and it's clearly not, or you wouldn't
    receive that error).
    but beyond that error, i think you're doing things you don't
    intend.

  • SWFLoader loded swf and relative path issue

    Hi,
    Before explaining the problem, let me describe the usecase.
    I have dashboard flex application hosted on Host1.
    I have another flex application which acts as plugin to dashboard and is hosted on Host2.
    I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
    For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
    Everything is fine upto this point. plugin.swf get loads successfully without any issue.
    Now the problem -
    If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
    Can this issue be resolved without making any modification in source of plugin.swf.
    Thanks in advance,
    Prithveesingh Zankat.

    I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • Error loading *.bin file

    i have a certain requirement like if plugin1 is down plugin2 has to be called,
    both plugin1 and plugin2 uses same 3rd party api for plugin implementation.But when my plugin1 is down i am getting error with plugin2 like
         "Error loading resource file: challenge.bin"
    This challenge.bin is in 3rd party api used for plugin1 and plugin2 implementation.
    Error loading resource file: challenge.bin
    java.lang.NullPointerException
    at java.io.FilterInputStream.available(Unknown Source)
    at ymsg.network.ChallengeResponseV10.<clinit>(ChallengeResponseV10.java:71)
    at ymsg.network.Session.receiveAuth(Session.java:1331)
    at ymsg.network.Session$InputThread.process(Session.java:2839)
    at ymsg.network.Session$InputThread.run(Session.java:2797)
    Did anybody had such problem earlier loding *.bin files earlier.

    Hussein,
    Thanks for your reply.
    I already checked these 2 docs from oracle support and verified the compat-db rpm version.My current version of the rpm is higher than the document mentioned version.
    FYR,
    [root@apps ~]# rpm -qa compat*
    compat-db-4.2.52-5.1
    compat-readline43-4.3-3
    compat-gcc-32-c++-3.2.3-47.3
    compat-gcc-34-3.4.6-4
    compat-dapl-utils-2.0.25-2.el5
    compat-libcom_err-1.0-7
    compat-dapl-devel-2.0.25-2.el5
    compat-dapl-static-2.0.25-2.el5
    compat-glibc-headers-2.3.4-2.26
    compat-libstdc++-33-3.2.3-61
    compat-gcc-34-g77-3.4.6-4
    compat-libstdc++-296-2.96-138
    compat-glibc-2.3.4-2.26
    compat-dapl-2.0.25-2.el5
    compat-gcc-32-3.2.3-47.3
    compat-libgcc-296-2.96-138
    compat-openldap-2.3.43_2.2.29-12.el5
    compat-libf2c-34-3.4.6-4
    compat-slang-1.4.9-27.2.2
    compat-gcc-34-c++-3.4.6-4
    compat-oracle-rhel4-1.0-5
    [root@apps ~]#
    Please check and suggest me to preceed further.
    Vijay.

  • Using a transition on an externally loaded swf

    Hi, I would have no problem doing this the old fashioned way,
    but for some client-requested reason it has to be in AS3. Here's
    what I have:
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("movie.swf");
    myLoader.load(url);
    //Fade-in 9 seconds
    TransitionManager.start(myLoader, {type:Fade,
    direction:Transition.IN, duration:9, easing:Strong.easeOut});
    Apparantly, myLoader isn't the instance name of the loded
    swf. I have no idea what it is though. Can someone help me? Thanks!

    The loaded swf is at loader.content, but you can only access
    it once the loading has completed and the loader has been added to
    the display list. For example, CODE 1 will not work, but CODE 2
    will.
    //CODE 1
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    myLoader.load(new URLRequest("movie.swf"));
    var loadedSwf:MovieClip = MovieClip(loader.content); //ERROR
    //CODE 2
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    myLoader.load(new URLRequest("movie.swf"));
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadCompleted);
    var loadedSwf:MovieClip;
    function loadCompleted(ev:Event):void {
    loadedSwf = MovieClip(loader.content);
    trace(loadedSwf);
    PS. I recommend using the Tweener library for tweening in
    ActionScript. It is much better than the Adobe functions and there
    is a tutorial at:
    http://gotoandlearn.com/player.php?id=45

  • SWF file imports as 32x32 icon into DW and will not show Flash playing in browser. WHY???

    I am importing a 569 x 441 Flash (CS3) swf file into
    Dreamweaver. The file imports as a 32 x 32 "Flash" icon. Once I
    change the pixel ratio, and select Play in DW - it looks fine. Once
    I export and preview in a browser it looks nothing like my file.
    WHY??? Can you please help me?

    I am importing a 569 x 441 Flash (CS3) swf file into
    Dreamweaver. The file imports as a 32 x 32 "Flash" icon. Once I
    change the pixel ratio, and select Play in DW - it looks fine. Once
    I export and preview in a browser it looks nothing like my file.
    WHY??? Can you please help me?

  • Need to connect different swf files into one site

    I need to make this site like presentation for my next exam. I found a good template for a slide show. The presentation will be structured like this: 
    MAIN PAGE with sidebar which links to:
    slide one with slideshow 1
    slide two with slideshow 2
    slide three with slideshow 3
    slide four with slideshow 4
    due to the nature of the code thou i cannot put the different slideshows into the same .swf file in different scenes (i copied and pasted them in each scene and modified the actionscript so they would refer to different pictures) because they will create conflict with each other. now they question is can i use the sidebar to link to different swf files but still make it look like it was just one big swf?
    thank you!

    Here is what you have to do
    Create a document named main.swf in that document put 4 buttons and instance (button1_btn, button2, button3_btn, button4_btn).
    Change the name to your slideshows to slide1.swf, slide2.swf, slide3.swf and slide4.swf.
    Now go to the actionScript panel of your main.swf and paste the following code:
    //load external content
    var loader = new Loader
    addChild(loader)
    loader.x=0;
    loader.y=0;
    button1_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide1.swf"));
    button2_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide2.swf"));
    button3_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide3.swf"));
    button4_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide4.swf"));
    any problems let me know!!!

  • Textbox shows xml text in working file but now when loaded into another SWF

    Hi all,
    I have downloaded an xml gallery (as2) as we needed one for an old as2 file. Now I mostly use as3 but thought as I only needed to tweak it there would be no probs. Of course, it rarely works out that way. The problem is, text loaded from the xml file is displayed with its corresponding image. This works fine in the file. When I load the SWF into another SWF however, it all works EXCEPT the text doesn't show at all?? Whoever made the gallery used 'device fonts' in the textbox, I don't know if this has anything to do with it. I tried changing the textbox to dynamic and embedding characters but still nothing.
    This seems the key line -
    _root.descmc.desc.htmlText = XMLdaten[number];
    I have also tried
    _root.descmc.desc.htmlText = XMLdaten[number].firstChild;
    This traces out the correct xml data when tested so it is finding it okay.
    Any help would be much appreciated.
    Thanks

    The problem might be in the use of the "_root"  You probably need to set _lockroot = true; in the loaded swf, otherwise the _root is that of the loading swf, not the loaded one.

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Embedding SWF file into an Indesign document and later export as PDF

    Hi to everybody,
    I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf.  I did this many times with all animations, page flip and stuff.My situation is the following:
    I have varios catalogues with  more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
    So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
    Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.

    Jeffrey,
    Thank you for the answer. As you have written:
    I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
    I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
    It that is the case I will strongly recommend my visitors to upgrade to this version.
    I hope that would work.
    Thanks again.
    Peter

  • How Do I Access An XML File For A SWF I Put Into Captivate 6.0

    Hi,
    I inserted a swf animation into my Captivate project that calls an external xml file. When I run the Captivate project, the swf works except it doesn't display any of the information from the xml file. How do I get Captivate let the inserted swf see the xml?
    Thanks

    Sreekanth,
    I was thinking that might be the solution. I'll test it on Monday and update the results.
    Thanks,
    Mike

  • Are Adobe Captivate swf files not compatible with IE8 or IE9 when inserted into RoboHelp projects?

    Hi,
    I've published Adobe Captivate swf files and then inserted them into my RoboHelp project. I then synced my RoboHelp project with our website and the videos within online help are not functioning in IE8 or IE9. They are only working in IE11.
    Thanks,
    Jaimie

    Hi there
    When a SWF plays in IE, it uses the Flash Player ActiveX control. I'm not 100% sure that different versions of IE would share the install. So if you have one version of IE on your machine, perhaps it either doesn't even have the control added in or it's the wrong version.
    One thing I would check in the browsers where the content seems to be missing is to right-click the blank area and see if you coax a Flash pop similar to below:
    Then note the version number.
    You may find that all that you (or others) need to do is ensure you have at least a specific version of the player/add-in installed.
    Cheers... Rick

Maybe you are looking for

  • Error while scheduling for user

    Hi All Experts, I tried to schedule a report for User1 in CMC (logged on as Administrator). But it failed with error "User does not have right "Edit Object"" I checked User1 belongs to Administrators and Everyone Group. So I changed the security for

  • Where will the System.out.println write to when using OC4J -9iAS 9.0.3?

    Hi: We are using OC4J 9.0.3 that is bundled into 9iAS 9.0.3 on Windows 2000. We are starting/stopping OC4J using Enterprise Manager Web Site. Is there a way to display java logs (System.out's in the code) somewhere when we access a web application th

  • How to insert a iPhone outline or templete

    I'm new to illustrator and I want to make iPhone graphics, is there a easy way for me to get a templete or out line of a iPhone and put my designs and logos I want in it?

  • Is there a string comparasion function?

    I want to compare a list of strings to see wether they are the same or not. for example: If they are the same then I should do this and if they aren't then I should do that. Is there any such function in labview?

  • Future of BSP: Can it be completely replaced by WebDynpro

    Hi All, I have read few tutorials on BSP as well as Webdynpro. I couldn't make out the exact difference between both of them. Please help me by answering folling questions: 1. What are the major differences between BSP and Web Dynpro 2. SAP still sup