As3.0 to as2.0 !!

i am trying to open as3.0 swf in flash player 8  ..... but it through an error ... ...  ? its possible or not

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.

Similar Messages

  • 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

  • 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.

  • 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?

  • 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.

  • 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.

  • 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

  • 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.

  • Fireflies using AS3, conversion from AS2

    Hey guys. I'm new to AS3. I do know the bare basics. I figure someone on here will know more than my teacher. (I'm paying for a class to learn actionscript, and as it turns out, he does as little of it as possible.) I wanted to have fireflies floating on my project, like particle effects. I have everything working with a tweaked version of an AS2 file I came across. Everything works in AS2, but I have no idea how to convert the syntax to work in my AS3 file. I get that they're different from each other, but can someone help me acheive the same results in AS3?
    http://www.mediafire.com/?o3qcc9bbt8b4p73
    The original is the file I'm trying to modify, and fireflies.fla is my modifications, in case anyone wants to see how poorly coded my translation was. It keeps telling me that it can't set the value for a String, though I'm not sure why.
    There are two basic components. "Pointer" is an invisible instance that the fireflies use as an anchor (so they can't go off the page), and mcObj is called from the library and is the firefly graphic with coding.
    The actionscript for the the parent is:
    Stage.align = "";
    Stage.scaleMode = "noScale";
    Stage.showMenu = false;
    Stage.onResize = false;
    damp = 0.65;
    Fat = 2;
    limx = 1000;
    limy = 100;
    maxScale = 8;
    bugNum = 15;
    startX = pointer._x;
    startY = pointer._y;
    pointer._visible = 0;
    for (i=1; i<=bugNum; i++) {
        attachMovie("bug", "bug"+i, i);
        dot = eval("bug"+i);
        dot._xscale = dot._yscale=maxScale;
        dot.color = new Color(dot);
        dot.color.setRGB("0xFFFF66");
        dot._x = startX+Math.random()*600;
        dot._y = startY+Math.random()*200;
    btn.onRollOver = function() {
        _root.light.gotoAndPlay(2);
    btn.onRollOut = function() {
        _root.light.gotoAndStop(1);
    And the coding for the firefly is:
    this._x = this._x+this.vx;
    this._y = this._y+this.vy;
    this.vx = this.vx+(Math.random()*2-1);
    this.vy = this.vy+(Math.random()*2-1);
    this.vx = this.vx*_parent.damp;
    this.vy = this.vy*_parent.damp;
    this._xscale = this._xscale-_parent.fat;
    this._yscale = this._yscale-_parent.fat;
    if (_parent.startX+_parent.limx<this._x) {
        this.vx = -this.vx;
        this._x = _parent.startX+_parent.limx;
    if (this._x<_parent.startX-_parent.limx) {
        this.vx = -this.vx;
        this._x = _parent.startX-_parent.limx;
    if (_parent.startY+_parent.limy<this._y) {
        this.vy = -this.vy;
        this._y = _parent.startY+_parent.limy;
    if (this._y<startY.startY-_parent.limy) {
        this.vy = -this.vy;
        this._y = _parent.startY-_parent.limy;
    if (_parent.maxScale<this._yscale || this._yscale<_parent.maxScale/25) {
        _parent.fat = -_parent.fat;
    Anyone who can help, please do. I need to have this done by the end of the week :/

    //stage.align = "";
    stage.scaleMode = "noScale";
    stage.showDefaultContextMenu = false;
    var damp:Number = 0.65;
    var Fat:Number = 2;
    var limx:Number = 1000;
    var limy:Number = 100;
    var maxScale:Number = 8;
    var bugNum:int = 15;
    var startX:Number = pointer.x;
    var startY:Number = pointer.y;
    pointer.visible = false;
    for (var i:int=1; i<=bugNum; i++) {
        //attachMovie("bug", "bug"+i, i);
    this["bug"+i]=new but();  // assign class
    addChild(this["bug"+i]);
       var  dot:MovieClip = this["bug"+i];
        dot.scaleX = dot.scaleY=maxScale;
    var ct:ColorTransform=dot.colorTransform;
    ct.color = 0xFFFF66;dot.colorTransform=ct;    dot.x = startX+Math.random()*600;
        dot.y = startY+Math.random()*200;
    btn.addEventListener(MouseEvent.MOUSE_OVER,onRollOverF);
    btn.addEventListener(MouseEvent.MOUSE_OUT,onRollOutF);
    function onRollOverF(e:MouseEvent):void {
        MovieClip(root).light.gotoAndPlay(2);
    function onRollOutF(e:MouseEvent):void {
        MovieClip(root).light.gotoAndStop(1);
    And the coding for the firefly is:
    var initialized:Boolean;
    if(!initialized){
    this.vx=0;
    this.vy=0;
    initialized=true;
    this.x += this.vx;
    this.y += this.vy;
    this.vx = this.vx+(Math.random()*2-1);
    this.vy = this.vy+(Math.random()*2-1);
    this.vx = this.vx*MovieClip(parent).damp;
    this.vy = this.vy*MovieClip(parent).damp;
    this.scaleX -= MovieClip(parent).fat;
    this.scaleY = this.scaleX;
    if (MovieClip(parent).startX+MovieClip(parent).limx<this.x) {
        this.vx = -this.vx;
        this.x = MovieClip(parent).startX+MovieClip(parent).limx;
    if (this.x!=MovieClip(parent).startX-MovieClip(parent).limx) {
        this.vx = -this.vx;
        this.x = MovieClip(parent).startX-MovieClip(parent).limx;
    if (MovieClip(parent).startY+MovieClip(parent).limy<this.y) {
        this.vy = -this.vy;
        this.y = MovieClip(parent).startY+MovieClip(parent).limy;
    if (this.y!=MovieClip(parent).startY-MovieClip(parent).limy) {
        this.vy = -this.vy;
        this.y = MovieClip(parent).startY-MovieClip(parent).limy;
    if (MovieClip(parent).maxScale<this.scaleX || this.scaleY<MovieClip(parent).maxScale/25) {
        MovieClip(parent).fat = -MovieClip(parent).fat;

  • 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."

  • As3 functionality in as2

    This is more of an as2 questions, but did not seem a section for that, so sorry if this is the wrong place.  
    I am working with a template that is built in as2, and when a button is clicked, a new browser window opens to a specified url and some info is passed to the php file.   I already have this funcinality via as3 in another site, but my director wants it in this onld as2 template.
    here is my as3 Code:
    //Path to PHP File
    var serverFile:String = "https://www.mypath.net/myphpfile.php";
    //Instantiate a new URLVariables Object
    var postVariables:URLVariables = new URLVariables();
    //add custom variables
    postVariables.GuestUserKey = 'myKeyInfo';
    //Request the URL
    var urlRequest:URLRequest = new URLRequest(serverFile);
    //Assign data to URL
    urlRequest.data = postVariables;
    //Tell flash what method to send Data
    urlRequest.method = URLRequestMethod.POST;
    try
              //Open new page and pass URL and Varaiables.
              navigateToURL(urlRequest);
    catch (event:Error)
              trace(this + (event));
    I need to achive this funcinality with as2 and here is what i have tried, but does not seem to work.
    on (release) {
        var myLoadVar:LoadVars = new LoadVars;
        myLoadVar.GuestUserKey = 'myKeyInfo';
        myVars.send("https://www.mypath.net/myphpfile.php", myLoadVar, 'POST');
    also, I have no control over the php file
    thanks.

    Kglad,
    Thanks again for your help, the above solution was just about what I needed sans one line of code, since I needed to open a new window, and then send the GuestUserKey as a variable the following coded ended up working.
    kglad wrote:
    this is the as1/as2 forum:  http://forums.adobe.com/community/flash/flash_actionscript?view=discus sions&start=0&numResults=50
    use:
    var sendLV:LoadVars=new LoadVars();
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    // do whatever with src - at least, use it for debugging.
    yourbutton.onRelease=function(){
    sendLV.GuestUserKey='myKeyInfo';
    sendLV.send("https://www.mypath.net/myphpfile.php", "_blank", 'POST');
    sendLV.sendAndLoad("https://www.mypath.net/myphpfile.php", receiveLV, 'POST');

  • I want to make it a AS3 project from AS2

    I am working on a flash file made with AS 1&2, with lots
    of layers and library items. I want to make it a AS3 project. How
    should I go about this?

    First, change as much of the code as you can to be AS3 code.
    Then, change your publish settings to AS3. Then, run the file and
    fix all of the errors that arise... the first list of errors is not
    likely all of them. Errors are often revealed in stages... as one
    is fixed, another is detected.
    Another option is to start from scratch. This may be better
    if you have no familiarity with AS3--you will learn about it in the
    process. You can build it gradually and test as you go rather than
    starting with a potential flock of code issues.

  • Can This be Converted from CS4 AS3 to Flash8 AS2?

    Is This Possible To Work In Flash8 AS2?
    import flash.events.Event; addEventListener(Event.ENTER_FRAME, update); var accel = 2 var speed = 0.06 var friction = 0.94 function update(e:Event):void { if (mouseX>400){body.fridge.rotationY += speed + accel} if (mouseX<100){body.fridge.rotationY += speed - accel} if (mouseY<100){body.fridge.rotationX += speed + accel} if (speed>2){speed = 2} if (speed<-2){speed = -2} body.fridge.rotationY *= friction body.fridge.rotationX *= friction }

    no.  flash8 doesn't support 3d manipulation of 2d objects.

Maybe you are looking for