XML TREE calling external .swf

Thanks to some research and the help from you guys, I am
getting the hand of
this XML tree business for Flash 8.
Now, my question to you is this:
How can I create a clickable link for (let's say) my nome
Fornecedor 1.
I would like to click on this link and call an external .swf,
which I would
load into an empty MC.
Thanks again!
<node label="Comercio e Servicos">
<node label="Materiais Basicos">
<node label="areia">
<node label="SP">
<node label="Fina">
<node label="Fornecedor 1" /> //
THIS WOULD BE THE CLICKABLE ITEM to call an external swf.
<node label="Fornecedor 2" />
</node>
<node label="Media">
<node label="Fornecedor 1" />
<node label="Fornecedor 2" />
</node>
<node label="Grossa">
<node label="Fornecedor 1" />
<node label="Fornecedor 2" />
</node>
</node>

To sum up:
Clicking on a <node label> to call an external .swf
"Sergiomon" <[email protected]> escreveu na
mensagem
news:eli0tj$aqd$[email protected]..
> Thanks to some research and the help from you guys, I am
getting the hand
> of this XML tree business for Flash 8.
>
> Now, my question to you is this:
>
> How can I create a clickable link for (let's say) my
nome Fornecedor 1.
> I would like to click on this link and call an external
.swf, which I
> would load into an empty MC.
>
> Thanks again!
>
>
>
> <node label="Comercio e Servicos">
> <node label="Materiais Basicos">
> <node label="areia">
> <node label="SP">
> <node label="Fina">
> <node label="Fornecedor 1" /> //
> THIS WOULD BE THE CLICKABLE ITEM to call an external
swf.
> <node label="Fornecedor 2" />
> </node>
> <node label="Media">
> <node label="Fornecedor 1" />
> <node label="Fornecedor 2" />
> </node>
> <node label="Grossa">
> <node label="Fornecedor 1" />
> <node label="Fornecedor 2" />
> </node>
> </node>
>

Similar Messages

  • Unloading a loaded external SWF with a close button on the external SWF to unload

    I have found some discussion on this topic but I am still having trouble getting it to work and was hoping to get some help here.
    Here I have a file: http://www.dril-quip.com/test/main.swf
    I have: main.swf (a menu) and I have module.swf (content)
    If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent.
    So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.
    below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
    Main FLA:
    function removeF() {
    removeChild(bigboreLoader);
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    EXTERNAL FLA:
    btnClose2.addEventListener(MouseEvent.CLICK, bigborecontent);
    function bigborecontent(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    I think I have a misunderstanding of the code. Thanks for any help you might be able to provide.

    This was the original code I got:
    Main FLA: (on AS layer inside DropDownButton Movie Object)
    function removeF() {
    removeChild(myLoader);
    var myLoader:Loader=new Loader ();
    page1_mc.addEventListener(MouseEvent.CLICK, page1content);
    function page1content(myevent:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("page1.swf");
    myLoader.load(myURL);
    addChild(myLoader);
    EXTERNAL FLA: (on main time line of this file)
    close_mc.addEventListener(MouseEvent.CLICK, closeMC);
    function closeMC(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    Main.FLA
    myLoader=bigboreLoader (my new loader)
    page1_mc=btnbb2 (the button who event will call external swf)
    page1content = bigborecontent (name given to SWF being loaded???)
    myURL=bigboreRequest (my new URLrequest for bigbore)
    page1.swf=moduletemplate.swf (actual address of what I am loading)
    External.FLA
    close_mc=button that will close external swf
    closeMC=movie clip to close?

  • AS3 loading external swf files with buttons from inside a movieclip

    In my main .swf I have labels on the timeline, navs for those btns are on the first frame of the AS layer and each button sends the playhead to a different frame.
    On one frame called fr1 there is an mc called mc_1 that appears on stage when the playhead stops there. Inside mc_1 are a set of navigation buttons that need to call external .swfs.
    Do I add event listeners on the last frame of mc_1 for each button?
    how do I call the loaders for the swfs on the buttons since the swfs will load on the main timeline NOT the mc_1 timeline?
    So label on main timeline called fr1 will load external1 swf , on fr10 external 2.swf will load and so on.
    any help?

    The code for that button's event listener needs to be placed wherever it has direct access to the button.  Not necessarily on the same timeline, but in a place where both the button and the code are present at the same time.
    The code could be placed at the frame in the main timeline where the movieclip with the button(s) is, targeting the buttons via the movieclip (mc.button.addEvemtListener...) , unless the buttons are somewhere down the timeline of that movieclip.
    If they are down the timeline of that movieclip, then you would need to have the event listener also inside the movieclip, down its timeline where the buttons are finally settled in... being sure to assign instance names to the buttons at every keyframe.

  • Adobe Air 3.7 External SWF IOS

    im using Air 3.7 to call external swf from server to main swf  , but i got this warning after publishing Air for IOS "ActionScript contained in externally loaded SWF files will be ignored on IOS devices" please what i miss i know that the SDK 3.7 support this features all my extrnal swf contain actionscript 3 ??

    This warning is thrown by CS6 as CS6 was published when AIR iOS didn't have multiple SWFs support. Please ignore it as the feature will work in your app and SWFs will load on your iOS devices with AIR 3.7.
    Thanks,
    Nimisha

  • Insert SWF that calls external XML files and images

    Hi
    I am using Acrobat XI Pro on a Windows 7 system.
    I have a PDF in which I have an SWF file. This SWF file contains text content that is called from an XML file and also some images that is called externally. I have added the folder that contains the XML file and the images by right-clicking the SWF > Properties > Resources > Add Directory. However, none of the content is loading.
    I have tried adding the images and xml file separately as well. Even that did not work.
    What could be wrong? Please advise.
    Sreekanth

    Debugging Flash content in a PDF from the Flash Pro or Flex editor is possible, but it's complicated (you need to juggle about with the SDK to load a special Acrobat plugin). If you're creating these SWFs yourself, the fastest way to debug is to add a bunch of ActionScript calls that report to Acrobat's console to tell you what's going on. Use ActionScript's externalInterface.call() and the Acrobat JS console.println() functions, just like if you were talking to JavaScript in a web page.
    Rich media resources cannot be imported globally in Acrobat. In theory it's possible (the ISO standard allows XObject references to shared assets) but there's no authoring tool.

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • Call External C++ function and pass XML

    Hi,
    I need to call external C++ function from Oracle and pass to it XML file from Oracle table? Can you give short guide how to do it?
    Regards

    Your question sounds like is about using an Oracle database (or other application), and not about C++ programming or the using the C++ compiler. You are more likely to find a helpful answer in an Oracle database (or other application) forum.

  • Loading External SWF that loads XML

    Hey all I have a swf that loads an swf file into that loads pictures from an XML file thanks to Ned Murphy.  I have a new problems with it.  It works everywhere I try it except on the webserver.  When I try it I get nothing.  It doesnt seem to load the external SWf file or it may not be loading the XML file.  I am not sure why.  Has anyone ran into this before ? thanks.
    EDIT
    It works if I try the SWF from the webserver but when I embed it in an HTML file and run it through a broweser I get nothing.

    If the swf is is another folder from the html page that embeds it, you probably need to adjust how you target the files that the swf's load. 
    When you embed an swf file into a web page, anything the swf loads has to be targeted as if that swf is in the same folder as the html page that holds it.  So if the html page uses something like "flash/main.swf" to embed the top level swf, then if the top level file loads another swf from that same flash folder it needs to also use the "flash/other.swf" regardless that it is in the same folder on the server.  When it's embedded in the page, it's as good as being wherever that page lives.

  • Using external XML to load an swf

    Here's the deal - I have a main SWF with lots of loaders. Can
    a hyperlink in an external XML file load another external swf in
    the root flash doc? I have a list of links load in main SWF from an
    external XML file. From these links, I'd like to load other
    external SWFs in the main flash document. I can get the XML links
    to control my browser... can I get them to control what happens in
    my flash doc?
    Thanks!

    nothing in an xml file can load anything. but you can load a
    string that you use in your swf indicate which target file to
    load.

  • Trouble figuring out pathname for embedded swf loading external swfs & xml

    I have a swf that loads content from an XML file. This works fine when everything is in the same directory, but I want this swf to appear in several different HTML pages, which are in several different directories and I don't want to have to put 8 different copies of my swf online just so that they load properly. The directory structure is like this:
    main_dir:
    mod_dirmod01_dirmodcontent_dirmyembeddedswf.html
    myflash_dirsub1
    sub2:
    myflash.swf
    myflash.fla (not uploaded to the server)
    xml_dir:myxml.xml
    I created "sub1" and "sub2" just so that my swf would be the same number of directories downwards as the html has to link upwards, so that when I test the source file, it works. For the HTML, it's embedded like this (using swfobject):
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="800" height="500" id="../../../myflash_dir/sub1/sub2/myflash">
              <param name="movie" value="../../../myflash_dir/sub1/sub2/myflash.swf" />
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="../../../myflash_dir/sub1/sub2/myflash.swf" width="800" height="500">
                    <!--<![endif]-->
                    <div>
                        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                    </div>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
    And inside the Actionscript, I have a URL like this to load the XML:
    ../../../myflash_dir/sub1/sub2/xml_dir/myxml.xml
    Testing the .fla works. But the swf does not work in the HTML. myflash.swf loads, but the loading animation spins and spins, so presumably myxml.xml is not loading. Can anyone see what I'm doing wrong?

    Durrr, this is not the first time I've answered my own question. Maybe something about trying to explain it to someone else lets my brain make the critical connection.
    Anyway, yes it was everything to do with the external SWFs being loaded. My main swf actually loads an xml containing URLs from which to load all of the other SWFs and so I had to update the URLs inside of that, and that fixed the problem.
    Sorry for wasting forum space, but maybe this will help someone else out!

  • External swf in powerpoint communicating with eternal xml

    Hi there,
    I have a powerpoint presentation where I've put a shockwave object with an URL to an external swf, which is infact an application form and is storing data to XML in the same location as swf. Now this functionality works fine in a browser, but now if you imagine that I use powerpoint as a browser and apply the form from there it just doesn't get to the XML on the server.
    Are there any security restrictions in powerpoint that don't let data flow from external swf opened in powerpoint ? Is it possible to overcome it ?

    you are right the blue thinguy is in fact a bouton in my swf.
    i'm still kindof lost tho, i don't quite understand what you means by "move the loader" sorry i'm still a noob at flash and speaking english doesnt help.
    here's the full source files with everything if you have time to take a look, it might be easier than pasting chunk of code
    source files

  • Can a javascript rollover in html call an external .swf?

    I would like to change the code below to replace the target image with an external .swf.
    It is now replacing the target with a gif, homePrintImage0.gif.
    Is this possible?
    <div><a href="#"onClick="MyWindow=window.open('popup.html','poppup','toolbar=no,location=no,direc tories=no, status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=500,left=50,top=50'); return false;"><img src="images/rollovers/thumbPrint_0_off.gif" width="17" height="16" alt="::" name="thumb0" id="thumb0" onMouseOver= "MM_swapImage('thumb0','','images/rollovers/thumbPrint_on.gif','target0','','images/targets/homePrintImage0.gif',1)" onMouseOut="MM_swapImgRestore()"/></a></div>
    Thanks in advance.
    Karen

    I was just thinking that if it's a super simple animation, a gif would work. of course if it's more complex, you might want the flash. Maybe you could make your whole menu flash?

  • Set index of an external swf in a mc

    Hello,
    i have a trouble with this:
    a main movie clip (photo_group) which call an external movieclip from xml which call another movieclip which load a video... but the video is placed at the bottom of my main stage and i would like to have it at the top of everything.
    here's the code
    main clip :
    function loadClip():void
           var Clip_request:URLRequest = new URLRequest( folderswf + photo_list[swf_no].swf);
           var Clip_loader:Loader = new Loader();
           Clip_loader.load(Clip_request);
           Clip_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, on_Clip_loaded);
           swf_no++
    function on_Clip_loaded(e:Event):void
           Clip_mc = MovieClip(e.target.content);
           photo_group.addChild(Clip_mc);
           Clip_mc.x = (photo_group.numChildren-13) * max_pic_width;
           Clip_mc.y = 250;
           if( swf_no < total_items )
                 loadClip();
           else
                  move_photo_group();
    Calling VideoClip :
    bouton.addEventListener(MouseEvent.CLICK, loadVideo)
    function loadVideo(e:MouseEvent):void
          var Video_request:URLRequest = new URLRequest("loadvideo.swf");
          var Video_loader:Loader = new Loader();
          Video_loader.load(Video_request);
          Video_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, on_Video_loaded);
    function on_Video_loaded(e:Event):void
          var Video_mc:MovieClip = new MovieClip();
          Video_mc = MovieClip(e.target.content);
          addChild(Video_mc);
          Video_mc.x = 100;
          Video_mc.y = 100;
    Video Clip :
    var video_container:MovieClip = new MovieClip();
    addChild(video_container);
    var video:Video = new Video();
    video_container.addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.client = {};
    ns.client.onMetaData = ns_onMetaData;
    ns.client.onCuePoint = ns_onCuePoint;
    ns.play("_wje/_vff/_tuj/toto.flv");
    video.attachNetStream(ns);
    function ns_onMetaData(item:Object):void
        video.width = 360;
        video.height = 248;
        video.x = 200;
        video.y = 200;
    i need help please

    you are right the blue thinguy is in fact a bouton in my swf.
    i'm still kindof lost tho, i don't quite understand what you means by "move the loader" sorry i'm still a noob at flash and speaking english doesnt help.
    here's the full source files with everything if you have time to take a look, it might be easier than pasting chunk of code
    source files

  • AIR:  Loading external Swf - sandbox violation

    Hello Mates ,
    I need a help ... an urgent one !!! i tried so hard to figured it out .. but i couldn't .. so I appreciate your help so much ..
    I'm developing an Air App using flash ... the app loads an external SWF file dynamically through an xml ... the SWF file has a movieclip that has a listener (ON click )
    function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest(clickURL));
    everything is working fine until i click on this movieclip ... it displays the below message
    SecurityError: Error #2121: Security sandbox violation: navigateToURL: http://www.mydomain.com/maskot/avatar.swf cannot access http://www.yahoo.com. This may be worked around by calling Security.allowDomain.
    any help !!! because i really have a deadline !
    Thank you so much !

    that's why i added those comments about the swf's domain.  for locally loaded swfs, use:
    SFMltd wrote:
    Hi Kglad, Thanks for the Example.
    if i run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.
    The swf file im trying to load is stored locally so i guess this error makes sense. However if i comment out that line i get the same "cannot access Stage owned by app" error?
    See below for class:
    package  {
      import flash.display.MovieClip;
      import flash.filesystem.File;
      import flash.events.Event;
      import flash.net.FileReference;
      import flash.events.MouseEvent;
      import flash.display.Loader;
      import flash.net.URLRequest;
      import flash.system.LoaderContext;
      import flash.system.ApplicationDomain;
      import flash.system.SecurityDomain;
      public class assetPreview extends MovieClip {
      private var loader:Loader;
      private var mainSWF:MovieClip = new MovieClip();
      public function assetPreview() {
      addEventListener(Event.ADDED_TO_STAGE, initialise);
      public function initialise(e:Event):void
      removeEventListener(Event.ADDED_TO_STAGE, initialise);
      var allowSWF:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
    // allowSWF.securityDomain = SecurityDomain.currentDomain;
      loader = new Loader();
      loader.load( new URLRequest(settingsXML.pathToSWF),allowSWF);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, viewPreview);
      public function viewPreview(e:Event):void
      addChild(mainSWF);
      mainSWF.addChild(loader);

  • What is or isn't possible on iOS?  (Not having Loader, loadBytes(), external swfs, etc)

    My basic question is:  "What are the classes which we should not use for iOS using the packager."
    I have been trying for a few days trying to get a simple Flash app to run on the iPad.  A very simple app (with sound!) with just 2 classes works fine (Performance is a whole other issue.  We will get to that).  But if I try anything else, all I get is a white/black screen on the iPad.  So it would be really nice to know what classes, functions, etc we CANNOT use for the Packager.
    I have fairly simple app (not as simple as 2 classes) which loads some art assets via URLRequest/Loader, puts them on the stage.  Fairly common standard practice in AS3.
    I've read about not able to load an external file using the Packager.  So to fix the situation of loading assets, I have looked into the [embed] tag, which seems to work.  I hope the blogger doesn't mind, but this page is an excellent source on what works and doesn't work with the [embed] tag in it's various flavors:  http://www.richardleggett.co.uk/blog/index.php/2010/03/08/flash_builder_and_flash_pro_asse t_workflows.  For example, AS3 in a swf is stripped out from an external swf using [embed].
    The best way to load an external swf file for iOS seems to be using [embed] with "application/octet-stream" and load the swf through ByteArray (Option #4 in the link above).  This works great on the PC.  HOWEVER, on iPad, it fails.  The [embed] tag works on the iPad with the other ways, so my guess is that loadBytes() does not work.  Is this true Adobe/Flash guys?  Can you confirm this?
    My initial question is "why is this not allowed on iOS?".  If it is because of the fact that it uses a Loader, can it be changed so it's not using a Loader to construct a MovieClip?  I have a ByteArray with the raw swf/MovieClip data.  Why can't I construct a MovieClip from it without going through Loader?
    This loadBytes() failure seems to be the only thing preventing me from using the normal pipeline of Flash development in loading external assets.  If there are other ways people have found, please share!
    Now on to performance.  Adobe, can you post some examples/samples of code which runs at decent performance?  Like a "tech demo" of what is possible using the Packager running on iPad/iPhone.  That would be extremely helpful for everyone.  I have done a lot of the optimizing suggestions on various sites and pages ( and by Adobe http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html), but I am not seeing the 30 fps performance that is MORE than possible on iPhone/iPad.  Displaying and moving around Bitmaps (I don't use any vector graphics) should be blazing fast.  Quake runs on iPad without any problems and that code is 10 years old.  Moore's law dictates that drawing Bitmaps using CPU should be faster than a 3D engine written 10 years ago...  I am trying out the new iOS 4.2 which is supposed to be "significantly" better, but I am still stuck on loadBytes().
    So at this point, I am blocked on loadBytes() and my performance for a simple app which draws a few Bitmaps and MovieClips is terrible.  I am hopeful some people out there have figured out some solution (there are lots of clever people out there) and I will stumble on to something.  But being forced to go native Objective-C seems to be my only option at this point.
    In summary, here are the questions I would like to ask the Adobe/Flash group for some more help/information/advise:
    - Why is Loader not allowed on iOS?  Is it a technical limitation of the hardware/os/Flash?  Will it never be supported?  What is the future of this class on iOS?
    - Why is loadBytes() not allowed on iOS?  I have the raw embedded data in memory.  I don't need to make a remote call so security should not be an issue.  Can I create a MovieClip without using Loader?
    - Why is AS3 stripped from the timeline when a Symbol is retrieved using [embed]?  Maybe this is the same reason loadBytes() fails, but if I could use [embed] and get a copy of the Symbol, that is what I need.  (There are issues with the mx.core.MovieClipLoaderAsset/Asset, but it is better than being blocked by loadBytes())
    - What are some apps you guys have written that we can use to compare PC vs iOS?  Again, a "tech demo" or sample code of what you as experts in Packager for iOS have done which runs at decent framerate (30+fps) would be of tremendous help.  If the Adobe/Flash group hasn't gotten the current Packager for iOS to handle more than 50+ 2D Bitmaps on screen running at 30+fps, that would be good to know.  Please let us know what the experts and owners of your software are capable of getting the most throughput using the Packager.  I'd hate to sound a bit fed up/angry, but I think you are wasting a lot of people's time and energy with a piece of software that, to me, seems like it was a bit early to release.  Flash can do some great things.  If it can do it on iOS, even better.  But PROVE it to us that it's possible, before having your customers run into barriers imposed on us by trial and error.
    Thanks.

    I have hardly ever seen a post here from someone at Adobe, so you may need to be patient.
    Read this article, and get its associated demo files, to see some good performing tech demos:
    http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html
    Back to your main point, loaders are working, what isn't working for you is accessing of things in the library of a successfully loaded swf, that have been set to Export for ActionScript. That means that the swf you have loaded has an ActionScript Class, to represent the library symbol. iOS Flash apps are native ARM code, and don't include the virtual machines that a browser plugin has, and so it's not able to interpret ActionScript. That may be why it would fail.
    Now, I can think of at least a couple of reasons why you might want to have external swfs with elements that you want to reuse in the main swf. One would be if you're intending to make a lot of them, like say if you wanted to have an Asteroids game and the ability to use artwork from a set of different swfs. Another reason might be if you want to skin your interface, by taking specific elements from the loaded swf and using them in the main swf. That way you could have artists preparing those swfs for you, and you just include them in your package, and load the one you want.
    There is a way to do either of those things. The second one can be done by having the item as a named symbol on the stage of the loaded swf. With a to-be-loaded swf named "inner.swf", that has a movieclip on its stage named "mc1", this script in the main swf would load that external swf and use its symbol on the main swf's stage, without having to make the inner swf's symbol use ActionScript:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    For the other case, you can take the item off the stage of the loaded swf and draw it into a bitmapdata, and then make as many bitmaps from that as you like. Here's the above example, only it adds the original movieclip to the main swf stage, and also creates a bitmap that looks the same:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    var bmd:BitmapData = new BitmapData(innermc.width,innermc.height);
    bmd.draw(innermc);
    var bm:Bitmap = new Bitmap(bmd);
    bm.x = 150;
    bm.y = 150;
    addChild(bm);
    So, the thing to learn is that a native ARM code application does not have an ActionScript interpreter in it, and if you need to do something that normally requires interpreting ActionScript, find another way to do it.

Maybe you are looking for