Load AS3 in to AS2.........?

Dear all,
I have a main.fla, its fully developed by AS2, and i have a another small animation file animi.fla, its fully developed by AS3,
i tried to load the AS3 swf in to the main AS 2 file, But its not working ....
If anybosy have any solution pleasr share with me...
Thanks in advance
Rajasekaran

From the Flash documentation:
"SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels. An ActionScript 2.0 SWF file can do this through a call to loadMovieNum(), passing a value of 0 to the level parameter."

Similar Messages

  • Can I load AS3 swf in AS2 file

    I have downloaded a xmlphotoalbum (www.xmlphotoalbum.com) which is in AS3 and uses lots of external classes and functions,
    I am trying to load it withing a AS2 movie but it's not running and it is not giving me any errors.
    how can I make this run?
    would you please download the xmlphotoalbum and try it?
    I am not using an AS3 file to load the xmlphotoalbum because I don't know how to handel AS3 and load external swf files and play then and then unload them.
    I have tried using the get ulr and addchild() fucntions. but since I am not experienced it AS3 it's bit confusing for me and also I dont know how to control the playback of the loaded swf files.
    I am doing all this for a CD presentation, not a a web site.

    Hi there
    You are probably wanting help with Flash.
    Although this forum says "FlashHelp", what it is for is an output type from a product called RoboHelp.
    Click here to visit the Flash community
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Loading as3 swf files into as2

    im having a problem..i,e. i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. pls give ur mail id i can sent my original files....................pls help me
    pls give ur mail id i can sent my original files.................[email protected] pls help me am doing my final year college ..........download tis jpg image and convert to rar r zip file.....project

    You'r not able to load as3 files into as2 files.

  • How could I know that my swf file is in AS3 or in AS2  ?

    Is there any body know the techinique that how to identify my swf file is in AS3 or in AS2 ?

    you can check if it's an AVM1Movie using the "is" operator on your loader's content.  if it is, it's an as2 swf.  if not, it's an as3 swf.

  • Advantages & Disadvantages of AS3.0 against AS2.0

    Hi,
         Let me know about Advantages & Disadvantages of AS3.0 against AS2.0?

    Hi Subbu,
    >which is the best option to integrate i.e using XI as a middle layer
    I Prefer SAP XI / PI as Middle ware  and design because in SAP XI / PI we can do end to end montoring, We can do Transformation, Validation, Look Up, even Sucessfull message in XI can be resend if we needed, Can raise Alert if and notify to support team etc
    Regards
    Agasthuri Doss

  • Load external swf thats AS3 in a AS2 swf

    i have a website made in actionscript 2, and now i need some
    functions from actionscript3 that actionscript 2 doesnt have, so im
    trying to load a external actionscript 3 swf in to a actionscript 2
    swf, is this possible?
    im using _root.mc.loadMovie("ms.swf");
    cuz it doesnt seem to work

    ah ok thanks
    have any idea how to load text into swf in AS2.0 without
    having a tag like text= ... because as far as i know only AS3's
    URLLoader can do it.

  • AS2 loading AS3

    Hi,
    If I target player 9 and use AS2 code I can load an AS3 swf,
    I presume that I cannot do anything with this, like poll for its
    frames etc. I won't go into the details of why I'm doing this but
    can anyone confirm that AS2 swfs cannot use an AS3 swf in any way?
    Thanks
    Neil

    that is correct - AS2 cannot use AS3

  • Nest AS3 swf into AS2 swf

    I purchased a flash template written in AS2, i have all files needed to customize this site, .fla, psd's you name it. I also purchased a photo gallery that is written in AS3 (did not know it was AS3 when purchased) . My question: is there any way to embed/nest the AS3 photo gallery, which i the swf file for, into my AS2 website?

    Per AS3 documentation:
    A single SWF file cannot combine ActionScript 1.0 or 2.0 code with ActionScript 3.0 code.
    SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
    The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels.

  • Loading external SWF's into an SWF Loader as3 style?

    Hi,
    I've recently made the switch from as2 to as3 and am still struggling to get my head around one aspect in particular. I've managed to load one external swf into a blank file via the script
    import LoadDisplayObject;
    var loader:LoadDisplayObject = new LoadDisplayObject("button_01.swf", true);
    loader.addEventListener("displayObjectLoaded", onComplete, false, 0, true);
    addChild(loader);
    function onComplete(evt:Event):void {
         trace("loaded complete received");
         loader.scaleX = loader.scaleY = .75;
    .....however I'm struggling with the script to make a swfs load into a space when one of my 3 buttons is clicked....
    My page currently has three buttons (button_01, button_02 and button_03) and in a local folder three separate swfs with the same names which I wish to load in, when the appropriate button is pressed. 
    I have managed to get them to load in using a tutorial...however they load over the top of each over...far from ideal. From research on the internet I've found a range of different script...but I just can’t find anywhere I can find script to make this work..hence why I have turned to here.
    Any help much appreciated...thanks in advance.

    Hi,
    Just throught I would let you know that I've manged to get this to work this morning. Changed the script slightly and used a different method of:
    var home:MovieClip = this;
    function butt1Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_01.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function butt2Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_02.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function butt3Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_03.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function loaded(evt: Event):void {
        if(contentClip.numChildren > 0){
            contentClip.removeChildAt(0);
        contentClip.addChild(evt.target.content);
    button_01.addEventListener(MouseEvent.MOUSE_UP, butt1Click);
    button_02.addEventListener(MouseEvent.MOUSE_UP, butt2Click);
    button_03.addEventListener(MouseEvent.MOUSE_UP, butt3Click);
    seems to work well. Only small question is if I want one page to load automatically upon opening...how do I alter the script to do this??? Thanks

  • AS3 issue embedding AS2 .swf files

    Hi there,
    I'm attempting to create a menu navigation system with Flash/AS3 that opens up a series of older AS2 activities.
    At the moment I'm testing it with two buttons/two activities.
    The problem I'm having is that when I'm testing the navigation, the first button clicked will open its respective activity correctly, which can then be shut down using the original activity's exit button, and return to the two buttons on my AS3 menu. However, if I then select the other activity from the same screen, it won't load. I'm able to click the original activity again, and have it open, but not the new one.
    If I test the main flash navigation file again and click the other button first (that wasn't working), the other activity opens fine, and can be closed down. However the first button now won't open the activity. So both the buttons work (if they're the first ones clicked), but from then on, only the first button clicked works.
    In the debug panel, it looks as if the AS2 .swf files that I'm attempting to embed are themselves embedding a wrapper.swf file (with navigation buttons) as well as another sub set of shared .swf files for their own operation. Might it possible that these sub swf files aren't being unloaded properly when I switch between the main AS2 movies from my menu system?
    Is there a way to clear/unload everything that's been loaded (even resources loaded by the external files themselves - like a hard reset) between button presses?
    I have no access to the original AS2 code as this was done by another team years back.
    I'd be really grateful for any help or advice that anyone might be able to give.
    Thanks

    Just looking at the debugging panel, this is what I see when I try and run the program:
    Attempting to launch and connect to Player using URL /*****/*****/****.swf
    [SWF] Volumes:Data:Documents:*****:****:****:*****.swf - 876582 bytes after decompression
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_pr_qu_3:quiz.swf - 176016 bytes after decompression
    LocateFolders.enginesFolder(file:///*****/****/****/*****/F11_pr_qu_3/quiz.swf)
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_pr_qu_3:wrapper.swf - 481279 bytes after decompression
    ### Latest wrapper ###
    etc etc...
    Then follows a whole set of loading instructions and trace instructions put in the as2 swf which show XML files being loaded and the program launching. These must have been put in place by the previous programmer.
    When I click the exit button on the 'embedded' swf, the debugging panel shows things shutting down:
    ActivityToolbar clickQuit()
    Wrapper quitActivity()
    EndGame clear(false)
    Now when I click the second button, I should see a similar set of launching greetings etc. instead it bottles out at the following:
    [SWF] Volumes:Data:Documents:*****:****:****:*****:F11_wb_fc_1:flashcards.swf - 94720 bytes after decompression
    LocateFolders.enginesFolder(file:///file:///*****/****/****/*****/F11_wb_fc_1/flashcards.s wf)
    And there it stops.
    If I restarted the program and pressed the second button first, it would show the flashcards.swf activity loading correctly, but would then refuse to load the first activity when I clicked on the button.

  • Cap4 Aggregator stopped loading AS3 swf's

    Anyone have any idea why the Aggregator will no longer load any swf's created with AS3? AS2 files still work, but 3's just show the loader over & over.
    TIA!

    Hi there,
    There was an issue with Captivate 4 aggregated SWFs on the latest flash player. We have identified it and the issue is fixed. Please follow the steps mentioned in the link below
    Click here to open the link
    Thanks,
    Ashwin Bharghav B
    Adobe Captivate Team

  • Can someone pls help me to change AS3 code to AS2 code

    Hello! Dear All,
    I dont understand why with AS3 code my swf file is not working smooth at all. I would like to try it with AS2. In publish setting when I am selecting Flash Player 8, AS2 my swf is running good but showing lots of code errors.
    I dont have much knowledge about AS2 so if someone can help me with this...it would be great.
    Thanks,
    Cheers!
    Code1:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("GetVars",GetVars);
    ExternalInterface.addCallback("SetVariable1",SetVariable1);
    function GetVars():Array {
    return [
      {VariableName:"SetVariable1",DefaultValue:"Variable1"}
    function SetVariable1(variable:String):void {
    for (var i:int = 0; i < numChildren; i++) {
      var mc:MovieClip=getChildAt(i) as MovieClip;
      if (mc!=null&&mc.name=='Audi_Cup') {
       mc.variable1=variable;
       mc.SetVariable1(variable);
    Code 2
    this.mask_mc.cacheAsBitmap=true;
    this.mask_mc.cacheAsBitmap=true;
    Text1.mask=(mask_mc);
    function SetVariable1(variable:String):void {
    if (variable!=null) {
      for (var i:int = 0; i < numChildren; i++) {
       var mc:MovieClip=getChildAt(i) as MovieClip;
       if (mc!=null&&mc.name=='Text1') {
        var object:TextField=mc.getChildByName('InputTextField1') as TextField;
        if (object!=null) {
         object.text=variable;
    SetVariable1(this.variable1);

    it's possible, but unlikely, you'll fix anything by converting to as2.  so, what problems are you having with as3?

  • Enabling Parent button while external swf is loaded [AS3]

    Hello everyone,
    I am very new to Flash and it takes me a while to understand what code is trying to tell me
    The problem I am currently facing is as follows:
    After searching the net for hours I finally figured out, how to load an external swf into my main timeline. As far as I understand this main timeline is the "parent". Hence the loaded, external swf should be the "child" (a quiz).
    Now the child (a quiz) loads into the flash file and is played properly, but I cannot access the button on the parent anymore. Unfortunately, I really need the home button on the parent to exit the quiz and allow for new navigation within the flash document.
    I would greatly appreciate any help.
    Thank you all in advance.
    Kliph
    my AS3 Code:
    import flash.events.MouseEvent;
    function onClick611 (event:MouseEvent) :void
            gotoAndPlay("home_einf")
    home_btn.addEventListener (MouseEvent.CLICK, onClick611);
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    function startLoad()
        var mLoader:Loader = new Loader();
        var mRequest:URLRequest = new URLRequest("quiz.swf");
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
    mLoader.load(mRequest);
    function onCompleteHandler(loadEvent:Event)
    addChild(loadEvent.currentTarget.content);
        function onProgressHandler(mProgress:ProgressEvent)
        var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
    trace(percent);
    startLoad();
    stop();

    By simply using addChild like you have, you're placing the loaded content above everything on the display list - covering your button. There are a few ways to solve. The easiest, if it works for you, is to just make a new layer in your timeline - make it the top most layer, and place your home button in that layer.
    Then change your addChild line from:
    addChild(loadEvent.currentTarget.content);
    to:
    addChildAt(loadEvent.currentTarget.content, numChildren - 2);
    This will place the loaded content behind the button.
    Alternatively, you can set the button to export for AS and then add it after you add the loaded file. Or you can use content containers - empty sprites that you add first, and then fill with other objects, in order to control layering.

  • Coloring using AS3 instead of AS2

    Hello Adobe,
    I'm making my final year project which is education game and one of the game is coloring game, so I've finished it and all works well, then i just found out that the code I was using is AS2, meanwhile all the other game and files is running in AS3, so I've to make this coloring game code into AS3, but just can't fix it how hard I try.
    Here is the view of what I made, not done the graphic part yet, looks really bad
    http://i51.tinypic.com/t6qeyv.jpg
    Here is the code I have and works on AS2
    colorvalue="";
    RedColourBtn.onRelease=function(){
    colorvalue="0xFF0000";
    BlueColourBtn.onRelease=function(){
    colorvalue="0x0000FF";
    area1.onRelease=function(){
    colour= new Color(this);
    colour.setRGB(color_value);
    area2.onRelease=function(){
    colour= new Color(this);
    colour.setRGB(color_value);
    Thanks for your time

    Here is the convertion
    RedColourBtn.addEventListener(MouseEvent.CLICK, determineColor);
    BlueColourBtn.addEventListener(MouseEvent.CLICK, determineColor);
        var colorvalue:uint;
    function determineColor(arg:MouseEvent)
        var colorSquareName:String = arg.currentTarget.name;
        if (colorSquareName == "RedColourBtn")
            colorvalue= 0xFF0000;
        else if (colorSquareName == "BlueColourBtn")
            colorvalue= 0x0000FF;
    area1.addEventListener(MouseEvent.CLICK, area1fn);
    area2.addEventListener(MouseEvent.CLICK, area2fn);
    function area1fn(e:MouseEvent):void{
        var colorTransform:ColorTransform = area1.transform.colorTransform;
        colorTransform.color = colorvalue;
         area1.transform.colorTransform = colorTransform;
    function area2fn(e:MouseEvent):void{
        var colorTransform:ColorTransform = area2.transform.colorTransform;
        colorTransform.color = colorvalue;
        area2.transform.colorTransform = colorTransform;

  • AS3 menu to AS2 file back to AS3 menu?????

    *Also I should note, that the actions on the As3 file is coded on the frame. The actions in the AS2 file is coded on the corresponding button.

    I believe AS3 was not supported until Flash Player 9, so you would need at least that to open an AS3 file, though it is possible you would need an even newer player version if the file was created using a more recent version of Flash.

Maybe you are looking for

  • Trouble booting up after HD failure - 1405-S171

    I have a Satellite laptop, model 1405-S171.  I think my hard drive just failed, but I don't seem to be able to boot up from the recovery CDs that came with my computer.  Where can I find information on how to do that?  I'm running Windows XP Home. He

  • Settings for Depot as well as Mfg in one plant

    Hi, I have one  requirement the present we have one company code and one plant assign to it, the all setting and CIN configuration are as per manufacturing plant,  we capture the excise inovice in J1IEX or MIGO  then production cycle ,make the excise

  • Set Deletion Flag for the Preventive Maintenance Order

    Hi, I need to set the Deletion flag for the Service Order. Deletion flag available in the screen disabled. Please suggest. also I need know under which I shall be able to set such deletions. Thank you, Vijaya

  • Signing applets/ access controll violations

    I have just created a fairly simple game (much like that marble jumping solitare game), that is nice, fine, and works. But, however I run it in applet viewer, which automaticly gives it full power and stuff. If i try to run it in it's webpage, it say

  • Configure LDAP in my Sun Java System Application Server 7

    Hi All, I'm trying to connect a ldap server with my Sun One 7 (2004Q2). I think that I follow the needed steps but I don't achieve my purpose. These are the steps that I follow: 1) From Administrator Web, in Security -> Realms -> ldap -> properties,