Accessing a swf file inside a UILoader

In my game currently I have a series of UILoaders which can be set to load a specific swf file inside the larger one.   What Im trying to do is manipulate the 'child' swf file from the parent- in particular use the goToAndPlay() function.  Im pretty sure Ive seen the solution before but I cant find it now.
How make the connection from the UILoader class to its contents as a movieClip?
Thanks

Ok using the Content value of the UILoader class is the answer it seems.

Similar Messages

  • API / Sdk to play swf files inside a Mac / Windows application

    Hi
    We have set of .swf movie files in our application.
    These .swf movie files has to be played inside the content
    area of
    the window.
    We want to know how to play .swf movie files through program
    inside
    our application.
    Is there any api / SDK to play .swf files in Mac and Windows
    Thanks
    Ram

    Hi
    we want to give some clarifications
    As per our requirement we need to play same swf file ( about
    5 in number) always.
    These swf files are kept in some folder and during run time
    we need to play these swf files inside our Mac / windows
    application using flash player.
    we don't need to play any swf file, but the same swf files
    we need a api / sdk to implement this
    Any help will be very well appreciated
    Sudesh

  • Making xml playlist to play swf files inside one swf

    Hi,
    I have made an swf file and xml playlist.
    I want to include swf filepaths in xml playlist so i would be able to choose from my the list, which file i want to play.
    My list-component reads data from the xml, but i cannot get the swf files open there.
    I will attach my .fla file so you understand what i'm talking about.
    the .fla:
    http://www.mediafire.com/file/m24dz0gmzwz/Untitled-1.fla
    xml file:
    http://www.mediafire.com/file/gdyzzymy5mn/swfList.xml
    would you guys look at my files? i know i can play .flv files but i want to know how to play swf files inside another swf. The swf files should be loaded to  by the xml list.

    Hi
    we want to give some clarifications
    As per our requirement we need to play same swf file ( about
    5 in number) always.
    These swf files are kept in some folder and during run time
    we need to play these swf files inside our Mac / windows
    application using flash player.
    we don't need to play any swf file, but the same swf files
    we need a api / sdk to implement this
    Any help will be very well appreciated
    Sudesh

  • How to put a video player swf file inside a flash file

    i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial http://www.ehow.com/how_4906532_within-another-flash-swf-file.html that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf. how i can do that?

    You can use swf inside of another swf.
    If you are using Actionscript2 then learn about LoadMovie
    And for AS3 it is Loader.

  • My Flash SWF file inside of my Flash Catalyst SWF won't play when previewed in Dreamweaver?

    However, when I preview the flash catalyst swf file, the flash swf thats inside, plays just fine. any suggestions or solutions?

    Does the one swf load the other swf?  If so, is the one swf in the same folder as the html file that embeds it?

  • FB4 Beta 2: Variables accessed across swf-files are null.

    I’ve been working on an ActionScript project and just recently switched from FB4 Beta1 to Beta2. The project is made up of multiple swf-files that are loaded into shell.swf. When compiled with FB4 Beta1 variables are accessible across the loaded swfs and shell.swf but they just turn up as being null when compiled with FB4 Beta2. What causes this behavior and how do I go about it?

    If you are using Marshall Plan functionality, it is no longer available by default.  You have to add the MXMLC option
    -includes=mx.managers.systemClasses.MarshallingSupport
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Accessing local swf file

    I have an odd problem that doesn't seem to be addressed. I have a web site that uses a combination of js and swf files to load and display thumbnails which then uses flash to resize them and flash player to display them. With the latest flash player and Firefox update, everything works fine when live. It also works fine when opened locally in IE8 and Chrome. However, these files won't load locally in Firefox since the updates, although they work fine when live.
    Rolling back flash player might work, but I hesitate since everything is working except for this one thing

    Just to clarify..the problem occurs only in the flash section of the page. It will not load this section.
    I'm using file://protocol and have no problems with anything else. I don't know the number of the firefox version, but this only occurred with the latest update. I allowed both flash and firefox updates at the same time.
    I use relative paths which work everywhere else and open the html in the browser locally by either clicking the html file or File>Open File>Page Source
    Flash trusted locations is one of the first things I did. Works fine for all other browsers.
    I'm wondering if there is some connection to the new protected mode. Flash site says they are not supporting WindowXP with this, but it also says it will allow old security rules if on trusted location. Totally baffled.
    The only other possibility I can think of is the coding. I have some problem there that I haven't addressed yet. But in saying that, it does work when live, so that doesn't seem overly likely.

  • Can I access my backup files inside the airport using finder?

    When I tried to open some files inside the airport extreme appear this message:
    The alias “Documents” can’t be opened because the original item can’t be found.
    Someone know how to open this file? I didnt lose any file, I just want to open using AirPort.
    Thanks

    It's recommended NOT to use your AirPort Extreme for backups Mainly because the Time Machine software was not deigned to work with the AirPort Extreme and the Extreme wasn't designed to work with Time Machine. That's why Apple has the Time Capsule, for wireless backups.
    Try connecting your hard drive directly to your computer.

  • SWF file inside SWF does not open in browser

    Hi,
    I'm designing my website
    www.mauriciolopez.com
    using flash image galleries and then inserting them in
    Dreamweaver. The image gallery is setup to click on the thumbnail
    and then an external clip (SWF) loads into the gallery showing the
    big image. This works fine when tested. I placed the main gallery
    file and the clips in a folder inside my website but the clips do
    not show when tested in the browsers and when uploaded to the
    server. Here is the way how I referenced the clip inside FLASH for
    each thumbnail, this is the case for clip1.swf:
    on (release) {
    loadMovie ("clip1.swf","_root.screen");
    Attached is the code for my index page in DREAMWEAVER
    including the SWF gallery.
    I really appreciate if somebody can help me with this issue.
    Thanks!!!!

    You don't have a closing </head> tag.
    Jo
    "artmlu" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    >
    > I'm designing my website
    >
    > www.mauriciolopez.com
    >
    > using flash image galleries and then inserting them in
    Dreamweaver. The
    > image
    > gallery is setup to click on the thumbnail and then an
    external clip (SWF)
    > loads into the gallery showing the big image. This works
    fine when tested.
    > I
    > placed the main gallery file and the clips in a folder
    inside my website
    > but
    > the clips do not show when tested in the browsers and
    when uploaded to the
    > server. Here is the way how I referenced the clip inside
    FLASH for each
    > thumbnail, this is the case for clip1.swf:
    >
    > on (release) {
    > loadMovie ("clip1.swf","_root.screen");
    > }
    >
    > Attached is the code for my index page in DREAMWEAVER
    including the SWF
    > gallery.
    >
    > I really appreciate if somebody can help me with this
    issue.
    >
    > Thanks!!!!
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>index</title>
    > <style type="text/css">
    > <!--
    > body,td,th {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 12px;
    > color: #FFFFFF;
    > }
    > body {
    > background-color: #999999;
    > background-repeat: no-repeat;
    > }
    > a {
    > font-size: 12px;
    > color: #666666;
    > }
    > a:link {
    > text-decoration: none;
    > color: #FFFFFF;
    > }
    > a:visited {
    > text-decoration: none;
    > color: #CCCCCC;
    > }
    > a:hover {
    > text-decoration: none;
    > color: #CCCCCC;
    > }
    > a:active {
    > text-decoration: none;
    > color: #FFFFFF;
    > }
    > h1,h2,h3,h4,h5,h6 {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > }
    > h1 {
    > font-size: medium;
    > color: #FFFFFF;
    > }
    > h2 {
    > font-size: small;
    > color: #FFFFFF;
    > }
    > h3 {
    > font-size: small;
    > color: #FFFFFF;
    > }
    > h4 {
    > font-size: x-small;
    > color: #FFFFFF;
    > }
    > .style3 {color: #999999}
    > .style4 {color: #F6F6F6}
    > -->
    > </style>
    >
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > <body>
    > <table width="960" border="0" align="center"
    cellpadding="0"
    > cellspacing="0"
    > bordercolor="#999999" bgcolor="#999999"
    id="tabletemplate">
    > <tr>
    > <td width="6" bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td width="150" bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td width="10" bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td height="560" colspan="3" bordercolor="#999999"
    > bgcolor="#999999"><script
    type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','800','height','600','title','gallerytestsample','src'
    >
    ,'FlashAssets/PaintingGallery/Gallerytemplatesample','quality','high','pluginspa
    > ge','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockw
    >
    aveFlash','movie','FlashAssets/PaintingGallery/Gallerytemplatesample'
    > //end
    > AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="800" height="600"
    title="gallerytestsample">
    > <param name="movie"
    >
    value="FlashAssets/PaintingGallery/Gallerytemplatesample.swf" />
    > <param name="quality" value="high" />
    > <embed
    src="FlashAssets/PaintingGallery/Gallerytemplatesample.swf"
    > quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="800"
    > height="600"></embed>
    > </object></noscript></td>
    > </tr>
    > </table>
    >
    > <table width="960" border="0" align="center"
    cellpadding="0"
    > cellspacing="0"
    > bordercolor="#999999" bgcolor="#999999">
    > <tr>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td width="150" bordercolor="#999999"
    bgcolor="#999999"><span
    > class="style3"></span></td>
    > <td width="10" bordercolor="#999999"
    bgcolor="#999999"><span
    > class="style3"></span></td>
    > <td width="640" height="20" bordercolor="#999999"
    > bgcolor="#999999"><span
    > class="style3"></span></td>
    > </tr>
    > <tr>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td bordercolor="#999999"
    bgcolor="#999999"> </td>
    > <td height="80" colspan="3" bordercolor="#999999"
    > bgcolor="#999999"><span
    > class="style3"></span></td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

  • My imported swf files have lost their streaming sound. What can I do?

    I am trying to import a swf I made that contains streaming sound. When I place it on the time line and press cntr enter my animation plays but with no audio. I see the symbols from the swf and the swf inside my library. When I open the swf file inside my project it is broken down frame by frame with no audio. I can add audio back into my movie clip so I know that movie clips can support streaming audio. But I would rather not have to do this.
    I'm very new to flash so I am hoping there is something big that I am missing.
    In addition to my previous question: I need to embed a lot of objects over and over in this project I am working on. Each object will have controls for play back of itself. Is there some reason I cannot do this?
    Thank you for any advice you may have.

    Thank you for your reply
    Ok. I will need to maintain a libary of movie clips that contain streaming audio and simple scripts. Does anyone know of a good tutorial for importing a file at runtime? I've seen something called shared libary properties and it has a field for a url. I put a swf file on my web site and took it's url and put it into this field but nothing shows in my library. What else do I need to do?

  • How to load swf files within another SWF and still maintain actionscript

    Hi I was wondering how to embed an swf file inside another
    swf file, If i simply import it to the stage or the library it will
    become a symbol but the actionscript interactivity is lost, another
    question is can I have an actionscript 2 file play within an
    actionscript 3 file?
    The actionscript 2 code for embedding is something like this:
    don't mind the _mc titles
    this.cargame_mc.onRelease = function (){
    loadMovie ("Crusty Rusty's.swf", empty_mc)
    empty_mc._xscale=60;
    empty_mc._yscale=55;
    empty_mc._x=210;
    empty_mc._y=140;
    Please Help its for my uni portfolio, i want to use as2, but
    if i do i would lose the 3d possibility of as3, is there any way to
    export an as3 file and then embed in as2, using a program or
    anything? Thanks!I
    I would just like to say thanks in advance because everyone
    on here is so helpful!

    you can load an as2 file into an as3 file (using the loader
    class) and the actionscript will work in both.

  • Using .swf files in FCP

    I need to access an swf file so that I can edit it in FCP. Is it possible to convert it to a Quicktime movie as I can't open it in its current format?
    Trish

    Ian:
    You need to access to a computer (PC or Mac) with Flash app installed and export it as QT movie. It only works if the Flash animation is build frame by frame in Flash timeline; if the Flash animation uses action cripts the QT movie will not see those parts of the animation. You could need a thrid party software to do the conversion in that case.
    Hope that helps !
      Alberto

  • How to know when a .swf file ends

    I have a base .swf file that opens and plays another .swf
    file. I want to know when that .swf file has finished so I can then
    open a third .swf file inside the original.
    Thanks.
    Rob Childress

    In Flash 8 AS1 or 2 look at
    MovieClip._currentframe
    and
    MovieClip._totalframes.

  • Navigation Between multiple SWF files

    ok so I'm still working on this project and it got literally huge... at least huge enough to consume all of my 3 GB RAM memory and crash my Adobe Flash CS4. Anyway, I decided to put the site on several swf's but the problem is that I've never done that before so I have no idea how to navigate between them.
    Basically I have a main swf file, inside it there's an image (let's say its instance name is "projects_btn") that should take me to "Projects.swf", and I want to click on an "x" sign (its instance name is "xSign_btn") inside Projects.swf that would take me back to the main swf file "Bnaider2.swf".
    Any suggestions? thanks in advance...

    1. ok that link was very useful, thanks alot. project.swf is loading properly. But I donno what's going wrong, it just doesn't unload the project.swf when I click the xSign here's the code, maybe I've screwed something up:
    //On the main timeline of the project.swf file:
    xSign.addEventListener(MouseEvent.CLICK, xClickHandler);
    function xClickHandler(e:MouseEvent):void
         dispatchEvent(new Event("backHome"));
    // On the main time line of Bnaider.swf file:
    projectsImg2.addEventListener(MouseEvent.CLICK, onProjectsClick);
    function onProjectsClick(e:MouseEvent):void {
         var urlReq:URLRequest=new URLRequest("project.swf");
         var proLoader:Loader = new Loader();
         proLoader.load(urlReq);
         proLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderHandler);
         function loaderHandler(e:Event):void {
              addChild(proLoader);
         function loaderCompleteHandler(event:Event) {
              (event.currentTarget.content as MovieClip).addEventListener("backHome",xClickHandler);
         function xClickHandler(event:Event):void {
              proLoader.unload();
    2. the projects section of my site is divided into four swf's. First "project.swf" should load when I click on projectImg2 inside Bnaider.swf which is working fine so far (but doesn't unload once I click the xSign). Then I want "project2.swf" to load/run once I click on a button instantiated as "nextSwf" inside "project.swf". And on project2.swf as well, there's an xSign that once clicked  it should take me back to Bnaider.swf... and the same thing with the other two swf's. So... I donno, this is really getting too complicated for me, but if anyone could help I would really appreciate it cuz the whole project is due this Saturday and I've still got a few more things to work on as well... Thanks in advance...

  • Access a component inside external swf file

    Hi, I loaded a external swf file that it is a dialog.
    var swfLoader : Loader = new Loader();
    var swfURL : URLRequest = new URLRequest("dialog.swf");
    swfLoader.load(swfURL);
    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoaded);
    function imgLoaded(event:Event):void
    var movie : * = swfLoader.content;
    var clip : MovieClip = movie;
    parent.addChild(clip);
    Now, inside the movieClip there is a TextField component
    named message that i want to change its 'text' property.
    The question is: How can i access to this property to change
    it?
    Regards

    okay,
    I have the image component in ProductCatalogThumbnail.mxml, which has an id of "img"
    so, i created a public variable in the file and a public function that returns the value of the object.
    public var imagecopy:Object;
            [Bindable]
             public function imagecopyfunction():Object{
             imagecopy  = img;
             return imagecopy;
    now, I want to access this image in the mxml file ProductList.mxml in a function
      public function init():void
          ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          //this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
    I tried to use the variable, and then i tried to use the function:
    I got this error when I tried the variable : 1119: Access of possibly undefined property imagecopy through a reference with static type Class.
    ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    and this error when i tried the function:  1061: Call to a possibly undefined method imagecopyfunction through a reference with static type Class.
    ProductCatalogThumbnail.imagecopyfunction().addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    i made sure i imported ProductCatalogThumbnail file in the beginning of my application.
    I am not sure what went wrong.

Maybe you are looking for